UniformRectilinearMesh< Dim, T >::PositionsFunctor Class Reference

Support for the positions() function. More...

#include <UniformRectilinearMesh.h>

Collaboration diagram for UniformRectilinearMesh< Dim, T >::PositionsFunctor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PositionsFunctor ()
 Need to be able to default construct since we fill in the details after the fact.
 PositionsFunctor (const UniformRectilinearMesh< Dim, T > &m, const Centering< Dim > &c)
PointType_t operator() (int i0) const
PointType_t operator() (int i0, int i1) const
PointType_t operator() (int i0, int i1, int i2) const


Detailed Description

template<int Dim, class T = POOMA_DEFAULT_POSITION_TYPE>
class UniformRectilinearMesh< Dim, T >::PositionsFunctor

Support for the positions() function.

We need to provide a functor for use with IndexFunction-engine. We also need to export the PositionsEngineTag_t typedef and the positionsFunctor() member function, which computes the positions using the centering point positions. The indices passed in refer to cells.


Constructor & Destructor Documentation

template<int Dim, class T = POOMA_DEFAULT_POSITION_TYPE>
UniformRectilinearMesh< Dim, T >::PositionsFunctor::PositionsFunctor (  )  [inline]

Need to be able to default construct since we fill in the details after the fact.

template<int Dim, class T = POOMA_DEFAULT_POSITION_TYPE>
UniformRectilinearMesh< Dim, T >::PositionsFunctor::PositionsFunctor ( const UniformRectilinearMesh< Dim, T > &  m,
const Centering< Dim > &  c 
) [inline]


Member Function Documentation

template<int Dim, class T = POOMA_DEFAULT_POSITION_TYPE>
PointType_t UniformRectilinearMesh< Dim, T >::PositionsFunctor::operator() ( int  i0  )  const [inline]

template<int Dim, class T = POOMA_DEFAULT_POSITION_TYPE>
PointType_t UniformRectilinearMesh< Dim, T >::PositionsFunctor::operator() ( int  i0,
int  i1 
) const [inline]

template<int Dim, class T = POOMA_DEFAULT_POSITION_TYPE>
PointType_t UniformRectilinearMesh< Dim, T >::PositionsFunctor::operator() ( int  i0,
int  i1,
int  i2 
) const [inline]


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

Generated on Wed Mar 16 06:20:42 2011 for FreePOOMA by  doxygen 1.5.9