Chaste  Release::3.4
AbstractCellWriter< ELEMENT_DIM, SPACE_DIM > Class Template Referenceabstract

#include <AbstractCellWriter.hpp>

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

Public Member Functions

 AbstractCellWriter (const std::string &rFileName)
 
virtual double GetCellDataForVtkOutput (CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)=0
 
virtual void VisitCell (CellPtr pCell, AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation)=0
 
void SetVtkCellDataName (std::string vtkCellDataName)
 
std::string GetVtkCellDataName ()
 
- 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
 

Protected Attributes

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

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)
 

Friends

class boost::serialization::access
 

Detailed Description

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

An abstract class for a writer that visits individual cells of a population and writes their data.

Definition at line 51 of file AbstractCellWriter.hpp.

Constructor & Destructor Documentation

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

Default constructor.

Parameters
rFileNamethe name of the file to write to.

Definition at line 39 of file AbstractCellWriter.cpp.

Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
virtual double AbstractCellWriter< ELEMENT_DIM, SPACE_DIM >::GetCellDataForVtkOutput ( CellPtr  pCell,
AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *  pCellPopulation 
)
pure virtual
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::string AbstractCellWriter< ELEMENT_DIM, SPACE_DIM >::GetVtkCellDataName ( )
Returns
the name of the cell data used in VTK output.

Definition at line 51 of file AbstractCellWriter.cpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
template<class Archive >
void AbstractCellWriter< 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 64 of file AbstractCellWriter.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractCellWriter< ELEMENT_DIM, SPACE_DIM >::SetVtkCellDataName ( std::string  vtkCellDataName)

Set the name of the cell data used in VTK output. This method allows the user to change mVtkCellDataName from its default value, which is set in each subclass's constructor.

Parameters
vtkCellDataNamethe output file name

Definition at line 45 of file AbstractCellWriter.cpp.

Friends And Related Function Documentation

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

Needed for serialization.

Definition at line 56 of file AbstractCellWriter.hpp.

Member Data Documentation


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