XC Open source finite element analysis program
Public Types | Public Member Functions | Friends | List of all members
XC::MaterialLoader Class Reference

Material handler (definition, searching,...). More...

#include <MaterialLoader.h>

Inheritance diagram for XC::MaterialLoader:
XC::Loader XC::MovableObject XC::DistributedBase

Public Types

typedef std::map< std::string, Material * > map_materials
 
typedef map_materials::const_iterator const_iterator
 
typedef map_materials::iterator iterator
 
typedef std::map< std::string, GeomSection * > map_geom_secc
 
typedef map_geom_secc::const_iterator const_geom_secc_iterator
 
typedef map_geom_secc::iterator geom_secc_iterator
 
typedef std::map< std::string, InteractionDiagram * > map_interaction_diagram
 
typedef map_interaction_diagram::const_iterator const_diag_interacc_iterator
 
typedef map_interaction_diagram::iterator diag_interacc_iterator
 
typedef std::map< std::string, InteractionDiagram2d * > map_interaction_diagram2d
 
typedef map_interaction_diagram2d::const_iterator const_diag_interacc2d_iterator
 
typedef map_interaction_diagram2d::iterator diag_interacc2d_iterator
 

Public Member Functions

 MaterialLoader (Preprocessor *owr)
 Default constructor.
 
const map_materials & Map (void) const
 Returns a reference to the material container.
 
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 of the 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 of the final de la lista.
 
const_iterator find (const std::string &str) const
 Si encuentra el material cuyo nombre se pasa as parameter returns an iterator which points to mismo.
 
iterator find (const std::string &str)
 Si encuentra el material cuyo nombre se pasa as parameter returns an iterator which points to mismo.
 
Materialfind_ptr (const std::string &str)
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
const Materialfind_ptr (const std::string &nmb) const
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
Materialfind_ptr (const int &tag)
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
const Materialfind_ptr (const int &tag) const
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
std::string getName (const int &tag) const
 Returns the name that corresponds to the material tag being passed as parameter.
 
GeomSectionfind_ptr_geom_section (const std::string &nmb)
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
const GeomSectionfind_ptr_geom_section (const std::string &nmb) const
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
InteractionDiagramfind_ptr_interaction_diagram (const std::string &nmb)
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
const InteractionDiagramfind_ptr_interaction_diagram (const std::string &nmb) const
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
InteractionDiagram2dfind_ptr_interaction_diagram2d (const std::string &nmb)
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
const InteractionDiagram2dfind_ptr_interaction_diagram2d (const std::string &nmb) const
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.
 
bool existeMaterial (const std::string &nmb) const
 True if material exists.
 
bool existeGeomSection (const std::string &nmb) const
 Returns true if the section geometry identified by the string being passed as parameter exists.
 
bool InteractionDiagramExists (const std::string &nmb) const
 Returns true if the 3D interaction diagram identified by the string being passed as parameter exists.
 
bool InteractionDiagramExists2d (const std::string &nmb) const
 Returns true if the 2D interaction diagram identified by the string being passed as parameter exists.
 
MaterialnewMaterial (const std::string &, const std::string &)
 Defines a new material.
 
MaterialgetMaterial (const std::string &)
 Returns a reference to the material which identifier is being passed as parameter.
 
GeomSectionnewSectionGeometry (const std::string &)
 Defines a new material.
 
GeomSectiongetGeomSection (const std::string &)
 Returns a reference to the section geometry which identifier is being passed as parameter.
 
InteractionDiagramnewInteractionDiagram (const std::string &)
 New interaction diagram.
 
InteractionDiagramcalcInteractionDiagram (const std::string &, const InteractionDiagramData &diag_data)
 New interaction diagram.
 
InteractionDiagramgetInteractionDiagram (const std::string &)
 Returns a reference to the interaction diagram which identifier is being passed as parameter.
 
InteractionDiagram2dnew2DInteractionDiagram (const std::string &)
 New 2d interaction diagram.
 
InteractionDiagram2dcalcInteractionDiagramNMy (const std::string &, const InteractionDiagramData &diag_data)
 New 2D interaction diagram (N-My)
 
InteractionDiagram2dcalcInteractionDiagramNMz (const std::string &, const InteractionDiagramData &diag_data)
 New 2D interaction diagram (N-Mz)
 
InteractionDiagram2dgetNMzInteractionDiagram (const std::string &)
 
void clearAll (void)
 
- Public Member Functions inherited from XC::Loader
 Loader (Preprocessor *owr)
 Default constructor.
 
DomaingetDomain (void) const
 Returns the domain.
 
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::MovableObject
 MovableObject (int classTag, int dbTag)
 Constructor.
 
 MovableObject (int classTag)
 Constructor.
 
 MovableObject (const MovableObject &otro)
 Copy constructor.
 
MovableObjectoperator= (const MovableObject &otro)
 Operacdor asignación.
 
int getClassTag (void) const
 Returns the tag de la clase.
 
int getDbTag (void) const
 Returns the tag para la database.
 
int getDbTag (CommParameters &)
 Returns the tag para la database.
 
void setDbTag (int dbTag)
 Asigna el tag para la database.
 
void setDbTag (CommParameters &)
 Asigna, sólo si es preciso, el tag para la database.
 
virtual int setParameter (const std::vector< std::string > &argv, Parameter &param)
 
virtual int updateParameter (int parameterID, Information &info)
 
virtual int activateParameter (int parameterID)
 
virtual int setVariable (const std::string &variable, Information &)
 Returns the identificador de la variable cuyo nombre being passed as parameter.
 
virtual int getVariable (const std::string &variable, Information &)
 
- 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.
 

Friends

class ElementLoader
 

Additional Inherited Members

- Protected Member Functions inherited from XC::Loader
void set_preprocessor (Preprocessor *preprocessor)
 Assigns the preprocessor.
 
- Protected Attributes inherited from XC::Loader
Preprocessorpreprocessor
 Pointer to preprocessor.
 

Detailed Description

Material handler (definition, searching,...).


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