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:
Inheritance graph
[legend]
Collaboration diagram for XC::MapSet:
Collaboration graph
[legend]

Public Types

typedef std::map< std::string, EntMdlr * > map_ent_mdlr
 dbTags para the sets.
 
- Public Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 
- 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.
 
std::set< SetBase * > get_sets_containing_node (const int &)
 Return the sets that contain the pointer to the node whose identifier is being passed as parameter. More...
 
boost::python::list get_sets_containing_node_py (const int &)
 Return the a Python list with the sets that contain the pointer to the node whose identifier is being passed as parameter. More...
 
std::set< SetBase * > get_sets_containing_element (const int &)
 Return the sets that contain the pointer to the element whose identifier is being passed as parameter. More...
 
boost::python::list get_sets_containing_element_py (const int &)
 Return the a Python list with the sets that contain the pointer to the element whose identifier is being passed as parameter. More...
 
const SetBasefind_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 (Communicator &)
 Sends object through the communicator argument.
 
int recvSelf (const Communicator &)
 Receives object through the communicator argument.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- 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 CommandEntity
 CommandEntity (CommandEntity *owr=nullptr)
 Default constructor.
 
CommandEntityOwner (void)
 Return a pointer to the object owner.
 
const CommandEntityOwner (void) const
 Return un puntero al objeto propietario de ESTE.
 
const StandardOutputWrappergetStandardOutputWrapper (void) const
 Return the regular output stream wrapper.
 
StandardOutputWrappergetStandardOutputWrapper (void)
 Return the regular output stream wrapper.
 
const std::string & getLogFileName (void) const
 Returns log file name.
 
void setLogFileName (const std::string &)
 Sets log file name.
 
const std::string & getErrFileName (void) const
 Returns err file name.
 
void setErrFileName (const std::string &)
 Sets error file name.
 
const std::string & getOutputFileName (void) const
 Returns regular output file name.
 
void setOutputFileName (const std::string &)
 Sets regular output file name.
 
boost::python::object evalPy (boost::python::object dict, const std::string &)
 Return the Python object that results from evaluating the argument.
 
boost::python::object execPy (boost::python::object dict, const std::string &)
 Return the Python objects that results from executing the code in the string argument.
 
boost::python::object execFilePy (boost::python::object dict, const std::string &)
 Return the Python object that results from executing the code in the file.
 
- Public Member Functions inherited from EntityWithProperties
 EntityWithProperties (EntityWithProperties *owr=nullptr)
 Default constructor.
 
virtual bool operator== (const EntityWithProperties &) const
 Comparison operator.
 
void clearPyProps (void)
 Clear python properties map.
 
bool hasPyProp (const std::string &)
 Returns true if property exists.
 
boost::python::object getPyProp (const std::string &str)
 Return the Python object with the name being passed as parameter.
 
void setPyProp (std::string str, boost::python::object val)
 Sets/appends a value tho the Python object's dictionary.
 
void copyPropsFrom (const EntityWithProperties &)
 Copy the properties from the argument.
 
boost::python::list getPropNames (void) const
 Return the names of the object properties weightings.
 
const PythonDict & getPropertiesDict (void) const
 Return a std::map container with the properties of the object.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary containing the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from EntityWithOwner
 EntityWithOwner (EntityWithOwner *owr=nullptr)
 Default constructor.
 
 EntityWithOwner (const EntityWithOwner &)
 Copy constructor.
 
EntityWithOwneroperator= (const EntityWithOwner &)
 Assignment operator.
 
virtual bool operator== (const EntityWithOwner &) const
 Comparison operator.
 
virtual ~EntityWithOwner (void)
 Virtual destructor.
 
virtual std::string getClassName (void) const
 Returns demangled class name.
 
void set_owner (EntityWithOwner *owr)
 Assigns the owner of the object.
 
EntityWithOwnerOwner (void)
 
const EntityWithOwnerOwner (void) const
 
- 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.
 
- 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 remove (const std::string &)
 Deletes the set and removes it from the sets map.
 
void rename (const std::string &, const std::string &)
 Rename the set.
 
boost::python::list getSetsNamesPy (void) const
 Return the class names of the sets.
 
boost::python::list getKeysPy (void) const
 Return the map keys in a Python list.
 
