Public Member Functions | Private Attributes

LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE > Class Template Reference

Manages access to member variables of cells from generic Writer/Steerer classes. More...

#include <dataaccessor.h>

Collaboration diagram for LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DataAccessor (const std::string &variableName, const std::string &variableType)
virtual ~DataAccessor ()
virtual MEMBER_TYPE get (const CELL_TYPE &)=0
virtual void get (const CELL_TYPE &, void *)=0
virtual void set (CELL_TYPE *, void *)=0
virtual std::size_t memberSize ()=0
const std::string & name () const
const std::string type () const

Private Attributes

std::string myName
std::string myType

Detailed Description

template<typename CELL_TYPE, typename MEMBER_TYPE>
class LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >

Manages access to member variables of cells from generic Writer/Steerer classes.

DataAccessor usually serves as a base class for a macro-generated specialization (see DEFINE_DATAACCESSOR).


Constructor & Destructor Documentation

template<typename CELL_TYPE , typename MEMBER_TYPE >
LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::DataAccessor ( const std::string &  variableName,
const std::string &  variableType 
) [inline]
template<typename CELL_TYPE , typename MEMBER_TYPE >
virtual LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::~DataAccessor (  )  [inline, virtual]

Member Function Documentation

template<typename CELL_TYPE , typename MEMBER_TYPE >
virtual MEMBER_TYPE LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::get ( const CELL_TYPE &   )  [pure virtual]
template<typename CELL_TYPE , typename MEMBER_TYPE >
virtual void LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::get ( const CELL_TYPE &  ,
void *   
) [pure virtual]
template<typename CELL_TYPE , typename MEMBER_TYPE >
virtual std::size_t LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::memberSize (  )  [pure virtual]
template<typename CELL_TYPE , typename MEMBER_TYPE >
const std::string& LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::name (  )  const [inline]
template<typename CELL_TYPE , typename MEMBER_TYPE >
virtual void LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::set ( CELL_TYPE *  ,
void *   
) [pure virtual]
template<typename CELL_TYPE , typename MEMBER_TYPE >
const std::string LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::type (  )  const [inline]

Member Data Documentation

template<typename CELL_TYPE , typename MEMBER_TYPE >
std::string LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::myName [private]
template<typename CELL_TYPE , typename MEMBER_TYPE >
std::string LibGeoDecomp::DataAccessor< CELL_TYPE, MEMBER_TYPE >::myType [private]

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