LLDB mainline
Public Member Functions | Private Attributes | List of all members
CFCReleaser< T > Class Template Reference

#include <CFCReleaser.h>

Inheritance diagram for CFCReleaser< T >:
Inheritance graph
[legend]

Public Member Functions

 CFCReleaser (T ptr=NULL)
 
 CFCReleaser (const CFCReleaser &rhs)
 
virtual ~CFCReleaser ()
 
CFCReleaseroperator= (const CFCReleaser< T > &rhs)
 
T * ptr_address (bool enforce_null=true)
 
get ()
 
const T get () const
 
void reset (T ptr=NULL)
 
release ()
 

Private Attributes

_ptr
 

Detailed Description

template<class T>
class CFCReleaser< T >

Definition at line 24 of file CFCReleaser.h.

Constructor & Destructor Documentation

◆ CFCReleaser() [1/2]

template<class T >
CFCReleaser< T >::CFCReleaser ( ptr = NULL)
inline

Definition at line 28 of file CFCReleaser.h.

◆ CFCReleaser() [2/2]

template<class T >
CFCReleaser< T >::CFCReleaser ( const CFCReleaser< T > &  rhs)
inline

Definition at line 36 of file CFCReleaser.h.

References CFCReleaser< T >::get().

◆ ~CFCReleaser()

template<class T >
virtual CFCReleaser< T >::~CFCReleaser ( )
inlinevirtual

Definition at line 43 of file CFCReleaser.h.

References CFCReleaser< T >::reset().

Member Function Documentation

◆ get() [1/2]

template<class T >
T CFCReleaser< T >::get ( )
inline

◆ get() [2/2]

template<class T >
const T CFCReleaser< T >::get ( ) const
inline

Definition at line 82 of file CFCReleaser.h.

References CFCReleaser< T >::_ptr.

◆ operator=()

template<class T >
CFCReleaser & CFCReleaser< T >::operator= ( const CFCReleaser< T > &  rhs)
inline

Definition at line 51 of file CFCReleaser.h.

References CFCReleaser< T >::get(), and CFCReleaser< T >::reset().

◆ ptr_address()

template<class T >
T * CFCReleaser< T >::ptr_address ( bool  enforce_null = true)
inline

Definition at line 73 of file CFCReleaser.h.

References CFCReleaser< T >::_ptr.

◆ release()

template<class T >
T CFCReleaser< T >::release ( )
inline

Definition at line 96 of file CFCReleaser.h.

References CFCReleaser< T >::_ptr.

◆ reset()

template<class T >
void CFCReleaser< T >::reset ( ptr = NULL)
inline

Member Data Documentation

◆ _ptr

template<class T >
T CFCReleaser< T >::_ptr
private

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