Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
#include <CellEdgeData.hpp>
Public Member Functions | |
virtual | ~CellEdgeData () |
void | SetItem (const std::string &rVariableName, const std::vector< double > &rData) |
std::vector< double > | GetItem (const std::string &rVariableName) const |
double | GetItemAtIndex (const std::string &rVariableName, const unsigned index) |
unsigned | GetNumItems () const |
std::vector< std::string > | GetKeys () const |
Public Member Functions inherited from AbstractCellProperty | |
AbstractCellProperty () | |
virtual | ~AbstractCellProperty () |
template<class CLASS > | |
bool | IsType () const |
template<class BASECLASS > | |
bool | IsSubType () const |
bool | IsSame (const AbstractCellProperty *pOther) const |
bool | IsSame (boost::shared_ptr< const AbstractCellProperty > pOther) const |
void | IncrementCellCount () |
void | DecrementCellCount () |
unsigned | GetCellCount () const |
Public Member Functions inherited from Identifiable | |
virtual | ~Identifiable () |
std::string | GetIdentifier () const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
std::map< std::string, std::vector< double > > | mCellEdgeData |
Friends | |
class | boost::serialization::access |
Data associated with the cell's edges, for use when cells are physically represented as a VertexMesh. Each data item is an array that has the same size and in the same order as edges in cell's associated VertexElement.
Definition at line 57 of file CellEdgeData.hpp.
|
virtual |
We need the empty virtual destructor in this class to ensure Boost serialization works correctly with static libraries.
Definition at line 38 of file CellEdgeData.cpp.
std::vector< double > CellEdgeData::GetItem | ( | const std::string & | rVariableName | ) | const |
Retrieves the cell edge data array. Throws if rVariableName has not been stored.
rVariableName | the name of the data to get. |
Definition at line 47 of file CellEdgeData.cpp.
References EXCEPTION, and mCellEdgeData.
Retrieves the data of rVariableName at index
rVariableName | the name of the data to get. |
index | the index of the data of rVariableName |
Definition at line 63 of file CellEdgeData.cpp.
References EXCEPTION, and mCellEdgeData.
std::vector< std::string > CellEdgeData::GetKeys | ( | ) | const |
According to STL these are sorted in lexicographical/alphabetic order (so that the ordering here is predictable).
Definition at line 89 of file CellEdgeData.cpp.
References mCellEdgeData.
unsigned CellEdgeData::GetNumItems | ( | ) | const |
Definition at line 84 of file CellEdgeData.cpp.
References mCellEdgeData.
|
inlineprivate |
Archive the member variables.
archive | the archive |
version | the current version of this class |
Definition at line 73 of file CellEdgeData.hpp.
References mCellEdgeData.
void CellEdgeData::SetItem | ( | const std::string & | rVariableName, |
const std::vector< double > & | rData | ||
) |
This assigns the cell edge data vector.
rVariableName | the name of the data to be set. |
rData | the vector of values to set it to. |
Definition at line 42 of file CellEdgeData.cpp.
References mCellEdgeData.
|
friend |
Needed for serialization.
Definition at line 65 of file CellEdgeData.hpp.
|
private |
The cell edge data.
Definition at line 62 of file CellEdgeData.hpp.
Referenced by GetItem(), GetItemAtIndex(), GetKeys(), GetNumItems(), serialize(), and SetItem().