Chaste
Release::2018.1
|
#include <AbstractCellProliferativeType.hpp>
Public Member Functions | |
AbstractCellProliferativeType (unsigned colour) | |
virtual | ~AbstractCellProliferativeType () |
unsigned | GetColour () 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) |
AbstractCellProliferativeType () | |
Private Attributes | |
unsigned | mColour |
Friends | |
class | boost::serialization::access |
Base class for cell proliferative types.
Each Cell has a (shared pointer to a) proliferative type instance, which will be an instance of a subclass of this class. When setting up a CellBasedSimulation, the user must specify a list of AbstractCellProliferativeType instances, which represent the possible proliferative types that can occur in the simulation. This provides a registry of available proliferative types, and cells will point to one of these objects.
The proliferative type objects keep track of the number of cells with a proliferative type, as well as what colour should be used by the visualizer to display cells with each proliferative type.
Definition at line 58 of file AbstractCellProliferativeType.hpp.
|
private |
Default constructor needs to be defined for archiving, but never actually used, since subclasses call the normal constructor.
Definition at line 40 of file AbstractCellProliferativeType.cpp.
References NEVER_REACHED.
AbstractCellProliferativeType::AbstractCellProliferativeType | ( | unsigned | colour | ) |
Constructor.
colour | what colour cells with this proliferative type should be in the visualizer |
Definition at line 47 of file AbstractCellProliferativeType.cpp.
|
virtual |
Virtual destructor, to make this class polymorphic.
Definition at line 53 of file AbstractCellProliferativeType.cpp.
unsigned AbstractCellProliferativeType::GetColour | ( | ) | const |
Definition at line 57 of file AbstractCellProliferativeType.cpp.
References mColour.
|
inlineprivate |
Archive the member variables.
archive | the archive |
version | the current version of this class |
Definition at line 76 of file AbstractCellProliferativeType.hpp.
References mColour.
|
friend |
Needed for serialization.
Definition at line 68 of file AbstractCellProliferativeType.hpp.
|
private |
Colour for use by visualizer.
Definition at line 65 of file AbstractCellProliferativeType.hpp.
Referenced by GetColour(), and serialize().