common::scoped_ptr< T, PolicyT > Class Template Reference
[Inteligentne wskaźniki]

Inteligentny wskaźnik z wyłącznym prawem własności. More...

#include <Base.hpp>

List of all members.

Public Types

typedef T value_type
typedef T * ptr_type

Public Member Functions

 scoped_ptr (T *p=NULL)
 ~scoped_ptr ()
T & operator* () const
T * operator-> () const
T & operator[] (uint i) const
T * get () const
void swap (scoped_ptr< T, PolicyT > &b)
void reset (T *p=NULL)
bool is_null ()

Friends

class scoped_ptr
bool operator== (const scoped_ptr &lhs, const T *rhs)
bool operator== (const T *lhs, const scoped_ptr &rhs)
bool operator!= (const scoped_ptr &lhs, const T *rhs)
bool operator!= (const T *lhs, const scoped_ptr &rhs)

Detailed Description

template<typename T, typename PolicyT = DeletePolicy>
class common::scoped_ptr< T, PolicyT >

Inteligentny wskaźnik z wyłącznym prawem własności.


Member Typedef Documentation

template<typename T, typename PolicyT = DeletePolicy>
typedef T* common::scoped_ptr< T, PolicyT >::ptr_type
template<typename T, typename PolicyT = DeletePolicy>
typedef T common::scoped_ptr< T, PolicyT >::value_type

Constructor & Destructor Documentation

template<typename T, typename PolicyT = DeletePolicy>
common::scoped_ptr< T, PolicyT >::scoped_ptr ( T *  p = NULL  )  [inline, explicit]
template<typename T, typename PolicyT = DeletePolicy>
common::scoped_ptr< T, PolicyT >::~scoped_ptr (  )  [inline]

Member Function Documentation

template<typename T, typename PolicyT = DeletePolicy>
T* common::scoped_ptr< T, PolicyT >::get (  )  const [inline]
template<typename T, typename PolicyT = DeletePolicy>
bool common::scoped_ptr< T, PolicyT >::is_null (  )  [inline]
template<typename T, typename PolicyT = DeletePolicy>
T& common::scoped_ptr< T, PolicyT >::operator* (  )  const [inline]
template<typename T, typename PolicyT = DeletePolicy>
T* common::scoped_ptr< T, PolicyT >::operator-> (  )  const [inline]
template<typename T, typename PolicyT = DeletePolicy>
T& common::scoped_ptr< T, PolicyT >::operator[] ( uint  i  )  const [inline]
template<typename T, typename PolicyT = DeletePolicy>
void common::scoped_ptr< T, PolicyT >::reset ( T *  p = NULL  )  [inline]
template<typename T, typename PolicyT = DeletePolicy>
void common::scoped_ptr< T, PolicyT >::swap ( scoped_ptr< T, PolicyT > &  b  )  [inline]

Friends And Related Function Documentation

template<typename T, typename PolicyT = DeletePolicy>
bool operator!= ( const T *  lhs,
const scoped_ptr< T, PolicyT > &  rhs 
) [friend]
template<typename T, typename PolicyT = DeletePolicy>
bool operator!= ( const scoped_ptr< T, PolicyT > &  lhs,
const T *  rhs 
) [friend]
template<typename T, typename PolicyT = DeletePolicy>
bool operator== ( const T *  lhs,
const scoped_ptr< T, PolicyT > &  rhs 
) [friend]
template<typename T, typename PolicyT = DeletePolicy>
bool operator== ( const scoped_ptr< T, PolicyT > &  lhs,
const T *  rhs 
) [friend]
template<typename T, typename PolicyT = DeletePolicy>
friend class scoped_ptr [friend]

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

Generated on Wed Dec 16 20:44:54 2009 for CommonLib by  doxygen 1.6.1