Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends

LibGeoDecomp::NonPoDTestCell Class Reference

This class is a test vehicle for checking whether a Simulator handles cells which are not plain old datatypes (PoDs) correctly. More...

#include <nonpodtestcell.h>

Collaboration diagram for LibGeoDecomp::NonPoDTestCell:
Collaboration graph
[legend]

List of all members.

Classes

class  API
class  Initializer

Public Member Functions

 NonPoDTestCell (const Coord< 2 > &coord=Coord< 2 >(), const CoordBox< 2 > &simSpace=CoordBox< 2 >())
template<typename NEIGHBORHOOD >
void update (const NEIGHBORHOOD &neighborhood, int nanoStep)

Private Member Functions

void check ()

Private Attributes

Coord< 2 > coord
CoordBox< 2 > simSpace
int cycleCounter
std::set< Coord< 2 > > seenNeighbors
std::set< Coord< 2 > > missingNeighbors

Friends

class NonPoDTestCellTest
class Serialization

Detailed Description

This class is a test vehicle for checking whether a Simulator handles cells which are not plain old datatypes (PoDs) correctly.

Basically all cells which include pointers or heap allocated containes are not PoDs.

It collects coordinates in some containers and pulls values from neighbors to allow test code to check whether its own sets and the neighboring cells are still valid.


Constructor & Destructor Documentation

LibGeoDecomp::NonPoDTestCell::NonPoDTestCell ( const Coord< 2 > &  coord = Coord<2>(),
const CoordBox< 2 > &  simSpace = CoordBox<2>() 
) [inline, explicit]

Member Function Documentation

void LibGeoDecomp::NonPoDTestCell::check (  )  [inline, private]
template<typename NEIGHBORHOOD >
void LibGeoDecomp::NonPoDTestCell::update ( const NEIGHBORHOOD &  neighborhood,
int  nanoStep 
) [inline]

Friends And Related Function Documentation

friend class NonPoDTestCellTest [friend]
friend class Serialization [friend]

Member Data Documentation

Referenced by check(), NonPoDTestCell(), and update().

Referenced by check(), and update().

std::set<Coord<2> > LibGeoDecomp::NonPoDTestCell::missingNeighbors [private]

Referenced by check(), NonPoDTestCell(), and update().

std::set<Coord<2> > LibGeoDecomp::NonPoDTestCell::seenNeighbors [private]

Referenced by check(), NonPoDTestCell(), and update().


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