20 #ifndef __mast__function_set_base__ 21 #define __mast__function_set_base__ 50 bool contains(
const std::string& nm)
const;
62 template <
typename ValType>
64 get(
const std::string& nm)
const {
66 std::map<std::string, MAST::FunctionBase*>::const_iterator it =
71 libmesh_error_msg(
"property not found for : " << nm );
73 return dynamic_cast<const ValType&
>(*(it->second));
80 template <
typename ValType>
82 get(
const std::string& nm) {
84 std::map<std::string, MAST::FunctionBase*>::iterator it =
89 libmesh_error_msg(
"property not found for : " << nm );
91 return dynamic_cast<ValType&
>(*(it->second));
112 #endif // __mast__function_set_base__
virtual ~FunctionSetBase()
destructor deletes the function pointers
void add(MAST::FunctionBase &f)
adds the function to this card and returns a reference to it.
virtual bool depends_on(const MAST::FunctionBase &f) const
returns true if the property card depends on the function f
provides a methods to store property values
std::map< std::string, MAST::FunctionBase * > _properties
map of the functions in this card
bool contains(const std::string &nm) const
checks if the card contains the specified property value