CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::CASM_TMP::BracketAccess< 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::BracketAccess< Container, _value_type, _size_type >

Helper Functor for Counter container access using operator[].

Definition at line 110 of file CASM_TMP.hh.

Public Types

typedef _value_type value_type
 
typedef _size_type size_type
 

Public Member Functions

 BracketAccess ()
 
BracketAccessoperator= (const BracketAccess &)
 
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[i][j];'. More...
 
const value_typeoperator() (const Container &container, size_type i, size_type j) const
 Identical to 'return container[i][j];'. 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::BracketAccess< Container, _value_type, _size_type >::size_type

Definition at line 112 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::BracketAccess< Container, _value_type, _size_type >::value_type

Definition at line 111 of file CASM_TMP.hh.

Constructor & Destructor Documentation

◆ BracketAccess()

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

Definition at line 114 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::BracketAccess< 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 155 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::BracketAccess< Container, _value_type, _size_type >::at ( const Container &  container,
size_type  index 
)
inlinestatic

Identical to 'return container[index];'.

Definition at line 145 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::BracketAccess< Container, _value_type, _size_type >::at ( Container &  container,
size_type  i,
size_type  j 
)
inlinestatic

Identical to 'return container[i][j];'.

Definition at line 150 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::BracketAccess< Container, _value_type, _size_type >::at ( Container &  container,
size_type  index 
)
inlinestatic

Identical to 'return container[index];'.

Definition at line 140 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::BracketAccess< Container, _value_type, _size_type >::operator() ( const Container &  container,
size_type  i,
size_type  j 
) const
inline

Identical to 'return container[i][j];'.

Definition at line 134 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::BracketAccess< Container, _value_type, _size_type >::operator() ( const Container &  container,
size_type  index 
) const
inline

Identical to 'return container[index];'.

Definition at line 123 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::BracketAccess< Container, _value_type, _size_type >::operator() ( Container &  container,
size_type  i,
size_type  j 
) const
inline

Identical to 'return container[i][j];'.

Definition at line 129 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::BracketAccess< Container, _value_type, _size_type >::operator() ( Container &  container,
size_type  index 
) const
inline

Identical to 'return container[index];'.

Definition at line 118 of file CASM_TMP.hh.

◆ operator=()

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

Definition at line 115 of file CASM_TMP.hh.


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