Jpp
Public Types | Public Member Functions | Private Attributes | List of all members
JLANG::JNullIterator< T > Struct Template Reference

Implementation for null iteration. More...

#include <JObjectIterator.hh>

Inheritance diagram for JLANG::JNullIterator< T >:
JLANG::JObjectIterator< T > JSUPPORT::JDAQFileReader< T, false > JSUPPORT::JMonteCarloASCIIFileReader< T > JSUPPORT::JMonteCarloGZFileReader< T >

Public Types

typedef JObjectIterator< T >::pointer_type pointer_type
 

Public Member Functions

virtual bool hasNext ()
 Check availability of next element. More...
 
virtual const pointer_typenext ()
 Get next element. More...
 
virtual skip_type skip (const skip_type ns)
 Skip items. More...
 

Private Attributes

pointer_type ps
 

Detailed Description

template<class T>
struct JLANG::JNullIterator< T >

Implementation for null iteration.

Definition at line 325 of file JObjectIterator.hh.

Member Typedef Documentation

◆ pointer_type

template<class T >
typedef JObjectIterator<T>::pointer_type JLANG::JNullIterator< T >::pointer_type

Definition at line 329 of file JObjectIterator.hh.

Member Function Documentation

◆ hasNext()

template<class T >
virtual bool JLANG::JNullIterator< T >::hasNext ( )
inlinevirtual

Check availability of next element.

Returns
false

Implements JLANG::JObjectIterator< T >.

Definition at line 337 of file JObjectIterator.hh.

338  {
339  return false;
340  }

◆ next()

template<class T >
virtual const pointer_type& JLANG::JNullIterator< T >::next ( )
inlinevirtual

Get next element.

Returns
NULL

Implements JLANG::JObjectIterator< T >.

Definition at line 348 of file JObjectIterator.hh.

349  {
350  return ps;
351  }

◆ skip()

template<class T>
virtual skip_type JLANG::JObjectIterator< T >::skip ( const skip_type  ns)
inlinevirtualinherited

Member Data Documentation

◆ ps

template<class T >
pointer_type JLANG::JNullIterator< T >::ps
private

Definition at line 354 of file JObjectIterator.hh.


The documentation for this struct was generated from the following file:
JLANG::skip_type
unsigned int skip_type
Type definition for number of objects to skip.
Definition: JObjectIterator.hh:25
JLANG::JObjectIterator::hasNext
virtual bool hasNext()=0
Check availability of next element.
JLANG::JNullIterator::ps
pointer_type ps
Definition: JObjectIterator.hh:354
JLANG::JObjectIterator::next
virtual const pointer_type & next()=0
Get next element.