GfxProxy< T > Class Template Reference

#include <GfxProxy.h>

Inheritance diagram for GfxProxy< T >:
GfxProxyBase GfxProxyBase NamedProxy NamedProxy NamedProxy NamedProxy

List of all members.

Public Member Functions

 GfxProxy (const char *name, GfxMenu *menu=0)
virtual ~GfxProxy ()
T * Create ()
std::list< T * > GetInstances ()
 GfxProxy (const char *name, GfxMenu *menu=0)
virtual ~GfxProxy ()
T * Create ()
std::list< T * > GetInstances ()

Private Member Functions

void Remove (T *t)
void Remove (T *t)

Private Attributes

std::list< T * > fInstances

Detailed Description

template<class T>
class GfxProxy< T >

Id
GfxProxy.h,v 1.1 2003/05/21 20:59:54 musser Exp
Id
GfxProxy.h,v 1.4 2005/07/21 20:46:42 bv Exp

Definition at line 51 of file EventDisplay/HEAD/GfxProxy.h.


Constructor & Destructor Documentation

template<class T>
GfxProxy< T >::GfxProxy ( const char *  name,
GfxMenu menu = 0 
) [inline]

Definition at line 58 of file EventDisplay/HEAD/GfxProxy.h.

00058 : GfxProxyBase(name,menu) {}

template<class T>
virtual GfxProxy< T >::~GfxProxy (  )  [inline, virtual]

Definition at line 59 of file EventDisplay/HEAD/GfxProxy.h.

00059 {}

template<class T>
GfxProxy< T >::GfxProxy ( const char *  name,
GfxMenu menu = 0 
) [inline]

Definition at line 59 of file Midad/HEAD/MultiPage/GfxProxy.h.

00059 : GfxProxyBase(name,menu) {}

template<class T>
virtual GfxProxy< T >::~GfxProxy (  )  [inline, virtual]

Definition at line 60 of file Midad/HEAD/MultiPage/GfxProxy.h.

00060 {}


Member Function Documentation

template<class T>
T* GfxProxy< T >::Create (  )  [inline, virtual]

Implements GfxProxyBase.

Definition at line 62 of file Midad/HEAD/MultiPage/GfxProxy.h.

References GfxProxy< T >::fInstances.

00062                 { 
00063         T* t = new T();
00064         fInstances.push_back(t);
00065         t->destroyed.connect(SigC::bind(SigC::slot_class(*this,&GfxProxy<T>::Remove),t));
00066         return t;
00067     }

template<class T>
T* GfxProxy< T >::Create (  )  [inline, virtual]

Implements GfxProxyBase.

Definition at line 61 of file EventDisplay/HEAD/GfxProxy.h.

References GfxProxy< T >::fInstances.

00061                 { 
00062         T* t = new T();
00063         fInstances.push_back(t);
00064         t->destroyed.connect(SigC::bind(SigC::slot_class(*this,&GfxProxy<T>::Remove),t));
00065         return t;
00066     }

template<class T>
std::list<T*> GfxProxy< T >::GetInstances (  )  [inline]

Definition at line 68 of file Midad/HEAD/MultiPage/GfxProxy.h.

References GfxProxy< T >::fInstances.

00068 { return fInstances; };

template<class T>
std::list<T*> GfxProxy< T >::GetInstances (  )  [inline]
template<class T>
void GfxProxy< T >::Remove ( T *  t  )  [inline, private]

Definition at line 55 of file Midad/HEAD/MultiPage/GfxProxy.h.

References GfxProxy< T >::fInstances.

00055 { fInstances.remove(t); }

template<class T>
void GfxProxy< T >::Remove ( T *  t  )  [inline, private]

Definition at line 54 of file EventDisplay/HEAD/GfxProxy.h.

References GfxProxy< T >::fInstances.

00054 { fInstances.remove(t); }


Member Data Documentation

template<class T>
std::list< T * > GfxProxy< T >::fInstances [private]

The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1