| 
    Jpp
    
   | 
 
Auxiliary class to sample objects from a rewindable object iterator. More...
#include <JObjectSampler.hh>
  
 Public Types | |
| typedef JObjectIterator< T > ::pointer_type  | pointer_type | 
Public Member Functions | |
| JObjectSampler (JRewindableObjectIterator< T > &input) | |
| Constructor.  More... | |
| JObjectSampler (JRewindableObjectIterator< T > &input, const JSampler_t< T > &sampler) | |
| Constructor.  More... | |
| virtual bool | hasNext () | 
| Check availability of next element.  More... | |
| virtual const pointer_type & | next () | 
| Get next element.  More... | |
| const JSampler_t< T > & | getSampler () const | 
| Get sampler.  More... | |
| JSampler_t< T > & | getSampler () | 
| Get sampler.  More... | |
| virtual skip_type | skip (const skip_type ns) | 
| Skip items.  More... | |
Protected Attributes | |
| JRewindableObjectIterator< T > & | in | 
| JSampler_t< T > | sampler | 
| JPointer< T > | ps | 
| bool | has_next | 
Auxiliary class to sample objects from a rewindable object iterator.
Method hasNext normally returns true, unless
Note that the internal sampler is a copy of the specified sampler and not a reference thereof.
This class implements the JObjectIterator interface.
Definition at line 30 of file JObjectSampler.hh.
| typedef JObjectIterator<T>::pointer_type JLANG::JObjectSampler< T, JSampler_t >::pointer_type | 
Definition at line 35 of file JObjectSampler.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inlinevirtual | 
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 68 of file JObjectSampler.hh.
      
  | 
  inlinevirtual | 
Get next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 110 of file JObjectSampler.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inlinevirtualinherited | 
Skip items.
| ns | number of items to skip | 
Reimplemented in JLANG::JPipe< T >, JLANG::JPipe< JTail_t >, JLANG::JPipe< JHead_t >, JLANG::JSTDObjectIterator< T >, JLANG::JAbstractObjectReader< T >, JLANG::JAbstractObjectReader< JNullType >, JLANG::JAbstractObjectReader< const T >, JLANG::JAbstractObjectReader< JTail_t >, JLANG::JAbstractObjectReader< JHead_t >, JLANG::JAbstractObjectReader< KM3NETDAQ::KM3NETDAQ::JDAQEvent >, JLANG::JAbstractObjectReader< JDAQSummaryslice >, and JLANG::JAbstractObjectReader< JTypeList< JDAQEvent, JTypelist_t > >.
Definition at line 88 of file JObjectIterator.hh.
      
  | 
  protected | 
Definition at line 144 of file JObjectSampler.hh.
      
  | 
  protected | 
Definition at line 145 of file JObjectSampler.hh.
      
  | 
  protected | 
Definition at line 146 of file JObjectSampler.hh.
      
  | 
  protected | 
Definition at line 147 of file JObjectSampler.hh.
 1.8.5