|
CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <Enumerator.hh>
Inheritance diagram for CASM::ValEnumerator< ValueType, IsConst >:Definition at line 171 of file Enumerator.hh.
Public Types | |
| typedef ValueType | value_type |
| typedef CASM_TMP::ConstSwitch< IsConst, ValueType > & | reference |
| typedef long | step_type |
Public Member Functions | |
| ValEnumerator () | |
| virtual | ~ValEnumerator () |
| reference | current () const |
| Access the current ObjectType by reference. More... | |
| virtual std::string | name () const=0 |
| Derived enumerators must implement name, via ENUM_MEMBERS. More... | |
| virtual jsonParser | source (step_type step) const |
| step_type | step () const |
| Increments with each enumerated object. More... | |
| bool | valid () const |
| Returns false if enumeration is complete. More... | |
| step_type | step () const |
| Increments with each enumerated object. More... | |
| bool | valid () const |
| Returns false if enumeration is complete. More... | |
| virtual jsonParser | source (step_type step) const |
| virtual std::string | name () const =0 |
| Derived enumerators must implement name, via ENUM_MEMBERS. More... | |
Protected Member Functions | |
| void | _initialize (CASM_TMP::ConstSwitch< IsConst, value_type > *_initial) |
| void | _set_current_ptr (CASM_TMP::ConstSwitch< IsConst, value_type > *_new) |
| Change the pointer. More... | |
| void | _initialize () |
| void | _decrement_step () |
| Decrement current step value. More... | |
| void | _increment_step () |
| Increment current step value. More... | |
| void | _invalidate () |
| Call if enumeration complete. More... | |
| void | _set_step (step_type val) |
| Set current step value. More... | |
| void | _set_step (step_type val) |
| Set current step value. More... | |
| void | _validate () |
| Used if random access enumerator step is moved into valid range. More... | |
Private Attributes | |
| CASM_TMP::ConstSwitch< IsConst, value_type > * | m_current_ptr |
| bool | m_valid |
| step_type | m_step |
| typedef CASM_TMP::ConstSwitch<IsConst, ValueType>& CASM::ValEnumerator< ValueType, IsConst >::reference |
Definition at line 174 of file Enumerator.hh.
| typedef long CASM::EnumeratorBase::step_type |
Definition at line 107 of file Enumerator.hh.
| typedef ValueType CASM::ValEnumerator< ValueType, IsConst >::value_type |
Definition at line 173 of file Enumerator.hh.
|
inline |
Definition at line 177 of file Enumerator.hh.
|
inlinevirtual |
Definition at line 179 of file Enumerator.hh.
|
inlineprotected |
Decrement current step value.
Definition at line 156 of file Enumerator.hh.
|
inlineprotected |
Increment current step value.
Definition at line 153 of file Enumerator.hh.
|
inlineprotected |
|
inlineprotected |
Initialize
Definition at line 197 of file Enumerator.hh.
|
inlineprotected |
Call if enumeration complete.
Definition at line 159 of file Enumerator.hh.
|
inlineprotected |
Change the pointer.
Definition at line 215 of file Enumerator.hh.
|
inlineprotectedinherited |
Set current step value.
Definition at line 150 of file Enumerator.hh.
|
inlineprotected |
Set current step value.
Definition at line 150 of file Enumerator.hh.
|
inlineprotectedinherited |
Used if random access enumerator step is moved into valid range.
Definition at line 162 of file Enumerator.hh.
|
inline |
Access the current ObjectType by reference.
Definition at line 211 of file Enumerator.hh.
|
pure virtualinherited |
Derived enumerators must implement name, via ENUM_MEMBERS.
Implemented in CASM::LatticeEnumEquivalents, CASM::SuperConfigEnum, CASM::ScelEnumEquivalents, CASM::ScelEnumByProps, CASM::ConfigEnumStrain, CASM::ConfigEnumSiteDoFs, CASM::ConfigEnumRandomOccupations, CASM::ConfigEnumRandomLocal, CASM::ConfigEnumByPermutation, and CASM::ConfigEnumAllOccupations.
| virtual std::string CASM::EnumeratorBase::name |
Derived enumerators must implement name, via ENUM_MEMBERS.
|
inlinevirtualinherited |
Default Object source just uses step#
Returns:
Definition at line 129 of file Enumerator.hh.
|
inline |
|
inlineinherited |
Increments with each enumerated object.
Definition at line 115 of file Enumerator.hh.
|
inline |
Increments with each enumerated object.
Definition at line 115 of file Enumerator.hh.
|
inlineinherited |
Returns false if enumeration is complete.
Definition at line 118 of file Enumerator.hh.
|
inline |
Returns false if enumeration is complete.
Definition at line 118 of file Enumerator.hh.
|
private |
Definition at line 220 of file Enumerator.hh.
|
privateinherited |
Definition at line 167 of file Enumerator.hh.
|
privateinherited |
Definition at line 165 of file Enumerator.hh.