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

Manager for the creation/deletion of coordinate transformations. More...

#include <TransfCooHandler.h>

Inheritance diagram for XC::TransfCooHandler:
XC::PrepHandler XC::PreprocessorContainer XC::MovableObject XC::DistributedBase

Public Types

typedef std::map< std::string, CrdTransf * > map_transfcoo
 
typedef map_transfcoo::const_iterator const_iterator
 
typedef map_transfcoo::iterator iterator
 

Public Member Functions

 TransfCooHandler (Preprocessor *owr)
 Constructor.
 
const map_transfcoo & Map (void) const
 Returns a reference to the coordinate transformation map (container).
 
template<class T >
T * newCrdTransf (const std::string &)
 
LinearCrdTransf2dnewLinearCrdTransf2d (const std::string &)
 Creates a new linear 2D coordinate transformation.
 
LinearCrdTransf3dnewLinearCrdTransf3d (const std::string &)
 Creates a new linear 3D coordinate transformation.
 
PDeltaCrdTransf2dnewPDeltaCrdTransf2d (const std::string &)
 Creates a new pdelta 2D coordinate transformation.
 
PDeltaCrdTransf3dnewPDeltaCrdTransf3d (const std::string &)
 Creates a new pdelta 3D coordinate transformation.
 
CorotCrdTransf2dnewCorotCrdTransf2d (const std::string &)
 Creates a new corotationa 2D coordinate transformation.
 
CorotCrdTransf3dnewCorotCrdTransf3d (const std::string &)
 Creates a new corotationa 3D coordinate transformation.
 
const_iterator begin (void) const
 Returns an iterator which points to principio de la lista.
 
const_iterator end (void) const
 Returns an iterator apuntando después del final de la lista.
 
iterator begin (void)
 Returns an iterator which points to principio de la lista.
 
iterator end (void)
 Returns an iterator apuntando después del final de la lista.
 
const_iterator find (const std::string &str) const
 Returns an iterator to the transformation with the name being passed as parameter.
 
iterator find (const std::string &str)
 Returns an iterator to the transformation with the name being passed as parameter.
 
CrdTransffind_ptr (const std::string &str)
 Returns a pointer to the transformation with the name being passed as parameter (returns nullptr if not found).
 
CrdTransffind_ptr (const int &tag)
 Returns a pointer to the coordinate transformation with the tag being passed as parameter (null if not found). More...
 
const CrdTransffind_ptr (const std::string &str) const
 Returns a const pointer to the transformation with the name being passed as parameter (returns nullptr if not found).
 
const CrdTransffind_ptr (const int &tag) const
 Returns a pointer to the coordinate transformation with the tag being passed as parameter (null if not found). More...
 
std::string getName (const int &tag) const
 Returns the name that corresponds to the coordinate transformation tag being passed as parameter. More...
 
 ~TransfCooHandler (void)
 Destructor.
 
void clearAll (void)
 Deletes all members.
 
- Public Member Functions inherited from XC::PrepHandler
 PrepHandler (Preprocessor *owr)
 Default constructor.
 
virtual int sendSelf (CommParameters &)
 Sends object through the channel being passed as parameter.
 
virtual 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.
 
virtual DbTagDatagetDbTagData (void) const
 Returns a vector to store class dbTags.
 
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

void free_mem (void)
 Frees memory.
 
 TransfCooHandler (const TransfCooHandler &)
 Copy constructor.
 
TransfCooHandleroperator= (const TransfCooHandler &)
 Assignment operator.
 

Detailed Description

Manager for the creation/deletion of coordinate transformations.

Member Function Documentation

§ find_ptr() [1/2]

XC::CrdTransf * XC::TransfCooHandler::find_ptr ( const int &  tag)

Returns a pointer to the coordinate transformation with the tag being passed as parameter (null if not found).

§ find_ptr() [2/2]

const XC::CrdTransf * XC::TransfCooHandler::find_ptr ( const int &  tag) const

Returns a pointer to the coordinate transformation with the tag being passed as parameter (null if not found).

§ getName()

std::string XC::TransfCooHandler::getName ( const int &  tag) const

Returns the name that corresponds to the coordinate transformation tag being passed as parameter.


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