MythTV  master
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
simple_ref_ptr< T, Locker > Class Template Reference

#include <quicksp.h>

Collaboration diagram for simple_ref_ptr< T, Locker >:
Collaboration graph
[legend]

Classes

class  ref
 

Public Types

typedef T *(simple_ref_ptr< T >::* fake_bool) () const
 

Public Member Functions

 simple_ref_ptr ()
 
 simple_ref_ptr (T *ptr)
 
 simple_ref_ptr (const simple_ref_ptr &rhs)
 
 ~simple_ref_ptr ()
 
simple_ref_ptroperator= (const simple_ref_ptr &rhs)
 
T * operator-> () const
 
T & operator* () const
 
T * get () const
 
void reset (T *ptr)
 
 operator fake_bool () const
 
bool operator! () const
 

Private Member Functions

void unref ()
 

Private Attributes

refm_ref
 

Detailed Description

template<typename T, class Locker = NoLock>
class simple_ref_ptr< T, Locker >

Definition at line 24 of file quicksp.h.

Member Typedef Documentation

◆ fake_bool

template<typename T, class Locker = NoLock>
typedef T*(simple_ref_ptr<T>::* simple_ref_ptr< T, Locker >::fake_bool) () const

Definition at line 78 of file quicksp.h.

Constructor & Destructor Documentation

◆ simple_ref_ptr() [1/3]

template<typename T, class Locker = NoLock>
simple_ref_ptr< T, Locker >::simple_ref_ptr ( )
inline

Definition at line 27 of file quicksp.h.

◆ simple_ref_ptr() [2/3]

template<typename T, class Locker = NoLock>
simple_ref_ptr< T, Locker >::simple_ref_ptr ( T *  ptr)
inline

Definition at line 31 of file quicksp.h.

◆ simple_ref_ptr() [3/3]

template<typename T, class Locker = NoLock>
simple_ref_ptr< T, Locker >::simple_ref_ptr ( const simple_ref_ptr< T, Locker > &  rhs)
inline

Definition at line 36 of file quicksp.h.

◆ ~simple_ref_ptr()

template<typename T, class Locker = NoLock>
simple_ref_ptr< T, Locker >::~simple_ref_ptr ( )
inline

Definition at line 41 of file quicksp.h.

Member Function Documentation

◆ operator=()

template<typename T, class Locker = NoLock>
simple_ref_ptr& simple_ref_ptr< T, Locker >::operator= ( const simple_ref_ptr< T, Locker > &  rhs)
inline

Definition at line 46 of file quicksp.h.

◆ operator->()

template<typename T, class Locker = NoLock>
T* simple_ref_ptr< T, Locker >::operator-> ( ) const
inline

Definition at line 55 of file quicksp.h.

◆ operator*()

template<typename T, class Locker = NoLock>
T& simple_ref_ptr< T, Locker >::operator* ( ) const
inline

Definition at line 60 of file quicksp.h.

◆ get()

template<typename T, class Locker = NoLock>
T* simple_ref_ptr< T, Locker >::get ( ) const
inline

◆ reset()

template<typename T, class Locker = NoLock>
void simple_ref_ptr< T, Locker >::reset ( T *  ptr)
inline

Definition at line 72 of file quicksp.h.

◆ operator fake_bool()

template<typename T, class Locker = NoLock>
simple_ref_ptr< T, Locker >::operator fake_bool ( ) const
inline

Definition at line 80 of file quicksp.h.

◆ operator!()

template<typename T, class Locker = NoLock>
bool simple_ref_ptr< T, Locker >::operator! ( ) const
inline

Definition at line 85 of file quicksp.h.

◆ unref()

template<typename T, class Locker = NoLock>
void simple_ref_ptr< T, Locker >::unref ( )
inlineprivate

Member Data Documentation

◆ m_ref

template<typename T, class Locker = NoLock>
ref* simple_ref_ptr< T, Locker >::m_ref
private

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