Chemical Data Processing Library C++ API - Version 1.2.0
Public Types | Public Member Functions | Friends | List of all members
CDPL::Math::GridReference< G > Class Template Reference

#include <Grid.hpp>

+ Inheritance diagram for CDPL::Math::GridReference< G >:

Public Types

typedef G GridType
 
typedef G::ValueType ValueType
 
typedef std::conditional< std::is_const< G >::value, typename G::ConstReference, typename G::Reference >::type Reference
 
typedef G::ConstReference ConstReference
 
typedef G::SizeType SizeType
 
typedef G::DifferenceType DifferenceType
 
typedef SelfType ClosureType
 
typedef const SelfType ConstClosureType
 
- Public Types inherited from CDPL::Math::GridExpression< GridReference< G > >
typedef GridReference< G > ExpressionType
 
- Public Types inherited from CDPL::Math::Expression< E >
typedef E ExpressionType
 

Public Member Functions

 GridReference (GridType &g)
 
Reference operator() (SizeType i)
 
ConstReference operator() (SizeType i) const
 
Reference operator() (SizeType i, SizeType j, SizeType k)
 
ConstReference operator() (SizeType i, SizeType j, SizeType k) const
 
SizeType getSize () const
 
SizeType getSize1 () const
 
SizeType getSize2 () const
 
SizeType getSize3 () const
 
SizeType getMaxSize () const
 
SizeType getMaxSize1 () const
 
SizeType getMaxSize2 () const
 
SizeType getMaxSize3 () const
 
bool isEmpty () const
 
const GridTypegetData () const
 
GridTypegetData ()
 
GridReferenceoperator= (const GridReference &r)
 
template<typename E >
GridReferenceoperator= (const GridExpression< E > &e)
 
template<typename E >
GridReferenceoperator+= (const GridExpression< E > &e)
 
template<typename E >
GridReferenceoperator-= (const GridExpression< E > &e)
 
template<typename T >
std::enable_if< IsScalar< T >::value, GridReference >::type & operator*= (const T &t)
 
template<typename T >
std::enable_if< IsScalar< T >::value, GridReference >::type & operator/= (const T &t)
 
template<typename E >
GridReferenceassign (const GridExpression< E > &e)
 
template<typename E >
GridReferenceplusAssign (const GridExpression< E > &e)
 
template<typename E >
GridReferenceminusAssign (const GridExpression< E > &e)
 
void swap (GridReference &r)
 
- Public Member Functions inherited from CDPL::Math::GridExpression< GridReference< G > >
const ExpressionTypeoperator() () const
 
ExpressionTypeoperator() ()
 

Friends

void swap (GridReference &r1, GridReference &r2)
 

Additional Inherited Members

- Protected Member Functions inherited from CDPL::Math::GridExpression< GridReference< G > >
 GridExpression ()
 
 ~GridExpression ()
 
- Protected Member Functions inherited from CDPL::Math::Expression< E >
 Expression ()
 
 ~Expression ()
 

Member Typedef Documentation

◆ GridType

template<typename G >
typedef G CDPL::Math::GridReference< G >::GridType

◆ ValueType

template<typename G >
typedef G::ValueType CDPL::Math::GridReference< G >::ValueType

◆ Reference

template<typename G >
typedef std::conditional<std::is_const<G>::value, typename G::ConstReference, typename G::Reference>::type CDPL::Math::GridReference< G >::Reference

◆ ConstReference

template<typename G >
typedef G::ConstReference CDPL::Math::GridReference< G >::ConstReference

◆ SizeType

template<typename G >
typedef G::SizeType CDPL::Math::GridReference< G >::SizeType

◆ DifferenceType

template<typename G >
typedef G::DifferenceType CDPL::Math::GridReference< G >::DifferenceType

◆ ClosureType

template<typename G >
typedef SelfType CDPL::Math::GridReference< G >::ClosureType

◆ ConstClosureType

template<typename G >
typedef const SelfType CDPL::Math::GridReference< G >::ConstClosureType

Constructor & Destructor Documentation

◆ GridReference()

template<typename G >
CDPL::Math::GridReference< G >::GridReference ( GridType g)
inlineexplicit

Member Function Documentation

◆ operator()() [1/4]

template<typename G >
Reference CDPL::Math::GridReference< G >::operator() ( SizeType  i)
inline

◆ operator()() [2/4]

template<typename G >
ConstReference CDPL::Math::GridReference< G >::operator() ( SizeType  i) const
inline

◆ operator()() [3/4]

template<typename G >
Reference CDPL::Math::GridReference< G >::operator() ( SizeType  i,
SizeType  j,
SizeType  k 
)
inline

◆ operator()() [4/4]

template<typename G >
ConstReference CDPL::Math::GridReference< G >::operator() ( SizeType  i,
SizeType  j,
SizeType  k 
) const
inline

◆ getSize()

template<typename G >
SizeType CDPL::Math::GridReference< G >::getSize ( ) const
inline

◆ getSize1()

template<typename G >
SizeType CDPL::Math::GridReference< G >::getSize1 ( ) const
inline

◆ getSize2()

template<typename G >
SizeType CDPL::Math::GridReference< G >::getSize2 ( ) const
inline

◆ getSize3()

template<typename G >
SizeType CDPL::Math::GridReference< G >::getSize3 ( ) const
inline

◆ getMaxSize()

template<typename G >
SizeType CDPL::Math::GridReference< G >::getMaxSize ( ) const
inline

◆ getMaxSize1()

template<typename G >
SizeType CDPL::Math::GridReference< G >::getMaxSize1 ( ) const
inline

◆ getMaxSize2()

template<typename G >
SizeType CDPL::Math::GridReference< G >::getMaxSize2 ( ) const
inline

◆ getMaxSize3()

template<typename G >
SizeType CDPL::Math::GridReference< G >::getMaxSize3 ( ) const
inline

◆ isEmpty()

template<typename G >
bool CDPL::Math::GridReference< G >::isEmpty ( ) const
inline

◆ getData() [1/2]

template<typename G >
const GridType& CDPL::Math::GridReference< G >::getData ( ) const
inline

◆ getData() [2/2]

template<typename G >
GridType& CDPL::Math::GridReference< G >::getData ( )
inline

◆ operator=() [1/2]

template<typename G >
GridReference& CDPL::Math::GridReference< G >::operator= ( const GridReference< G > &  r)
inline

◆ operator=() [2/2]

template<typename G >
template<typename E >
GridReference& CDPL::Math::GridReference< G >::operator= ( const GridExpression< E > &  e)
inline

◆ operator+=()

template<typename G >
template<typename E >
GridReference& CDPL::Math::GridReference< G >::operator+= ( const GridExpression< E > &  e)
inline

◆ operator-=()

template<typename G >
template<typename E >
GridReference& CDPL::Math::GridReference< G >::operator-= ( const GridExpression< E > &  e)
inline

◆ operator*=()

template<typename G >
template<typename T >
std::enable_if<IsScalar<T>::value, GridReference>::type& CDPL::Math::GridReference< G >::operator*= ( const T &  t)
inline

◆ operator/=()

template<typename G >
template<typename T >
std::enable_if<IsScalar<T>::value, GridReference>::type& CDPL::Math::GridReference< G >::operator/= ( const T &  t)
inline

◆ assign()

template<typename G >
template<typename E >
GridReference& CDPL::Math::GridReference< G >::assign ( const GridExpression< E > &  e)
inline

◆ plusAssign()

template<typename G >
template<typename E >
GridReference& CDPL::Math::GridReference< G >::plusAssign ( const GridExpression< E > &  e)
inline

◆ minusAssign()

template<typename G >
template<typename E >
GridReference& CDPL::Math::GridReference< G >::minusAssign ( const GridExpression< E > &  e)
inline

◆ swap()

template<typename G >
void CDPL::Math::GridReference< G >::swap ( GridReference< G > &  r)
inline

Friends And Related Function Documentation

◆ swap

template<typename G >
void swap ( GridReference< G > &  r1,
GridReference< G > &  r2 
)
friend

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