Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_SharedPtr< T, U > Class Template Reference

#include <sharedptr.h>

List of all members.

Public Member Functions

 CL_SharedPtr ()
 Construction:.
 CL_SharedPtr (const CL_SharedPtr< T, U > &other)
 CL_SharedPtr (const CL_UnknownSharedPtr &other)
template<typename D>
 CL_SharedPtr (D *ptr, CL_Mutex *mutex=0)
 CL_SharedPtr (CL_SharedPtr_Generic< T > *impl)
 ~CL_SharedPtr ()
bool is_null () const
 Attributes:.
int get_ref_count () const
U * get ()
const U * get () const
 operator U * ()
 operator const U * () const
bool operator== (const T *other) const
bool operator== (const CL_SharedPtr< T, U > &other) const
CL_SharedPtr< T, U > & operator= (const CL_SharedPtr< T, U > &other)
 Operations:.
CL_SharedPtr< T, U > & operator= (const CL_UnknownSharedPtr &other)
U & operator * ()
U const & operator * () const
U * operator-> ()
U const * operator-> () const
CL_SharedPtr_Generic< T > * get_impl ()

Private Member Functions

void increment ()
void decrement ()

Private Attributes

CL_SharedPtr_Generic< T > * impl
 Implementation:.

Friends

class CL_UnknownSharedPtr

template<typename T, typename U = T>
class CL_SharedPtr< T, U >


Constructor & Destructor Documentation

template<typename T, typename U = T>
CL_SharedPtr< T, U >::CL_SharedPtr  )  [inline]
 

Construction:.

Definition at line 93 of file sharedptr.h.

template<typename T, typename U = T>
CL_SharedPtr< T, U >::CL_SharedPtr const CL_SharedPtr< T, U > &  other  )  [inline]
 

Definition at line 95 of file sharedptr.h.

template<typename T, typename U = T>
CL_SharedPtr< T, U >::CL_SharedPtr const CL_UnknownSharedPtr other  )  [inline]
 

Definition at line 97 of file sharedptr.h.

template<typename T, typename U = T>
template<typename D>
CL_SharedPtr< T, U >::CL_SharedPtr D *  ptr,
CL_Mutex mutex = 0
[inline, explicit]
 

Definition at line 107 of file sharedptr.h.

template<typename T, typename U = T>
CL_SharedPtr< T, U >::CL_SharedPtr CL_SharedPtr_Generic< T > *  impl  )  [inline, explicit]
 

Definition at line 113 of file sharedptr.h.

template<typename T, typename U = T>
CL_SharedPtr< T, U >::~CL_SharedPtr  )  [inline]
 

Definition at line 115 of file sharedptr.h.


Member Function Documentation

template<typename T, typename U = T>
void CL_SharedPtr< T, U >::decrement  )  [inline, private]
 

Definition at line 203 of file sharedptr.h.

Referenced by CL_SharedPtr< CL_XMLTokenLoad_Generic >::operator=(), and CL_SharedPtr< CL_XMLTokenLoad_Generic >::~CL_SharedPtr().

template<typename T, typename U = T>
const U* CL_SharedPtr< T, U >::get  )  const [inline]
 

Definition at line 132 of file sharedptr.h.

template<typename T, typename U = T>
U* CL_SharedPtr< T, U >::get  )  [inline]
 

Definition at line 130 of file sharedptr.h.

Referenced by CL_SharedPtr< CL_XMLTokenLoad_Generic >::operator const U *(), and CL_SharedPtr< CL_XMLTokenLoad_Generic >::operator U *().

template<typename T, typename U = T>
CL_SharedPtr_Generic<T>* CL_SharedPtr< T, U >::get_impl  )  [inline]
 

Definition at line 185 of file sharedptr.h.

template<typename T, typename U = T>
int CL_SharedPtr< T, U >::get_ref_count  )  const [inline]
 

Definition at line 124 of file sharedptr.h.

template<typename T, typename U = T>
void CL_SharedPtr< T, U >::increment  )  [inline, private]
 

Definition at line 193 of file sharedptr.h.

Referenced by CL_SharedPtr< CL_XMLTokenLoad_Generic >::CL_SharedPtr(), and CL_SharedPtr< CL_XMLTokenLoad_Generic >::operator=().

template<typename T, typename U = T>
bool CL_SharedPtr< T, U >::is_null  )  const [inline]
 

Attributes:.

Definition at line 120 of file sharedptr.h.

template<typename T, typename U = T>
U const& CL_SharedPtr< T, U >::operator *  )  const [inline]
 

Definition at line 178 of file sharedptr.h.

template<typename T, typename U = T>
U& CL_SharedPtr< T, U >::operator *  )  [inline]
 

Definition at line 176 of file sharedptr.h.

template<typename T, typename U = T>
CL_SharedPtr< T, U >::operator const U *  )  const [inline]
 

Definition at line 138 of file sharedptr.h.

template<typename T, typename U = T>
CL_SharedPtr< T, U >::operator U *  )  [inline]
 

Definition at line 135 of file sharedptr.h.

template<typename T, typename U = T>
U const* CL_SharedPtr< T, U >::operator->  )  const [inline]
 

Definition at line 183 of file sharedptr.h.

template<typename T, typename U = T>
U* CL_SharedPtr< T, U >::operator->  )  [inline]
 

Definition at line 181 of file sharedptr.h.

template<typename T, typename U = T>
CL_SharedPtr<T, U>& CL_SharedPtr< T, U >::operator= const CL_UnknownSharedPtr other  )  [inline]
 

Definition at line 161 of file sharedptr.h.

template<typename T, typename U = T>
CL_SharedPtr<T, U>& CL_SharedPtr< T, U >::operator= const CL_SharedPtr< T, U > &  other  )  [inline]
 

Operations:.

Definition at line 150 of file sharedptr.h.

template<typename T, typename U = T>
bool CL_SharedPtr< T, U >::operator== const CL_SharedPtr< T, U > &  other  )  const [inline]
 

Definition at line 145 of file sharedptr.h.

template<typename T, typename U = T>
bool CL_SharedPtr< T, U >::operator== const T *  other  )  const [inline]
 

Definition at line 143 of file sharedptr.h.


Friends And Related Function Documentation

template<typename T, typename U = T>
friend class CL_UnknownSharedPtr [friend]
 

Definition at line 217 of file sharedptr.h.


Member Data Documentation

template<typename T, typename U = T>
CL_SharedPtr_Generic<T>* CL_SharedPtr< T, U >::impl [private]
 

Implementation:.

Definition at line 190 of file sharedptr.h.

Referenced by CL_DomNode::CL_DomNode(), CL_DomNode::insert_before(), CL_DomNode::operator=(), CL_DomNode::operator==(), CL_DomNode::remove_child(), and CL_DomNode::replace_child().


The documentation for this class was generated from the following file:
Generated on Sat Feb 19 22:51:18 2005 for npcore by  doxygen 1.4.1