ddc
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PtrHolder< T > Class Template Reference

#include <ptrholder.h>

Inheritance diagram for PtrHolder< T >:
Inheritance graph
[legend]
Collaboration diagram for PtrHolder< T >:
Collaboration graph
[legend]

Public Member Functions

 PtrHolder (T *t=0) throw ()
 
 PtrHolder (PtrHolder &that)
 
 ~PtrHolder () throw ()
 
void Destroy () throw ()
 
T * operator-> () const throw ()
 
template<class C >
bool operator== (const C &p) const
 
template<class C >
bool operator!= (const C &p) const
 
 operator bool () const
 
T * Release ()
 
void Reset (T *t)
 
T * Get () const
 
PtrHolderoperator= (PtrHolder &that)
 
T & operator* () const
 

Protected Member Functions

void DoDestroy ()
 
T * AsT () const
 

Protected Attributes

T * T_
 

Detailed Description

template<class T>
class PtrHolder< T >

abstraction layer for pointers allocated with new()

Constructor & Destructor Documentation

◆ PtrHolder() [1/2]

template<class T>
PtrHolder< T >::PtrHolder ( T *  t = 0)
throw (
)
inline

◆ PtrHolder() [2/2]

template<class T>
PtrHolder< T >::PtrHolder ( PtrHolder< T > &  that)
inline

◆ ~PtrHolder()

template<class T>
PtrHolder< T >::~PtrHolder ( )
throw (
)
inline

Member Function Documentation

◆ Destroy()

template<class T>
void PtrHolder< T >::Destroy ( )
throw (
)
inline

◆ operator->()

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

◆ operator==()

template<class T>
template<class C >
bool PtrHolder< T >::operator== ( const C &  p) const
inline

◆ operator!=()

template<class T>
template<class C >
bool PtrHolder< T >::operator!= ( const C &  p) const
inline

◆ operator bool()

template<class T>
PtrHolder< T >::operator bool ( ) const
inline

◆ Release()

template<class T>
T* PtrHolder< T >::Release ( )
inline

Referenced by PtrHolder< CBibliography >::operator=().

Here is the caller graph for this function:

◆ Reset()

template<class T>
void PtrHolder< T >::Reset ( T *  t)
inline

◆ Get()

template<class T>
T* PtrHolder< T >::Get ( ) const
inline

Referenced by CGraphanDicts::GetOborDic(), and CGraphmatFile::LoadDicts().

Here is the caller graph for this function:

◆ operator=()

template<class T>
PtrHolder& PtrHolder< T >::operator= ( PtrHolder< T > &  that)
inline

◆ operator*()

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

◆ DoDestroy()

template<class T>
void PtrHolder< T >::DoDestroy ( )
inlineprotected

◆ AsT()

template<class T>
T* PtrHolder< T >::AsT ( ) const
inlineprotected

Member Data Documentation

◆ T_

template<class T>
T* PtrHolder< T >::T_
protected

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