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

Inteligentny wskaźnik ze zliczaniem referencji. More...

#include <Base.hpp>

List of all members.

Public Types

typedef T value_type
typedef T * ptr_type

Public Member Functions

 shared_ptr (T *p=NULL)
 ~shared_ptr ()
 shared_ptr (const shared_ptr &p)
shared_ptroperator= (const shared_ptr &p)
template<typename U , typename PolicyU >
 shared_ptr (const shared_ptr< U, PolicyU > &p)
template<typename U , typename PolicyU >
shared_ptroperator= (const shared_ptr< U, PolicyU > &p)
T & operator* () const
T * operator-> () const
T & operator[] (uint i) const
template<typename U , typename PolicyU >
bool operator== (const shared_ptr< U, PolicyU > &rhs) const
template<typename U , typename PolicyU >
bool operator!= (const shared_ptr< U, PolicyU > &rhs) const
T * get () const
void swap (shared_ptr< T, PolicyT > &b)
void reset (T *p=NULL)
template<typename U , typename PolicyU >
void reset (const shared_ptr< U, PolicyU > &p)
bool unique () const
bool is_null ()

Friends

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

Detailed Description

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

Inteligentny wskaźnik ze zliczaniem referencji.


Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename T, typename PolicyT = DeletePolicy>
common::shared_ptr< T, PolicyT >::shared_ptr ( T *  p = NULL  )  [inline, explicit]
template<typename T, typename PolicyT = DeletePolicy>
common::shared_ptr< T, PolicyT >::~shared_ptr (  )  [inline]
template<typename T, typename PolicyT = DeletePolicy>
common::shared_ptr< T, PolicyT >::shared_ptr ( const shared_ptr< T, PolicyT > &  p  )  [inline]
template<typename T, typename PolicyT = DeletePolicy>
template<typename U , typename PolicyU >
common::shared_ptr< T, PolicyT >::shared_ptr ( const shared_ptr< U, PolicyU > &  p  )  [inline, explicit]

Member Function Documentation

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

Friends And Related Function Documentation

template<typename T, typename PolicyT = DeletePolicy>
bool operator!= ( const T *  lhs,
const shared_ptr< T, PolicyT > &  rhs 
) [friend]
template<typename T, typename PolicyT = DeletePolicy>
bool operator!= ( const shared_ptr< T, PolicyT > &  lhs,
const T *  rhs 
) [friend]
template<typename T, typename PolicyT = DeletePolicy>
bool operator== ( const T *  lhs,
const shared_ptr< T, PolicyT > &  rhs 
) [friend]
template<typename T, typename PolicyT = DeletePolicy>
bool operator== ( const shared_ptr< T, PolicyT > &  lhs,
const T *  rhs 
) [friend]
template<typename T, typename PolicyT = DeletePolicy>
friend class shared_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