xc
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
XC::MovableContainer< C > Class Template Referenceabstract

Container that can move between processes. More...

#include <MovableContainer.h>

Inheritance diagram for XC::MovableContainer< C >:
Inheritance graph
[legend]
Collaboration diagram for XC::MovableContainer< C >:
Collaboration graph
[legend]

Public Types

typedef C::iterator iterator
 
typedef C::const_iterator const_iterator
 
typedef C::reference reference
 
typedef C::const_reference const_reference
 

Public Member Functions

 MovableContainer (C &)
 Constructor.
 
virtual int sendSelf (Communicator &)
 Sends container through the communicator argument.
 
virtual int recvSelf (const Communicator &)
 Receive the container through the communicator argument.
 
- Public Member Functions inherited from XC::MovableObject
 MovableObject (int classTag, int dbTag)
 Constructor. More...
 
 MovableObject (int classTag)
 Constructor. More...
 
 MovableObject (const MovableObject &)
 Copy constructor. Doesn't copy the dbTag.
 
MovableObjectoperator= (const MovableObject &)
 Assignment operator. Doesn't copy the dbTag.
 
int getClassTag (void) const
 Return the class identifier.
 
int getDbTag (void) const
 Return the object identifier in the database.
 
int getDbTag (Communicator &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (Communicator &)
 Sets the object identifier in the database if not already set. More...
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 Sets the value param to the parameter argv.
 
virtual int updateParameter (int parameterID, Information &info)
 Updates the parameter identified by parameterID with info.
 
virtual int activateParameter (int parameterID)
 Activates the parameter identified by parameterID.
 
virtual int setVariable (const std::string &variable, Information &)
 Set the value of the variable idenfified by var.
 
virtual int getVariable (const std::string &variable, Information &)
 Return the value of the variable idenfified by var.
 
- Public Member Functions inherited from XC::DistributedBase
 DistributedBase (void)
 Constructor.
 
virtual ~DistributedBase (void)
 Destructor.
 
const int & getDbTagDataPos (const int &i) const
 Returns the data at the i-th position.
 
void setDbTagDataPos (const int &i, const int &v)
 Sets the data at the i-th position.
 
void inicComm (const int &dataSize) const
 Initializes communication.
 

Protected Member Functions

DbTagDatagetDbTagData (void) const
 Returns a vector to store the dbTags of the class members. More...
 
virtual int sendItem (const_reference s, Communicator &, DbTagData &, const CommMetaData &)=0
 
virtual int receiveItem (reference s, const Communicator &, DbTagData &, const CommMetaData &)=0
 
int sendData (Communicator &)
 Send data through the communicator argument.
 
int recvData (const Communicator &)
 Receive data through the communicator argument.
 

Protected Attributes

C & container
 

Detailed Description

template<class C>
class XC::MovableContainer< C >

Container that can move between processes.

Member Function Documentation

◆ getDbTagData()

template<class C >
XC::DbTagData & XC::MovableContainer< C >::getDbTagData ( void  ) const
protectedvirtual

Returns a vector to store the dbTags of the class members.

Reimplemented from XC::DistributedBase.


The documentation for this class was generated from the following file: