DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, iterator_type > Class Template Reference

Public Member Functions

 CodeHandler ()
 
void init (const TIterator &it)
 
Code getCode (Index n) const
 
Code getCode (Index n)
 

Private Attributes

std::vector< CodemyCodes
 
TIterator myIter
 

Detailed Description

template<typename TConstIterator, typename TInteger>
template<class TIterator, class iterator_type = typename IteratorCirculatorTraits <TIterator>::Category>
class DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, iterator_type >

CodeHandler encapsulates an iterator in order to provide constant time access to the codes previously read.

Template Parameters
TIteratoran iterator on the codes.
iterator_typethe type of iterations services provided by TIterator.

Definition at line 128 of file OneBalancedWordComputer.h.

Constructor & Destructor Documentation

◆ CodeHandler()

template<typename TConstIterator , typename TInteger >
template<class TIterator , class iterator_type = typename IteratorCirculatorTraits <TIterator>::Category>
DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, iterator_type >::CodeHandler ( )
inline

Definition at line 131 of file OneBalancedWordComputer.h.

132 { }

Member Function Documentation

◆ getCode() [1/2]

template<typename TConstIterator , typename TInteger >
template<class TIterator , class iterator_type = typename IteratorCirculatorTraits <TIterator>::Category>
Code DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, iterator_type >::getCode ( Index  n)
inline

◆ getCode() [2/2]

template<typename TConstIterator , typename TInteger >
template<class TIterator , class iterator_type = typename IteratorCirculatorTraits <TIterator>::Category>
Code DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, iterator_type >::getCode ( Index  n) const
inline

◆ init()

template<typename TConstIterator , typename TInteger >
template<class TIterator , class iterator_type = typename IteratorCirculatorTraits <TIterator>::Category>
void DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, iterator_type >::init ( const TIterator &  it)
inline

Field Documentation

◆ myCodes

template<typename TConstIterator , typename TInteger >
template<class TIterator , class iterator_type = typename IteratorCirculatorTraits <TIterator>::Category>
std::vector<Code> DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, iterator_type >::myCodes
private

◆ myIter

template<typename TConstIterator , typename TInteger >
template<class TIterator , class iterator_type = typename IteratorCirculatorTraits <TIterator>::Category>
TIterator DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, iterator_type >::myIter
private

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