CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM::ValEnumIterator< ValueType, IsConst > Class Template Referenceabstract

#include <Enumerator.hh>

+ Inheritance diagram for CASM::ValEnumIterator< ValueType, IsConst >:

Detailed Description

template<typename ValueType, bool IsConst = true>
class CASM::ValEnumIterator< ValueType, IsConst >

Definition at line 356 of file Enumerator.hh.

Public Types

typedef ValueType value_type
 
typedef ValEnumerator
< ValueType, IsConst >
::reference 
reference
 
typedef EnumeratorBase::step_type step_type
 

Public Member Functions

 ValEnumIterator ()
 
 ValEnumIterator (ValEnumerator< ValueType, IsConst > &enumerator)
 
virtual ~ValEnumIterator ()
 
std::unique_ptr< EnumIteratorBaseclone () const
 
virtual step_type step () const =0
 
jsonParser source () const
 
std::string name () const
 Uses enumerator class 'name' implementation. More...
 
virtual bool is_end () const =0
 Returns true if 'end' iterator. More...
 

Protected Member Functions

void _assert_same_ptr (const EnumIteratorBase &other) const
 
void _assert_ptr () const
 
void _assert_valid () const
 
bool equal (const EnumIteratorBase &other) const
 boost::iterator_facade implementation More...
 
EnumeratorBase_enum_ptr ()
 
EnumeratorBase_enum_ptr () const
 

Private Member Functions

virtual EnumIteratorBase_clone () const =0
 
virtual reference dereference () const =0
 

Member Typedef Documentation

template<typename ValueType, bool IsConst = true>
typedef ValEnumerator<ValueType, IsConst>::reference CASM::ValEnumIterator< ValueType, IsConst >::reference

Definition at line 362 of file Enumerator.hh.

template<typename ValueType, bool IsConst = true>
typedef EnumeratorBase::step_type CASM::EnumIteratorBase::step_type

Definition at line 259 of file Enumerator.hh.

template<typename ValueType, bool IsConst = true>
typedef ValueType CASM::ValEnumIterator< ValueType, IsConst >::value_type

Definition at line 361 of file Enumerator.hh.

Constructor & Destructor Documentation

template<typename ValueType, bool IsConst = true>
CASM::ValEnumIterator< ValueType, IsConst >::ValEnumIterator ( )
inline

Definition at line 365 of file Enumerator.hh.

template<typename ValueType, bool IsConst = true>
CASM::ValEnumIterator< ValueType, IsConst >::ValEnumIterator ( ValEnumerator< ValueType, IsConst > &  enumerator)
inline

Definition at line 367 of file Enumerator.hh.

template<typename ValueType, bool IsConst = true>
virtual CASM::ValEnumIterator< ValueType, IsConst >::~ValEnumIterator ( )
inlinevirtual

Definition at line 370 of file Enumerator.hh.

Member Function Documentation

void CASM::EnumIteratorBase::_assert_ptr ( ) const
inlineprotectedinherited

Definition at line 303 of file Enumerator.hh.

void CASM::EnumIteratorBase::_assert_same_ptr ( const EnumIteratorBase other) const
inlineprotectedinherited

Definition at line 298 of file Enumerator.hh.

void CASM::EnumIteratorBase::_assert_valid ( ) const
inlineprotectedinherited

Definition at line 307 of file Enumerator.hh.

template<typename ValueType, bool IsConst = true>
virtual EnumIteratorBase* CASM::ValEnumIterator< ValueType, IsConst >::_clone ( ) const
privatepure virtual
EnumeratorBase* CASM::EnumIteratorBase::_enum_ptr ( )
inlineprotectedinherited

Definition at line 330 of file Enumerator.hh.

EnumeratorBase* CASM::EnumIteratorBase::_enum_ptr ( ) const
inlineprotectedinherited

Definition at line 334 of file Enumerator.hh.

template<typename ValueType, bool IsConst = true>
std::unique_ptr<EnumIteratorBase> CASM::ValEnumIterator< ValueType, IsConst >::clone ( ) const
inline

Definition at line 377 of file Enumerator.hh.

template<typename ValueType, bool IsConst = true>
virtual reference CASM::ValEnumIterator< ValueType, IsConst >::dereference ( ) const
privatepure virtual
bool CASM::EnumIteratorBase::equal ( const EnumIteratorBase other) const
inlineprotectedinherited

boost::iterator_facade implementation

  • Uses 'is_end' implementation to check if both iterators are 'end'
  • If both are not end, then compares iterator 'step'

Definition at line 315 of file Enumerator.hh.

virtual bool CASM::EnumIteratorBase::is_end ( ) const
pure virtualinherited
std::string CASM::EnumIteratorBase::name ( ) const
inlineinherited

Uses enumerator class 'name' implementation.

Definition at line 284 of file Enumerator.hh.

jsonParser CASM::EnumIteratorBase::source ( ) const
inlineinherited

Uses 'step' and enumerator class 'source' implementation

  • Only valid if iterator refers to valid object (not end)

Definition at line 279 of file Enumerator.hh.

virtual step_type CASM::EnumIteratorBase::step ( ) const
pure virtualinherited

Return current step number

  • Only valid if iterator refers to valid object (not end)

Implemented in CASM::RandomAccessEnumIteratorBase< ValueType, IsConst >, and CASM::InputEnumIteratorBase< ValueType, IsConst >.


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