Logo ROOT   6.14/05
Reference Guide
List of all members | Classes | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::Internal::TUniWeakPtr< T > Class Template Reference

template<class T>
class ROOT::Experimental::Internal::TUniWeakPtr< T >

Definition at line 72 of file TDrawable.hxx.

Classes

class  Accessor
 Gives transparent access to the shared or unique pointer. More...
 

Public Member Functions

 TUniWeakPtr ()=default
 
 TUniWeakPtr (const std::shared_ptr< T > &ptr)
 
 TUniWeakPtr (std::unique_ptr< T > &&ptr)
 
 TUniWeakPtr (TUniWeakPtr &&rhs)
 
 ~TUniWeakPtr ()
 
Accessor Get () const
 
void Reset ()
 

Private Attributes

bool fIsWeak = false
 fUnique or fWeak? More...
 
std::unique_ptr< T > fUnique
 
std::weak_ptr< T > fWeak
 
T * fWeakForIO = nullptr
 Cannot save for now :-(. More...
 

#include <ROOT/TDrawable.hxx>

Constructor & Destructor Documentation

◆ TUniWeakPtr() [1/4]

template<class T>
ROOT::Experimental::Internal::TUniWeakPtr< T >::TUniWeakPtr ( )
default

◆ TUniWeakPtr() [2/4]

template<class T>
ROOT::Experimental::Internal::TUniWeakPtr< T >::TUniWeakPtr ( const std::shared_ptr< T > &  ptr)
inline

Definition at line 120 of file TDrawable.hxx.

◆ TUniWeakPtr() [3/4]

template<class T>
ROOT::Experimental::Internal::TUniWeakPtr< T >::TUniWeakPtr ( std::unique_ptr< T > &&  ptr)
inline

Definition at line 121 of file TDrawable.hxx.

◆ TUniWeakPtr() [4/4]

template<class T>
ROOT::Experimental::Internal::TUniWeakPtr< T >::TUniWeakPtr ( TUniWeakPtr< T > &&  rhs)
inline

Definition at line 122 of file TDrawable.hxx.

◆ ~TUniWeakPtr()

template<class T>
ROOT::Experimental::Internal::TUniWeakPtr< T >::~TUniWeakPtr ( )
inline

Definition at line 133 of file TDrawable.hxx.

Member Function Documentation

◆ Get()

template<class T>
Accessor ROOT::Experimental::Internal::TUniWeakPtr< T >::Get ( ) const
inline

Definition at line 137 of file TDrawable.hxx.

◆ Reset()

template<class T>
void ROOT::Experimental::Internal::TUniWeakPtr< T >::Reset ( void  )
inline

Definition at line 138 of file TDrawable.hxx.

Member Data Documentation

◆ fIsWeak

template<class T>
bool ROOT::Experimental::Internal::TUniWeakPtr< T >::fIsWeak = false
private

fUnique or fWeak?

Definition at line 78 of file TDrawable.hxx.

◆ fUnique

template<class T>
std::unique_ptr<T> ROOT::Experimental::Internal::TUniWeakPtr< T >::fUnique
private

Definition at line 74 of file TDrawable.hxx.

◆ fWeak

template<class T>
std::weak_ptr<T> ROOT::Experimental::Internal::TUniWeakPtr< T >::fWeak
private

Definition at line 75 of file TDrawable.hxx.

◆ fWeakForIO

template<class T>
T* ROOT::Experimental::Internal::TUniWeakPtr< T >::fWeakForIO = nullptr
private

Cannot save for now :-(.

Definition at line 76 of file TDrawable.hxx.


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