Go to the documentation of this file. 1 #ifndef __JLANG__JPIPE__
2 #define __JLANG__JPIPE__
69 if (
valve.is_open()) {
71 while (
in.hasNext()) {
142 template<
class JHead_t,
class JTail_t>
144 public JPipe<JHead_t>,
145 public JPipe<JTail_t>,
172 template<
class JHead_t>
174 public JPipe<JHead_t>
196 template<
class T,
int N>
326 template<
class JBase_t>
341 template<
class T,
int N>
virtual const pointer_type & next()
Get next element.
unsigned int skip_type
Type definition for number of objects to skip.
The template JSinglePointer class can be used to hold a pointer to an object.
Auxiliary class for object iteration via pipe (i.e. operator |).
Auxiliary class for a type holder.
JObjectIterator< T > & in
const JValve< T > & valve
JMultiPipe(JObjectIterator< T > &input, const JObjectSelector< T > &selector)
Constructor.
Interface for selection of objects.
Auxiliary class for no type definition.
virtual skip_type skip(const skip_type ns)
Skip items.
Auxiliary class for object iteration via multiple pipes (e.g. operator | ..\ |).
Forward declarations for definitions of I/O redirect and pipe operators.
JPipe(JObjectIterator< typelist > &input, const JValve< typelist > &valve, const JObjectSelector< typelist > &selector, const JRegulator ®ulator)
Constructor.
JMultiPipe(JObjectIterator< T > &input, const JValve< T > &valve)
Constructor.
friend JMultiPipe< T, N+1 > & operator|(JMultiPipe &left, const JValve< T > &right)
Recursive expansion of multi-pipe.
virtual void reset()
Reset pointer.
Auxiliary class for selection of data type.
Auxiliary class for multiplexing object iterators.
JMultiPipe(JObjectIterator< T > &input)
Constructor.
JMultiPipe(JObjectIterator< T > &input, const JValve< T > &valve, const JObjectSelector< T > &selector, const JRegulator ®ulator)
Constructor.
Interface for controlling object throughput.
friend void operator|(JMultiPipe &left, JObjectOutput< T > &right)
Pipe terminator.
static JSinglePointer< JMultiPipe< T, N > > pipe
Declaration of common pipe.
JObjectIterator< T >::pointer_type pointer_type
const JObjectSelector< T > & selector
virtual bool hasNext()
Check availability of next element.
virtual bool accept() const
Accept.
JMultiPipe(JObjectIterator< T > &input, const JRegulator ®ulator)
Constructor.
Interface of object iteration for a single data type.
const JRegulator & regulator
JPipe(JObjectIterator< JHead_t > &input, const JValve< JHead_t > &valve, const JObjectSelector< JHead_t > &selector, const JRegulator ®ulator)
Constructor.
JTypeList< JHead_t, JTail_t > typelist
friend JMultiPipe< T, N+1 > & operator|(JMultiPipe &left, const JObjectSelector< T > &right)
Recursive expansion of multi-pipe.
friend JObjectMultiplexer< T, JBase_t > & operator|(JMultiPipe &left, const JType< JBase_t > &right)
Pipe operator.
Auxiliary classes and methods for language specific functionality.
JPipe(JObjectIterator< T > &input, const JValve< T > &valve, const JObjectSelector< T > &selector, const JRegulator ®ulator)
Constructor.
friend JMultiPipe< T, N+1 > & operator|(JMultiPipe &left, const JRegulator &right)
Recursive expansion of multi-pipe.
bool is_valid() const
Check validity of pointer.