30 #ifndef TRANSFCOOLOADER_H 31 #define TRANSFCOOLOADER_H 33 #include "PrepHandler.h" 39 class LinearCrdTransf2d;
40 class LinearCrdTransf3d;
41 class PDeltaCrdTransf2d;
42 class PDeltaCrdTransf3d;
43 class CorotCrdTransf2d;
44 class CorotCrdTransf3d;
53 typedef std::map<std::string,CrdTransf *> map_transfcoo;
54 typedef map_transfcoo::const_iterator const_iterator;
55 typedef map_transfcoo::iterator iterator;
57 map_transfcoo transfcoo;
65 const map_transfcoo &
Map(
void)
const;
68 T *newCrdTransf(
const std::string &);
76 const_iterator
begin(
void)
const;
77 const_iterator
end(
void)
const;
80 const_iterator
find(
const std::string &str)
const;
81 iterator
find(
const std::string &str);
86 std::string
getName(
const int &tag)
const;
94 T *TransfCooHandler::newCrdTransf(
const std::string &trfName)
101 <<
"transformation: '" << trfName
102 <<
"' already exists. I do nothing." << std::endl;
103 retval=
dynamic_cast<T *
>(ptr);
107 retval=
new T(tag_trf++);
109 retval->set_owner(
this);
110 transfcoo[trfName]= retval;
PDeltaCrdTransf3d provides the abstraction of a linear transformation for a spatial frame between the...
Definition: PDeltaCrdTransf3d.h:74
~TransfCooHandler(void)
Destructor.
Definition: TransfCooHandler.cc:64
Finite element model generation tools.
Definition: Preprocessor.h:59
CrdTransf provides the abstraction of a frame coordinate transformation.
Definition: CrdTransf.h:88
Linear coordinate transformation.
Definition: LinearCrdTransf3d.h:75
Base class for the preprocessor objects that create model entities: nodes, elements, loads, etc.
Definition: PrepHandler.h:47
const_iterator find(const std::string &str) const
Returns an iterator to the transformation with the name being passed as parameter.
Definition: TransfCooHandler.cc:109
PDeltaCrdTransf3d * newPDeltaCrdTransf3d(const std::string &)
Creates a new pdelta 3D coordinate transformation.
Definition: TransfCooHandler.cc:80
CorotCrdTransf3d * newCorotCrdTransf3d(const std::string &)
Creates a new corotationa 3D coordinate transformation.
Definition: TransfCooHandler.cc:88
Coordinate transformation corrotacional en 3d.
Definition: CorotCrdTransf2d.h:71
LinearCrdTransf2d * newLinearCrdTransf2d(const std::string &)
Creates a new linear 2D coordinate transformation.
Definition: TransfCooHandler.cc:68
const_iterator end(void) const
Returns an iterator apuntando después del final de la lista.
Definition: TransfCooHandler.cc:99
void clearAll(void)
Deletes all members.
Definition: TransfCooHandler.cc:182
virtual std::string getClassName(void) const
Returns demangled class name.
Definition: EntityWithOwner.cc:90
CorotCrdTransf2d * newCorotCrdTransf2d(const std::string &)
Creates a new corotationa 2D coordinate transformation.
Definition: TransfCooHandler.cc:84
CrdTransf * find_ptr(const std::string &str)
Returns a pointer to the transformation with the name being passed as parameter (returns nullptr if n...
Definition: TransfCooHandler.cc:117
PDeltaCrdTransf2d provides the abstraction of a linear transformation for a spatial frame between the...
Definition: PDeltaCrdTransf2d.h:77
const_iterator begin(void) const
Returns an iterator which points to principio de la lista.
Definition: TransfCooHandler.cc:96
Manager for the creation/deletion of coordinate transformations.
Definition: TransfCooHandler.h:50
TransfCooHandler(const TransfCooHandler &)
Copy constructor.
Definition: TransfCooHandler.cc:51
PDeltaCrdTransf2d * newPDeltaCrdTransf2d(const std::string &)
Creates a new pdelta 2D coordinate transformation.
Definition: TransfCooHandler.cc:76
std::string getName(const int &tag) const
Returns the name that corresponds to the coordinate transformation tag being passed as parameter...
Definition: TransfCooHandler.cc:168
LinearCrdTransf3d * newLinearCrdTransf3d(const std::string &)
Creates a new linear 3D coordinate transformation.
Definition: TransfCooHandler.cc:72
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
LinearCrdTransf2d provides the abstraction of a linear transformation for a spatial frame between the...
Definition: LinearCrdTransf2d.h:75
TransfCooHandler & operator=(const TransfCooHandler &)
Assignment operator.
Definition: TransfCooHandler.cc:56
void free_mem(void)
Frees memory.
Definition: TransfCooHandler.cc:39
Coordinate transformation corrotacional en 3d.
Definition: CorotCrdTransf3d.h:74
const map_transfcoo & Map(void) const
Returns a reference to the coordinate transformation map (container).
Definition: TransfCooHandler.cc:92