Classes | Public Member Functions | Protected Attributes | Friends

ntk::Ptr< _Tp > Class Template Reference

#include <common.h>

List of all members.

Classes

struct  DynamicCastTag

Public Member Functions

 Ptr ()
 Ptr (_Tp *_obj)
 ~Ptr ()
 Ptr (const Ptr &ptr)
template<class U >
 Ptr (const Ptr< U > &ptr)
template<class U >
 Ptr (const Ptr< U > &ptr, DynamicCastTag)
Ptroperator= (const Ptr &ptr)
void addref ()
void release ()
void delete_obj ()
bool empty () const
_Tp * operator-> () const
 operator _Tp * () const
template<typename _Up >
 Ptr (const Ptr< _Up > &ptr)
template<class _Up >
 Ptr (const Ptr< _Up > &ptr, DynamicCastTag)

Protected Attributes

_Tp * obj
int * refcount

Friends

class Ptr

template<typename _Tp>
class ntk::Ptr< _Tp >


Constructor & Destructor Documentation

template<typename _Tp>
ntk::Ptr< _Tp >::Ptr (  ) 
template<typename _Tp >
ntk::Ptr< _Tp >::Ptr ( _Tp *  _obj  )  [inline]
template<typename _Tp >
ntk::Ptr< _Tp >::~Ptr (  )  [inline]
template<typename _Tp >
ntk::Ptr< _Tp >::Ptr ( const Ptr< _Tp > &  ptr  )  [inline]
template<typename _Tp>
template<class U >
ntk::Ptr< _Tp >::Ptr ( const Ptr< U > &  ptr  ) 
template<typename _Tp>
template<class U >
ntk::Ptr< _Tp >::Ptr ( const Ptr< U > &  ptr,
DynamicCastTag   
)
template<typename _Tp>
template<typename _Up >
ntk::Ptr< _Tp >::Ptr ( const Ptr< _Up > &  ptr  )  [inline]
template<typename _Tp>
template<class _Up >
ntk::Ptr< _Tp >::Ptr ( const Ptr< _Up > &  ptr,
DynamicCastTag   
) [inline]

Member Function Documentation

template<typename _Tp >
void ntk::Ptr< _Tp >::addref (  )  [inline]
template<typename _Tp >
void ntk::Ptr< _Tp >::delete_obj (  )  [inline]
template<typename _Tp >
bool ntk::Ptr< _Tp >::empty (  )  const [inline]
template<typename _Tp >
ntk::Ptr< _Tp >::operator _Tp * (  )  const [inline]
template<typename _Tp >
_Tp * ntk::Ptr< _Tp >::operator-> (  )  const [inline]
template<typename _Tp >
Ptr< _Tp > & ntk::Ptr< _Tp >::operator= ( const Ptr< _Tp > &  ptr  )  [inline]
template<typename _Tp >
void ntk::Ptr< _Tp >::release (  )  [inline]

Friends And Related Function Documentation

template<typename _Tp>
ntk::Ptr< _Tp >::Ptr [friend]

Member Data Documentation

template<typename _Tp>
_Tp* ntk::Ptr< _Tp >::obj [protected]
template<typename _Tp>
int* ntk::Ptr< _Tp >::refcount [protected]

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