CMS 3D CMS Logo

lat::Hook2Rep< R, T1, T2 > Class Template Reference

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

Inheritance diagram for lat::Hook2Rep< R, T1, T2 >:

lat::HookImpC20< C, R, T1, T2 > lat::HookImpC21< C, R, T1, T2, T3 > lat::HookImpC22< C, R, T1, T2, T3, T4 > lat::HookImpF20< R, T1, T2 > lat::HookImpF21< R, T1, T2, T3 > lat::HookImpF22< R, T1, T2, T3, T4 >

List of all members.

Public Member Functions

virtual R call (T1, T2)=0
 Hook2Rep (void)
void ref (void)
void unref (void)
virtual ~Hook2Rep (void)

Private Attributes

int m_refs


Detailed Description

template<class R, class T1, class T2>
class lat::Hook2Rep< R, T1, T2 >

Definition at line 84 of file Hook.h.


Constructor & Destructor Documentation

template<class R, class T1, class T2>
lat::Hook2Rep< R, T1, T2 >::Hook2Rep ( void   )  [inline]

Definition at line 87 of file Hook.h.

00087 : m_refs (0) { }

template<class R, class T1, class T2>
virtual lat::Hook2Rep< R, T1, T2 >::~Hook2Rep ( void   )  [inline, virtual]

Definition at line 88 of file Hook.h.

00088 { }


Member Function Documentation

template<class R, class T1, class T2>
virtual R lat::Hook2Rep< R, T1, T2 >::call ( T1  ,
T2   
) [pure virtual]

Implemented in lat::HookImpF20< R, T1, T2 >, lat::HookImpC20< C, R, T1, T2 >, lat::HookImpF21< R, T1, T2, T3 >, lat::HookImpC21< C, R, T1, T2, T3 >, lat::HookImpF22< R, T1, T2, T3, T4 >, and lat::HookImpC22< C, R, T1, T2, T3, T4 >.

template<class R, class T1, class T2>
void lat::Hook2Rep< R, T1, T2 >::ref ( void   )  [inline]

Definition at line 91 of file Hook.h.

References lat::Hook2Rep< R, T1, T2 >::m_refs.

00091 { ++m_refs; }

template<class R, class T1, class T2>
void lat::Hook2Rep< R, T1, T2 >::unref ( void   )  [inline]

Definition at line 92 of file Hook.h.

References lat::Hook2Rep< R, T1, T2 >::m_refs.

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


Member Data Documentation

template<class R, class T1, class T2>
int lat::Hook2Rep< R, T1, T2 >::m_refs [private]

Definition at line 95 of file Hook.h.

Referenced by lat::Hook2Rep< R, T1, T2 >::ref(), and lat::Hook2Rep< R, T1, T2 >::unref().


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