xc
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
XC::MapSet Class Reference

Sets container. More...

#include <MapSet.h>

Inheritance diagram for XC::MapSet:
XC::PreprocessorContainer XC::MovableObject XC::MapSetBase XC::DistributedBase

Public Types

typedef std::map< std::string, EntMdlr * > map_ent_mdlr
 dbTags para the sets.
 
- Public Types inherited from XC::MapSetBase
typedef std::map< std::string, SetBase * > map_sets
 

Public Member Functions

virtual ~MapSet (void)
 Destructor.
 
EntMdlrinsert_ent_mdlr (EntMdlr *ent_mdlr)
 Inserts, as a set, a preprocessor entity.
 
Setget_set_total (void)
 
const Setget_set_total (void) const
 
const map_sets & get_open_sets (void) const
 
map_sets & get_open_sets (void)
 
SetdefSet (const std::string &)
 Creates a new set with the name which is passed as a parameter.
 
void removeSet (const std::string &)
 Deletes the set and removes it from the sets map.
 
const SetBasebusca_set (const std::string &nmb) const
 Returns a pointer to the set which name is being passed as parameter.
 
SetBasegetSet (const std::string &nmb)
 Return the set which name is being passed as parameter.
 
int sendSelf (CommParameters &)
 Sends object through the channel being passed as parameter.
 
int recvSelf (const CommParameters &)
 Receives object through the channel being passed as parameter.
 
- Public Member Functions inherited from XC::PreprocessorContainer
 PreprocessorContainer (Preprocessor *owr)
 Default constructor.
 
const DomaingetDomain (void) const
 Returns the domain.
 
DomaingetDomain (void)
 Returns the domain.
 
PreprocessorgetPreprocessor (void)
 Returns a pointer to the object preprocessor.
 
const PreprocessorgetPreprocessor (void) const
 Returns a pointer to the object preprocessor.
 
void checkPreprocessor (void)
 
- 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 (CommParameters &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (CommParameters &)
 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.
 
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.
 
- Public Member Functions inherited from XC::MapSetBase
virtual ~MapSetBase (void)
 Destructor.
 
bool exists (const std::string &nmb) const
 Return true if the sets already exists.
 
void removeSet (const std::string &)
 Deletes the set and removes it from the sets map.
 
std::set< SetBase * > get_sets (const Node *)
 Return the sets that contain the pointer to node being passed as parameter. More...
 
std::set< SetBase * > get_sets (const Element *)
 Return the sets that contain the element pointer being passed as parameter. More...
 
std::set< SetBase * > get_sets (const Pnt *)
 Return the sets that contain the pointer to the ponint being passed as parameter. More...
 
std::set< SetBase * > get_sets (const Edge *)
 Return the sets that contain the pointer to edge being passed as parameter. More...
 
std::set< SetBase * > get_sets (const Face *)
 Return the sets than contain a pointer to face being passed as parameter. More...
 
std::set< SetBase * > get_sets (const Body *)
 Return the sets that contain the pointer to body being passed as parameter. More...
 
std::set< SetBase * > get_sets (const UniformGrid *)
 Return the sets that contain the pointer to uniform grid being passed as parameter. More...
 

Protected Member Functions

DbTagDatagetDbTagData (void) const
 Returns a vector to store the dbTags of the class members. More...
 
int sendSetsDbTags (int posDbTag, CommParameters &cp)
 Envía los dbTags of the sets través del canal being passed as parameter.
 
int sendSetsClassNames (int posDbTag, CommParameters &cp)
 Envía los nombres de clase of the sets través del canal being passed as parameter.
 
int receiveSetsDbTags (int posDbTag, int size, const CommParameters &cp)
 Recibe los dbTags of the sets through the channel being passed as parameter.
 
int receiveSetsClassNames (int pDbTg, int sz, const CommParameters &cp)
 Recibe los nombres de clase of the sets through the channel being passed as parameter.
 
int sendSets (int posDbTag1, int posDbTag2, int posDbTag3, CommParameters &cp)
 Send the sets through the channel being passed as parameter.
 
int receiveSets (int posDbTag1, int posDbTag2, int posDbTag3, const int &, const CommParameters &cp)
 Receives the sets through the channel being passed as parameter.
 
int sendOpenSets (int posDbTag1, int posDbTag2, CommParameters &cp)
 Send members through the channel being passed as parameter.
 
int receiveOpenSets (int posDbTag1, int posDbTag2, const CommParameters &cp)
 Receives members through the channel being passed as parameter.
 
int sendData (CommParameters &)
 Send members through the channel being passed as parameter.
 
int recvData (const CommParameters &)
 Receives members through the channel being passed as parameter.
 
 MapSet (Preprocessor *preprocessor=nullptr)
 Default constructor.
 
- Protected Member Functions inherited from XC::MapSetBase
SetEstructcreate_set_estruct (const SetEstruct &)
 Returns a copy of the argument.
 
SetBasefind (const std::string &nmb) const
 Returns a pointer to the set which name is being passed as parameter.
 
SetEstructfind_set_estruct (const std::string &nmb)
 Returns a pointer to the structured set named as the parameter.
 
void clearSets (void)
 Clears all defined sets.
 
 MapSetBase (const MapSetBase &)
 Copy constructor (DOESN'T COPY SETS).
 
MapSetBaseoperator= (const MapSetBase &)
 Assignment operator (DOESN'T COPY SETS).
 
const std::deque< std::string > & getSetsClassNames (void)
 Return the class names of the sets.
 
const std::deque< std::string > & getSetsNames (void)
 Return the class names of the sets.
 
DbTagDatagetDbTagData (void) const
 
const IDgetSetsDBTags (CommParameters &cp)
 Return the DBTags of the sets.
 

Friends

class EntMdlr
 
class MultiBlockTopology
 
class SetMeshComp
 
class SetEntities
 
class Set
 
class Preprocessor
 

Additional Inherited Members

- Static Protected Attributes inherited from XC::MapSetBase
static std::deque< std::string > setsClassNames
 

Detailed Description

Sets container.

Member Function Documentation

§ getDbTagData()

XC::DbTagData & XC::MapSet::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 files: