29 #ifndef TRANSFCOOLOADER_H 30 #define TRANSFCOOLOADER_H 32 #include "PrepHandler.h" 38 class LinearCrdTransf2d;
39 class LinearCrdTransf3d;
40 class PDeltaCrdTransf2d;
41 class PDeltaCrdTransf3d;
42 class CorotCrdTransf2d;
43 class CorotCrdTransf3d;
52 typedef std::map<std::string,CrdTransf *> map_transfcoo;
53 typedef map_transfcoo::const_iterator const_iterator;
54 typedef map_transfcoo::iterator iterator;
56 map_transfcoo transfcoo;
64 const map_transfcoo &
Map(
void)
const;
67 T *newCrdTransf(
const std::string &);
75 const_iterator
begin(
void)
const;
76 const_iterator
end(
void)
const;
79 const_iterator
find(
const std::string &str)
const;
80 iterator
find(
const std::string &str);
85 std::string
getName(
const int &tag)
const;
93 T *TransfCooHandler::newCrdTransf(
const std::string &trfName)
99 std::cerr << getClassName() <<
"::" << __FUNCTION__
100 <<
"transformation: '" << trfName
101 <<
"' aready exists. I do nothing." << std::endl;
102 retval=
dynamic_cast<T *
>(ptr);
106 retval=
new T(tag_trf++);
108 retval->set_owner(
this);
109 transfcoo[trfName]= retval;
PDeltaCrdTransf3d provides the abstraction of a linear transformation for a spatial frame between the...
Definition: PDeltaCrdTransf3d.h:73
~TransfCooHandler(void)
Destructor.
Definition: TransfCooHandler.cc:64
Finite element model generation tools.
Definition: Preprocessor.h:58
CrdTransf provides the abstraction of a frame coordinate transformation.
Definition: CrdTransf.h:87
Linear coordinate transformation.
Definition: LinearCrdTransf3d.h:74
Base class for the preprocessor objects that create model entities: nodes, elements, loads, etc.
Definition: PrepHandler.h:46
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
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:76
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:49
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:34
LinearCrdTransf2d provides the abstraction of a linear transformation for a spatial frame between the...
Definition: LinearCrdTransf2d.h:74
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:73
const map_transfcoo & Map(void) const
Returns a reference to the coordinate transformation map (container).
Definition: TransfCooHandler.cc:92