Chaste  Release::2017.1
AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM > Class Template Referenceabstract

#include <AbstractCellPopulationWriter.hpp>

+ Inheritance diagram for AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >:
+ Collaboration diagram for AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >:

Public Member Functions

 AbstractCellPopulationWriter (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
 
- Public Member Functions inherited from AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >
 AbstractCellBasedWriter (const std::string &rFileName)
 
virtual ~AbstractCellBasedWriter ()
 
void CloseFile ()
 
virtual void OpenOutputFile (OutputFileHandler &rOutputFileHandler)
 
void OpenOutputFileForAppend (OutputFileHandler &rOutputFileHandler)
 
virtual void WriteTimeStamp ()
 
virtual void WriteNewline ()
 
void SetFileName (std::string fileName)
 
std::string GetFileName ()
 
- 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)
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Protected Attributes inherited from AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM >
std::string mFileName
 
out_stream mpOutStream
 

Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
class AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >

Abstract class for a writer that takes information from an AbstractCellPopulation and writes it to file.

The key difference between this class and AbstractCellPopulationCountWriter is that writers inheriting from this class ARE compatible with a RoundRobin loop. For such writers, each process can write its part of the information without knowing anything about the other processes as long as they are not interfering with the writing itself.

Definition at line 60 of file AbstractCellPopulationWriter.hpp.

Constructor & Destructor Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >::AbstractCellPopulationWriter ( const std::string &  rFileName)

Default constructor.

Parameters
rFileNamethe name of the file to write to.

Definition at line 41 of file AbstractCellPopulationWriter.cpp.

Referenced by AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >::serialize().

Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
template<class Archive >
void AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >::serialize ( Archive &  archive,
const unsigned int  version 
)
inlineprivate

Serialize the object and its member variables.

Parameters
archivethe archive
versionthe current version of this class

Definition at line 72 of file AbstractCellPopulationWriter.hpp.

References AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >::AbstractCellPopulationWriter(), AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), and AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >::WriteHeader().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >::WriteHeader ( AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *  pCellPopulation)
virtual

Write the header to file.

Parameters
pCellPopulationa pointer to the population to be written.

Definition at line 47 of file AbstractCellPopulationWriter.cpp.

Referenced by AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >::serialize().

Friends And Related Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
friend class boost::serialization::access
friend

Needed for serialization.

Definition at line 64 of file AbstractCellPopulationWriter.hpp.


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