Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Internal::RIOShared< T > Class Template Referencefinal

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

Definition at line 55 of file RDrawable.hxx.

Public Member Functions

 RIOShared ()=default
 
 RIOShared (const std::shared_ptr< T > &ptr)
 
T * get ()
 
const T * get () const
 
std::shared_ptr< T > get_shared () const
 
const void * GetIOPtr () const final
 
bool HasShared () const final
 
void * MakeShared () final
 
 operator bool () const
 
T * operator-> ()
 
const T * operator-> () const
 
RIOSharedoperator= (const std::shared_ptr< T > &ptr)
 
void reset ()
 
void reset_io ()
 
void restore_io ()
 
void SetShared (void *shared) final
 
- Public Member Functions inherited from ROOT::Experimental::Internal::RIOSharedBase
virtual ~RIOSharedBase ()=default
 

Private Attributes

T * fIO {nullptr}
 plain pointer for IO
 
std::shared_ptr< T > fShared
 ! holder of object
 

#include <ROOT/RDrawable.hxx>

Inheritance diagram for ROOT::Experimental::Internal::RIOShared< T >:
[legend]

Constructor & Destructor Documentation

◆ RIOShared() [1/2]

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

◆ RIOShared() [2/2]

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

Definition at line 66 of file RDrawable.hxx.

Member Function Documentation

◆ get() [1/2]

template<class T >
T * ROOT::Experimental::Internal::RIOShared< T >::get ( )
inline

Definition at line 82 of file RDrawable.hxx.

◆ get() [2/2]

template<class T >
const T * ROOT::Experimental::Internal::RIOShared< T >::get ( ) const
inline

Definition at line 81 of file RDrawable.hxx.

◆ get_shared()

template<class T >
std::shared_ptr< T > ROOT::Experimental::Internal::RIOShared< T >::get_shared ( ) const
inline

Definition at line 87 of file RDrawable.hxx.

◆ GetIOPtr()

template<class T >
const void * ROOT::Experimental::Internal::RIOShared< T >::GetIOPtr ( ) const
inlinefinalvirtual

Implements ROOT::Experimental::Internal::RIOSharedBase.

Definition at line 59 of file RDrawable.hxx.

◆ HasShared()

template<class T >
bool ROOT::Experimental::Internal::RIOShared< T >::HasShared ( ) const
inlinefinalvirtual

Implements ROOT::Experimental::Internal::RIOSharedBase.

Definition at line 60 of file RDrawable.hxx.

◆ MakeShared()

template<class T >
void * ROOT::Experimental::Internal::RIOShared< T >::MakeShared ( )
inlinefinalvirtual

Implements ROOT::Experimental::Internal::RIOSharedBase.

Definition at line 61 of file RDrawable.hxx.

◆ operator bool()

template<class T >
ROOT::Experimental::Internal::RIOShared< T >::operator bool ( ) const
inline

Definition at line 79 of file RDrawable.hxx.

◆ operator->() [1/2]

template<class T >
T * ROOT::Experimental::Internal::RIOShared< T >::operator-> ( )
inline

Definition at line 85 of file RDrawable.hxx.

◆ operator->() [2/2]

template<class T >
const T * ROOT::Experimental::Internal::RIOShared< T >::operator-> ( ) const
inline

Definition at line 84 of file RDrawable.hxx.

◆ operator=()

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

Definition at line 72 of file RDrawable.hxx.

◆ reset()

template<class T >
void ROOT::Experimental::Internal::RIOShared< T >::reset ( )
inline

Definition at line 89 of file RDrawable.hxx.

◆ reset_io()

template<class T >
void ROOT::Experimental::Internal::RIOShared< T >::reset_io ( )
inline

Definition at line 92 of file RDrawable.hxx.

◆ restore_io()

template<class T >
void ROOT::Experimental::Internal::RIOShared< T >::restore_io ( )
inline

Definition at line 95 of file RDrawable.hxx.

◆ SetShared()

template<class T >
void ROOT::Experimental::Internal::RIOShared< T >::SetShared ( void *  shared)
inlinefinalvirtual

Implements ROOT::Experimental::Internal::RIOSharedBase.

Definition at line 62 of file RDrawable.hxx.

Member Data Documentation

◆ fIO

template<class T >
T* ROOT::Experimental::Internal::RIOShared< T >::fIO {nullptr}
private

plain pointer for IO

Definition at line 57 of file RDrawable.hxx.

◆ fShared

template<class T >
std::shared_ptr<T> ROOT::Experimental::Internal::RIOShared< T >::fShared
private

! holder of object

Definition at line 56 of file RDrawable.hxx.

  • graf2d/gpadv7/inc/ROOT/RDrawable.hxx