iterable Class Referenceabstract
Inheritance diagram for iterable:
iter iter iteration iteration narrIteration nchainIteration nmapIteration nseqIteration narrIteration nchainIteration nmapIteration nseqIteration

Public Member Functions

virtual nbool isEnd () const =0
 
virtual nbool isReversed () const =0
 
virtual void rel ()=0
 
virtual ncnt next (ncnt step)
 
virtual ncnt prev (ncnt step)
 
virtual ncnt stepForward (ncnt step)=0
 
virtual ncnt stepBackward (ncnt step)=0
 
virtual const K * getKey () const =0
 
virtual V * getVal ()=0
 
const V * getVal () const BY_CONST_FUNC(getVal()) virtual void setVal(const V &new Val)=0
 
void setVal (const V *it) BY_SIDE_FUNC(setVal)
 
virtual nbool isFrom (const tbicontainable &it) const =0
 
nbool isFrom (const tbicontainable *it) const BY_SIDE_FUNC(isFrom)
 
virtual tbicontainable< K, V > * getContainer ()=0
 
virtual RSquare operator* ()=0
 
const RSquare operator* () const BY_CONST_FUNC(operator*()) virtual nbool isEnd() const =0
 
virtual nbool isReversed () const =0
 
virtual void rel ()=0
 
virtual ncnt next (ncnt step)
 
virtual ncnt prev (ncnt step)
 
virtual ncnt stepForward (ncnt step)=0
 
virtual ncnt stepBackward (ncnt step)=0
 
virtual R get ()=0
 
const R get () const BY_CONST_FUNC(get()) virtual nbool isFrom(const tucontainable &it) const =0
 
nbool isFrom (const tucontainable *it) const BY_SIDE_FUNC(isFrom)
 
virtual tucontainable< T, R, RSquare > * getContainer ()=0
 

Protected Types

enum  iterationType {
  NEXT , PREV , FORWARD , BACKWARD ,
  NEXT , PREV , FORWARD , BACKWARD
}
 
enum  iterationType {
  NEXT , PREV , FORWARD , BACKWARD ,
  NEXT , PREV , FORWARD , BACKWARD
}
 

Member Function Documentation

◆ next() [1/2]

virtual ncnt iterable::next ( ncnt  step)
inlinevirtual

proceed iteration obj to point next element by given step.

Parameters
stephow much it proceeds. positive value only.
Returns
how many step it proceeded. if it tries to proceed further when it reached to End() it won't be counted as returning value. it'll return '0' if it already reached to the end.

Reimplemented in iter, nchainIteration, and iter.

◆ next() [2/2]

virtual ncnt iterable::next ( ncnt  step)
inlinevirtual

proceed iteration obj to point next element by given step.

Parameters
stephow much it proceeds. positive value only.
Returns
how many step it proceeded. if it tries to proceed further when it reached to End() it won't be counted as returning value. it'll return '0' if it already reached to the end.

Reimplemented in iter, nchainIteration, and iter.

◆ rel() [1/2]

virtual void iterable::rel ( )
pure virtual

Implemented in iter, and iter.

◆ rel() [2/2]

virtual void iterable::rel ( )
pure virtual

Implemented in iter, and iter.

◆ stepForward() [1/2]

virtual ncnt iterable::stepForward ( ncnt  step)
pure virtual

Implemented in narrIteration, nmapIteration, and nseqIteration.

◆ stepForward() [2/2]

virtual ncnt iterable::stepForward ( ncnt  step)
pure virtual

Implemented in narrIteration, nmapIteration, and nseqIteration.


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