CMS 3D CMS Logo

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

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

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

lat::CallbackRep

List of all members.

Public Member Functions

virtual void call (void)
 CallbackImpF02 (void(*function)(T1, T2), const T1 &fill_1, const T2 &fill_2)
virtual bool equal (const CallbackRep *other) const

Private Types

typedef CallbackImpF02 self

Private Attributes

T1 m_fill_1
T2 m_fill_2
void(* m_function )(T1, T2)


Detailed Description

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

Definition at line 226 of file Callback.h.


Member Typedef Documentation

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

Definition at line 228 of file Callback.h.


Constructor & Destructor Documentation

template<class T1, class T2>
lat::CallbackImpF02< T1, T2 >::CallbackImpF02 ( void(*)(T1, T2)  function,
const T1 &  fill_1,
const T2 &  fill_2 
) [inline]

Definition at line 230 of file Callback.h.

00232         : m_function (function),
00233           m_fill_1 (fill_1),
00234           m_fill_2 (fill_2)
00235     { }


Member Function Documentation

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

Implements lat::CallbackRep.

Definition at line 237 of file Callback.h.

References lat::CallbackImpF02< T1, T2 >::m_fill_1, and lat::CallbackImpF02< T1, T2 >::m_fill_2.

00238     { (*m_function) (m_fill_1, m_fill_2); }

template<class T1, class T2>
virtual bool lat::CallbackImpF02< T1, T2 >::equal ( const CallbackRep other  )  const [inline, virtual]

Implements lat::CallbackRep.

Definition at line 240 of file Callback.h.

References lat::CallbackImpF02< T1, T2 >::m_fill_1, lat::CallbackImpF02< T1, T2 >::m_fill_2, lat::CallbackImpF02< T1, T2 >::m_function, and x.

00241         { const self *x = dynamic_cast<const self *> (other);
00242           return x && x->m_function == m_function && x->m_fill_1 == m_fill_1
00243                    && x->m_fill_2 == m_fill_2; }


Member Data Documentation

template<class T1, class T2>
T1 lat::CallbackImpF02< T1, T2 >::m_fill_1 [private]

Definition at line 247 of file Callback.h.

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

template<class T1, class T2>
T2 lat::CallbackImpF02< T1, T2 >::m_fill_2 [private]

Definition at line 248 of file Callback.h.

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

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

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