Public Member Functions | Friends

CL_SharedPtr< Type > Class Template Reference
[clanCore System]

CL_SharedPtr. More...

#include <sharedptr.h>

List of all members.

Public Member Functions

 CL_SharedPtr ()
 CL_SharedPtr (const CL_SharedPtr< Type > &copy)
template<typename InitType >
 CL_SharedPtr (InitType *ptr, CL_MemoryPool *memory_pool)
template<typename InitType >
 CL_SharedPtr (InitType *ptr, void(*free_callback)(InitType *ptr))
template<typename InitType >
 CL_SharedPtr (InitType *ptr)
template<typename InitType , typename FreeClass >
 CL_SharedPtr (InitType *ptr, FreeClass *free_class, void(FreeClass::*free_callback)(InitType *ptr))
 CL_SharedPtr (CL_SharedPtrData *other)
 ~CL_SharedPtr ()
bool disconnect ()
const Type * get () const
 Retrieves the pointer.
Type * get ()
 Retrieves the pointer.
bool is_null () const
 Tests if the pointer is unset.
template<typename InitType >
 operator CL_SharedPtr< InitType > ()
template<typename InitType >
 operator CL_SharedPtr< InitType > () const
 operator const Type * () const
 operator Type * ()
template<typename OtherType >
bool operator!= (OtherType *other) const
Type * operator-> ()
const Type * operator-> () const
template<typename OtherType >
bool operator< (OtherType *other) const
template<typename OtherType >
bool operator<= (OtherType *other) const
CL_SharedPtroperator= (const CL_SharedPtr &copy)
template<typename OtherType >
bool operator== (OtherType *other) const
template<typename OtherType >
bool operator> (OtherType *other) const
template<typename OtherType >
bool operator>= (OtherType *other) const

Friends

class CL_WeakPtr< Type >

Detailed Description

template<typename Type>
class CL_SharedPtr< Type >

CL_SharedPtr.


Constructor & Destructor Documentation

template<typename Type>
CL_SharedPtr< Type >::CL_SharedPtr (  )  [inline]
template<typename Type>
CL_SharedPtr< Type >::CL_SharedPtr ( const CL_SharedPtr< Type > &  copy  )  [inline]
template<typename Type>
template<typename InitType >
CL_SharedPtr< Type >::CL_SharedPtr ( InitType *  ptr  )  [inline, explicit]
template<typename Type>
template<typename InitType >
CL_SharedPtr< Type >::CL_SharedPtr ( InitType *  ptr,
CL_MemoryPool memory_pool 
) [inline, explicit]
template<typename Type>
template<typename InitType >
CL_SharedPtr< Type >::CL_SharedPtr ( InitType *  ptr,
void(*)(InitType *ptr)  free_callback 
) [inline, explicit]
template<typename Type>
template<typename InitType , typename FreeClass >
CL_SharedPtr< Type >::CL_SharedPtr ( InitType *  ptr,
FreeClass *  free_class,
void(FreeClass::*)(InitType *ptr)  free_callback 
) [inline, explicit]
template<typename Type>
CL_SharedPtr< Type >::CL_SharedPtr ( CL_SharedPtrData other  )  [inline]
template<typename Type>
CL_SharedPtr< Type >::~CL_SharedPtr (  )  [inline]

Member Function Documentation

template<typename Type>
bool CL_SharedPtr< Type >::disconnect (  )  [inline]
template<typename Type>
Type* CL_SharedPtr< Type >::get (  )  [inline]

Retrieves the pointer.

Returns:
The pointer (May be NULL, if it has not been set)
template<typename Type>
const Type* CL_SharedPtr< Type >::get (  )  const [inline]

Retrieves the pointer.

Returns:
The pointer (May be NULL, if it has not been set)
template<typename Type>
bool CL_SharedPtr< Type >::is_null (  )  const [inline]
template<typename Type>
template<typename InitType >
CL_SharedPtr< Type >::operator CL_SharedPtr< InitType > (  )  const [inline]
template<typename Type>
template<typename InitType >
CL_SharedPtr< Type >::operator CL_SharedPtr< InitType > (  )  [inline]
template<typename Type>
CL_SharedPtr< Type >::operator const Type * (  )  const [inline]
template<typename Type>
CL_SharedPtr< Type >::operator Type * (  )  [inline]
template<typename Type>
template<typename OtherType >
bool CL_SharedPtr< Type >::operator!= ( OtherType *  other  )  const [inline]
template<typename Type>
Type* CL_SharedPtr< Type >::operator-> (  )  [inline]
template<typename Type>
const Type* CL_SharedPtr< Type >::operator-> (  )  const [inline]
template<typename Type>
template<typename OtherType >
bool CL_SharedPtr< Type >::operator< ( OtherType *  other  )  const [inline]
template<typename Type>
template<typename OtherType >
bool CL_SharedPtr< Type >::operator<= ( OtherType *  other  )  const [inline]
template<typename Type>
CL_SharedPtr& CL_SharedPtr< Type >::operator= ( const CL_SharedPtr< Type > &  copy  )  [inline]
template<typename Type>
template<typename OtherType >
bool CL_SharedPtr< Type >::operator== ( OtherType *  other  )  const [inline]
template<typename Type>
template<typename OtherType >
bool CL_SharedPtr< Type >::operator> ( OtherType *  other  )  const [inline]
template<typename Type>
template<typename OtherType >
bool CL_SharedPtr< Type >::operator>= ( OtherType *  other  )  const [inline]

Friends And Related Function Documentation

template<typename Type>
friend class CL_WeakPtr< Type > [friend]

Member Data Documentation

template<typename Type>
CL_SharedPtrData* CL_SharedPtr< Type >::data
template<typename Type>
Type** CL_SharedPtr< Type >::p

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