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

#include <RandomAccessEnumerator.hh>

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

Detailed Description

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

The iterator type for RandomAccessEnumerator.

Definition at line 12 of file RandomAccessEnumerator.hh.

Public Types

typedef
RandomAccessEnumIteratorBase
< ValueType, IsConst >
::step_type 
step_type
 
typedef ValueType value_type
 
typedef
RandomAccessEnumIteratorBase
< ValueType, IsConst >
::reference 
reference
 
typedef step_type difference_type
 

Public Member Functions

 RandomAccessEnumIterator ()
 Default constructor. More...
 
 RandomAccessEnumIterator (const RandomAccessEnumIteratorBase< ValueType, IsConst > &it)
 Construct iterator. More...
 
step_type step () const
 
jsonParser source () const
 
std::string name () const
 
std::unique_ptr
< RandomAccessEnumIterator
clone () const
 

Private Member Functions

RandomAccessEnumIterator_clone () const
 clone implementation More...
 
bool equal (const RandomAccessEnumIterator &B) const
 boost::iterator_facade implementation More...
 
reference dereference () const
 
void increment ()
 
void decrement ()
 
void advance (step_type n)
 
difference_type distance_to (const RandomAccessEnumIterator &B) const
 

Private Attributes

notstd::cloneable_ptr
< RandomAccessEnumIteratorBase
< ValueType, IsConst > > 
m_ptr
 

Member Typedef Documentation

template<typename ValueType , bool IsConst = true>
typedef step_type CASM::RandomAccessEnumIterator< ValueType, IsConst >::difference_type

Definition at line 150 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
typedef RandomAccessEnumIteratorBase<ValueType, IsConst>::reference CASM::RandomAccessEnumIterator< ValueType, IsConst >::reference

Definition at line 149 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
typedef RandomAccessEnumIteratorBase<ValueType, IsConst>::step_type CASM::RandomAccessEnumIterator< ValueType, IsConst >::step_type

Definition at line 147 of file RandomAccessEnumerator.hh.

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

Definition at line 148 of file RandomAccessEnumerator.hh.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 154 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
CASM::RandomAccessEnumIterator< ValueType, IsConst >::RandomAccessEnumIterator ( const RandomAccessEnumIteratorBase< ValueType, IsConst > &  it)
inline

Construct iterator.

Definition at line 157 of file RandomAccessEnumerator.hh.

Member Function Documentation

template<typename ValueType , bool IsConst = true>
RandomAccessEnumIterator* CASM::RandomAccessEnumIterator< ValueType, IsConst >::_clone ( ) const
inlineprivate

clone implementation

Definition at line 183 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
void CASM::RandomAccessEnumIterator< ValueType, IsConst >::advance ( step_type  n)
inlineprivate

Definition at line 204 of file RandomAccessEnumerator.hh.

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

Definition at line 173 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
void CASM::RandomAccessEnumIterator< ValueType, IsConst >::decrement ( )
inlineprivate

Definition at line 200 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
reference CASM::RandomAccessEnumIterator< ValueType, IsConst >::dereference ( ) const
inlineprivate

Definition at line 192 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
difference_type CASM::RandomAccessEnumIterator< ValueType, IsConst >::distance_to ( const RandomAccessEnumIterator< ValueType, IsConst > &  B) const
inlineprivate

Definition at line 208 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
bool CASM::RandomAccessEnumIterator< ValueType, IsConst >::equal ( const RandomAccessEnumIterator< ValueType, IsConst > &  B) const
inlineprivate

boost::iterator_facade implementation

Definition at line 188 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
void CASM::RandomAccessEnumIterator< ValueType, IsConst >::increment ( )
inlineprivate

Definition at line 196 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
std::string CASM::RandomAccessEnumIterator< ValueType, IsConst >::name ( ) const
inline

Definition at line 169 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
jsonParser CASM::RandomAccessEnumIterator< ValueType, IsConst >::source ( ) const
inline

Definition at line 165 of file RandomAccessEnumerator.hh.

template<typename ValueType , bool IsConst = true>
step_type CASM::RandomAccessEnumIterator< ValueType, IsConst >::step ( ) const
inline

Definition at line 161 of file RandomAccessEnumerator.hh.

Member Data Documentation

template<typename ValueType , bool IsConst = true>
notstd::cloneable_ptr<RandomAccessEnumIteratorBase<ValueType, IsConst> > CASM::RandomAccessEnumIterator< ValueType, IsConst >::m_ptr
private

Definition at line 212 of file RandomAccessEnumerator.hh.


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