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

#include <ptrholder.h>

Public Member Functions

 ArrayPtrHolder (T *t=0) throw ()
 
 ArrayPtrHolder (ArrayPtrHolder &that)
 
 ~ArrayPtrHolder () 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
 
ArrayPtrHolderoperator= (ArrayPtrHolder &that)
 
T & operator* () const
 

Protected Member Functions

void DoDestroy ()
 
T * AsT () const
 

Protected Attributes

T * T_
 

Detailed Description

template<class T>
class ArrayPtrHolder< T >

abstraction layer for pointers allocated with new[]()

Constructor & Destructor Documentation

◆ ArrayPtrHolder() [1/2]

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

◆ ArrayPtrHolder() [2/2]

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

◆ ~ArrayPtrHolder()

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

References PtrHolder< T >::DoDestroy().

Here is the call graph for this function:

Member Function Documentation

◆ Destroy()

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

References PtrHolder< T >::Reset().

Here is the call graph for this function:

◆ operator->()

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

References PtrHolder< T >::AsT().

Here is the call graph for this function:

◆ operator==()

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

References PtrHolder< T >::AsT().

Here is the call graph for this function:

◆ operator!=()

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

References PtrHolder< T >::AsT().

Here is the call graph for this function:

◆ operator bool()

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

References PtrHolder< T >::AsT().

Here is the call graph for this function:

◆ Release()

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

References PtrHolder< T >::T_.

Referenced by ArrayPtrHolder< T >::operator=().

Here is the caller graph for this function:

◆ Reset()

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

References PtrHolder< T >::DoDestroy(), and PtrHolder< T >::T_.

Here is the call graph for this function:

◆ Get()

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

References PtrHolder< T >::T_.

Referenced by CBiblIndex::GetFullBibliographyOfHit().

Here is the caller graph for this function:

◆ operator=()

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

References ArrayPtrHolder< T >::Release(), and PtrHolder< T >::Reset().

Here is the call graph for this function:

◆ operator*()

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

References PtrHolder< T >::AsT().

Here is the call graph for this function:

◆ DoDestroy()

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

References PtrHolder< T >::T_.

◆ AsT()

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

Member Data Documentation

◆ T_

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

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