xc
Public Types | Public Member Functions | Static 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:
Inheritance graph
[legend]
Collaboration diagram for XC::MaterialHandler:
Collaboration graph
[legend]

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, SectionGeometry * > 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 Types inherited from EntityWithProperties
typedef std::map< std::string, boost::python::object > PythonDict
 

Public Member Functions

 MaterialHandler (Preprocessor *owr)
 Default constructor.
 
void clearAll (void)
 
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 which name is being passed as parameter returns an iterator which points to mismo.
 
iterator find (const std::string &str)
 Si encuentra el material which name is being passed as parameter returns an iterator which points to mismo.
 
Materialfind_ptr (const std::string &str)
 Si encuentra el material which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr. More...
 
const Materialfind_ptr (const std::string &nmb) const
 Si encuentra el material which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr. More...
 
Materialfind_ptr (const int &tag)
 Si encuentra el material which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr. More...
 
const Materialfind_ptr (const int &tag) const
 Si encuentra el material which name is being passed 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.
 
std::string getSectionGeometryName (const SectionGeometry *) const
 Returns the name that corresponds to the section geometry argument.
 
SectionGeometryfind_ptr_section_geometry (const std::string &nmb)
 Si encuentra el material which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr. More...
 
const SectionGeometryfind_ptr_section_geometry (const std::string &nmb) const
 Si encuentra el material which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr. More...
 
InteractionDiagramfind_ptr_interaction_diagram (const std::string &nmb)
 Si encuentra el material which name is being passed 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 which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr. More...
 
InteractionDiagram2dfind_ptr_interaction_diagram2d (const std::string &nmb)
 Si encuentra el material which name is being passed 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 which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr. More...
 
bool materialExists (const std::string &nmb) const
 True if material exists.
 
bool materialExists (const int &tag) const
 True if material exists.
 
bool sectionGeometryExists (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...
 
MaterialgetMaterial (const int &)
 Returns a reference to the material which identifier is being passed as parameter. More...
 
SectionGeometrynewSectionGeometry (const std::string &)
 Defines a new material.
 
SectionGeometrygetSectionGeometry (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 &)
 
std::set< std::string > getMaterialNames (void) const
 Return the names of the materials.
 
boost::python::list getMaterialNamesPy (void) const
 Return the names of the materials in a Python list.
 
- Public Member Functions inherited from XC::PrepHandler
 PrepHandler (Preprocessor *owr)
 Default constructor.
 
virtual int sendSelf (Communicator &)
 Sends object through the communicator argument.
 
virtual int recvSelf (const Communicator &)
 Receives object through the communicator argument.
 
- 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)
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary with the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from CommandEntity
 CommandEntity (CommandEntity *owr=nullptr)
 Default constructor.
 
CommandEntityOwner (void)
 Return a pointer to the object owner.
 
const CommandEntityOwner (void) const
 Return un puntero al objeto propietario de ESTE.
 
const StandardOutputWrappergetStandardOutputWrapper (void) const
 Return the regular output stream wrapper.
 
StandardOutputWrappergetStandardOutputWrapper (void)
 Return the regular output stream wrapper.
 
const std::string & getLogFileName (void) const
 Returns log file name.
 
void setLogFileName (const std::string &)
 Sets log file name.
 
const std::string & getErrFileName (void) const
 Returns err file name.
 
void setErrFileName (const std::string &)
 Sets error file name.
 
const std::string & getOutputFileName (void) const
 Returns regular output file name.
 
void setOutputFileName (const std::string &)
 Sets regular output file name.
 
boost::python::object evalPy (boost::python::object dict, const std::string &)
 Return the Python object that results from evaluating the argument.
 
boost::python::object execPy (boost::python::object dict, const std::string &)
 Return the Python objects that results from executing the code in the string argument.
 
boost::python::object execFilePy (boost::python::object dict, const std::string &)
 Return the Python object that results from executing the code in the file.
 
- Public Member Functions inherited from EntityWithProperties
 EntityWithProperties (EntityWithProperties *owr=nullptr)
 Default constructor.
 
void clearPyProps (void)
 Clear python properties map.
 
