CMS 3D CMS Logo

lat::CallbackImpF20< T1, T2 > Class Template Reference

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

Inheritance diagram for lat::CallbackImpF20< T1, T2 >:

lat::Callback2Rep< T1, T2 >

List of all members.

Public Member Functions

virtual void call (T1 a, T2 b)
 CallbackImpF20 (void(*function)(T1, T2))
virtual bool equal (const Callback2Rep< T1, T2 > *other) const

Private Types

typedef CallbackImpF20 self

Private Attributes

void(* m_function )(T1, T2)


Detailed Description

template<class T1, class T2>
class lat::CallbackImpF20< T1, T2 >

Definition at line 440 of file Callback.h.


Member Typedef Documentation

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

Definition at line 442 of file Callback.h.


Constructor & Destructor Documentation

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

Definition at line 444 of file Callback.h.

00445         : m_function (function)
00446     { }


Member Function Documentation

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

Implements lat::Callback2Rep< T1, T2 >.

Definition at line 448 of file Callback.h.

00449     { (*m_function) (a, b); }

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

Implements lat::Callback2Rep< T1, T2 >.

Definition at line 451 of file Callback.h.

References lat::CallbackImpF20< T1, T2 >::m_function, and x.

00452         { const self *x = dynamic_cast<const self *> (other);
00453           return x && x->m_function == m_function; }


Member Data Documentation

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

Referenced by lat::CallbackImpF20< 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