#include <parameters.h>
Classes | |
class | Parameter |
class | Value |
Public Types | |
typedef std::map< std::string, Value * >::iterator | iterator |
typedef std::map< std::string, Value * >::const_iterator | const_iterator |
Public Member Functions | |
Parameters () | |
Parameters (const Parameters &) | |
virtual | ~Parameters () |
virtual Parameters & | operator= (const Parameters &source) |
virtual Parameters & | operator+= (const Parameters &source) |
template<typename T > | |
bool | have_parameter (const std::string &) const |
template<typename T > | |
const T & | get (const std::string &) const |
template<typename T > | |
void | insert (const std::string &) |
template<typename T > | |
T & | set (const std::string &) |
virtual void | set_attributes (const std::string &, bool) |
void | remove (const std::string &) |
std::size_t | n_parameters () const |
template<typename T > | |
unsigned int | n_parameters () const |
virtual void | clear () |
void | print (std::ostream &os=libMesh::out) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
Protected Attributes | |
std::map< std::string, Value * > | _values |
This class provides the ability to map between arbitrary, user-defined strings and several data types. This can be used to provide arbitrary user-specified options.
Definition at line 63 of file parameters.h.
typedef std::map<std::string, Value *>::const_iterator libMesh::Parameters::const_iterator |
Constant parameter map iterator.
Definition at line 247 of file parameters.h.
typedef std::map<std::string, Value *>::iterator libMesh::Parameters::iterator |
Parameter map iterator.
Definition at line 242 of file parameters.h.
|
inline |
|
inline |
|
inlinevirtual |
Destructor. Clears any allocated memory.
Definition at line 363 of file parameters.h.
References clear().
|
inline |
Iterator pointing to the beginning of the set of parameters.
Definition at line 509 of file parameters.h.
References _values.
|
inline |
Iterator pointing to the beginning of the set of parameters.
Definition at line 515 of file parameters.h.
References _values.
|
inlinevirtual |
Clears internal data structures & frees any allocated memory.
Definition at line 317 of file parameters.h.
References _values.
Referenced by libMesh::EquationSystems::clear(), operator=(), and ~Parameters().
|
inline |
Iterator pointing to the end of the set of parameters
Definition at line 521 of file parameters.h.
References _values.
|
inline |
Iterator pointing to the end of the set of parameters
Definition at line 527 of file parameters.h.
References _values.
|
inline |
Definition at line 425 of file parameters.h.
References _values, libMesh::demangle(), and libMesh::Quality::name().
Referenced by libMesh::FrequencySystem::clear_all(), libMesh::ImplicitSystem::get_linear_solve_parameters(), libMesh::FEComputeData::init(), libMesh::FrequencySystem::init_data(), libMesh::FrequencySystem::n_frequencies(), libMesh::FrequencySystem::set_current_frequency(), libMesh::NonlinearImplicitSystem::set_solver_parameters(), libMesh::CondensedEigenSystem::solve(), libMesh::EigenSystem::solve(), libMesh::FrequencySystem::solve(), and libMesh::LinearImplicitSystem::solve().
|
inline |
true
if a parameter of type T
with a specified name exists, false
otherwise.If RTTI has been disabled then we return true
if a parameter of specified name exists regardless of its type.
Definition at line 406 of file parameters.h.
References _values, libMesh::cast_ptr(), and libMesh::Quality::name().
Referenced by libMesh::FrequencySystem::clear_all(), libMesh::FEComputeData::init(), libMesh::FrequencySystem::init_data(), libMesh::CondensedEigenSystem::solve(), and libMesh::EigenSystem::solve().
|
inline |
Inserts a new Parameter into the object but does not return a writable reference. The value of the newly inserted parameter may not be valid.
Definition at line 453 of file parameters.h.
References _values, libMesh::Quality::name(), and set_attributes().
|
inline |
Definition at line 143 of file parameters.h.
References _values.
|
inline |
Definition at line 493 of file parameters.h.
References _values.
|
inlinevirtual |
Addition/Assignment operator. Inserts copies of all parameters from source
. Any parameters of the same name already in this
are replaced.
Definition at line 342 of file parameters.h.
References _values.
|
inlinevirtual |
Assignment operator. Removes all parameters in this
and inserts copies of all parameters from source
Definition at line 333 of file parameters.h.
References clear().
|
inline |
Prints the contents, by default to libMesh::out.
Definition at line 371 of file parameters.h.
References _values.
Referenced by libMesh::operator<<().
|
inline |
Removes the specified parameter from the list, if it exists.
Definition at line 475 of file parameters.h.
References _values, and libMesh::Quality::name().
Referenced by libMesh::FrequencySystem::clear_all().
|
inline |
get()
member. Definition at line 464 of file parameters.h.
References _values, libMesh::Quality::name(), and set_attributes().
Referenced by libMesh::NewmarkSystem::clear(), libMesh::EquationSystems::EquationSystems(), libMesh::NewmarkSystem::NewmarkSystem(), libMesh::NonlinearImplicitSystem::NonlinearImplicitSystem(), libMesh::FrequencySystem::set_current_frequency(), libMesh::FrequencySystem::set_frequencies(), libMesh::FrequencySystem::set_frequencies_by_range(), libMesh::FrequencySystem::set_frequencies_by_steps(), and libMesh::NewmarkSystem::set_newmark_parameters().
|
inlinevirtual |
Overridable function to set any extended attributes for classes inheriting from this class.
Definition at line 133 of file parameters.h.
|
protected |
Data structure to map names with values.
Definition at line 274 of file parameters.h.
Referenced by begin(), clear(), end(), get(), have_parameter(), insert(), n_parameters(), operator+=(), print(), remove(), and set().