Chaste
Release::2017.1
|
#include <AbstractCellProperty.hpp>
Public Member Functions | |
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 | mCellCount |
Friends | |
class | boost::serialization::access |
Base class for cell properties.
Each cell has a collection of cell properties, which may express such concepts as mutation states, inherited labels, or per-cell data.
Definition at line 49 of file AbstractCellProperty.hpp.
AbstractCellProperty::AbstractCellProperty | ( | ) |
Default constructor.
Definition at line 39 of file AbstractCellProperty.cpp.
Referenced by serialize().
|
virtual |
Virtual destructor, to make this class polymorphic.
Definition at line 44 of file AbstractCellProperty.cpp.
Referenced by serialize().
void AbstractCellProperty::DecrementCellCount | ( | ) |
Decrement mCellCount.
Definition at line 65 of file AbstractCellProperty.cpp.
References EXCEPTION, and mCellCount.
Referenced by IsSubType().
unsigned AbstractCellProperty::GetCellCount | ( | ) | const |
Definition at line 74 of file AbstractCellProperty.cpp.
References mCellCount.
Referenced by IsSubType().
void AbstractCellProperty::IncrementCellCount | ( | ) |
Increment mCellCount.
Definition at line 60 of file AbstractCellProperty.cpp.
References mCellCount.
Referenced by IsSubType().
bool AbstractCellProperty::IsSame | ( | const AbstractCellProperty * | pOther | ) | const |
pOther | the property to compare against. |
Definition at line 48 of file AbstractCellProperty.cpp.
Referenced by IsSame(), IsSubType(), and IsType().
bool AbstractCellProperty::IsSame | ( | boost::shared_ptr< const AbstractCellProperty > | pOther | ) | const |
pOther | the property to compare against. |
Definition at line 55 of file AbstractCellProperty.cpp.
References IsSame().
|
inline |
It should be called like: bool is_mutation = p_property->IsSubType<AbstractCellMutationState>();
Definition at line 109 of file AbstractCellProperty.hpp.
References DecrementCellCount(), GetCellCount(), IncrementCellCount(), and IsSame().
|
inline |
The current implementation requires that all cell properties have a default constructor. For this method to be efficient, the default constructor must also be cheap.
It should be called like: bool healthy = p_property->IsType<HealthyMutationState>();
Definition at line 95 of file AbstractCellProperty.hpp.
References IsSame().
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
|
inlineprivate |
We don't have any member variables yet, but let's make things easy for the future.
archive | the archive |
version | the current version of this class |
Definition at line 67 of file AbstractCellProperty.hpp.
References AbstractCellProperty(), mCellCount, and ~AbstractCellProperty().
|
friend |
Needed for serialization.
Definition at line 59 of file AbstractCellProperty.hpp.
|
private |
The number of cells with this cell property.
Definition at line 56 of file AbstractCellProperty.hpp.
Referenced by DecrementCellCount(), GetCellCount(), IncrementCellCount(), and serialize().