CMS 3D CMS Logo

lat::Hook1Rep< R, T1 > Class Template Reference

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

Inheritance diagram for lat::Hook1Rep< R, T1 >:

lat::HookImpC10< C, R, T1 > lat::HookImpC11< C, R, T1, T2 > lat::HookImpC12< C, R, T1, T2, T3 > lat::HookImpF10< R, T1 > lat::HookImpF11< R, T1, T2 > lat::HookImpF12< R, T1, T2, T3 >

List of all members.

Public Member Functions

virtual R call (T1)=0
 Hook1Rep (void)
void ref (void)
void unref (void)
virtual ~Hook1Rep (void)

Private Attributes

int m_refs


Detailed Description

template<class R, class T1>
class lat::Hook1Rep< R, T1 >

Definition at line 51 of file Hook.h.


Constructor & Destructor Documentation

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

Definition at line 54 of file Hook.h.

00054 : m_refs (0) { }

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

Definition at line 55 of file Hook.h.

00055 { }


Member Function Documentation

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

Implemented in lat::HookImpF10< R, T1 >, lat::HookImpC10< C, R, T1 >, lat::HookImpF11< R, T1, T2 >, lat::HookImpC11< C, R, T1, T2 >, lat::HookImpF12< R, T1, T2, T3 >, and lat::HookImpC12< C, R, T1, T2, T3 >.

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

Definition at line 58 of file Hook.h.

References lat::Hook1Rep< R, T1 >::m_refs.

00058 { ++m_refs; }

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

Definition at line 59 of file Hook.h.

References lat::Hook1Rep< R, T1 >::m_refs.

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


Member Data Documentation

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

Definition at line 62 of file Hook.h.

Referenced by lat::Hook1Rep< R, T1 >::ref(), and lat::Hook1Rep< R, T1 >::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