GammaLib 2.0.0
Loading...
Searching...
No Matches
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.
 

Detailed Description

template<class T>
class GRegistryPointer< T >

Smart pointer for registry classes.

Definition at line 43 of file GRegistry.hpp.

Constructor & Destructor Documentation

◆ GRegistryPointer() [1/2]

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

Definition at line 47 of file GRegistry.hpp.

◆ GRegistryPointer() [2/2]

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

Definition at line 48 of file GRegistry.hpp.

◆ ~GRegistryPointer()

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

◆ assign()

template<class T >
void GRegistryPointer< T >::assign ( T * ptr)
inline

◆ free_members()

template<class T >
void GRegistryPointer< T >::free_members ( void )
inlineprivate

◆ operator*()

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

Definition at line 59 of file GRegistry.hpp.

References GRegistryPointer< T >::m_ptr.

◆ operator->()

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

Definition at line 60 of file GRegistry.hpp.

References GRegistryPointer< T >::m_ptr.

◆ operator=()

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

◆ operator[]()

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

◆ m_ptr


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