13 #if !defined(KRATOS_RETRIEVE_GLOBAL_POINTERS_BY_INDEX_FUNCTOR_H_INCLUDED )
14 #define KRATOS_RETRIEVE_GLOBAL_POINTERS_BY_INDEX_FUNCTOR_H_INCLUDED
56 template<
class TContainerType >
72 const TContainerType& rContainer,
73 const std::vector<int>& rIndices
75 : mrContainer(rContainer), mrIndices(rIndices)
110 virtual std::string
Info()
const
112 std::stringstream buffer;
113 buffer <<
"RetrieveGlobalPointersByIndex" ;
118 virtual void PrintInfo(std::ostream& rOStream)
const {rOStream <<
"RetrieveGlobalPointersByIndex";}
175 const TContainerType& mrContainer;
176 const std::vector<int>& mrIndices;
219 template<
class TContainerType>
225 template<
class TContainerType>
230 rOStream << std::endl;
Serial (do-nothing) version of a wrapper class for MPI communication.
Definition: data_communicator.h:318
static GlobalPointersVector< typename TContainerType::value_type > RetrieveGlobalIndexedPointers(const TContainerType &rContainer, const std::vector< int > &rIdList, const DataCommunicator &rDataCommunicator)
Retrieve global indexed pointers from container and data communicator.
Definition: global_pointer_utilities.h:329
This class is a vector which stores global pointers.
Definition: global_pointers_vector.h:61
Short class definition.
Definition: retrieve_global_pointers_by_index_functor.h:58
virtual ~RetrieveGlobalPointersByIndex()
Destructor.
Definition: retrieve_global_pointers_by_index_functor.h:79
virtual std::string Info() const
Turn back information as a string.
Definition: retrieve_global_pointers_by_index_functor.h:110
RetrieveGlobalPointersByIndex(const TContainerType &rContainer, const std::vector< int > &rIndices)
Default constructor.
Definition: retrieve_global_pointers_by_index_functor.h:71
GlobalPointersVector< typename TContainerType::value_type > operator()(const DataCommunicator &rComm) const
Definition: retrieve_global_pointers_by_index_functor.h:84
KRATOS_CLASS_POINTER_DEFINITION(RetrieveGlobalPointersByIndex)
Pointer definition of RetrieveGlobalPointersByIndex.
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: retrieve_global_pointers_by_index_functor.h:121
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: retrieve_global_pointers_by_index_functor.h:118
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