DGtal 2.1.0
Loading...
Searching...
No Matches
DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, RandomAccessCategory > Class Template Reference
Inheritance diagram for DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, RandomAccessCategory >:
[legend]

Public Member Functions

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

Private Attributes

TIterator myIter
std::vector< CodemyCodes

Detailed Description

template<typename TConstIterator, typename TInteger>
template<class TIterator>
class DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, RandomAccessCategory >

Partial template specialization for random access iterators.

Definition at line 217 of file OneBalancedWordComputer.h.

Constructor & Destructor Documentation

◆ CodeHandler()

template<typename TConstIterator, typename TInteger>
template<class TIterator>
DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, RandomAccessCategory >::CodeHandler ( )
inline

Definition at line 220 of file OneBalancedWordComputer.h.

221 { }

Member Function Documentation

◆ getCode() [1/2]

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

◆ getCode() [2/2]

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

Definition at line 228 of file OneBalancedWordComputer.h.

229 {
230 return myIter[ n ];
231 }

References myIter.

◆ init()

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

Definition at line 223 of file OneBalancedWordComputer.h.

224 {
225 myIter = it;
226 }

References myIter.

Field Documentation

◆ myCodes

std::vector<Code> DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, RandomAccessCategory >::myCodes
private

Definition at line 154 of file OneBalancedWordComputer.h.

◆ myIter

template<typename TConstIterator, typename TInteger>
template<class TIterator>
TIterator DGtal::OneBalancedWordComputer< TConstIterator, TInteger >::CodeHandler< TIterator, RandomAccessCategory >::myIter
private

Definition at line 239 of file OneBalancedWordComputer.h.

Referenced by getCode(), getCode(), and init().


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