![]() |
Lumiera 0.pre.04~rc.1
»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 67 of file iter-source-test.cpp.
Public Member Functions | |
| TestSource (uint num) | |
Public Member Functions inherited from IterSource< CStr > | |
| virtual | ~IterSource () |
| virtual | operator string () const |
| is ABC | |
Private Member Functions | |
| virtual Pos | firstResult () override |
| iteration start: prepare the first element. | |
| virtual void | nextResult (Pos &pos) override |
| iteration step: switch on to the next element. | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| 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 | value_type = CStr |
| using | reference = CStr & |
| using | pointer = CStr * |
Static Public Attributes inherited from IterSource< CStr > | |
| static iterator | EMPTY_SOURCE |
| storage for the empty data-source constant | |
Static Public Member Functions inherited from IterSource< CStr > | |
| static iterator | build (IterSource &sourceImpl) |
| build an iterator frontend for the given source, | |
| static iterator | build (IterSource *sourceImplObject) |
| build an iterator frontend, thereby managing the given heap allocated source object instance. | |
Protected Types inherited from IterSource< CStr > | |
| using | Pos = CStr * |
| using | DataHandle = shared_ptr< IterSource > |
Protected Member Functions inherited from IterSource< CStr > | |
| virtual void | disconnect () |
| disconnect the data source / iteration frontend. | |
|
inline |
Definition at line 96 of file iter-source-test.cpp.
References cStr(), and lib::test::randStr().
Here is the call graph for this function:
|
inlineoverrideprivatevirtual |
iteration start: prepare the first element.
may return NULL in case of empty data source
Implements IterSource< CStr >.
Definition at line 76 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 84 of file iter-source-test.cpp.
|
private |
Definition at line 72 of file iter-source-test.cpp.
|
private |
Definition at line 73 of file iter-source-test.cpp.
Inheritance diagram for TestSource:
Collaboration diagram for TestSource: