Definition at line 26 of file RUnique.hxx.
Public Member Functions | |
| RUnique (std::unique_ptr< T > &&obj) | |
| RUnique (T *obj) | |
| virtual | ~RUnique ()=default | 
| const TClass * | GetClass () const final | 
| Returns class of contained object.   | |
| const void * | GetObject () const final | 
| Returns direct (temporary) object pointer.   | |
  Public Member Functions inherited from ROOT::Browsable::RHolder | |
| virtual | ~RHolder ()=default | 
| template<class T > | |
| bool | CanCastTo () const | 
| auto | Copy () const | 
| Clone container.   | |
| virtual void | Forget () | 
| Clear all pointers without performing cleanup.   | |
| template<class T > | |
| const T * | Get () const | 
| Returns direct object pointer cast to provided class.   | |
| template<class T > | |
| T * | get_object () | 
| Returns plains pointer on object without ownership, only can be used for TObjects.   | |
| template<class T > | |
| std::shared_ptr< T > | get_shared () | 
| Returns shared_ptr of contained object.   | |
| template<class T > | |
| std::unique_ptr< T > | get_unique () | 
| Returns unique_ptr of contained object.   | |
| template<class T > | |
| bool | InheritsFrom () const | 
Protected Member Functions | |
| void * | TakeObject () final | 
| Returns pointer with ownership, normally via unique_ptr<T>::release() or tobj->Clone()   | |
  Protected Member Functions inherited from ROOT::Browsable::RHolder | |
| virtual void * | AccessObject () | 
| Returns plain object pointer without care about ownership, should not be used often.   | |
| virtual RHolder * | DoCopy () const | 
| Create copy of container, works only when pointer can be shared.   | |
| virtual void * | GetShared () const | 
| Returns pointer on existing shared_ptr<T>   | |
Private Attributes | |
| std::unique_ptr< T > | fUnique | 
| ! holder without IO   | |
#include <ROOT/Browsable/RUnique.hxx>
      
  | 
  inline | 
Definition at line 31 of file RUnique.hxx.
      
  | 
  inline | 
Definition at line 32 of file RUnique.hxx.
      
  | 
  virtualdefault | 
      
  | 
  inlinefinalvirtual | 
Returns class of contained object.
Implements ROOT::Browsable::RHolder.
Definition at line 35 of file RUnique.hxx.
      
  | 
  inlinefinalvirtual | 
Returns direct (temporary) object pointer.
Implements ROOT::Browsable::RHolder.
Definition at line 36 of file RUnique.hxx.
      
  | 
  inlinefinalprotectedvirtual | 
Returns pointer with ownership, normally via unique_ptr<T>::release() or tobj->Clone()
Reimplemented from ROOT::Browsable::RHolder.
Definition at line 29 of file RUnique.hxx.
      
  | 
  private | 
! holder without IO
Definition at line 27 of file RUnique.hxx.