BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtGenStreamAdapter< Point, Generator > Class Template Reference

#include <EvtStreamAdapter.hh>

+ Inheritance diagram for EvtGenStreamAdapter< Point, Generator >:

Public Member Functions

 EvtGenStreamAdapter (Generator gen, int count)
 
virtual ~EvtGenStreamAdapter ()
 
virtual EvtStreamAdapter< Point > * clone () const
 
virtual Point currentValue ()
 
virtual bool pastEnd ()
 
virtual void advance ()
 
 EvtGenStreamAdapter (Generator gen, int count)
 
virtual ~EvtGenStreamAdapter ()
 
virtual EvtStreamAdapter< Point > * clone () const
 
virtual Point currentValue ()
 
virtual bool pastEnd ()
 
virtual void advance ()
 
- Public Member Functions inherited from EvtStreamAdapter< Point >
 EvtStreamAdapter ()
 
virtual ~EvtStreamAdapter ()
 
virtual EvtStreamAdapterclone () const =0
 
virtual Point currentValue ()=0
 
virtual void advance ()=0
 
virtual bool pastEnd ()=0
 
 EvtStreamAdapter ()
 
virtual ~EvtStreamAdapter ()
 
virtual EvtStreamAdapterclone () const =0
 
virtual Point currentValue ()=0
 
virtual void advance ()=0
 
virtual bool pastEnd ()=0
 

Detailed Description

template<class Point, class Generator>
class EvtGenStreamAdapter< Point, Generator >

Definition at line 35 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStreamAdapter.hh.

Constructor & Destructor Documentation

◆ EvtGenStreamAdapter() [1/2]

template<class Point , class Generator >
EvtGenStreamAdapter< Point, Generator >::EvtGenStreamAdapter ( Generator  gen,
int  count 
)
inline

Definition at line 37 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStreamAdapter.hh.

38 : _gen(gen), _count(count)
39 {}

◆ ~EvtGenStreamAdapter() [1/2]

template<class Point , class Generator >
virtual EvtGenStreamAdapter< Point, Generator >::~EvtGenStreamAdapter ( )
inlinevirtual

◆ EvtGenStreamAdapter() [2/2]

template<class Point , class Generator >
EvtGenStreamAdapter< Point, Generator >::EvtGenStreamAdapter ( Generator  gen,
int  count 
)
inline

Definition at line 37 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStreamAdapter.hh.

38 : _gen(gen), _count(count)
39 {}

◆ ~EvtGenStreamAdapter() [2/2]

template<class Point , class Generator >
virtual EvtGenStreamAdapter< Point, Generator >::~EvtGenStreamAdapter ( )
inlinevirtual

Member Function Documentation

◆ advance() [1/2]

template<class Point , class Generator >
virtual void EvtGenStreamAdapter< Point, Generator >::advance ( )
inlinevirtual

◆ advance() [2/2]

template<class Point , class Generator >
virtual void EvtGenStreamAdapter< Point, Generator >::advance ( )
inlinevirtual

Implements EvtStreamAdapter< Point >.

Definition at line 50 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStreamAdapter.hh.

50{ _count--; }

◆ clone() [1/2]

template<class Point , class Generator >
virtual EvtStreamAdapter< Point > * EvtGenStreamAdapter< Point, Generator >::clone ( ) const
inlinevirtual

◆ clone() [2/2]

template<class Point , class Generator >
virtual EvtStreamAdapter< Point > * EvtGenStreamAdapter< Point, Generator >::clone ( ) const
inlinevirtual

Implements EvtStreamAdapter< Point >.

Definition at line 44 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStreamAdapter.hh.

45 {
46 return new EvtGenStreamAdapter(*this);
47 }

◆ currentValue() [1/2]

template<class Point , class Generator >
virtual Point EvtGenStreamAdapter< Point, Generator >::currentValue ( )
inlinevirtual

Implements EvtStreamAdapter< Point >.

Definition at line 48 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStreamAdapter.hh.

48{ return _gen(); }

◆ currentValue() [2/2]

template<class Point , class Generator >
virtual Point EvtGenStreamAdapter< Point, Generator >::currentValue ( )
inlinevirtual

Implements EvtStreamAdapter< Point >.

Definition at line 48 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStreamAdapter.hh.

48{ return _gen(); }

◆ pastEnd() [1/2]

template<class Point , class Generator >
virtual bool EvtGenStreamAdapter< Point, Generator >::pastEnd ( )
inlinevirtual

Implements EvtStreamAdapter< Point >.

Definition at line 49 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStreamAdapter.hh.

49{ return (_count <= 0); }

◆ pastEnd() [2/2]

template<class Point , class Generator >
virtual bool EvtGenStreamAdapter< Point, Generator >::pastEnd ( )
inlinevirtual

Implements EvtStreamAdapter< Point >.

Definition at line 49 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtStreamAdapter.hh.

49{ return (_count <= 0); }

The documentation for this class was generated from the following files: