ATLAS Offline Software
Loading...
Searching...
No Matches
CallBackID Class Reference

#include <CallBackID.h>

Collaboration diagram for CallBackID:

Public Member Functions

 CallBackID ()
template<typename T>
 CallBackID (StatusCode(T::*updF)(IOVSVC_CALLBACK_ARGS), const T *obj)
template<typename T>
void set (StatusCode(T::*updF)(IOVSVC_CALLBACK_ARGS), const T *obj)
const std::string & name () const
const std::string & objName () const
int offset () const
const void * ptr () const
bool operator== (const CallBackID &cb) const
bool operator< (const CallBackID &cb) const

Private Attributes

long m_offset
const void * p_obj
std::string m_name
std::string m_objName

Detailed Description

Definition at line 24 of file CallBackID.h.

Constructor & Destructor Documentation

◆ CallBackID() [1/2]

CallBackID::CallBackID ( )
inline

Definition at line 26 of file CallBackID.h.

26:m_offset(0),p_obj(0){};
long m_offset
Definition CallBackID.h:53
const void * p_obj
Definition CallBackID.h:54

◆ CallBackID() [2/2]

template<typename T>
CallBackID::CallBackID ( StatusCode(T::* updF )(IOVSVC_CALLBACK_ARGS),
const T * obj )
inline

Definition at line 29 of file CallBackID.h.

29 {
30 set(updF,obj);
31 }
void set(StatusCode(T::*updF)(IOVSVC_CALLBACK_ARGS), const T *obj)

Member Function Documentation

◆ name()

const std::string & CallBackID::name ( ) const
inline

Definition at line 36 of file CallBackID.h.

36{ return m_name; }
std::string m_name
Definition CallBackID.h:56

◆ objName()

const std::string & CallBackID::objName ( ) const
inline

Definition at line 37 of file CallBackID.h.

37{ return m_objName; }
std::string m_objName
Definition CallBackID.h:57

◆ offset()

int CallBackID::offset ( ) const
inline

Definition at line 38 of file CallBackID.h.

38{ return m_offset; }

◆ operator<()

bool CallBackID::operator< ( const CallBackID & cb) const
inline

Definition at line 44 of file CallBackID.h.

44 {
45 if ( p_obj != cb.p_obj ) {
46 return ( p_obj < cb.p_obj ) ;
47 } else {
48 return ( m_offset < cb.m_offset );
49 }
50 }

◆ operator==()

bool CallBackID::operator== ( const CallBackID & cb) const
inline

Definition at line 41 of file CallBackID.h.

41 {
42 return ( cb.m_offset == m_offset && cb.p_obj == p_obj );
43 }

◆ ptr()

const void * CallBackID::ptr ( ) const
inline

Definition at line 39 of file CallBackID.h.

39{ return p_obj; }

◆ set()

template<typename T>
void CallBackID::set ( StatusCode(T::* updF )(IOVSVC_CALLBACK_ARGS),
const T * obj )

Member Data Documentation

◆ m_name

std::string CallBackID::m_name
private

Definition at line 56 of file CallBackID.h.

◆ m_objName

std::string CallBackID::m_objName
private

Definition at line 57 of file CallBackID.h.

◆ m_offset

long CallBackID::m_offset
private

Definition at line 53 of file CallBackID.h.

◆ p_obj

const void* CallBackID::p_obj
private

Definition at line 54 of file CallBackID.h.


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