The Gaudi Framework  master (37c0b60a)
Gaudi::TestSuite::Counter Class Reference

#include </builds/gaudi/Gaudi/GaudiTestSuite/include/GaudiTestSuite/Counter.h>

Inheritance diagram for Gaudi::TestSuite::Counter:
Collaboration diagram for Gaudi::TestSuite::Counter:

Classes

class  GaudiHistoAlgorithm
 Example of algorithm using histograms accumulators. More...
 
class  GaudiRootHistoAlgorithm
 Example of algorithm using root histograms accumulators. More...
 
class  HistoTimingAlg
 Simple timing of counter based histograms filling. More...
 

Public Types

using HistoTimingAlgDA = HistoTimingAlg< double, Gaudi::Accumulators::atomicity::full >
 
using HistoTimingAlgIA = HistoTimingAlg< unsigned int, Gaudi::Accumulators::atomicity::full >
 
using HistoTimingAlgD = HistoTimingAlg< double, Gaudi::Accumulators::atomicity::none >
 
using HistoTimingAlgI = HistoTimingAlg< unsigned int, Gaudi::Accumulators::atomicity::none >
 

Public Member Functions

 Counter ()
 Constructors. More...
 
const CLIDclID () const override
 Retrieve reference to class definition structure. More...
 
int value () const
 Retrieve counter value. More...
 
int increment ()
 Increment counter. More...
 
int decrement ()
 Decrement counter. More...
 
void set (int val)
 Set value. More...
 
- Public Member Functions inherited from DataObject
 DataObject ()
 Standard Constructor. More...
 
 DataObject (const DataObject &rhs)
 Copy Constructor. More...
 
DataObjectoperator= (const DataObject &rhs)
 Assignment Operator. More...
 
 DataObject (DataObject &&rhs)
 Move Constructor. More...
 
DataObjectoperator= (DataObject &&rhs)
 Move Assignment Operator. More...
 
virtual ~DataObject ()
 Standard Destructor. More...
 
virtual unsigned long addRef ()
 Add reference to object. More...
 
virtual unsigned long release ()
 release reference to object More...
 
const std::stringname () const
 Retreive DataObject name. It is the name when registered in the store. More...
 
virtual StatusCode update ()
 Provide empty placeholder for internal object reconfiguration callback. More...
 
void setRegistry (IRegistry *pRegistry)
 Set pointer to Registry. More...
 
IRegistryregistry () const
 Get pointer to Registry. More...
 
LinkManagerlinkMgr ()
 Retrieve Link manager. More...
 
const LinkManagerlinkMgr () const
 
unsigned char version () const
 Retrieve version number of this object representation. More...
 
void setVersion (unsigned char vsn)
 Set version number of this object representation. More...
 
unsigned long refCount () const
 Return the refcount. More...
 
virtual std::ostreamfillStream (std::ostream &s) const
 Fill the output stream (ASCII) More...
 

Static Public Member Functions

static const CLIDclassID ()
 
- Static Public Member Functions inherited from DataObject
static const CLIDclassID ()
 Retrieve reference to class definition structure (static access) More...
 

Private Attributes

int m_counter
 Counter number. More...
 

Detailed Description

Simple counter object

Author
Markus Frank

Definition at line 30 of file Counter.h.

Member Typedef Documentation

◆ HistoTimingAlgD

◆ HistoTimingAlgDA

◆ HistoTimingAlgI

◆ HistoTimingAlgIA

Constructor & Destructor Documentation

◆ Counter()

Gaudi::TestSuite::Counter::Counter ( )

Constructors.

Definition at line 15 of file Counter.cpp.

15 : DataObject(), m_counter( 0 ) {}

Member Function Documentation

◆ classID()

static const CLID& Gaudi::TestSuite::Counter::classID ( )
inlinestatic

Definition at line 38 of file Counter.h.

38 { return CLID_Counter; }

◆ clID()

const CLID& Gaudi::TestSuite::Counter::clID ( ) const
inlineoverridevirtual

Retrieve reference to class definition structure.

Reimplemented from DataObject.

Definition at line 37 of file Counter.h.

37 { return classID(); }

◆ decrement()

int Gaudi::TestSuite::Counter::decrement ( )
inline

Decrement counter.

Definition at line 45 of file Counter.h.

45 { return --m_counter; }

◆ increment()

int Gaudi::TestSuite::Counter::increment ( )
inline

Increment counter.

Definition at line 43 of file Counter.h.

43 { return ++m_counter; }

◆ set()

void Gaudi::TestSuite::Counter::set ( int  val)
inline

Set value.

Definition at line 47 of file Counter.h.

47 { m_counter = val; }

◆ value()

int Gaudi::TestSuite::Counter::value ( ) const
inline

Retrieve counter value.

Definition at line 41 of file Counter.h.

41 { return m_counter; }

Member Data Documentation

◆ m_counter

int Gaudi::TestSuite::Counter::m_counter
private

Counter number.

Definition at line 51 of file Counter.h.


The documentation for this class was generated from the following files:
Gaudi::TestSuite::Counter::classID
static const CLID & classID()
Definition: Counter.h:38
Gaudi::TestSuite::Counter::m_counter
int m_counter
Counter number.
Definition: Counter.h:51
DataObject::DataObject
DataObject()
Standard Constructor.
Definition: DataObject.cpp:23