#include <AbstractCellPopulationCountWriter.hpp>
Inherits AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >.
Inherited by CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >, and CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >.
Public Member Functions | |
AbstractCellPopulationCountWriter (const std::string &rFileName) | |
virtual void | WriteHeader (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation) |
virtual void | Visit (MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)=0 |
virtual void | Visit (CaBasedCellPopulation< SPACE_DIM > *pCellPopulation)=0 |
virtual void | Visit (NodeBasedCellPopulation< SPACE_DIM > *pCellPopulation)=0 |
virtual void | Visit (PottsBasedCellPopulation< SPACE_DIM > *pCellPopulation)=0 |
virtual void | Visit (VertexBasedCellPopulation< SPACE_DIM > *pCellPopulation)=0 |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Abstract class for a writer that takes information from an AbstractCellPopulation and writes it to file.
The key difference between this class and AbstractCellPopulationWriter is that writers inheriting from this class are NOT compatible with a RoundRobin loop, because they write information that needs to be collected from all processes, such as global counters for mutation states. These writers concentrate the information from all processes and then write it at each timestep for which output is required.
Definition at line 61 of file AbstractCellPopulationCountWriter.hpp.
AbstractCellPopulationCountWriter< ELEMENT_DIM, SPACE_DIM >::AbstractCellPopulationCountWriter | ( | const std::string & | rFileName | ) | [inline] |
Default constructor.
rFileName | the name of the file to write to. |
Definition at line 44 of file AbstractCellPopulationCountWriter.cpp.
void AbstractCellPopulationCountWriter< ELEMENT_DIM, SPACE_DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the object and its member variables.
archive | the archive | |
version | the current version of this class |
Reimplemented from AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >.
Reimplemented in CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >, and CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 73 of file AbstractCellPopulationCountWriter.hpp.
virtual void AbstractCellPopulationCountWriter< ELEMENT_DIM, SPACE_DIM >::Visit | ( | VertexBasedCellPopulation< SPACE_DIM > * | pCellPopulation | ) | [pure virtual] |
Visit the population and write the data.
pCellPopulation | a pointer to the VertexBasedCellPopulation to visit. |
Implemented in CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >, and CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >.
virtual void AbstractCellPopulationCountWriter< ELEMENT_DIM, SPACE_DIM >::Visit | ( | PottsBasedCellPopulation< SPACE_DIM > * | pCellPopulation | ) | [pure virtual] |
Visit the population and write the data.
pCellPopulation | a pointer to the PottsBasedCellPopulation to visit. |
Implemented in CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >, and CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >.
virtual void AbstractCellPopulationCountWriter< ELEMENT_DIM, SPACE_DIM >::Visit | ( | NodeBasedCellPopulation< SPACE_DIM > * | pCellPopulation | ) | [pure virtual] |
Visit the population and write the data.
pCellPopulation | a pointer to the NodeBasedCellPopulation to visit. |
Implemented in CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >, and CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >.
virtual void AbstractCellPopulationCountWriter< ELEMENT_DIM, SPACE_DIM >::Visit | ( | CaBasedCellPopulation< SPACE_DIM > * | pCellPopulation | ) | [pure virtual] |
Visit the population and write the data.
pCellPopulation | a pointer to the CaBasedCellPopulation to visit. |
Implemented in CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >, and CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >.
virtual void AbstractCellPopulationCountWriter< ELEMENT_DIM, SPACE_DIM >::Visit | ( | MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM > * | pCellPopulation | ) | [pure virtual] |
Visit the population and write the data.
pCellPopulation | a pointer to the MeshBasedCellPopulation to visit. |
Implemented in CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >, and CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >.
void AbstractCellPopulationCountWriter< ELEMENT_DIM, SPACE_DIM >::WriteHeader | ( | AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > * | pCellPopulation | ) | [inline, virtual] |
Write the header to file.
pCellPopulation | a pointer to the population to be written. |
Reimplemented in CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 50 of file AbstractCellPopulationCountWriter.cpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >.
Reimplemented in CellMutationStatesCountWriter< ELEMENT_DIM, SPACE_DIM >, CellProliferativePhasesCountWriter< ELEMENT_DIM, SPACE_DIM >, and CellProliferativeTypesCountWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 65 of file AbstractCellPopulationCountWriter.hpp.