Chain iteration implementation.
More...
#include <nchainIteration.hpp>
|
|
| nchainIteration (tnchain *iteratingChain, const K *key, nbool isReversed) |
| |
|
| nchainIteration (tnchain *iteratingChain, const K *key, nbool isReversed, nbool isBoundary, nbool isAutoAdvance) |
| |
| nbool | isEnd () const override |
| |
| void | rel () override |
| |
|
nbool | isBoundary () const |
| |
| ncnt | next (ncnt step) override |
| |
| ncnt | prev (ncnt step) override |
| |
| ncnt | stepForward (ncnt step) override |
| |
| ncnt | stepBackward (ncnt step) override |
| |
| tbicontainable< K, V > * | getContainer () override |
| |
| const K * | getKey () const override |
| |
| V * | getVal () override |
| |
|
void | setVal (const V &new1) override |
| |
|
| iteration (nbool isReversed) |
| |
| nbool | isFrom (const tbicontainable &rhs) const override |
| |
| nbool | isReversed () const override |
| |
|
| iteration (nbool isReversed) |
| |
|
nbool | isFrom (const tucontainable &rhs) const override |
| |
| nbool | isReversed () const override |
| |
| virtual nbool | isFrom (const tbicontainable &it) const=0 |
| |
|
nbool | isFrom (const tbicontainable *it) const BY_SIDE_FUNC(isFrom) |
| |
|
nbool | isFrom (const tucontainable *it) const BY_SIDE_FUNC(isFrom) |
| |
| virtual nbool | isFrom (const tbicontainable &it) const=0 |
| |
|
nbool | isFrom (const tbicontainable *it) const BY_SIDE_FUNC(isFrom) |
| |
|
nbool | isFrom (const tucontainable *it) const BY_SIDE_FUNC(isFrom) |
| |
|
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) |
| |
|
nbool | isFrom (const tbicontainable *it) const BY_SIDE_FUNC(isFrom) |
| |
|
virtual RSquare | operator* ()=0 |
| |
|
const RSquare | operator* () const BY_CONST_FUNC(operator*()) virtual nbool isEnd() const =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) |
| |
|
|
nbool | _onSame (const typeProvidable &rhs) const override |
| |
|
| enum | iterationType {
NEXT
, PREV
, FORWARD
, BACKWARD
,
NEXT
, PREV
, FORWARD
, BACKWARD
} |
| |
| enum | iterationType {
NEXT
, PREV
, FORWARD
, BACKWARD
,
NEXT
, PREV
, FORWARD
, BACKWARD
} |
| |
Chain iteration implementation.
Concrete iteration implementation for chained container structures. nested class of tnchain.hpp: this file allows to be refered by 'tnchain.hpp' file only.
◆ getContainer()
| tbicontainable< K, V > * nchainIteration::getContainer |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getKey()
| const K * nchainIteration::getKey |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getVal()
| V * nchainIteration::getVal |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isEnd()
| nbool nchainIteration::isEnd |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ next()
| ncnt nchainIteration::next |
( |
ncnt | step | ) |
|
|
inlineoverridevirtual |
proceed iteration obj to point next element by given step.
- Parameters
-
| step | how 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 from iterable.
◆ prev()
| ncnt nchainIteration::prev |
( |
ncnt | step | ) |
|
|
inlineoverridevirtual |
◆ rel()
| void nchainIteration::rel |
( |
| ) |
|
|
inlineoverridevirtual |
◆ stepBackward()
| ncnt nchainIteration::stepBackward |
( |
ncnt | step | ) |
|
|
inlineoverridevirtual |
◆ stepForward()
| ncnt nchainIteration::stepForward |
( |
ncnt | step | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: