GammaLib  2.1.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GRegistryPointer< T > Class Template Reference

Smart pointer for registry classes. More...

#include <GRegistry.hpp>

Public Member Functions

 GRegistryPointer (void)
 
 GRegistryPointer (const GRegistryPointer< T > &ptr)
 
virtual ~GRegistryPointer (void)
 
GRegistryPointer< T > & operator= (const GRegistryPointer< T > &ptr)
 
T & operator* () const
 
T * operator-> () const
 
T & operator[] (const int &index) const
 
void assign (T *ptr)
 

Private Member Functions

void free_members (void)
 

Private Attributes

T * m_ptr
 Pointer. More...
 

Detailed Description

template<class T>
class GRegistryPointer< T >

Smart pointer for registry classes.

Definition at line 43 of file GRegistry.hpp.

Constructor & Destructor Documentation

template<class T>
GRegistryPointer< T >::GRegistryPointer ( void  )
inline

Definition at line 47 of file GRegistry.hpp.

template<class T>
GRegistryPointer< T >::GRegistryPointer ( const GRegistryPointer< T > &  ptr)
inline

Definition at line 48 of file GRegistry.hpp.

template<class T>
virtual GRegistryPointer< T >::~GRegistryPointer ( void  )
inlinevirtual

Definition at line 49 of file GRegistry.hpp.

References GRegistryPointer< T >::free_members().

Member Function Documentation

template<class T>
void GRegistryPointer< T >::assign ( T *  ptr)
inline
template<class T>
void GRegistryPointer< T >::free_members ( void  )
inlineprivate
template<class T>
T& GRegistryPointer< T >::operator* ( ) const
inline

Definition at line 59 of file GRegistry.hpp.

References GRegistryPointer< T >::m_ptr.

template<class T>
T* GRegistryPointer< T >::operator-> ( ) const
inline

Definition at line 60 of file GRegistry.hpp.

References GRegistryPointer< T >::m_ptr.

template<class T>
GRegistryPointer<T>& GRegistryPointer< T >::operator= ( const GRegistryPointer< T > &  ptr)
inline
template<class T>
T& GRegistryPointer< T >::operator[] ( const int &  index) const
inline

Definition at line 61 of file GRegistry.hpp.

References GRegistryPointer< T >::m_ptr.

Member Data Documentation


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