Chaste Release::3.1
AbstractCellProliferativeType Class Reference

#include <AbstractCellProliferativeType.hpp>

Inheritance diagram for AbstractCellProliferativeType:
Collaboration diagram for AbstractCellProliferativeType:

List of all members.

Public Member Functions

 AbstractCellProliferativeType (unsigned colour)
virtual ~AbstractCellProliferativeType ()
unsigned GetColour () 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

Detailed Description

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.


Constructor & Destructor Documentation

AbstractCellProliferativeType::AbstractCellProliferativeType ( ) [private]

Default constructor needs to be defined for archiving, but never actually used, since subclasses call the normal constructor.

Definition at line 39 of file AbstractCellProliferativeType.cpp.

References NEVER_REACHED.

AbstractCellProliferativeType::AbstractCellProliferativeType ( unsigned  colour)

Constructor.

Parameters:
colourwhat colour cells with this proliferative type should be in the visualizer

Definition at line 45 of file AbstractCellProliferativeType.cpp.

AbstractCellProliferativeType::~AbstractCellProliferativeType ( ) [virtual]

Virtual destructor, to make this class polymorphic.

Definition at line 51 of file AbstractCellProliferativeType.cpp.


Member Function Documentation

unsigned AbstractCellProliferativeType::GetColour ( ) const

Get mColour.

Definition at line 55 of file AbstractCellProliferativeType.cpp.

References mColour.

template<class Archive >
void AbstractCellProliferativeType::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]

Archive the member variables.

Parameters:
archivethe archive
versionthe current version of this class

Reimplemented from AbstractCellProperty.

Reimplemented in DifferentiatedCellProliferativeType, StemCellProliferativeType, and TransitCellProliferativeType.

Definition at line 76 of file AbstractCellProliferativeType.hpp.

References mColour.


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Needed for serialization.

Reimplemented from AbstractCellProperty.

Reimplemented in DifferentiatedCellProliferativeType, StemCellProliferativeType, and TransitCellProliferativeType.

Definition at line 68 of file AbstractCellProliferativeType.hpp.


Member Data Documentation

Colour for use by visualizer.

Definition at line 65 of file AbstractCellProliferativeType.hpp.

Referenced by GetColour(), and serialize().


The documentation for this class was generated from the following files: