CMS 3D CMS Logo

lat::HookRep< R > Class Template Reference

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

Inheritance diagram for lat::HookRep< R >:

lat::HookImpC00< C, R > lat::HookImpC01< C, R, T1 > lat::HookImpC02< C, R, T1, T2 > lat::HookImpF00< R > lat::HookImpF01< R, T1 > lat::HookImpF02< R, T1, T2 >

List of all members.

Public Member Functions

virtual R call (void)=0
 HookRep (void)
void ref (void)
void unref (void)
virtual ~HookRep (void)

Private Attributes

int m_refs


Detailed Description

template<class R>
class lat::HookRep< R >

Definition at line 17 of file Hook.h.


Constructor & Destructor Documentation

template<class R>
lat::HookRep< R >::HookRep ( void   )  [inline]

Definition at line 20 of file Hook.h.

00020 : m_refs (0) { }

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

Definition at line 21 of file Hook.h.

00021 { }


Member Function Documentation

template<class R>
virtual R lat::HookRep< R >::call ( void   )  [pure virtual]

Implemented in lat::HookImpF00< R >, lat::HookImpC00< C, R >, lat::HookImpF01< R, T1 >, lat::HookImpC01< C, R, T1 >, lat::HookImpF02< R, T1, T2 >, and lat::HookImpC02< C, R, T1, T2 >.

template<class R>
void lat::HookRep< R >::ref ( void   )  [inline]

Definition at line 25 of file Hook.h.

References lat::HookRep< R >::m_refs.

00025 { ++m_refs; }

template<class R>
void lat::HookRep< R >::unref ( void   )  [inline]

Definition at line 26 of file Hook.h.

References lat::HookRep< R >::m_refs.

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


Member Data Documentation

template<class R>
int lat::HookRep< R >::m_refs [private]

Definition at line 29 of file Hook.h.

Referenced by lat::HookRep< R >::ref(), and lat::HookRep< R >::unref().


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