YAMLParser
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Identifiable Class Reference

This is the base class for all types with an external identifier attribute. Used when reference to an arbitrary identifiable type is required. More...

#include <Identifiable.h>

Inheritance diagram for Identifiable:
FECoordSys FENode GenericCompSection GenericCrossSection GenericFE GenericMaterial PLComp CrossSectionDummy FEPipe FETsection PLThick FEBeam FEEccentricity FELoadComb FENodeLoad FEQuadshell FETrishell FEVector FEIsoMaterial

Public Types

enum  Type {
  NULLTYPE, NODE, COORDSYS, BEAM,
  TRISHELL, QUADSHEL, VECTOR, ECCENT,
  ISOMATERIAL, PIPE, BOX, IHPROFIL,
  LSECTION, TSECTION, PLCOMP, CROSS_SECTION_DUMMY,
  NODELOAD, LOADCOMB
}
 

Public Member Functions

virtual ~Identifiable ()
 
int getID () const
 Getter for the externally defined identification number. More...
 
virtual Identifiable::Type getType ()
 
virtual std::string getTypeAsString ()
 

Public Attributes

std::vector< std::string > s_Types
 
Type type
 The FEM element type (see enum definition) More...
 

Protected Member Functions

void setID (int id)
 Setter for the externally defined identification number. More...
 

Protected Attributes

int id
 Externally defined identification number. More...
 

Detailed Description

This is the base class for all types with an external identifier attribute. Used when reference to an arbitrary identifiable type is required.

Member Enumeration Documentation

◆ Type

The FEM element type. Used to avoid problems with elements of different types having the same id number. E.g. both a BEAM and a NODE can have id = 1.

Enumerator
NULLTYPE 
NODE 
COORDSYS 
BEAM 
TRISHELL 
QUADSHEL 
VECTOR 
ECCENT 
ISOMATERIAL 
PIPE 
BOX 
IHPROFIL 
LSECTION 
TSECTION 
PLCOMP 
CROSS_SECTION_DUMMY 
NODELOAD 
LOADCOMB 

Constructor & Destructor Documentation

◆ ~Identifiable()

Identifiable::~Identifiable ( )
virtual

Member Function Documentation

◆ getID()

int Identifiable::getID ( ) const

Getter for the externally defined identification number.

◆ getType()

Identifiable::Type Identifiable::getType ( )
virtual

Function returning the type of the element.
Used to specify element types for operatins such as comparison.

Reimplemented in FEBeam, PLComp, FEEccentricity, FENode, FENodeLoad, FEPipe, FEVector, FETsection, and CrossSectionDummy.

◆ getTypeAsString()

std::string Identifiable::getTypeAsString ( )
virtual

Function returning the type as a string.
Used to throw informative error messages

Reimplemented in FEBeam, PLComp, FEQuadshell, FETrishell, FEEccentricity, FENode, FEIsoMaterial, FENodeLoad, FEPipe, FEVector, FETsection, and CrossSectionDummy.

◆ setID()

void Identifiable::setID ( int  id)
protected

Setter for the externally defined identification number.

Member Data Documentation

◆ id

int Identifiable::id
protected

Externally defined identification number.

◆ s_Types

std::vector<std::string> Identifiable::s_Types
Initial value:
= {
"NULLTYPE",
"NODE",
"BEAM", "TRISHELL", "QUADSHEL", "UNITVEC", "ECCENT",
"PIPE", "BOX", "LSECTION", "TSECTION"
}

◆ type

Type Identifiable::type

The FEM element type (see enum definition)


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