xc
Public Types | Public Member Functions | Friends | List of all members
XC::MaterialHandler Class Reference

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

#include <MaterialHandler.h>

Inheritance diagram for XC::MaterialHandler:
XC::PrepHandler XC::PreprocessorContainer 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_interaction_diagram_iterator
 
typedef map_interaction_diagram::iterator interaction_diagram_iterator
 
typedef std::map< std::string, InteractionDiagram2d * > map_interaction_diagram2d
 
typedef map_interaction_diagram2d::const_iterator const_interaction_diagram2d_iterator
 
typedef map_interaction_diagram2d::iterator interaction_diagram2d_iterator
 

Public Member Functions

 MaterialHandler (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. More...
 
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. More...
 
Materialfind_ptr (const int &tag)
 Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
bool InteractionDiagramExists (const std::string &nmb) const
 Returns true if the 3D interaction diagram identified by the string being passed as parameter exists. More...
 
bool InteractionDiagramExists2d (const std::string &nmb) const
 Returns true if the 2D interaction diagram identified by the string being passed as parameter exists. More...
 
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. More...
 
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. More...
 
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. More...
 
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::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.
 

Friends

class ElementHandler
 

Detailed Description

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

Member Function Documentation

§ existeGeomSection()

bool XC::MaterialHandler::existeGeomSection ( const std::string &  nmb) const

Returns true if the section geometry identified by the string being passed as parameter exists.

§ find_ptr() [1/4]

XC::Material * XC::MaterialHandler::find_ptr ( const std::string &  nmb)

Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.

§ find_ptr() [2/4]

const XC::Material * XC::MaterialHandler::find_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.

§ find_ptr() [3/4]

XC::Material * XC::MaterialHandler::find_ptr ( const int &  tag)

Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.

§ find_ptr() [4/4]

const XC::Material * XC::MaterialHandler::find_ptr ( const int &  tag) const

Si encuentra el material cuyo nombre se pasa as parameter returns a pointer al mismo, otherwise it returns nullptr.

§ find_ptr_geom_section() [1/2]

XC::GeomSection * XC::MaterialHandler::find_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.

§ find_ptr_geom_section() [2/2]

const XC::GeomSection * XC::MaterialHandler::find_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.

§ find_ptr_interaction_diagram() [1/2]

XC::InteractionDiagram * XC::MaterialHandler::find_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.

§ find_ptr_interaction_diagram() [2/2]

const XC::InteractionDiagram * XC::MaterialHandler::find_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.

§ find_ptr_interaction_diagram2d() [1/2]

XC::InteractionDiagram2d * XC::MaterialHandler::find_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.

§ find_ptr_interaction_diagram2d() [2/2]

const XC::InteractionDiagram2d * XC::MaterialHandler::find_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.

§ getGeomSection()

XC::GeomSection & XC::MaterialHandler::getGeomSection ( const std::string &  nmb)

Returns a reference to the section geometry which identifier is being passed as parameter.

§ getInteractionDiagram()

XC::InteractionDiagram & XC::MaterialHandler::getInteractionDiagram ( const std::string &  nmb)

Returns a reference to the interaction diagram which identifier is being passed as parameter.

§ getMaterial()

XC::Material & XC::MaterialHandler::getMaterial ( const std::string &  nmb)

Returns a reference to the material which identifier is being passed as parameter.

§ InteractionDiagramExists()

bool XC::MaterialHandler::InteractionDiagramExists ( const std::string &  nmb) const

Returns true if the 3D interaction diagram identified by the string being passed as parameter exists.

§ InteractionDiagramExists2d()

bool XC::MaterialHandler::InteractionDiagramExists2d ( const std::string &  nmb) const

Returns true if the 2D interaction diagram identified by the string being passed as parameter exists.


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