34 #include "MovablePointerContainer.h" 35 #include "MovableID.h" 36 #include "MovableString.h" 39 #include "utility/tagged/TaggedObject.h" 40 #include "Communicator.h" 51 typedef std::map<std::string,T *> map_objects;
52 typedef typename map_objects::iterator iterator;
59 const map_objects &getMap(
void)
const 74 const size_t sz= objects.size();
83 for(iterator i=objects.begin();i!=objects.end();i++,loc++)
86 classTags(loc)= (*i).second->getClassTag();
114 for(
size_t i= 0;i<sz;i++)
121 res+= tmp->recvSelf(comm);
125 std::cerr <<
"Error in MovableMap::recvData label= " 126 << label << std::endl;
int sendMovable(MovableObject &, DbTagData &, const CommMetaData &)
Sends a movable object through the communicator argument.
Definition: Communicator.cc:1163
MovableMap(const map_objects &map, T *(FEM_ObjectBroker::*pF)(int))
Constructor.
Definition: MovableMap.h:67
int receiveString(std::string &v, DbTagData &, const CommMetaData &) const
Receives la text string through the communicator argument.
Definition: Communicator.cc:337
Communication parameters between processes.
Definition: Communicator.h:66
const int & getDbTagDataPos(const size_t &i) const
Returns the integer in the position being passed as parameter.
Definition: DbTagData.cc:58
int send(DbTagData &, Communicator &, const CommMetaData &) const
Sends the object.
Definition: DbTagData.cc:102
int receiveMovable(MovableObject &, DbTagData &, const CommMetaData &) const
Receives a movable object trhrough the communicator argument.
Definition: Communicator.cc:1174
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
Template class for maps that can move between processes.
Definition: MovablePointerContainer.h:43
FEM_ObjectBroker is is an object broker class for the finite element method.
Definition: FEM_ObjectBroker.h:151
Vector of integers.
Definition: ID.h:95
T * getBrokedObject(const int &, const int &, const Communicator &)
Returns an empty object of the class identified by classTag.
Definition: MovablePointerContainer.h:75
int receive(DbTagData &, const Communicator &, const CommMetaData &)
Receive the object.
Definition: DbTagData.cc:106
int sendData(Communicator &)
Send members through the communicator argument.
Definition: MovableMap.h:72
int sendID(const ID &, const int &)
Sends vector.
Definition: Communicator.cc:73
const int & getDbTagDataPos(const int &i) const
Returns the data at the i-th position.
Definition: DistributedBase.cc:53
int sendString(const std::string &, DbTagData &, const CommMetaData &)
Send the text string through the communicator argument.
Definition: Communicator.cc:328
void setDbTagDataPos(const int &i, const int &v)
Sets the data at the i-th position.
Definition: DistributedBase.cc:57
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: MovablePointerContainer.h:67
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int receiveID(ID &v, const int &) const
Receives el vector.
Definition: Communicator.cc:80
Template class for maps that can move between processes.
Definition: MovableMap.h:48
int recvData(const Communicator &)
Receives members through the communicator argument.
Definition: MovableMap.h:99