CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::CounterValueIterator< MultiCounter< SubCounterType > > Class Template Reference

#include <MultiCounter.hh>

Detailed Description

template<typename SubCounterType>
class CASM::CounterValueIterator< MultiCounter< SubCounterType > >

Definition at line 17 of file MultiCounter.hh.

Public Types

typedef MultiCounter< SubCounterType > CounterType
 
typedef CounterType::value_type value_type
 
typedef CounterType::size_type size_type
 
typedef SubCounterType::const_value_iterator sub_iterator
 

Public Member Functions

 CounterValueIterator (CounterType const *_counter_ptr=nullptr, size_type _ind=0, sub_iterator _sub_iter=sub_iterator())
 
bool operator== (const CounterValueIterator &_it)
 
bool operator!= (const CounterValueIterator &_it)
 
CounterValueIteratoroperator++ ()
 
CounterValueIterator operator++ (int)
 
const value_typeoperator* () const
 
value_type const * operator-> () const
 

Private Attributes

CounterType const * m_counter_ptr
 
size_type m_ind
 
sub_iterator m_sub_iter
 

Member Typedef Documentation

◆ CounterType

template<typename SubCounterType >
typedef MultiCounter<SubCounterType> CASM::CounterValueIterator< MultiCounter< SubCounterType > >::CounterType

Definition at line 19 of file MultiCounter.hh.

◆ size_type

template<typename SubCounterType >
typedef CounterType::size_type CASM::CounterValueIterator< MultiCounter< SubCounterType > >::size_type

Definition at line 21 of file MultiCounter.hh.

◆ sub_iterator

template<typename SubCounterType >
typedef SubCounterType::const_value_iterator CASM::CounterValueIterator< MultiCounter< SubCounterType > >::sub_iterator

Definition at line 22 of file MultiCounter.hh.

◆ value_type

template<typename SubCounterType >
typedef CounterType::value_type CASM::CounterValueIterator< MultiCounter< SubCounterType > >::value_type

Definition at line 20 of file MultiCounter.hh.

Constructor & Destructor Documentation

◆ CounterValueIterator()

template<typename SubCounterType >
CASM::CounterValueIterator< MultiCounter< SubCounterType > >::CounterValueIterator ( CounterType const *  _counter_ptr = nullptr,
size_type  _ind = 0,
sub_iterator  _sub_iter = sub_iterator() 
)
inline

Definition at line 24 of file MultiCounter.hh.

Member Function Documentation

◆ operator!=()

template<typename SubCounterType >
bool CASM::CounterValueIterator< MultiCounter< SubCounterType > >::operator!= ( const CounterValueIterator< MultiCounter< SubCounterType > > &  _it)
inline

Definition at line 34 of file MultiCounter.hh.

◆ operator*()

template<typename SubCounterType >
const value_type& CASM::CounterValueIterator< MultiCounter< SubCounterType > >::operator* ( ) const
inline

Definition at line 56 of file MultiCounter.hh.

◆ operator++() [1/2]

template<typename SubCounterType >
CounterValueIterator& CASM::CounterValueIterator< MultiCounter< SubCounterType > >::operator++ ( )
inline

Definition at line 36 of file MultiCounter.hh.

◆ operator++() [2/2]

template<typename SubCounterType >
CounterValueIterator CASM::CounterValueIterator< MultiCounter< SubCounterType > >::operator++ ( int  )
inline

Definition at line 50 of file MultiCounter.hh.

◆ operator->()

template<typename SubCounterType >
value_type const* CASM::CounterValueIterator< MultiCounter< SubCounterType > >::operator-> ( ) const
inline

Definition at line 57 of file MultiCounter.hh.

◆ operator==()

template<typename SubCounterType >
bool CASM::CounterValueIterator< MultiCounter< SubCounterType > >::operator== ( const CounterValueIterator< MultiCounter< SubCounterType > > &  _it)
inline

Definition at line 30 of file MultiCounter.hh.

Member Data Documentation

◆ m_counter_ptr

template<typename SubCounterType >
CounterType const* CASM::CounterValueIterator< MultiCounter< SubCounterType > >::m_counter_ptr
private

Definition at line 64 of file MultiCounter.hh.

◆ m_ind

template<typename SubCounterType >
size_type CASM::CounterValueIterator< MultiCounter< SubCounterType > >::m_ind
private

Definition at line 65 of file MultiCounter.hh.

◆ m_sub_iter

template<typename SubCounterType >
sub_iterator CASM::CounterValueIterator< MultiCounter< SubCounterType > >::m_sub_iter
private

Definition at line 66 of file MultiCounter.hh.


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