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_obj< _Ty > Class Template Reference
Inheritance diagram for _Ref_count_obj< _Ty >:
_Ref_count_base

Public Member Functions

template<class... _Types>
 _Ref_count_obj (_Types &&..._Args)
 
_Ty * _Getptr () const
 
- 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

aligned_storage< sizeof(_Ty), alignment_of< _Ty >::value >::type _Storage
 

Additional Inherited Members

- Protected Member Functions inherited from _Ref_count_base
 _Ref_count_base ()
 

Constructor & Destructor Documentation

template<class _Ty>
template<class... _Types>
_Ref_count_obj< _Ty >::_Ref_count_obj ( _Types &&...  _Args)
inline
930  : _Ref_count_base()
931  { // construct from argument list
932  ::new ((void *)&_Storage) _Ty(_STD forward<_Types>(_Args)...);
933  }
_Ref_count_base()
Definition: memory:59
aligned_storage< sizeof(_Ty), alignment_of< _Ty >::value >::type _Storage
Definition: memory:953

Member Function Documentation

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

Implements _Ref_count_base.

948  { // destroy self
949  delete this;
950  }
template<class _Ty>
virtual void _Ref_count_obj< _Ty >::_Destroy ( )
inlineprivatevirtual

Implements _Ref_count_base.

943  { // destroy managed resource
944  _Getptr()->~_Ty();
945  }
_Ty * _Getptr() const
Definition: memory:936
template<class _Ty>
_Ty* _Ref_count_obj< _Ty >::_Getptr ( ) const
inline
937  { // get pointer
938  return ((_Ty *)&_Storage);
939  }
aligned_storage< sizeof(_Ty), alignment_of< _Ty >::value >::type _Storage
Definition: memory:953

Member Data Documentation

template<class _Ty>
aligned_storage<sizeof (_Ty), alignment_of<_Ty>::value>::type _Ref_count_obj< _Ty >::_Storage
private

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