Public Types | Public Member Functions | Private Attributes

LibGeoDecomp::NeighborhoodAdapter< NEIGHBORHOOD, DIM, COLLECTION_INTERFACE > Class Template Reference

This class is most useful for interfacing meshless codes with LibGeoDecomp. More...

#include <neighborhoodadapter.h>

Collaboration diagram for LibGeoDecomp::NeighborhoodAdapter< NEIGHBORHOOD, DIM, COLLECTION_INTERFACE >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef NEIGHBORHOOD::Cell Cell
typedef
COLLECTION_INTERFACE::Container::Key 
Key
typedef
COLLECTION_INTERFACE::Container::Cargo 
Cargo

Public Member Functions

 NeighborhoodAdapter (const NEIGHBORHOOD *neighbors)
const Cargooperator[] (const Key &id) const
 Will search neighboring containers for a Cargo which matches the given ID.

Private Attributes

const NEIGHBORHOOD * neighbors

Detailed Description

template<class NEIGHBORHOOD, int DIM, typename COLLECTION_INTERFACE = CollectionInterface::PassThrough<typename NEIGHBORHOOD::Cell>>
class LibGeoDecomp::NeighborhoodAdapter< NEIGHBORHOOD, DIM, COLLECTION_INTERFACE >

This class is most useful for interfacing meshless codes with LibGeoDecomp.

It can retrieve cells matching a certain id from the ContainerCells in the current neighborhood.


Member Typedef Documentation

template<class NEIGHBORHOOD , int DIM, typename COLLECTION_INTERFACE = CollectionInterface::PassThrough<typename NEIGHBORHOOD::Cell>>
typedef COLLECTION_INTERFACE::Container::Cargo LibGeoDecomp::NeighborhoodAdapter< NEIGHBORHOOD, DIM, COLLECTION_INTERFACE >::Cargo
template<class NEIGHBORHOOD , int DIM, typename COLLECTION_INTERFACE = CollectionInterface::PassThrough<typename NEIGHBORHOOD::Cell>>
typedef NEIGHBORHOOD::Cell LibGeoDecomp::NeighborhoodAdapter< NEIGHBORHOOD, DIM, COLLECTION_INTERFACE >::Cell
template<class NEIGHBORHOOD , int DIM, typename COLLECTION_INTERFACE = CollectionInterface::PassThrough<typename NEIGHBORHOOD::Cell>>
typedef COLLECTION_INTERFACE::Container::Key LibGeoDecomp::NeighborhoodAdapter< NEIGHBORHOOD, DIM, COLLECTION_INTERFACE >::Key

Constructor & Destructor Documentation

template<class NEIGHBORHOOD , int DIM, typename COLLECTION_INTERFACE = CollectionInterface::PassThrough<typename NEIGHBORHOOD::Cell>>
LibGeoDecomp::NeighborhoodAdapter< NEIGHBORHOOD, DIM, COLLECTION_INTERFACE >::NeighborhoodAdapter ( const NEIGHBORHOOD *  neighbors  )  [inline, explicit]

Member Function Documentation

template<class NEIGHBORHOOD , int DIM, typename COLLECTION_INTERFACE = CollectionInterface::PassThrough<typename NEIGHBORHOOD::Cell>>
const Cargo& LibGeoDecomp::NeighborhoodAdapter< NEIGHBORHOOD, DIM, COLLECTION_INTERFACE >::operator[] ( const Key id  )  const [inline]

Will search neighboring containers for a Cargo which matches the given ID.

References LibGeoDecomp::CoordBox< DIM >::begin(), LibGeoDecomp::CoordBox< DIM >::end(), and LOG.


Member Data Documentation

template<class NEIGHBORHOOD , int DIM, typename COLLECTION_INTERFACE = CollectionInterface::PassThrough<typename NEIGHBORHOOD::Cell>>
const NEIGHBORHOOD* LibGeoDecomp::NeighborhoodAdapter< NEIGHBORHOOD, DIM, COLLECTION_INTERFACE >::neighbors [private]

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