Chaste Release::3.1
|
#include <CellAncestor.hpp>
Public Member Functions | |
CellAncestor (unsigned ancestor=UNSIGNED_UNSET) | |
virtual | ~CellAncestor () |
unsigned | GetAncestor () const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
unsigned | mAncestor |
Friends | |
class | boost::serialization::access |
Cell ancestor class.
Each Cell owns a CellPropertyCollection, which may include a shared pointer to an object of this type. When a Cell that has an ancestor divides, the daughter cells both have the same ancestor.
The CellAncestor object keeps track of the number of cells that have the same ancestor.
Definition at line 53 of file CellAncestor.hpp.
CellAncestor::CellAncestor | ( | unsigned | ancestor = UNSIGNED_UNSET | ) |
Constructor.
ancestor | the ID of the ancestor of this cell. Defaults to max. |
Definition at line 38 of file CellAncestor.cpp.
CellAncestor::~CellAncestor | ( | ) | [virtual] |
Destructor.
Definition at line 44 of file CellAncestor.cpp.
unsigned CellAncestor::GetAncestor | ( | ) | const |
Get mAncestor.
Definition at line 48 of file CellAncestor.cpp.
References mAncestor.
Referenced by Cell::GetAncestor().
void CellAncestor::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 71 of file CellAncestor.hpp.
References mAncestor.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellProperty.
Definition at line 63 of file CellAncestor.hpp.
unsigned CellAncestor::mAncestor [private] |
Cell ancestor
Definition at line 60 of file CellAncestor.hpp.
Referenced by GetAncestor(), and serialize().