ESyS-Particle  2.3.4
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< PosValueVectorIterator
 
typedef ForwardConstIterator< PosValueVectorConstIterator
 

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

◆ ConstIterator

template<typename TmplValue >
typedef ForwardConstIterator<PosValueVector> esys::lsm::CartesianGrid< TmplValue >::Cell::ConstIterator

◆ Iterator

template<typename TmplValue >
typedef ForwardIterator<PosValueVector> esys::lsm::CartesianGrid< TmplValue >::Cell::Iterator

◆ PosValueVector

template<typename TmplValue >
typedef std::vector<PosValuePair> esys::lsm::CartesianGrid< TmplValue >::Cell::PosValueVector

Constructor & Destructor Documentation

◆ Cell()

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

Member Function Documentation

◆ clear()

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.

◆ getBox()

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

◆ getGrid() [1/2]

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:

◆ getGrid() [2/2]

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

◆ getIterator() [1/2]

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

◆ getIterator() [2/2]

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

◆ getPos()

template<typename TmplValue >
const Vec3& esys::lsm::CartesianGrid< TmplValue >::Cell::getPos ( ) const
inline

◆ insertRef() [1/2]

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

◆ insertRef() [2/2]

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:

◆ setGrid()

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

◆ setPos()

template<typename TmplValue >
void esys::lsm::CartesianGrid< TmplValue >::Cell::setPos ( const Vec3 pos)
inline

◆ size()

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

◆ m_pGrid

◆ m_pointerVector

◆ m_pos


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