Public Types | Public Member Functions | Private Attributes

LibGeoDecomp::MemoryWriter< CELL_TYPE > Class Template Reference

The MemoryWriter is good for debugging a Simulator. More...

#include <memorywriter.h>

Inherits Clonable< Writer< CELL_TYPE >, MemoryWriter< CELL_TYPE > >.

Collaboration diagram for LibGeoDecomp::MemoryWriter< CELL_TYPE >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Writer< CELL_TYPE >
::GridType 
GridType
typedef
APITraits::SelectTopology
< CELL_TYPE >::Value 
Topology
typedef Grid< CELL_TYPE, TopologyStorageGrid

Public Member Functions

 MemoryWriter (unsigned period=1)
virtual void stepFinished (const GridType &grid, unsigned step, WriterEvent event)
 is called back from sim after each simulation step.
GridTypegetGrid (int i)
std::vector< StorageGrid > & getGrids ()

Private Attributes

std::vector< StorageGridgrids

Detailed Description

template<typename CELL_TYPE>
class LibGeoDecomp::MemoryWriter< CELL_TYPE >

The MemoryWriter is good for debugging a Simulator.

As it name says, it will simply store all grids in memory for later inspection.


Member Typedef Documentation

template<typename CELL_TYPE >
typedef Writer<CELL_TYPE>::GridType LibGeoDecomp::MemoryWriter< CELL_TYPE >::GridType

Reimplemented from LibGeoDecomp::Writer< CELL_TYPE >.

template<typename CELL_TYPE >
typedef Grid<CELL_TYPE, Topology> LibGeoDecomp::MemoryWriter< CELL_TYPE >::StorageGrid
template<typename CELL_TYPE >
typedef APITraits::SelectTopology<CELL_TYPE>::Value LibGeoDecomp::MemoryWriter< CELL_TYPE >::Topology

Reimplemented from LibGeoDecomp::Writer< CELL_TYPE >.


Constructor & Destructor Documentation

template<typename CELL_TYPE >
LibGeoDecomp::MemoryWriter< CELL_TYPE >::MemoryWriter ( unsigned  period = 1  )  [inline, explicit]

Member Function Documentation

template<typename CELL_TYPE >
GridType& LibGeoDecomp::MemoryWriter< CELL_TYPE >::getGrid ( int  i  )  [inline]
template<typename CELL_TYPE >
std::vector<StorageGrid>& LibGeoDecomp::MemoryWriter< CELL_TYPE >::getGrids (  )  [inline]
template<typename CELL_TYPE >
virtual void LibGeoDecomp::MemoryWriter< CELL_TYPE >::stepFinished ( const GridType grid,
unsigned  step,
WriterEvent  event 
) [inline, virtual]

is called back from sim after each simulation step.

event specifies the phase in which the simulation is currently in. This may be used for instance to open/close files at the beginning/end of the simulation.

Implements LibGeoDecomp::Writer< CELL_TYPE >.

References LibGeoDecomp::MemoryWriter< CELL_TYPE >::grids, LibGeoDecomp::Writer< CELL_TYPE >::period, and LibGeoDecomp::WRITER_STEP_FINISHED.


Member Data Documentation

template<typename CELL_TYPE >
std::vector<StorageGrid> LibGeoDecomp::MemoryWriter< CELL_TYPE >::grids [private]

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