CMS 3D CMS Logo

lat::CallbackImpC20< C, T1, T2 > Class Template Reference

#include <Iguana/Utilities/classlib/utils/Callback.h>

Inheritance diagram for lat::CallbackImpC20< C, T1, T2 >:

lat::Callback2Rep< T1, T2 >

List of all members.

Public Member Functions

virtual void call (T1 a, T2 b)
 CallbackImpC20 (C *object, void(C::*function)(T1, T2))
virtual bool equal (const Callback2Rep< T1, T2 > *other) const

Private Types

typedef CallbackImpC20 self

Private Attributes

void(C::* m_function )(T1, T2)
C * m_object


Detailed Description

template<class C, class T1, class T2>
class lat::CallbackImpC20< C, T1, T2 >

Definition at line 461 of file Callback.h.


Member Typedef Documentation

template<class C, class T1, class T2>
typedef CallbackImpC20 lat::CallbackImpC20< C, T1, T2 >::self [private]

Definition at line 463 of file Callback.h.


Constructor & Destructor Documentation

template<class C, class T1, class T2>
lat::CallbackImpC20< C, T1, T2 >::CallbackImpC20 ( C *  object,
void(C::*)(T1, T2)  function 
) [inline]

Definition at line 465 of file Callback.h.

00466         : m_object (object),
00467           m_function (function)
00468     { }


Member Function Documentation

template<class C, class T1, class T2>
virtual void lat::CallbackImpC20< C, T1, T2 >::call ( T1  a,
T2  b 
) [inline, virtual]

Implements lat::Callback2Rep< T1, T2 >.

Definition at line 470 of file Callback.h.

References lat::CallbackImpC20< C, T1, T2 >::m_function, and lat::CallbackImpC20< C, T1, T2 >::m_object.

00471     { (m_object->*m_function) (a, b); }

template<class C, class T1, class T2>
virtual bool lat::CallbackImpC20< C, T1, T2 >::equal ( const Callback2Rep< T1, T2 > *  other  )  const [inline, virtual]

Implements lat::Callback2Rep< T1, T2 >.

Definition at line 473 of file Callback.h.

References lat::CallbackImpC20< C, T1, T2 >::m_function, lat::CallbackImpC20< C, T1, T2 >::m_object, and x.

00474         { const self *x = dynamic_cast<const self *> (other);
00475           return x && x->m_object == m_object && x->m_function == m_function; }


Member Data Documentation

template<class C, class T1, class T2>
void(C::* lat::CallbackImpC20< C, T1, T2 >::m_function)(T1, T2) [private]

Referenced by lat::CallbackImpC20< C, T1, T2 >::call(), and lat::CallbackImpC20< C, T1, T2 >::equal().

template<class C, class T1, class T2>
C* lat::CallbackImpC20< C, T1, T2 >::m_object [private]

Definition at line 479 of file Callback.h.

Referenced by lat::CallbackImpC20< C, T1, T2 >::call(), and lat::CallbackImpC20< C, T1, T2 >::equal().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:48:24 2009 for CMSSW by  doxygen 1.5.4