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 ()
 
void _Incref ()
 
void _Incwref ()
 
void _Decref ()
 
void _Decwref ()
 
long _Use_count () const _NOEXCEPT
 
bool _Expired () const _NOEXCEPT
 
virtual void_Get_deleter (const _XSTD2 type_info &) const _NOEXCEPT
 

Private Member Functions

virtual void _Destroy () _NOEXCEPT
 
virtual void _Delete_this () _NOEXCEPT
 

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
146  : _Ref_count_base(), _Ptr(_Px)
147  { // construct
148  }
_Ref_count_base()
Definition: memory:58
_Ty * _Ptr
Definition: memory:161

Member Function Documentation

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

Implements _Ref_count_base.

157  { // destroy self
158  delete this;
159  }
template<class _Ty >
virtual void _Ref_count< _Ty >::_Destroy ( )
inlineprivatevirtual

Implements _Ref_count_base.

152  { // destroy managed resource
153  delete _Ptr;
154  }
_Ty * _Ptr
Definition: memory:161

Member Data Documentation

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

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