ESyS-Particle  2.3
esys::lsm::CartesianGrid< TmplValue >::Cell Class Reference

#include <CartesianGrid.h>

Collaboration diagram for esys::lsm::CartesianGrid< TmplValue >::Cell:

Classes

class  PosValuePair
 

Public Types

typedef std::vector< PosValuePairPosValueVector
 
typedef ForwardIterator
< PosValueVector
Iterator
 
typedef ForwardConstIterator
< PosValueVector
ConstIterator
 

Public Member Functions

 Cell ()
 
void insertRef (reference value)
 
void insertRef (const Vec3 &pos, reference value)
 
void setPos (const Vec3 &pos)
 
const Vec3getPos () const
 
CartesianGridgetGrid ()
 
const CartesianGridgetGrid () const
 
void setGrid (CartesianGrid &grid)
 
BoundingBox getBox () const
 
int size () const
 
void clear ()
 
ConstIterator getIterator () const
 
Iterator getIterator ()
 

Private Attributes

Vec3 m_pos
 
PosValueVector m_pointerVector
 
CartesianGridm_pGrid
 

Member Typedef Documentation

template<typename TmplValue>
typedef ForwardConstIterator<PosValueVector> esys::lsm::CartesianGrid< TmplValue >::Cell::ConstIterator
template<typename TmplValue>
typedef ForwardIterator<PosValueVector> esys::lsm::CartesianGrid< TmplValue >::Cell::Iterator
template<typename TmplValue>
typedef std::vector<PosValuePair> esys::lsm::CartesianGrid< TmplValue >::Cell::PosValueVector

Constructor & Destructor Documentation

template<typename TmplValue>
esys::lsm::CartesianGrid< TmplValue >::Cell::Cell ( )
inline

Member Function Documentation

template<typename TmplValue>
void esys::lsm::CartesianGrid< TmplValue >::Cell::clear ( )
inline

Clears all elements from this cell.

References esys::lsm::CartesianGrid< TmplValue >::Cell::m_pointerVector.

template<typename TmplValue>
BoundingBox esys::lsm::CartesianGrid< TmplValue >::Cell::getBox ( ) const
inline
template<typename TmplValue>
CartesianGrid& esys::lsm::CartesianGrid< TmplValue >::Cell::getGrid ( )
inline

References esys::lsm::CartesianGrid< TmplValue >::Cell::m_pGrid.

Referenced by esys::lsm::CartesianGrid< TmplValue >::Cell::getBox().

Here is the caller graph for this function:

template<typename TmplValue>
const CartesianGrid& esys::lsm::CartesianGrid< TmplValue >::Cell::getGrid ( ) const
inline
template<typename TmplValue>
ConstIterator esys::lsm::CartesianGrid< TmplValue >::Cell::getIterator ( ) const
inline
template<typename TmplValue>
Iterator esys::lsm::CartesianGrid< TmplValue >::Cell::getIterator ( )
inline
template<typename TmplValue>
const Vec3& esys::lsm::CartesianGrid< TmplValue >::Cell::getPos ( ) const
inline
template<typename TmplValue>
void esys::lsm::CartesianGrid< TmplValue >::Cell::insertRef ( reference  value)
inline

References esys::lsm::CartesianGrid< TmplValue >::Cell::getPos(), and esys::lsm::CartesianGrid< TmplValue >::Cell::m_pointerVector.

Referenced by esys::lsm::CartesianGrid< Tensor >::insertRef().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename TmplValue>
void esys::lsm::CartesianGrid< TmplValue >::Cell::insertRef ( const Vec3 pos,
reference  value 
)
inline
template<typename TmplValue>
void esys::lsm::CartesianGrid< TmplValue >::Cell::setGrid ( CartesianGrid grid)
inline
template<typename TmplValue>
void esys::lsm::CartesianGrid< TmplValue >::Cell::setPos ( const Vec3 pos)
inline
template<typename TmplValue>
int esys::lsm::CartesianGrid< TmplValue >::Cell::size ( ) const
inline

Return the number of elements in this cell.

References esys::lsm::CartesianGrid< TmplValue >::Cell::m_pointerVector.

Member Data Documentation


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