|
Jpp
|
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. More... | |
| virtual bool | hasNext () |
| Check availability of next element. More... | |
| virtual const pointer_type & | next () |
| Get next element. More... | |
| virtual skip_type | skip (const skip_type ns) |
| Skip items. More... | |
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.
| typedef JObjectIterator<T>::pointer_type JLANG::JPipe< T >::pointer_type |
|
inline |
|
inlinevirtual |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 65 of file JPipe.hh.
|
inlinevirtual |
|
inlinevirtual |
Skip items.
| ns | number of items to skip |
Reimplemented from JLANG::JObjectIterator< T >.
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
private |
1.8.16