CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type > Struct Template Reference

#include <CASM_TMP.hh>

Detailed Description

template<typename Container, typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
struct CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >

Helper Functor for Counter container access using operator()

Definition at line 165 of file CASM_TMP.hh.

Public Types

typedef _value_type value_type
 
typedef _size_type size_type
 

Public Member Functions

 ParenthesesAccess ()
 
ParenthesesAccessoperator= (const ParenthesesAccess &)
 
value_typeoperator() (Container &container, size_type index) const
 Identical to 'return container(index);'. More...
 
const value_typeoperator() (const Container &container, size_type index) const
 Identical to 'return container(index);'. More...
 
value_typeoperator() (Container &container, size_type i, size_type j) const
 Identical to 'return container(index);'. More...
 
const value_typeoperator() (const Container &container, size_type i, size_type j) const
 Identical to 'return container(index);'. More...
 

Static Public Member Functions

static value_typeat (Container &container, size_type index)
 Identical to 'return container(index);'. More...
 
static const value_typeat (const Container &container, size_type index)
 Identical to 'return container(index);'. More...
 
static value_typeat (Container &container, size_type i, size_type j)
 Identical to 'return container(i,j);'. More...
 
static const value_typeat (const Container &container, size_type i, size_type j)
 Identical to 'return container(i,j);'. More...
 

Member Typedef Documentation

◆ size_type

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
typedef _size_type CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::size_type

Definition at line 167 of file CASM_TMP.hh.

◆ value_type

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
typedef _value_type CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::value_type

Definition at line 166 of file CASM_TMP.hh.

Constructor & Destructor Documentation

◆ ParenthesesAccess()

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::ParenthesesAccess ( )
inline

Definition at line 169 of file CASM_TMP.hh.

Member Function Documentation

◆ at() [1/4]

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
static const value_type& CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::at ( const Container &  container,
size_type  i,
size_type  j 
)
inlinestatic

Identical to 'return container(i,j);'.

Definition at line 210 of file CASM_TMP.hh.

◆ at() [2/4]

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
static const value_type& CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::at ( const Container &  container,
size_type  index 
)
inlinestatic

Identical to 'return container(index);'.

Definition at line 200 of file CASM_TMP.hh.

◆ at() [3/4]

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
static value_type& CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::at ( Container &  container,
size_type  i,
size_type  j 
)
inlinestatic

Identical to 'return container(i,j);'.

Definition at line 205 of file CASM_TMP.hh.

◆ at() [4/4]

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
static value_type& CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::at ( Container &  container,
size_type  index 
)
inlinestatic

Identical to 'return container(index);'.

Definition at line 195 of file CASM_TMP.hh.

◆ operator()() [1/4]

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
const value_type& CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::operator() ( const Container &  container,
size_type  i,
size_type  j 
) const
inline

Identical to 'return container(index);'.

Definition at line 189 of file CASM_TMP.hh.

◆ operator()() [2/4]

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
const value_type& CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::operator() ( const Container &  container,
size_type  index 
) const
inline

Identical to 'return container(index);'.

Definition at line 178 of file CASM_TMP.hh.

◆ operator()() [3/4]

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
value_type& CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::operator() ( Container &  container,
size_type  i,
size_type  j 
) const
inline

Identical to 'return container(index);'.

Definition at line 184 of file CASM_TMP.hh.

◆ operator()() [4/4]

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
value_type& CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::operator() ( Container &  container,
size_type  index 
) const
inline

Identical to 'return container(index);'.

Definition at line 173 of file CASM_TMP.hh.

◆ operator=()

template<typename Container , typename _value_type = typename Container::value_type, typename _size_type = typename Container::size_type>
ParenthesesAccess& CASM::CASM_TMP::ParenthesesAccess< Container, _value_type, _size_type >::operator= ( const ParenthesesAccess< Container, _value_type, _size_type > &  )
inline

Definition at line 170 of file CASM_TMP.hh.


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