CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::PTIterator< PTType, IsConst > Class Template Reference

#include <PolyTrie.hh>

Detailed Description

template<typename PTType, bool IsConst>
class CASM::PTIterator< PTType, IsConst >

Definition at line 265 of file PolyTrie.hh.

Public Types

typedef CASM_TMP::ConstSwitch< IsConst, typename PTType::leaf_type > leaf_type
 
typedef CASM_TMP::ConstSwitch< IsConst, typename PTType::value_type > * pointer
 
typedef CASM_TMP::ConstSwitch< IsConst, typename PTType::value_type > & reference
 

Public Member Functions

 PTIterator (leaf_type *_leaf_ptr=0)
 
 PTIterator (const PTIterator< PTType, false > &_it)
 
template<bool IsConst2>
bool operator== (const PTIterator< PTType, IsConst2 > &_it)
 
template<bool IsConst2>
bool operator!= (const PTIterator< PTType, IsConst2 > &_it)
 
PTIteratoroperator++ ()
 
PTIterator operator++ (int)
 
PTIteratorremove_and_next ()
 
reference operator* ()
 
pointer operator-> ()
 
const Array< Index > & key ()
 
leaf_typeleaf_ptr () const
 

Private Attributes

leaf_typem_curr_leaf_ptr
 

Member Typedef Documentation

◆ leaf_type

template<typename PTType , bool IsConst>
typedef CASM_TMP::ConstSwitch<IsConst, typename PTType::leaf_type> CASM::PTIterator< PTType, IsConst >::leaf_type

Definition at line 268 of file PolyTrie.hh.

◆ pointer

template<typename PTType , bool IsConst>
typedef CASM_TMP::ConstSwitch<IsConst, typename PTType::value_type>* CASM::PTIterator< PTType, IsConst >::pointer

Definition at line 270 of file PolyTrie.hh.

◆ reference

template<typename PTType , bool IsConst>
typedef CASM_TMP::ConstSwitch<IsConst, typename PTType::value_type>& CASM::PTIterator< PTType, IsConst >::reference

Definition at line 272 of file PolyTrie.hh.

Constructor & Destructor Documentation

◆ PTIterator()

template<typename PTType , bool IsConst>
CASM::PTIterator< PTType, IsConst >::PTIterator ( leaf_type _leaf_ptr = 0)
inline

Definition at line 278 of file PolyTrie.hh.

Member Function Documentation

◆ key()

template<typename PTType , bool IsConst>
const Array<Index>& CASM::PTIterator< PTType, IsConst >::key ( )
inline

Definition at line 308 of file PolyTrie.hh.

◆ leaf_ptr()

template<typename PTType , bool IsConst>
leaf_type* CASM::PTIterator< PTType, IsConst >::leaf_ptr ( ) const
inline

Definition at line 310 of file PolyTrie.hh.

◆ operator!=()

template<typename PTType , bool IsConst>
template<bool IsConst2>
bool CASM::PTIterator< PTType, IsConst >::operator!= ( const PTIterator< PTType, IsConst2 > &  _it)
inline

Definition at line 287 of file PolyTrie.hh.

◆ operator*()

template<typename PTType , bool IsConst>
reference CASM::PTIterator< PTType, IsConst >::operator* ( )
inline

Definition at line 306 of file PolyTrie.hh.

◆ operator++() [1/2]

template<typename PTType , bool IsConst>
PTIterator& CASM::PTIterator< PTType, IsConst >::operator++ ( )
inline

Definition at line 291 of file PolyTrie.hh.

◆ operator++() [2/2]

template<typename PTType , bool IsConst>
PTIterator CASM::PTIterator< PTType, IsConst >::operator++ ( int  )
inline

Definition at line 295 of file PolyTrie.hh.

◆ operator->()

template<typename PTType , bool IsConst>
pointer CASM::PTIterator< PTType, IsConst >::operator-> ( )
inline

Definition at line 307 of file PolyTrie.hh.

◆ operator==()

template<typename PTType , bool IsConst>
template<bool IsConst2>
bool CASM::PTIterator< PTType, IsConst >::operator== ( const PTIterator< PTType, IsConst2 > &  _it)
inline

Definition at line 282 of file PolyTrie.hh.

◆ remove_and_next()

template<typename PTType , bool IsConst>
PTIterator& CASM::PTIterator< PTType, IsConst >::remove_and_next ( )
inline

Definition at line 301 of file PolyTrie.hh.

Member Data Documentation

◆ m_curr_leaf_ptr

template<typename PTType , bool IsConst>
leaf_type* CASM::PTIterator< PTType, IsConst >::m_curr_leaf_ptr
private

Definition at line 275 of file PolyTrie.hh.


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