Lumiera
0.pre.03
»edit your freedom«
|
Explicit implementation of the IterSource interface (test dummy) Creates a random string and chops off a character on each iteration.
Definition at line 83 of file iter-source-test.cpp.
Public Member Functions | |
TestSource (uint num) | |
Public Member Functions inherited from IterSource< CStr > | |
virtual | operator string () const |
is ABC More... | |
Private Member Functions | |
virtual Pos | firstResult () override |
iteration start: prepare the first element. More... | |
virtual void | nextResult (Pos &pos) override |
iteration step: switch on to the next element. More... | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
Private Attributes | |
string | buffer_ |
CStr | current_ |
Additional Inherited Members | |
Public Types inherited from IterSource< CStr > | |
using | pointer = CStr * |
using | reference = CStr & |
using | value_type = CStr |
Static Public Member Functions inherited from IterSource< CStr > | |
static iterator | build (IterSource &sourceImpl) |
build an iterator frontend for the given source, More... | |
static iterator | build (IterSource *sourceImplObject) |
build an iterator frontend, thereby managing the given heap allocated source object instance. More... | |
Static Public Attributes inherited from IterSource< CStr > | |
static iterator | EMPTY_SOURCE |
storage for the empty data-source constant | |
Protected Types inherited from IterSource< CStr > | |
typedef shared_ptr< IterSource > | DataHandle |
typedef CStr * | Pos |
Protected Member Functions inherited from IterSource< CStr > | |
virtual void | disconnect () |
disconnect the data source / iteration frontend. More... | |
|
inlineoverrideprivatevirtual |
iteration start: prepare the first element.
may return NULL in case of empty data source
Implements IterSource< CStr >.
Definition at line 92 of file iter-source-test.cpp.
|
inlineoverrideprivatevirtual |
iteration step: switch on to the next element.
The pos pointer should be set to NULL to report iteration end
Implements IterSource< CStr >.
Definition at line 100 of file iter-source-test.cpp.
References cStr(), and lib::test::randStr().