Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
SmartPtrBase< Derived, T > Class Template Reference

#include <SmartPtr.h>

Inheritance diagram for SmartPtrBase< Derived, T >:
Inheritance graph
[legend]

Public Member Functions

void Reset (T *p=0)
 
T & operator* () const
 
T * operator-> () const
 
T * Get () const
 
bool Valid () const
 
 operator safe_bool () const
 
bool operator! () const
 
void Swap (this_type &b)
 

Protected Member Functions

 SmartPtrBase ()
 
 SmartPtrBase (T *p)
 

Protected Attributes

 m_ptr = 0
 
return p
 
T * m_ptr
 

Friends

void swap (this_type &a, this_type &b)
 
bool operator== (const this_type &a, const T *b)
 
bool operator!= (const this_type &a, const T *b)
 
bool operator< (const this_type &a, const T *b)
 
bool operator<= (const this_type &a, const T *b)
 
bool operator> (const this_type &a, const T *b)
 
bool operator>= (const this_type &a, const T *b)
 
bool operator== (const T *a, const this_type &b)
 
bool operator!= (const T *a, const this_type &b)
 
bool operator< (const T *a, const this_type &b)
 
bool operator<= (const T *a, const this_type &b)
 
bool operator> (const T *a, const this_type &b)
 
bool operator>= (const T *a, const this_type &b)
 

Constructor & Destructor Documentation

◆ SmartPtrBase() [1/2]

template<typename Derived , typename T >
SmartPtrBase< Derived, T >::SmartPtrBase ( )
inlineprotected

◆ SmartPtrBase() [2/2]

template<typename Derived , typename T >
SmartPtrBase< Derived, T >::SmartPtrBase ( T *  p)
inlineexplicitprotected

Member Function Documentation

◆ Get()

template<typename Derived , typename T >
T * SmartPtrBase< Derived, T >::Get ( ) const
inline

◆ operator safe_bool()

template<typename Derived , typename T >
SmartPtrBase< Derived, T >::operator safe_bool ( ) const
inline

◆ operator!()

template<typename Derived , typename T >
bool SmartPtrBase< Derived, T >::operator! ( ) const
inline

◆ operator*()

template<typename Derived , typename T >
T & SmartPtrBase< Derived, T >::operator* ( ) const
inline

◆ operator->()

template<typename Derived , typename T >
T * SmartPtrBase< Derived, T >::operator-> ( ) const
inline

◆ Reset()

template<typename Derived , typename T >
void SmartPtrBase< Derived, T >::Reset ( T *  p = 0)
inline

◆ Swap()

template<typename Derived , typename T >
void SmartPtrBase< Derived, T >::Swap ( this_type b)
inline

◆ Valid()

template<typename Derived , typename T >
bool SmartPtrBase< Derived, T >::Valid ( ) const
inline

Friends And Related Symbol Documentation

◆ operator!= [1/2]

template<typename Derived , typename T >
bool operator!= ( const T *  a,
const this_type b 
)
friend

◆ operator!= [2/2]

template<typename Derived , typename T >
bool operator!= ( const this_type a,
const T *  b 
)
friend

◆ operator< [1/2]

template<typename Derived , typename T >
bool operator< ( const T *  a,
const this_type b 
)
friend

◆ operator< [2/2]

template<typename Derived , typename T >
bool operator< ( const this_type a,
const T *  b 
)
friend

◆ operator<= [1/2]

template<typename Derived , typename T >
bool operator<= ( const T *  a,
const this_type b 
)
friend

◆ operator<= [2/2]

template<typename Derived , typename T >
bool operator<= ( const this_type a,
const T *  b 
)
friend

◆ operator== [1/2]

template<typename Derived , typename T >
bool operator== ( const T *  a,
const this_type b 
)
friend

◆ operator== [2/2]

template<typename Derived , typename T >
bool operator== ( const this_type a,
const T *  b 
)
friend

◆ operator> [1/2]

template<typename Derived , typename T >
bool operator> ( const T *  a,
const this_type b 
)
friend

◆ operator> [2/2]

template<typename Derived , typename T >
bool operator> ( const this_type a,
const T *  b 
)
friend

◆ operator>= [1/2]

template<typename Derived , typename T >
bool operator>= ( const T *  a,
const this_type b 
)
friend

◆ operator>= [2/2]

template<typename Derived , typename T >
bool operator>= ( const this_type a,
const T *  b 
)
friend

◆ swap

template<typename Derived , typename T >
void swap ( this_type a,
this_type b 
)
friend

Member Data Documentation

◆ m_ptr [1/2]

template<typename Derived , typename T >
SmartPtrBase< Derived, T >::m_ptr = 0
protected

◆ m_ptr [2/2]

template<typename Derived , typename T >
T* SmartPtrBase< Derived, T >::m_ptr
protected

◆ p

template<typename Derived , typename T >
return SmartPtrBase< Derived, T >::p
protected

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