STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
_Ref_count< _Ty > Class Template Reference
Inheritance diagram for _Ref_count< _Ty >:
_Ref_count_base

Public Member Functions

 _Ref_count (_Ty *_Px)
 
- Public Member Functions inherited from _Ref_count_base
virtual ~_Ref_count_base () _NOEXCEPT
 
bool _Incref_nz ()
 
unsigned int _Get_uses () const
 
void _Incref ()
 
void _Incwref ()
 
void _Decref ()
 
void _Decwref ()
 
long _Use_count () const
 
bool _Expired () const
 
virtual void_Get_deleter (const _XSTD2 type_info &) const
 

Private Member Functions

virtual void _Destroy ()
 
virtual void _Delete_this ()
 

Private Attributes

_Ty * _Ptr
 

Additional Inherited Members

- Protected Member Functions inherited from _Ref_count_base
 _Ref_count_base ()
 

Constructor & Destructor Documentation

template<class _Ty >
_Ref_count< _Ty >::_Ref_count ( _Ty *  _Px)
inline
152  : _Ref_count_base(), _Ptr(_Px)
153  { // construct
154  }
_Ref_count_base()
Definition: memory:59
_Ty * _Ptr
Definition: memory:167

Member Function Documentation

template<class _Ty >
virtual void _Ref_count< _Ty >::_Delete_this ( )
inlineprivatevirtual

Implements _Ref_count_base.

163  { // destroy self
164  delete this;
165  }
template<class _Ty >
virtual void _Ref_count< _Ty >::_Destroy ( )
inlineprivatevirtual

Implements _Ref_count_base.

158  { // destroy managed resource
159  delete _Ptr;
160  }
_Ty * _Ptr
Definition: memory:167

Member Data Documentation

template<class _Ty >
_Ty* _Ref_count< _Ty >::_Ptr
private

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