Public Types | Public Member Functions | Static Public Attributes | Private Attributes

LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE > Class Template Reference

ParallelWriterAdapter translates the interface of a ParallelWriter to a PatchAccepter, so that we can treat IO similarly to sending ghost zones. More...

#include <parallelwriteradapter.h>

Inherits LibGeoDecomp::PatchAccepter< GRID_TYPE >.

Collaboration diagram for LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
APITraits::SelectTopology
< CELL_TYPE >::Value 
Topology

Public Member Functions

 ParallelWriterAdapter (boost::shared_ptr< ParallelWriter< CELL_TYPE > > writer, const std::size_t firstStep, const std::size_t lastStep, Coord< Topology::DIM > globalGridDimensions, std::size_t rank, bool lastCall)
virtual void setRegion (const Region< GRID_TYPE::DIM > &region)
virtual void put (const GRID_TYPE &grid, const Region< GRID_TYPE::DIM > &validRegion, const std::size_t nanoStep)

Static Public Attributes

static const unsigned NANO_STEPS = APITraits::SelectNanoSteps<CELL_TYPE>::VALUE

Private Attributes

boost::shared_ptr
< ParallelWriter< CELL_TYPE > > 
writer
std::size_t firstNanoStep
std::size_t lastNanoStep
std::size_t stride
std::size_t rank
bool lastCall
Coord< Topology::DIMglobalGridDimensions

Detailed Description

template<typename GRID_TYPE, typename CELL_TYPE>
class LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >

ParallelWriterAdapter translates the interface of a ParallelWriter to a PatchAccepter, so that we can treat IO similarly to sending ghost zones.


Member Typedef Documentation

template<typename GRID_TYPE , typename CELL_TYPE >
typedef APITraits::SelectTopology<CELL_TYPE>::Value LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::Topology

Constructor & Destructor Documentation

template<typename GRID_TYPE , typename CELL_TYPE >
LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::ParallelWriterAdapter ( boost::shared_ptr< ParallelWriter< CELL_TYPE > >  writer,
const std::size_t  firstStep,
const std::size_t  lastStep,
Coord< Topology::DIM globalGridDimensions,
std::size_t  rank,
bool  lastCall 
) [inline]

Member Function Documentation

template<typename GRID_TYPE , typename CELL_TYPE >
virtual void LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::put ( const GRID_TYPE &  grid,
const Region< GRID_TYPE::DIM > &  validRegion,
const std::size_t  nanoStep 
) [inline, virtual]
template<typename GRID_TYPE , typename CELL_TYPE >
virtual void LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::setRegion ( const Region< GRID_TYPE::DIM > &  region  )  [inline, virtual]

Member Data Documentation

template<typename GRID_TYPE , typename CELL_TYPE >
std::size_t LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::firstNanoStep [private]
template<typename GRID_TYPE , typename CELL_TYPE >
Coord<Topology::DIM> LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::globalGridDimensions [private]
template<typename GRID_TYPE , typename CELL_TYPE >
bool LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::lastCall [private]
template<typename GRID_TYPE , typename CELL_TYPE >
std::size_t LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::lastNanoStep [private]
template<typename GRID_TYPE , typename CELL_TYPE >
const unsigned LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::NANO_STEPS = APITraits::SelectNanoSteps<CELL_TYPE>::VALUE [static]
template<typename GRID_TYPE , typename CELL_TYPE >
std::size_t LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::rank [private]
template<typename GRID_TYPE , typename CELL_TYPE >
std::size_t LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::stride [private]
template<typename GRID_TYPE , typename CELL_TYPE >
boost::shared_ptr<ParallelWriter<CELL_TYPE> > LibGeoDecomp::HiParSimulator::ParallelWriterAdapter< GRID_TYPE, CELL_TYPE >::writer [private]

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