CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <MultiCounter.hh>
Close relative of the Counter and IsoCounter class. MULTICOUNTER counts over multiple counter-type objects, enumerating all allowed states of all allowed counters It has a template parameter CounterType, which must be a counter class that has the same interface as Counter and IsoCounter
Definition at line 75 of file MultiCounter.hh.
Public Types | |
typedef CounterType::value_type | value_type |
typedef CounterType::size_type | size_type |
typedef CounterValueIterator< MultiCounter > | const_value_iterator |
Public Member Functions | |
~MultiCounter () | |
void | operator++ (int) |
operator const Array< CounterType > & () const | |
Index | size () const |
const_value_iterator | value_begin () const |
const_value_iterator | value_end () const |
void | push_back (const CounterType &new_counter) |
CounterType & | back () |
const CounterType & | back () const |
CounterType & | operator[] (Index i) |
const CounterType & | operator[] (Index i) const |
const Array< CounterType > & | current () const |
const Array< CounterType > & | operator() () const |
MultiCounter () | |
MultiCounter (const Array< CounterType > &_counter) | |
MultiCounter & | operator++ () |
bool | operator+= (Index steps) |
bool | valid () const |
void | reset () |
Protected Attributes | |
bool | m_is_valid |
Array< CounterType > | m_counters |
typedef CounterValueIterator<MultiCounter> CASM::MultiCounter< CounterType >::const_value_iterator |
Definition at line 83 of file MultiCounter.hh.
typedef CounterType::size_type CASM::MultiCounter< CounterType >::size_type |
Definition at line 82 of file MultiCounter.hh.
typedef CounterType::value_type CASM::MultiCounter< CounterType >::value_type |
Definition at line 81 of file MultiCounter.hh.
CASM::MultiCounter< CounterType >::MultiCounter |
Definition at line 133 of file MultiCounter.hh.
CASM::MultiCounter< CounterType >::MultiCounter | ( | const Array< CounterType > & | _counter | ) |
Definition at line 138 of file MultiCounter.hh.
|
inline |
Definition at line 87 of file MultiCounter.hh.
|
inline |
Definition at line 119 of file MultiCounter.hh.
|
inline |
Definition at line 121 of file MultiCounter.hh.
|
inline |
Definition at line 127 of file MultiCounter.hh.
|
inline |
Definition at line 95 of file MultiCounter.hh.
|
inline |
Definition at line 129 of file MultiCounter.hh.
MultiCounter< CounterType > & CASM::MultiCounter< CounterType >::operator++ |
Definition at line 155 of file MultiCounter.hh.
|
inline |
Definition at line 89 of file MultiCounter.hh.
bool CASM::MultiCounter< CounterType >::operator+= | ( | Index | steps | ) |
Definition at line 176 of file MultiCounter.hh.
|
inline |
Definition at line 123 of file MultiCounter.hh.
|
inline |
Definition at line 125 of file MultiCounter.hh.
|
inline |
Definition at line 114 of file MultiCounter.hh.
void CASM::MultiCounter< CounterType >::reset |
Definition at line 144 of file MultiCounter.hh.
|
inline |
Definition at line 97 of file MultiCounter.hh.
bool CASM::MultiCounter< CounterType >::valid |
Definition at line 150 of file MultiCounter.hh.
|
inline |
Definition at line 99 of file MultiCounter.hh.
|
inline |
Definition at line 106 of file MultiCounter.hh.
|
protected |
Definition at line 78 of file MultiCounter.hh.
|
protected |
Definition at line 77 of file MultiCounter.hh.