33 #include "MovableObject.h" 34 #include "MovableID.h" 35 #include "MovableString.h" 38 #include "utility/tagged/TaggedObject.h" 39 #include "CommParameters.h" 50 typedef std::map<std::string,T *> map_objects;
51 typedef typename map_objects::iterator iterator;
60 const map_objects &getMap(
void)
const 86 const size_t sz= objects.size();
95 for(iterator i=objects.begin();i!=objects.end();i++,loc++)
98 classTags(loc)= (*i).second->getClassTag();
124 for(
size_t i= 0;i<sz;i++)
128 tmp= getBrokedMovable(dbTag,classTags(i),cp,ptrFunc);
131 res+= tmp->recvSelf(cp);
135 std::cerr <<
"Error en MovableMap::recvData label= " 136 << label << std::endl;
152 std::cerr <<
"MovableMap::sendSelf() - failed to send data\n";
164 std::cerr <<
"MovableMap::recvSelf() - failed to receive data\n";
MovableMap(const map_objects &map, T *(FEM_ObjectBroker::*pF)(int))
Constructor.
Definition: MovableMap.h:70
int sendIdData(const DbTagData &, const int &)
Sends miembro data through the channel being passed as parameter.
Definition: CommParameters.cc:392
int receiveString(std::string &v, DbTagData &, const CommMetaData &) const
Receives la text string through the channel being passed as parameter.
Definition: CommParameters.cc:324
Object that can move between processes.
Definition: MovableObject.h:99
const int & getDbTagDataPos(const size_t &i) const
Returns the integer in the position being passed as parameter.
Definition: DbTagData.cc:58
int receiveIdData(DbTagData &, const int &) const
Receives el miembro data through the channel being passed as parameter.
Definition: CommParameters.cc:396
int receiveMovable(MovableObject &, DbTagData &, const CommMetaData &) const
Receives a movable object trhrough the channel being passed as parameter.
Definition: CommParameters.cc:1076
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:43
FEM_ObjectBroker is is an object broker class for the finite element method.
Definition: FEM_ObjectBroker.h:145
Vector of integers.
Definition: ID.h:93
int receiveID(ID &v, const int &) const
Receives el vector.
Definition: CommParameters.cc:79
int send(DbTagData &, CommParameters &, const CommMetaData &) const
Sends the object.
Definition: DbTagData.cc:102
int receive(DbTagData &, const CommParameters &, const CommMetaData &)
Receive the object.
Definition: DbTagData.cc:106
const int & getDbTagDataPos(const int &i) const
Returns the data at the i-th position.
Definition: DistributedBase.cc:49
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: MovableMap.h:158
int sendID(const ID &, const int &)
Sends vector.
Definition: CommParameters.cc:72
int sendSelf(CommParameters &)
Send the object through the channel being passed as parameter.
Definition: MovableMap.h:144
void setDbTagDataPos(const int &i, const int &v)
Sets the data at the i-th position.
Definition: DistributedBase.cc:53
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: MovableMap.h:84
void inicComm(const int &dataSize) const
Initializes communication.
Definition: DistributedBase.cc:57
Communication parameters between processes.
Definition: CommParameters.h:65
int sendString(const std::string &, DbTagData &, const CommMetaData &)
Envía la text string through the channel being passed as parameter.
Definition: CommParameters.cc:316
int getDbTag(void) const
Return the object identifier in the database.
Definition: MovableObject.cpp:99
int sendMovable(MovableObject &, DbTagData &, const CommMetaData &)
Sends a movable object through the channel being passed as parameter.
Definition: CommParameters.cc:1066
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: MovableMap.h:110
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: MovableMap.h:76
Template class for maps that can move between processes.
Definition: MovableMap.h:47