TT CORE SDK 2.0.2.1
TT CORE SDK documentation
ttsdk::shared_ptr< T > Class Template Reference

#include <shared_ptr.h>

Public Types

typedef T element_type
typedef T * pointer
typedef const T * const_pointer
typedef T & reference
typedef const T & const_reference

Public Member Functions

 shared_ptr ()
 shared_ptr (pointer p)
 ~shared_ptr ()
 shared_ptr (const shared_ptr< T > &cc)
template<typename U>
 shared_ptr (const shared_ptr< U > &cc)
shared_ptroperator= (const shared_ptr &rhs)
template<typename U>
shared_ptroperator= (const shared_ptr< U > &rhs)
 operator bool ()
 operator bool () const
template<typename U>
shared_ptr< U > cast ()
pointer operator-> ()
const_pointer operator-> () const
reference operator* ()
const_reference operator* () const
void reset (pointer p)
void reset ()
pointer get ()
const_pointer get () const

Friends

template<typename U>
class shared_ptr

Detailed Description

template<typename T>
class ttsdk::shared_ptr< T >

Definition at line 25 of file shared_ptr.h.

Member Typedef Documentation

◆ const_pointer

template<typename T>
typedef const T* ttsdk::shared_ptr< T >::const_pointer

Definition at line 30 of file shared_ptr.h.

◆ const_reference

template<typename T>
typedef const T& ttsdk::shared_ptr< T >::const_reference

Definition at line 32 of file shared_ptr.h.

◆ element_type

template<typename T>
typedef T ttsdk::shared_ptr< T >::element_type

Definition at line 28 of file shared_ptr.h.

◆ pointer

template<typename T>
typedef T* ttsdk::shared_ptr< T >::pointer

Definition at line 29 of file shared_ptr.h.

◆ reference

template<typename T>
typedef T& ttsdk::shared_ptr< T >::reference

Definition at line 31 of file shared_ptr.h.

Constructor & Destructor Documentation

◆ shared_ptr() [1/4]

template<typename T>
ttsdk::shared_ptr< T >::shared_ptr ( )
inline

Definition at line 34 of file shared_ptr.h.

◆ shared_ptr() [2/4]

template<typename T>
ttsdk::shared_ptr< T >::shared_ptr ( pointer p)
inline

Definition at line 38 of file shared_ptr.h.

◆ ~shared_ptr()

template<typename T>
ttsdk::shared_ptr< T >::~shared_ptr ( )
inline

Definition at line 44 of file shared_ptr.h.

◆ shared_ptr() [3/4]

template<typename T>
ttsdk::shared_ptr< T >::shared_ptr ( const shared_ptr< T > & cc)
inline

Definition at line 50 of file shared_ptr.h.

◆ shared_ptr() [4/4]

template<typename T>
template<typename U>
ttsdk::shared_ptr< T >::shared_ptr ( const shared_ptr< U > & cc)
inline

Definition at line 58 of file shared_ptr.h.

Member Function Documentation

◆ cast()

template<typename T>
template<typename U>
shared_ptr< U > ttsdk::shared_ptr< T >::cast ( )
inline

Definition at line 87 of file shared_ptr.h.

◆ get() [1/2]

template<typename T>
pointer ttsdk::shared_ptr< T >::get ( )
inline

Definition at line 124 of file shared_ptr.h.

Here is the caller graph for this function:

◆ get() [2/2]

template<typename T>
const_pointer ttsdk::shared_ptr< T >::get ( ) const
inline

Definition at line 129 of file shared_ptr.h.

◆ operator bool() [1/2]

template<typename T>
ttsdk::shared_ptr< T >::operator bool ( )
inline

Definition at line 79 of file shared_ptr.h.

◆ operator bool() [2/2]

template<typename T>
ttsdk::shared_ptr< T >::operator bool ( ) const
inline

Definition at line 80 of file shared_ptr.h.

◆ operator*() [1/2]

template<typename T>
reference ttsdk::shared_ptr< T >::operator* ( )
inline

Definition at line 102 of file shared_ptr.h.

◆ operator*() [2/2]

template<typename T>
const_reference ttsdk::shared_ptr< T >::operator* ( ) const
inline

Definition at line 107 of file shared_ptr.h.

◆ operator->() [1/2]

template<typename T>
pointer ttsdk::shared_ptr< T >::operator-> ( )
inline

Definition at line 92 of file shared_ptr.h.

◆ operator->() [2/2]

template<typename T>
const_pointer ttsdk::shared_ptr< T >::operator-> ( ) const
inline

Definition at line 97 of file shared_ptr.h.

◆ operator=() [1/2]

template<typename T>
shared_ptr & ttsdk::shared_ptr< T >::operator= ( const shared_ptr< T > & rhs)
inline

Definition at line 64 of file shared_ptr.h.

◆ operator=() [2/2]

template<typename T>
template<typename U>
shared_ptr & ttsdk::shared_ptr< T >::operator= ( const shared_ptr< U > & rhs)
inline

Definition at line 72 of file shared_ptr.h.

◆ reset() [1/2]

template<typename T>
void ttsdk::shared_ptr< T >::reset ( )
inline

Definition at line 118 of file shared_ptr.h.

Here is the caller graph for this function:

◆ reset() [2/2]

template<typename T>
void ttsdk::shared_ptr< T >::reset ( pointer p)
inline

Definition at line 112 of file shared_ptr.h.

◆ shared_ptr

template<typename T>
template<typename U>
friend class shared_ptr
friend

Definition at line 152 of file shared_ptr.h.


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