Nugget
Public Types | Public Member Functions | Public Attributes | List of all members
eastl::ref_count_sp_t_inst< T, Allocator > Class Template Reference

#include <shared_ptr.h>

Inheritance diagram for eastl::ref_count_sp_t_inst< T, Allocator >:
Inheritance graph
[legend]
Collaboration diagram for eastl::ref_count_sp_t_inst< T, Allocator >:
Collaboration graph
[legend]

Public Types

typedef ref_count_sp_t_inst< T, Allocator > this_type
 
typedef T value_type
 
typedef Allocator allocator_type
 
typedef aligned_storage< sizeof(T), eastl::alignment_of< T >::value >::type storage_type
 

Public Member Functions

value_type * GetValue ()
 
template<typename... Args>
 ref_count_sp_t_inst (allocator_type allocator, Args &&... args)
 
void free_value () EA_NOEXCEPT
 
void free_ref_count_sp () EA_NOEXCEPT
 
void * get_deleter () const EA_NOEXCEPT
 
- Public Member Functions inherited from eastl::ref_count_sp
 ref_count_sp (int32_t refCount=1, int32_t weakRefCount=1) EA_NOEXCEPT
 Reference count on contained pointer plus this ref_count_sp object itself. Starts as 1 by default.
 
int32_t use_count () const EA_NOEXCEPT
 
void addref () EA_NOEXCEPT
 
void release ()
 
void weak_addref () EA_NOEXCEPT
 
void weak_release ()
 
ref_count_splock () EA_NOEXCEPT
 

Public Attributes

storage_type mMemory
 
allocator_type mAllocator
 
- Public Attributes inherited from eastl::ref_count_sp
int32_t mRefCount
 
int32_t mWeakRefCount
 Reference count on the contained pointer. Starts as 1 by default.
 

Detailed Description

template<typename T, typename Allocator>
class eastl::ref_count_sp_t_inst< T, Allocator >

ref_count_sp_t_inst

This is a version of ref_count_sp which is used to actually hold an instance of T (instead of a pointer). This is useful to allocate the object and ref count in a single memory allocation.


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