Chaste
Release::3.4
|
#include <CellAncestor.hpp>
Public Member Functions | |
CellAncestor (unsigned ancestor=UNSIGNED_UNSET) | |
virtual | ~CellAncestor () |
unsigned | GetAncestor () 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 | |
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.
|
virtual |
Destructor.
Definition at line 44 of file CellAncestor.cpp.
unsigned CellAncestor::GetAncestor | ( | ) | const |
Definition at line 48 of file CellAncestor.cpp.
References mAncestor.
Referenced by Cell::GetAncestor().
|
inlineprivate |
Archive the member variables.
archive | the archive |
version | the current version of this class |
Definition at line 71 of file CellAncestor.hpp.
References mAncestor.
|
friend |
Needed for serialization.
Definition at line 63 of file CellAncestor.hpp.
|
private |
Cell ancestor
Definition at line 60 of file CellAncestor.hpp.
Referenced by GetAncestor(), and serialize().