libMesh
Public Types | Public Member Functions | Private Attributes | List of all members
libMesh::RBParameters Class Reference

This class is part of the rbOOmit framework. More...

#include <rb_parameters.h>

Public Types

typedef std::map< std::string, Real >::const_iterator const_iterator
 

Public Member Functions

 RBParameters ()
 Constructor. More...
 
 RBParameters (const std::map< std::string, Real > &parameter_map)
 Constructor. More...
 
void clear ()
 Clear this object. More...
 
Real get_value (const std::string &param_name) const
 Get the value of the specific parameter. More...
 
void set_value (const std::string &param_name, Real value)
 Set the value of the specified parameter. More...
 
unsigned int n_parameters () const
 Get the number of parameters that have been added. More...
 
void get_parameter_names (std::set< std::string > &param_names) const
 Fill param_names with the names of the parameters. More...
 
const_iterator begin () const
 Get a constant iterator to beginning of this RBParameters object. More...
 
const_iterator end () const
 Get a constant iterator to the end of this RBParameters object. More...
 
bool operator== (const RBParameters &rhs) const
 Two RBParameters are equal if they have the same _parameters map. More...
 
bool operator!= (const RBParameters &node) const
 
std::string get_string (unsigned int precision=6) const
 Get a string that specifies the contents of this RBParameters object. More...
 
void print () const
 Print the parameters. More...
 

Private Attributes

std::map< std::string, Real_parameters
 The map that stores the actual parameters, indexed by names. More...
 

Detailed Description

This class is part of the rbOOmit framework.

This class defines a set of parameters index by strings.

Author
David J. Knezevic
Date
2012

Definition at line 42 of file rb_parameters.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 57 of file rb_parameters.h.

Constructor & Destructor Documentation

◆ RBParameters() [1/2]

libMesh::RBParameters::RBParameters ( )

Constructor.

◆ RBParameters() [2/2]

libMesh::RBParameters::RBParameters ( const std::map< std::string, Real > &  parameter_map)

Constructor.

Set parameters based on the std::map parameter_map.

Member Function Documentation

◆ begin()

const_iterator libMesh::RBParameters::begin ( ) const

Get a constant iterator to beginning of this RBParameters object.

◆ clear()

void libMesh::RBParameters::clear ( )

Clear this object.

◆ end()

const_iterator libMesh::RBParameters::end ( ) const

Get a constant iterator to the end of this RBParameters object.

◆ get_parameter_names()

void libMesh::RBParameters::get_parameter_names ( std::set< std::string > &  param_names) const

Fill param_names with the names of the parameters.

◆ get_string()

std::string libMesh::RBParameters::get_string ( unsigned int  precision = 6) const

Get a string that specifies the contents of this RBParameters object.

precision specifies the number of digits of precision we use in scientific notation in the string.

◆ get_value()

Real libMesh::RBParameters::get_value ( const std::string &  param_name) const

◆ n_parameters()

unsigned int libMesh::RBParameters::n_parameters ( ) const

Get the number of parameters that have been added.

◆ operator!=()

bool libMesh::RBParameters::operator!= ( const RBParameters node) const
Returns
!(*this == rhs).

◆ operator==()

bool libMesh::RBParameters::operator== ( const RBParameters rhs) const

Two RBParameters are equal if they have the same _parameters map.

◆ print()

void libMesh::RBParameters::print ( ) const

Print the parameters.

◆ set_value()

void libMesh::RBParameters::set_value ( const std::string &  param_name,
Real  value 
)

Set the value of the specified parameter.

If param_name doesn't already exist, it is added to the RBParameters object.

Member Data Documentation

◆ _parameters

std::map<std::string, Real> libMesh::RBParameters::_parameters
private

The map that stores the actual parameters, indexed by names.

Definition at line 122 of file rb_parameters.h.


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