ATLAS Offline Software
Public Member Functions | Private Types | Private Attributes | List of all members
Athena::CallbackImpF11< T1, T2 > Class Template Reference

#include <SealSharedLib.h>

Inheritance diagram for Athena::CallbackImpF11< T1, T2 >:
Collaboration diagram for Athena::CallbackImpF11< T1, T2 >:

Public Member Functions

 CallbackImpF11 (void(*function)(T1, T2), const T2 &fill_2)
 
virtual void call (T1 a)
 
virtual bool equal (const Callback1Rep< T1 > *other) const
 
void ref (void)
 
void unref (void)
 

Private Types

typedef CallbackImpF11 self
 

Private Attributes

void(* m_function )(T1, T2)
 
T2 m_fill_2
 
int m_refs
 

Detailed Description

template<class T1, class T2>
class Athena::CallbackImpF11< T1, T2 >

Definition at line 67 of file SealSharedLib.h.

Member Typedef Documentation

◆ self

template<class T1 , class T2 >
typedef CallbackImpF11 Athena::CallbackImpF11< T1, T2 >::self
private

Definition at line 69 of file SealSharedLib.h.

Constructor & Destructor Documentation

◆ CallbackImpF11()

template<class T1 , class T2 >
Athena::CallbackImpF11< T1, T2 >::CallbackImpF11 ( void(*)(T1, T2)  function,
const T2 &  fill_2 
)
inline

Definition at line 71 of file SealSharedLib.h.

73  : m_function (function),
74  m_fill_2 (fill_2)
75  { }

Member Function Documentation

◆ call()

template<class T1 , class T2 >
virtual void Athena::CallbackImpF11< T1, T2 >::call ( T1  a)
inlinevirtual

Implements Athena::Callback1Rep< T1 >.

Definition at line 77 of file SealSharedLib.h.

78  { (*m_function) (a, m_fill_2); }

◆ equal()

template<class T1 , class T2 >
virtual bool Athena::CallbackImpF11< T1, T2 >::equal ( const Callback1Rep< T1 > *  other) const
inlinevirtual

Implements Athena::Callback1Rep< T1 >.

Definition at line 80 of file SealSharedLib.h.

81  { const self *x = dynamic_cast<const self *> (other);
82  return x && x->m_function == m_function && x->m_fill_2 == m_fill_2; }

◆ ref()

template<class T1 >
void Athena::Callback1Rep< T1 >::ref ( void  )
inlineinherited

Definition at line 42 of file SealSharedLib.h.

42 { ++m_refs; }

◆ unref()

template<class T1 >
void Athena::Callback1Rep< T1 >::unref ( void  )
inlineinherited

Definition at line 43 of file SealSharedLib.h.

43 { if (--m_refs == 0) delete this; }

Member Data Documentation

◆ m_fill_2

template<class T1 , class T2 >
T2 Athena::CallbackImpF11< T1, T2 >::m_fill_2
private

Definition at line 86 of file SealSharedLib.h.

◆ m_function

template<class T1 , class T2 >
void(* Athena::CallbackImpF11< T1, T2 >::m_function) (T1, T2)
private

Definition at line 85 of file SealSharedLib.h.

◆ m_refs

template<class T1 >
int Athena::Callback1Rep< T1 >::m_refs
privateinherited

Definition at line 46 of file SealSharedLib.h.


The documentation for this class was generated from the following file:
Athena::CallbackImpF11::m_fill_2
T2 m_fill_2
Definition: SealSharedLib.h:86
x
#define x
Athena::Callback1Rep::m_refs
int m_refs
Definition: SealSharedLib.h:46
Athena::CallbackImpF11::m_function
void(* m_function)(T1, T2)
Definition: SealSharedLib.h:85
a
TList * a
Definition: liststreamerinfos.cxx:10
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
Athena::CallbackImpF11::self
CallbackImpF11 self
Definition: SealSharedLib.h:69