Chaste Release::3.1
|
#include <CellId.hpp>
Public Member Functions | |
CellId () | |
virtual | ~CellId () |
void | AssignCellId () |
unsigned | GetMaxCellId () const |
unsigned | GetCellId () const |
Static Public Member Functions | |
static void | ResetMaxCellId () |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
unsigned | mCellId |
Static Private Attributes | |
static unsigned | mMaxCellId = 0 |
Friends | |
class | boost::serialization::access |
Cell id class.
Each Cell owns a CellPropertyCollection, which may include a shared pointer to an object of this type. When a Cell divides a new object is created with the new cell id.
The CellId object that stores the value of a the cell identifier.
Definition at line 56 of file CellId.hpp.
CellId::CellId | ( | ) |
Constructor.
This doesn't do anything and AssignCellId must be called before doing anything
Definition at line 41 of file CellId.cpp.
References mCellId, and UNSIGNED_UNSET.
CellId::~CellId | ( | ) | [virtual] |
Destructor.
Definition at line 47 of file CellId.cpp.
void CellId::AssignCellId | ( | ) |
This assigns the cell id to be the maximum current cell id. It then increments mMaxCellId.
Definition at line 51 of file CellId.cpp.
References mCellId, and mMaxCellId.
unsigned CellId::GetCellId | ( | ) | const |
Get mCellId.
Definition at line 57 of file CellId.cpp.
References EXCEPTION, mCellId, and UNSIGNED_UNSET.
Referenced by Cell::GetCellId().
unsigned CellId::GetMaxCellId | ( | ) | const |
Definition at line 66 of file CellId.cpp.
References EXCEPTION, mCellId, mMaxCellId, and UNSIGNED_UNSET.
void CellId::ResetMaxCellId | ( | ) | [static] |
void CellId::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 77 of file CellId.hpp.
References mCellId, and mMaxCellId.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellProperty.
Definition at line 69 of file CellId.hpp.
unsigned CellId::mCellId [private] |
Cell Id
Definition at line 63 of file CellId.hpp.
Referenced by AssignCellId(), CellId(), GetCellId(), GetMaxCellId(), and serialize().
unsigned CellId::mMaxCellId = 0 [static, private] |
maximum cell identifier.
Definition at line 66 of file CellId.hpp.
Referenced by AssignCellId(), GetMaxCellId(), ResetMaxCellId(), and serialize().