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";
int sendMovable(MovableObject &, DbTagData &, const CommMetaData &)
Sends a movable object through the channel being passed as parameter.
Definition: CommParameters.cc:959
int send(DbTagData &, CommParameters &, const CommMetaData &) const
Sends the object.
Definition: DbTagData.cc:102
DbTagData & getDbTagData(void) const
Returns a vector para almacenar los dbTags de los miembros de la clase.
Definition: MovableMap.h:76
int getDbTag(void) const
Returns the tag para la database.
Definition: MovableObject.cpp:92
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
int sendID(const ID &, const int &)
Sends vector.
Definition: CommParameters.cc:72
int receiveIdData(DbTagData &, const int &) const
Recibe el miembro data through the channel being passed as parameter.
Definition: CommParameters.cc:396
int sendIdData(const DbTagData &, const int &)
Sends miembro data through the channel being passed as parameter.
Definition: CommParameters.cc:392
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: MovableMap.h:110
FEM_ObjectBroker is is an object broker class for the finite element method. All methods are virtual ...
Definition: FEM_ObjectBroker.h:138
int receiveString(std::string &v, DbTagData &, const CommMetaData &) const
Recibe la cadena de caracteres through the channel being passed as parameter.
Definition: CommParameters.cc:324
int receiveID(ID &v, const int &) const
Recibe el vector.
Definition: CommParameters.cc:79
int sendSelf(CommParameters &)
Envia el objeto through the channel being passed as parameter.
Definition: MovableMap.h:144
Template class for maps that can move between processes.
Definition: MovableMap.h:47
Object that can move between processes.
Definition: MovableObject.h:91
int receiveMovable(MovableObject &, DbTagData &, const CommMetaData &) const
Receives a movable object trhrough the channel being passed as parameter.
Definition: CommParameters.cc:969
const int & getDbTagDataPos(const size_t &i) const
Returns the integer in the position being passed as parameter.
Definition: DbTagData.cc:58
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: MovableMap.h:158
int sendString(const std::string &, DbTagData &, const CommMetaData &)
Envía la cadena de caracteres through the channel being passed as parameter.
Definition: CommParameters.cc:316
MovableMap(const map_objects &map, T *(FEM_ObjectBroker::*pF)(int))
Constructor.
Definition: MovableMap.h:70
int receive(DbTagData &, const CommParameters &, const CommMetaData &)
Recibe el objeto.
Definition: DbTagData.cc:106
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
================================================================================
Definition: ContinuaReprComponent.h:34
const int & getDbTagDataPos(const int &i) const
Returns the data at the i-th position.
Definition: DistributedBase.cc:49
void setDbTagDataPos(const int &i, const int &v)
Sets the data at the i-th position.
Definition: DistributedBase.cc:53