30 #ifndef MovableContainer_h 31 #define MovableContainer_h 33 #include "utility/actor/actor/MovableObject.h" 45 typedef typename C::iterator iterator;
46 typedef typename C::const_iterator const_iterator;
47 typedef typename C::reference reference;
48 typedef typename C::const_reference const_reference;
82 const size_t sz= container.size();
91 for(const_iterator i= container.begin();i!=container.end();i++)
95 std::cerr <<
"MovableContainer::sendSelf() - failed to send ID.\n";
105 container.resize(sz);
111 for(iterator i= container.begin();i!=container.end();i++)
112 res+= this->receiveItem(*i,cp,dbTags,
CommMetaData(loc++));
121 const int dataTag= getDbTag();
123 int res= sendData(cp);
127 std::cerr <<
"MovableContainer::sendSelf() - failed to send data\n";
136 const int dataTag= getDbTag();
140 std::cerr <<
"MovableContainer::recvSelf - failed to receive ids.\n";
145 std::cerr <<
"MovableContainer::recvSelf - failed to receive data.\n";
MovableContainer(C &)
Constructor.
Definition: MovableContainer.h:65
int recvData(const CommParameters &)
Receive data through the channel being passed as parameter.
Definition: MovableContainer.h:101
int sendIdData(const DbTagData &, const int &)
Sends miembro data through the channel being passed as parameter.
Definition: CommParameters.cc:392
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
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:43
int send(DbTagData &, CommParameters &, const CommMetaData &) const
Sends the object.
Definition: DbTagData.cc:102
Container that can move between processes.
Definition: MovableContainer.h:42
int receive(DbTagData &, const CommParameters &, const CommMetaData &)
Receive the object.
Definition: DbTagData.cc:106
int sendData(CommParameters &)
Send data through the channel being passed as parameter.
Definition: MovableContainer.h:80
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: MovableContainer.h:72
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
virtual int sendSelf(CommParameters &)
Sends deque through the channel being passed as parameter.
Definition: MovableContainer.h:118
Communication parameters between processes.
Definition: CommParameters.h:65
void setDbTagDataPos(const size_t &i, const int &v)
Sets the integer in the position being passed as parameter.
Definition: DbTagData.cc:77
virtual int recvSelf(const CommParameters &)
Recibe el deque through the channel being passed as parameter.
Definition: MovableContainer.h:133