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

#include <BaseCounter.hh>

Detailed Description

template<typename CounterType>
class CASM::CounterValueIterator< CounterType >

Definition at line 16 of file BaseCounter.hh.

Public Types

typedef CounterType::value_type value_type
 
typedef CounterType::size_type difference_type
 
typedef CounterType::size_type size_type
 
typedef std::random_access_iterator_tag iterator_category
 
typedef const value_typereference
 
typedef const value_typepointer
 

Public Member Functions

 CounterValueIterator (CounterType const *_counter_ptr=nullptr, size_type _ind=0)
 
bool operator== (const CounterValueIterator &_it)
 
bool operator!= (const CounterValueIterator &_it)
 
CounterValueIteratoroperator++ ()
 
CounterValueIterator operator++ (int)
 
reference operator* () const
 
pointer operator-> () const
 

Private Attributes

CounterType const * m_counter_ptr
 
size_type m_ind
 

Member Typedef Documentation

◆ difference_type

template<typename CounterType >
typedef CounterType::size_type CASM::CounterValueIterator< CounterType >::difference_type

Definition at line 19 of file BaseCounter.hh.

◆ iterator_category

template<typename CounterType >
typedef std::random_access_iterator_tag CASM::CounterValueIterator< CounterType >::iterator_category

Definition at line 21 of file BaseCounter.hh.

◆ pointer

template<typename CounterType >
typedef const value_type* CASM::CounterValueIterator< CounterType >::pointer

Definition at line 23 of file BaseCounter.hh.

◆ reference

template<typename CounterType >
typedef const value_type& CASM::CounterValueIterator< CounterType >::reference

Definition at line 22 of file BaseCounter.hh.

◆ size_type

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

Definition at line 20 of file BaseCounter.hh.

◆ value_type

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

Definition at line 18 of file BaseCounter.hh.

Constructor & Destructor Documentation

◆ CounterValueIterator()

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

Definition at line 25 of file BaseCounter.hh.

Member Function Documentation

◆ operator!=()

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

Definition at line 37 of file BaseCounter.hh.

◆ operator*()

template<typename CounterType >
reference CASM::CounterValueIterator< CounterType >::operator* ( ) const
inline

Definition at line 50 of file BaseCounter.hh.

◆ operator++() [1/2]

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

Definition at line 39 of file BaseCounter.hh.

◆ operator++() [2/2]

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

Definition at line 44 of file BaseCounter.hh.

◆ operator->()

template<typename CounterType >
pointer CASM::CounterValueIterator< CounterType >::operator-> ( ) const
inline

Definition at line 51 of file BaseCounter.hh.

◆ operator==()

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

Definition at line 33 of file BaseCounter.hh.

Member Data Documentation

◆ m_counter_ptr

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

Definition at line 54 of file BaseCounter.hh.

◆ m_ind

template<typename CounterType >
size_type CASM::CounterValueIterator< CounterType >::m_ind
private

Definition at line 55 of file BaseCounter.hh.


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