BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkIdManDumb Class Reference

#include <TrkIdManDumb.h>

+ Inheritance diagram for TrkIdManDumb:

Public Member Functions

 TrkIdManDumb (long val)
 
virtual ~TrkIdManDumb ()
 
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
 

Static Public Member Functions

static TrkIdManDumbinstance ()
 

Detailed Description

Definition at line 20 of file TrkIdManDumb.h.

Constructor & Destructor Documentation

◆ TrkIdManDumb()

TrkIdManDumb::TrkIdManDumb ( long  val)

Definition at line 18 of file TrkIdManDumb.cxx.

18 {
19//------------------------------------------------------------------------
20 _theValue = val;
21}

◆ ~TrkIdManDumb()

TrkIdManDumb::~TrkIdManDumb ( )
virtual

Definition at line 24 of file TrkIdManDumb.cxx.

24{}

Member Function Documentation

◆ instance()

TrkIdManDumb * TrkIdManDumb::instance ( )
static

Definition at line 43 of file TrkIdManDumb.cxx.

43 {
44//------------------------------------------------------------------------
45 static TrkIdManDumb theSingleton(-1);
46 return &theSingleton;
47}

◆ lastId()

long TrkIdManDumb::lastId ( ) const
virtual

Implements TrkIdManager.

Definition at line 36 of file TrkIdManDumb.cxx.

36 {
37//------------------------------------------------------------------------
38 return theValue();
39}

◆ nextId()

long TrkIdManDumb::nextId ( )
virtual

Implements TrkIdManager.

Definition at line 29 of file TrkIdManDumb.cxx.

29 {
30//------------------------------------------------------------------------
31 return theValue();
32}

◆ setMax()

void TrkIdManDumb::setMax ( long  maxid)
virtual

Implements TrkIdManager.

Definition at line 50 of file TrkIdManDumb.cxx.

50 {
51 _theValue = maxid;
52}

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