13 #if !defined(KRATOS_GLOBAL_POINTER_UNORDERED_MAP_H_INCLUDED )
14 #define KRATOS_GLOBAL_POINTER_UNORDERED_MAP_H_INCLUDED
57 template<
class TDataType,
class TValueType >
60 GlobalPointerHasher<TDataType>,
61 GlobalPointerComparor<TDataType>
106 virtual std::string
Info()
const
108 std::stringstream buffer;
109 buffer <<
"GlobalPointersUnorderedMap" ;
116 rOStream <<
"GlobalPointersUnorderedMap";
184 rSerializer.
save(
"Size", this->size());
185 for(
const auto& item : (*
this))
187 rSerializer.
save(
"pair", item);
194 rSerializer.load(
"Size", size);
197 for(std::size_t
i = 0;
i<size; ++
i)
199 std::pair< GlobalPointer<TDataType>, TValueType>
tmp(
nullptr, TValueType());
200 rSerializer.load(
"pair",
tmp);
241 template<
class TDataType,
class TValueType >
249 template<
class TDataType,
class TValueType >
254 rOStream << std::endl;
Short class definition.
Definition: global_pointers_unordered_map.h:63
virtual std::string Info() const
Turn back information as a string.
Definition: global_pointers_unordered_map.h:106
GlobalPointersUnorderedMap()
Default constructor.
Definition: global_pointers_unordered_map.h:76
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: global_pointers_unordered_map.h:120
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: global_pointers_unordered_map.h:114
friend class Serializer
Definition: global_pointers_unordered_map.h:180
KRATOS_CLASS_POINTER_DEFINITION(GlobalPointersUnorderedMap)
Pointer definition of GlobalPointersUnorderedMap.
virtual ~GlobalPointersUnorderedMap()
Destructor.
Definition: global_pointers_unordered_map.h:79
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
void save(std::string const &rTag, std::array< TDataType, TDataSize > const &rObject)
Definition: serializer.h:545
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
tuple tmp
Definition: generate_total_lagrangian_mixed_volumetric_strain_element.py:98
def load(f)
Definition: ode_solve.py:307
integer i
Definition: TensorModule.f:17