BOSS 7.0.2
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 ()
 
- 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
 

Detailed Description

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

Definition at line 35 of file EvtStreamAdapter.hh.

Constructor & Destructor Documentation

◆ EvtGenStreamAdapter()

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

Definition at line 37 of file EvtStreamAdapter.hh.

38 : _gen(gen), _count(count)
39 {}
DOUBLE_PRECISION count[2]

◆ ~EvtGenStreamAdapter()

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

Definition at line 41 of file EvtStreamAdapter.hh.

42 {}

Member Function Documentation

◆ advance()

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

Implements EvtStreamAdapter< Point >.

Definition at line 50 of file EvtStreamAdapter.hh.

50{ _count--; }

◆ clone()

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

Implements EvtStreamAdapter< Point >.

Definition at line 44 of file EvtStreamAdapter.hh.

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

◆ currentValue()

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

Implements EvtStreamAdapter< Point >.

Definition at line 48 of file EvtStreamAdapter.hh.

48{ return _gen(); }

◆ pastEnd()

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

Implements EvtStreamAdapter< Point >.

Definition at line 49 of file EvtStreamAdapter.hh.

49{ return (_count <= 0); }

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