Chaste Release::3.1
|
#include <CellData.hpp>
Public Member Functions | |
void | SetItem (const std::string &variableName, double data) |
double | GetItem (const std::string &variableName) const |
unsigned | GetNumItems () const |
std::vector< std::string > | GetKeys () const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
std::map< std::string, double > | mCellData |
Friends | |
class | boost::serialization::access |
double CellData::GetItem | ( | const std::string & | variableName | ) | const |
Get data.
variableName | the index of the data required. |
Definition at line 43 of file CellData.cpp.
References DOUBLE_UNSET, EXCEPTION, and mCellData.
std::vector< std::string > CellData::GetKeys | ( | ) | const |
Get all keys These are sorted in lexicographical/alphabetic order (so that the order is independent of any map iteration method)
Definition at line 68 of file CellData.cpp.
References mCellData.
unsigned CellData::GetNumItems | ( | ) | const |
void CellData::serialize | ( | Archive & | archive, |
const unsigned int | version | ||
) | [inline, private] |
Archive the member variables.
archive | the archive |
version | the current version of this class |
Reimplemented from AbstractCellProperty.
Definition at line 76 of file CellData.hpp.
References mCellData.
void CellData::SetItem | ( | const std::string & | variableName, |
double | data | ||
) |
Constructor/destructor are default. This assigns the cell data.
variableName | the index of the data to be set. |
data | the value to set it to. |
Definition at line 38 of file CellData.cpp.
References mCellData.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellProperty.
Definition at line 68 of file CellData.hpp.
std::map<std::string, double> CellData::mCellData [private] |
Cell data
Definition at line 65 of file CellData.hpp.
Referenced by GetItem(), GetKeys(), GetNumItems(), serialize(), and SetItem().