Jpp 19.3.0-rc.3
the software that should make you happy
|
Auxiliary class for object iteration via pipe, i.e. operator: More...
#include <JPipe.hh>
Public Types | |
typedef JObjectIterator< T >::pointer_type | pointer_type |
Public Member Functions | |
JPipe (JObjectIterator< T > &input, const JValve< T > &valve, const JObjectSelector< T > &selector, const JRegulator ®ulator) | |
Constructor. | |
virtual bool | hasNext () override |
Check availability of next element. | |
virtual const pointer_type & | next () override |
Get next element. | |
virtual skip_type | skip (const skip_type ns) override |
Skip items. | |
Protected Attributes | |
JObjectIterator< T > & | in |
const JValve< T > & | valve |
const JObjectSelector< T > & | selector |
const JRegulator & | regulator |
Private Attributes | |
pointer_type | ps |
pointer_type | p |
Auxiliary class for object iteration via pipe, i.e. operator:
.. | ..
A pipe consists of an object iterator, a valve, an object selector and a common regulator.
The objects are first passed through a valve which can be opened and closed.
The object selector can be used to filter specific objects/values.
Finally, the regulator can be used to control the throughput.
This class implements the JLANG::JObjectIterator interface.
JObjectIterator<T>::pointer_type JLANG::JPipe< T >::pointer_type |
|
inline |
|
inlineoverridevirtual |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 68 of file JPipe.hh.
|
inlineoverridevirtual |
Get next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 103 of file JPipe.hh.
|
inlineoverridevirtual |
Skip items.
ns | number of items to skip |
Reimplemented from JLANG::JObjectIterator< T >.
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |