MAST
|
provides a methods to store property values More...
#include <function_set_base.h>
Public Member Functions | |
FunctionSetBase () | |
virtual | ~FunctionSetBase () |
destructor deletes the function pointers More... | |
bool | contains (const std::string &nm) const |
checks if the card contains the specified property value More... | |
void | add (MAST::FunctionBase &f) |
adds the function to this card and returns a reference to it. More... | |
template<typename ValType > | |
const ValType & | get (const std::string &nm) const |
returns a constant reference to the specified function More... | |
template<typename ValType > | |
ValType & | get (const std::string &nm) |
returns a writable reference to the specified function More... | |
virtual bool | depends_on (const MAST::FunctionBase &f) const |
returns true if the property card depends on the function f More... | |
Protected Attributes | |
std::map< std::string, MAST::FunctionBase * > | _properties |
map of the functions in this card More... | |
provides a methods to store property values
Definition at line 36 of file function_set_base.h.
MAST::FunctionSetBase::FunctionSetBase | ( | ) |
Definition at line 25 of file function_set_base.cpp.
|
virtual |
destructor deletes the function pointers
Definition at line 29 of file function_set_base.cpp.
void MAST::FunctionSetBase::add | ( | MAST::FunctionBase & | f | ) |
adds the function to this card and returns a reference to it.
Definition at line 47 of file function_set_base.cpp.
bool MAST::FunctionSetBase::contains | ( | const std::string & | nm | ) | const |
checks if the card contains the specified property value
Definition at line 35 of file function_set_base.cpp.
|
virtual |
returns true if the property card depends on the function f
Reimplemented in MAST::Solid1DSectionElementPropertyCard, MAST::OrthotropicElementPropertyCard3D, MAST::IsotropicElementPropertyCard3D, MAST::Solid2DSectionElementPropertyCard, MAST::Multilayer2DSectionElementPropertyCard, and MAST::Multilayer1DSectionElementPropertyCard.
Definition at line 61 of file function_set_base.cpp.
|
inline |
returns a constant reference to the specified function
Definition at line 64 of file function_set_base.h.
|
inline |
returns a writable reference to the specified function
Definition at line 82 of file function_set_base.h.
|
protected |
map of the functions in this card
Definition at line 106 of file function_set_base.h.