std::set< SetBase * > get_sets (const Node *)
 Return the sets that contain the pointer to node being passed as parameter. More...
 
boost::python::list get_sets_py (const Node *)
 Return a Python list containing 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...
 
boost::python::list get_sets_py (const Element *)
 Return a Python list containing the sets that contain the pointer to node 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...
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (Preprocessor *, const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 

Protected Member Functions

DbTagDatagetDbTagData (void) const
 Returns a vector to store the dbTags of the class members. More...
 
int sendSetsDbTags (int posDbTag, Communicator &comm)
 Send the dbTags of the sets through the communicator argument.
 
int sendSetsClassNames (int posDbTag, Communicator &comm)
 Send the names of the classes of the sets through the communicator argument. More...
 
int receiveSetsDbTags (int posDbTag, int size, const Communicator &comm)
 Receives the dbTags of the sets through the communicator argument.
 
int receiveSetsClassNames (int pDbTg, int sz, const Communicator &comm)
 Receives the class names of the sets through the communicator argument.
 
int sendSets (int posDbTag1, int posDbTag2, int posDbTag3, Communicator &comm)
 Send the sets through the communicator argument.
 
int receiveSets (int posDbTag1, int posDbTag2, int posDbTag3, const int &, const Communicator &comm)
 Receives the sets through the communicator argument.
 
int sendOpenSets (int posDbTag1, int posDbTag2, Communicator &comm)
 Send members through the communicator argument.
 
int receiveOpenSets (int posDbTag1, int posDbTag2, const Communicator &comm)
 Receives members through the communicator argument.
 
int sendData (Communicator &)
 Send members through the communicator argument.
 
int recvData (const Communicator &)
 Receives members through the communicator argument.
 
 MapSet (Preprocessor *preprocessor=nullptr)
 Default constructor.
 
- Protected Member Functions inherited from CommandEntity
template<class T >
void string_to (T &, const std::string &) const
 
- 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) const
 Return the class names of the sets.
 
const std::deque< std::string > & getSetsNames (void) const
 Return the class names of the sets.
 
const std::deque< std::string > & getKeys (void) const
 Return the map keys.
 
DbTagDatagetDbTagData (void) const
 
const IDgetSetsDBTags (Communicator &comm)
 Return the DBTags of the sets.
 

Friends

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

Additional Inherited Members

- Static Public Member Functions inherited from CommandEntity
static void resetStandardOutput (void)
 Reset the standard output streams to its defaults buffers.
 
- Static Public Member Functions inherited from EntityWithOwner
static int getVerbosityLevel (void)
 Get the value of the verbosity level.
 
static void setVerbosityLevel (const int &)
 Set the value of the verbosity level.
 
- Static Protected Member Functions inherited from CommandEntity
static CommandEntityentcmd_cast (boost::any &data)
 
- Static Protected Attributes inherited from EntityWithOwner
static int verbosity = 1
 Object that owns THIS ONE. More...
 
- Static Protected Attributes inherited from XC::MapSetBase
static std::deque< std::string > setsClassNames
 

Detailed Description

Sets container.

Member Function Documentation

◆ get_sets_containing_element()

std::set< XC::SetBase * > XC::MapSet::get_sets_containing_element ( const int &  elementTag)

Return the sets that contain the pointer to the element whose identifier is being passed as parameter.

◆ get_sets_containing_element_py()

boost::python::list XC::MapSet::get_sets_containing_element_py ( const int &  elementTag)

Return the a Python list with the sets that contain the pointer to the element whose identifier is being passed as parameter.

◆ get_sets_containing_node()

std::set< XC::SetBase * > XC::MapSet::get_sets_containing_node ( const int &  nodeTag)

Return the sets that contain the pointer to the node whose identifier is being passed as parameter.

◆ get_sets_containing_node_py()

boost::python::list XC::MapSet::get_sets_containing_node_py ( const int &  nodeTag)

Return the a Python list with the sets that contain the pointer to the node whose identifier is being passed as parameter.

◆ getDbTagData()

XC::DbTagData & XC::MapSet::getDbTagData ( void  ) const
protectedvirtual

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

Reimplemented from XC::DistributedBase.

◆ sendSetsClassNames()

int XC::MapSet::sendSetsClassNames ( int  posDbTag,
Communicator comm 
)
protected

Send the names of the classes of the sets through the communicator argument.


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