CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
Myth::shared_ptr< T > Class Template Reference
Inheritance diagram for Myth::shared_ptr< T >:
Collaboration diagram for Myth::shared_ptr< T >:

Public Member Functions

 shared_ptr (T *s)
 shared_ptr (const shared_ptr &s)
shared_ptr & operator= (const shared_ptr &s)
void reset ()
void reset (T *s)
T * get () const
void swap (shared_ptr< T > &s)
int use_count () const
T * operator-> () const
T & operator* () const
 operator bool () const
bool operator! () const

Private Attributes

T * p

Additional Inherited Members

Private Member Functions inherited from Myth::shared_ptr_base
 shared_ptr_base (const shared_ptr_base &s)
shared_ptr_base & operator= (const shared_ptr_base &s)
bool clear_counter ()
void reset_counter ()
void swap_counter (shared_ptr_base &s)
int get_count () const
bool is_null () const

Detailed Description

template<class T>
class Myth::shared_ptr< T >

Definition at line 53 of file mythsharedptr.h.

Constructor & Destructor Documentation

◆ shared_ptr() [1/3]

template<class T>
Myth::shared_ptr< T >::shared_ptr ( )
inline

Definition at line 59 of file mythsharedptr.h.

◆ shared_ptr() [2/3]

template<class T>
Myth::shared_ptr< T >::shared_ptr ( T * s)
inlineexplicit

Definition at line 63 of file mythsharedptr.h.

◆ shared_ptr() [3/3]

template<class T>
Myth::shared_ptr< T >::shared_ptr ( const shared_ptr< T > & s)
inline

Definition at line 71 of file mythsharedptr.h.

◆ ~shared_ptr()

template<class T>
Myth::shared_ptr< T >::~shared_ptr ( )
inline

Definition at line 101 of file mythsharedptr.h.

Member Function Documentation

◆ get()

template<class T>
T * Myth::shared_ptr< T >::get ( ) const
inline

Definition at line 124 of file mythsharedptr.h.

◆ operator bool()

template<class T>
Myth::shared_ptr< T >::operator bool ( ) const
inline

Definition at line 154 of file mythsharedptr.h.

◆ operator!()

template<class T>
bool Myth::shared_ptr< T >::operator! ( ) const
inline

Definition at line 159 of file mythsharedptr.h.

◆ operator*()

template<class T>
T & Myth::shared_ptr< T >::operator* ( ) const
inline

Definition at line 149 of file mythsharedptr.h.

◆ operator->()

template<class T>
T * Myth::shared_ptr< T >::operator-> ( ) const
inline

Definition at line 144 of file mythsharedptr.h.

◆ operator=()

template<class T>
shared_ptr & Myth::shared_ptr< T >::operator= ( const shared_ptr< T > & s)
inline

Definition at line 79 of file mythsharedptr.h.

◆ reset() [1/2]

template<class T>
void Myth::shared_ptr< T >::reset ( )
inline

Definition at line 106 of file mythsharedptr.h.

◆ reset() [2/2]

template<class T>
void Myth::shared_ptr< T >::reset ( T * s)
inline

Definition at line 113 of file mythsharedptr.h.

◆ swap()

template<class T>
void Myth::shared_ptr< T >::swap ( shared_ptr< T > & s)
inline

Definition at line 129 of file mythsharedptr.h.

◆ use_count()

template<class T>
int Myth::shared_ptr< T >::use_count ( ) const
inline

Definition at line 139 of file mythsharedptr.h.

Field Documentation

◆ p

template<class T>
T* Myth::shared_ptr< T >::p
private

Definition at line 56 of file mythsharedptr.h.


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