CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM::EnumIteratorBase Class Referenceabstract

#include <Enumerator.hh>

+ Inheritance diagram for CASM::EnumIteratorBase:

Detailed Description

Definition at line 255 of file Enumerator.hh.

Public Types

typedef EnumeratorBase::step_type step_type
 

Public Member Functions

 EnumIteratorBase ()
 Default Constructor. More...
 
 EnumIteratorBase (EnumeratorBase &enumerator)
 Constructor. More...
 
virtual ~EnumIteratorBase ()
 
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...
 
std::unique_ptr< EnumIteratorBaseclone () const
 

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
 
EnumeratorBase_enum ()
 
EnumeratorBase_enum () const
 

Private Attributes

EnumeratorBasem_enum_ptr
 

Member Typedef Documentation

Constructor & Destructor Documentation

CASM::EnumIteratorBase::EnumIteratorBase ( )
inline

Default Constructor.

Definition at line 262 of file Enumerator.hh.

CASM::EnumIteratorBase::EnumIteratorBase ( EnumeratorBase enumerator)
inline

Constructor.

Definition at line 266 of file Enumerator.hh.

virtual CASM::EnumIteratorBase::~EnumIteratorBase ( )
inlinevirtual

Definition at line 269 of file Enumerator.hh.

Member Function Documentation

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

Definition at line 303 of file Enumerator.hh.

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

Definition at line 298 of file Enumerator.hh.

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

Definition at line 307 of file Enumerator.hh.

EnumeratorBase& CASM::EnumIteratorBase::_enum ( )
inlineprivate

Definition at line 342 of file Enumerator.hh.

EnumeratorBase& CASM::EnumIteratorBase::_enum ( ) const
inlineprivate

Definition at line 346 of file Enumerator.hh.

EnumeratorBase* CASM::EnumIteratorBase::_enum_ptr ( )
inlineprotected

Definition at line 330 of file Enumerator.hh.

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

Definition at line 334 of file Enumerator.hh.

std::unique_ptr<EnumIteratorBase> CASM::EnumIteratorBase::clone ( ) const
inline

Definition at line 291 of file Enumerator.hh.

bool CASM::EnumIteratorBase::equal ( const EnumIteratorBase other) const
inlineprotected

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 virtual
std::string CASM::EnumIteratorBase::name ( ) const
inline

Uses enumerator class 'name' implementation.

Definition at line 284 of file Enumerator.hh.

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

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 virtual

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 >.

Member Data Documentation

EnumeratorBase* CASM::EnumIteratorBase::m_enum_ptr
private

Definition at line 351 of file Enumerator.hh.


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