93 template<
class TObjectType>
96 return rThisObject.Id();
137 virtual std::string
Info()
const
139 std::stringstream buffer;
140 buffer <<
"indexed object # "
214 virtual void save(
Serializer& rSerializer)
const
216 rSerializer.
save(
"Id",mId);
221 rSerializer.
load(
"Id",mId);
258 rOStream << std::endl;
This object defines an indexed object.
Definition: indexed_object.h:54
std::size_t result_type
The definition of the result_type.
Definition: indexed_object.h:66
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: indexed_object.h:146
IndexedObject(IndexedObject const &rOther)
Copy constructor.
Definition: indexed_object.h:79
IndexedObject & operator=(IndexedObject const &rOther)
Assignment operator.
Definition: indexed_object.h:86
virtual std::string Info() const
Turn back information as a string.
Definition: indexed_object.h:137
IndexedObject(IndexType NewId=0)
Default constructor.
Definition: indexed_object.h:73
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: indexed_object.h:152
KRATOS_CLASS_POINTER_DEFINITION(IndexedObject)
Pointer definition of IndexedObject.
IndexType & DepricatedIdAccess()
TODO: remove this function when removing data_file_io object.
Definition: indexed_object.h:123
std::size_t IndexType
The definition of the index type.
Definition: indexed_object.h:63
virtual ~IndexedObject()
Destructor.
Definition: indexed_object.h:76
IndexType operator()(TObjectType const &rThisObject) const
Definition: indexed_object.h:94
IndexType Id() const
Definition: indexed_object.h:107
virtual void SetId(IndexType NewId)
Definition: indexed_object.h:117
IndexType GetId() const
Definition: indexed_object.h:112
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
void load(std::string const &rTag, TDataType &rObject)
Definition: serializer.h:207
void save(std::string const &rTag, std::array< TDataType, TDataSize > const &rObject)
Definition: serializer.h:545
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307