#include <Iguana/Utilities/classlib/utils/Callback.h>
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 |
Definition at line 461 of file Callback.h.
typedef CallbackImpC20 lat::CallbackImpC20< C, T1, T2 >::self [private] |
Definition at line 463 of file Callback.h.
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 { }
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); }
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; }
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().
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().