bool hasPyProp (const std::string &)
 Returns true if property exists.
 
boost::python::object getPyProp (const std::string &str)
 Return the Python object with the name being passed as parameter.
 
void setPyProp (std::string str, boost::python::object val)
 Sets/appends a value tho the Python object's dictionary.
 
void copyPropsFrom (const EntityWithProperties &)
 Copy the properties from the argument.
 
boost::python::list getPropNames (void) const
 Return the names of the object properties weightings.
 
const PythonDict & getPropertiesDict (void) const
 Return a std::map container with the properties of the object.
 
boost::python::dict getPyDict (void) const
 Return a Python dictionary containing the object members values.
 
void setPyDict (const boost::python::dict &)
 Set the values of the object members from a Python dictionary.
 
- Public Member Functions inherited from EntityWithOwner
 EntityWithOwner (EntityWithOwner *owr=nullptr)
 Default constructor.
 
 EntityWithOwner (const EntityWithOwner &)
 Copy constructor.
 
EntityWithOwneroperator= (const EntityWithOwner &)
 Assignment operator.
 
virtual bool operator== (const EntityWithOwner &) const
 Comparison operator.
 
virtual ~EntityWithOwner (void)
 Virtual destructor.
 
virtual std::string getClassName (void) const
 Returns demangled class name.
 
void set_owner (EntityWithOwner *owr)
 Assigns the owner of the object.
 
EntityWithOwnerOwner (void)
 
const EntityWithOwnerOwner (void) const
 
- 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 (Communicator &)
 Return the object identifier in the database.
 
void setDbTag (int dbTag)
 Sets the object identifier in the database.
 
void setDbTag (Communicator &)
 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 ~DistributedBase (void)
 Destructor.
 
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.
 

Static Public Member Functions

static void setCreepOn (void)
 
static void setCreepOff (void)
 
static void setCreepDt (const double &)
 
static double getCreepDt (void)
 
- Static Public Member Functions inherited from CommandEntity
static void resetStandardOutput (void)
 Reset the standard output streams to its defaults buffers.
 
- Static Public Member Functions inherited from EntityWithOwner
static int getVerbosityLevel (void)
 Get the value of the verbosity level.
 
static void setVerbosityLevel (const int &)
 Set the value of the verbosity level.
 

Friends

class ElementHandler
 

Additional Inherited Members

- Protected Member Functions inherited from CommandEntity
template<class T >
void string_to (T &, const std::string &) const
 
- Protected Member Functions inherited from EntityWithProperties
bool isEqual (const EntityWithProperties &) const
 Return true if both objects are equal.
 
- Protected Member Functions inherited from EntityWithOwner
virtual bool isEqual (const EntityWithOwner &) const
 Return true if both objects are equal.
 
- Static Protected Member Functions inherited from CommandEntity
static CommandEntityentcmd_cast (boost::any &data)
 
- Static Protected Attributes inherited from EntityWithOwner
static int verbosity = 1
 Object that owns THIS ONE. More...
 

Detailed Description

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

Member Function Documentation

◆ find_ptr() [1/4]

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

Si encuentra el material which name is being passed 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 which name is being passed 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 which name is being passed 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 which name is being passed 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 which name is being passed 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 which name is being passed 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 which name is being passed 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 which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr.

◆ find_ptr_section_geometry() [1/2]

XC::SectionGeometry * XC::MaterialHandler::find_ptr_section_geometry ( const std::string &  nmb)

Si encuentra el material which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr.

◆ find_ptr_section_geometry() [2/2]

const XC::SectionGeometry * XC::MaterialHandler::find_ptr_section_geometry ( const std::string &  nmb) const

Si encuentra el material which name is being passed as parameter returns a pointer al mismo, otherwise it returns nullptr.

◆ 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() [1/2]

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

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

◆ getMaterial() [2/2]

XC::Material & XC::MaterialHandler::getMaterial ( const int &  tag)

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

◆ getSectionGeometry()

XC::SectionGeometry & XC::MaterialHandler::getSectionGeometry ( const std::string &  nmb)

Returns a reference to the section geometry 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.

◆ sectionGeometryExists()

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

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


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