BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkIdManDefault Class Reference

#include <TrkIdManDefault.h>

+ Inheritance diagram for TrkIdManDefault:

Public Member Functions

 TrkIdManDefault (long firstId)
 
virtual ~TrkIdManDefault ()
 
virtual long nextId ()
 
virtual long lastId () const
 
virtual void setMax (long maxid)
 
- Public Member Functions inherited from TrkIdManager
 TrkIdManager ()
 
virtual ~TrkIdManager ()
 
virtual long nextId ()=0
 
virtual long lastId () const =0
 
virtual void setMax (long maxid)=0
 

Detailed Description

Definition at line 20 of file TrkIdManDefault.h.

Constructor & Destructor Documentation

◆ TrkIdManDefault()

TrkIdManDefault::TrkIdManDefault ( long  firstId)

Definition at line 18 of file TrkIdManDefault.cxx.

18 {
19//------------------------------------------------------------------------
20 _nextId = firstId;
21}

◆ ~TrkIdManDefault()

TrkIdManDefault::~TrkIdManDefault ( )
virtual

Definition at line 24 of file TrkIdManDefault.cxx.

24 {
25//------------------------------------------------------------------------
26}

Member Function Documentation

◆ lastId()

long TrkIdManDefault::lastId ( ) const
virtual

Implements TrkIdManager.

Definition at line 39 of file TrkIdManDefault.cxx.

39 {
40//------------------------------------------------------------------------
41 return (_nextId - 1);
42}

◆ nextId()

long TrkIdManDefault::nextId ( )
virtual

Implements TrkIdManager.

Definition at line 30 of file TrkIdManDefault.cxx.

30 {
31//------------------------------------------------------------------------
32 long id = _nextId;
33 _nextId++;
34 return id;
35}

◆ setMax()

void TrkIdManDefault::setMax ( long  maxid)
virtual

Implements TrkIdManager.

Definition at line 45 of file TrkIdManDefault.cxx.

45 {
46 _nextId = maxid+1;
47}

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