CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <RandomAccessEnumerator.hh>
RandomAccessEnumIterator implemenation.
Definition at line 31 of file RandomAccessEnumerator.hh.
Public Types | |
typedef step_type | difference_type |
typedef ValueType | value_type |
typedef ValEnumerator< ValueType, IsConst >::reference | reference |
typedef EnumeratorBase::step_type | step_type |
Public Member Functions | |
RandomAccessEnumIteratorBase () | |
RandomAccessEnumIteratorBase (RandomAccessEnumeratorBase< ValueType, IsConst > &enumerator, bool is_end) | |
step_type | step () const override |
bool | is_end () const override |
std::unique_ptr< RandomAccessEnumIteratorBase > | clone () const |
virtual step_type | step () const=0 |
virtual bool | is_end () const=0 |
Returns true if 'end' iterator. More... | |
std::string | name () const |
Uses enumerator class 'name' implementation. More... | |
std::string | name () const |
Uses enumerator class 'name' implementation. More... | |
jsonParser | source () const |
jsonParser | source () const |
Protected Member Functions | |
bool | _constructed_as_end () const |
void | _assert_ptr () const |
void | _assert_ptr () const |
void | _assert_same_ptr (const EnumIteratorBase &other) const |
void | _assert_same_ptr (const EnumIteratorBase &other) const |
void | _assert_valid () const |
void | _assert_valid () const |
EnumeratorBase * | _enum_ptr () |
EnumeratorBase * | _enum_ptr () const |
EnumeratorBase * | _enum_ptr () const |
bool | equal (const EnumIteratorBase &other) const |
boost::iterator_facade implementation More... | |
bool | equal (const EnumIteratorBase &other) const |
boost::iterator_facade implementation More... | |
Private Member Functions | |
reference | dereference () const override |
boost::iterator_facade implementation More... | |
void | increment () override |
boost::iterator_facade implementation More... | |
void | decrement () |
boost::iterator_facade implementation More... | |
void | advance (step_type n) |
boost::iterator_facade implementation More... | |
difference_type | distance_to (const RandomAccessEnumIteratorBase &B) const |
boost::iterator_facade implementation More... | |
RandomAccessEnumIteratorBase< ValueType, IsConst > * | _clone () const override |
clone implementation More... | |
RandomAccessEnumeratorBase< ValueType, IsConst > & | _enum () |
static_cast enumerator pointer to RandomAccessEnumeratorBase& More... | |
RandomAccessEnumeratorBase< ValueType, IsConst > & | _enum () const |
static_cast enumerator pointer to RandomAccessEnumeratorBase& More... | |
Private Attributes | |
friend | RandomAccessEnumIterator< ValueType, IsConst > |
step_type | m_it_step |
friend | InputEnumIterator< ValueType, IsConst > |
bool | m_constructed_as_end |
EnumeratorBase * | m_enum_ptr |
typedef step_type CASM::RandomAccessEnumIteratorBase< ValueType, IsConst >::difference_type |
Definition at line 39 of file RandomAccessEnumerator.hh.
|
inherited |
Definition at line 310 of file Enumerator.hh.
|
inherited |
Definition at line 225 of file Enumerator.hh.
|
inherited |
Definition at line 309 of file Enumerator.hh.
|
inline |
Definition at line 41 of file RandomAccessEnumerator.hh.
|
inline |
Definition at line 43 of file RandomAccessEnumerator.hh.
|
inlineprotectedinherited |
Definition at line 262 of file Enumerator.hh.
|
inlineprotectedinherited |
Definition at line 262 of file Enumerator.hh.
|
inlineprotectedinherited |
Definition at line 256 of file Enumerator.hh.
|
inlineprotectedinherited |
Definition at line 256 of file Enumerator.hh.
|
inlineprotectedinherited |
Definition at line 266 of file Enumerator.hh.
|
inlineprotectedinherited |
Definition at line 266 of file Enumerator.hh.
|
inlineoverrideprivatevirtual |
clone implementation
Reimplemented from CASM::InputEnumIteratorBase< ValueType, true >.
Definition at line 101 of file RandomAccessEnumerator.hh.
|
inlineprotectedinherited |
Definition at line 63 of file InputEnumerator.hh.
|
inlineprivate |
static_cast enumerator pointer to RandomAccessEnumeratorBase&
Definition at line 106 of file RandomAccessEnumerator.hh.
|
inlineprivate |
static_cast enumerator pointer to RandomAccessEnumeratorBase&
Definition at line 112 of file RandomAccessEnumerator.hh.
|
inlineprotectedinherited |
Definition at line 290 of file Enumerator.hh.
|
inlineprotectedinherited |
Definition at line 292 of file Enumerator.hh.
|
inlineprotectedinherited |
Definition at line 292 of file Enumerator.hh.
|
inlineprivate |
boost::iterator_facade implementation
Definition at line 93 of file RandomAccessEnumerator.hh.
|
inline |
Definition at line 71 of file RandomAccessEnumerator.hh.
|
inlineprivate |
boost::iterator_facade implementation
Definition at line 90 of file RandomAccessEnumerator.hh.
|
inlineoverrideprivatevirtual |
boost::iterator_facade implementation
Reimplemented from CASM::InputEnumIteratorBase< ValueType, true >.
Definition at line 81 of file RandomAccessEnumerator.hh.
|
inlineprivate |
boost::iterator_facade implementation
Definition at line 96 of file RandomAccessEnumerator.hh.
|
inlineprotectedinherited |
boost::iterator_facade implementation
Definition at line 275 of file Enumerator.hh.
|
inlineprotectedinherited |
boost::iterator_facade implementation
Definition at line 275 of file Enumerator.hh.
|
inlineoverrideprivatevirtual |
boost::iterator_facade implementation
Reimplemented from CASM::InputEnumIteratorBase< ValueType, true >.
Definition at line 87 of file RandomAccessEnumerator.hh.
|
inlineoverridevirtual |
Check if end iterator
Returns true if:
Reimplemented from CASM::InputEnumIteratorBase< ValueType, true >.
Definition at line 66 of file RandomAccessEnumerator.hh.
|
inherited |
Returns true if 'end' iterator.
|
inlineinherited |
Uses enumerator class 'name' implementation.
Definition at line 246 of file Enumerator.hh.
|
inlineinherited |
Uses enumerator class 'name' implementation.
Definition at line 32 of file Enumerator.hh.
|
inlineinherited |
Uses 'step' and enumerator class 'source' implementation
Definition at line 243 of file Enumerator.hh.
|
inlineinherited |
Uses 'step' and enumerator class 'source' implementation
Definition at line 33 of file Enumerator.hh.
|
inlineoverridevirtual |
Return current step number
Reimplemented from CASM::InputEnumIteratorBase< ValueType, true >.
Definition at line 59 of file RandomAccessEnumerator.hh.
|
inherited |
Return current step number
|
privateinherited |
Definition at line 18 of file InputEnumerator.hh.
|
privateinherited |
Definition at line 86 of file InputEnumerator.hh.
|
privateinherited |
Definition at line 302 of file Enumerator.hh.
|
private |
Definition at line 117 of file RandomAccessEnumerator.hh.
|
private |
Definition at line 33 of file RandomAccessEnumerator.hh.