ROOT  6.06/09
Reference Guide
Public Member Functions | List of all members
ROOT::Internal::TCoopPtrTypeErasedBase Class Reference

To handle polymorphic TCoopPtr<POINTEE>s, convert them to TCoopPtrTypeErased<POINTEE>s and access them through their common base TCoopPtrTypeErasedBase.

Example:

auto pH1D = MakeCoOwnedHist<1, double>({{{10, 0., 1.}}}); auto pH2I = MakeCoOwnedHist<2, int>({{{2, 0., 1.}, {2., 0., 1.}}}); std::vector<Internal::TCoopPtrTypeErased<TDrawable>> coOwnedDrawables {pH1D, pH2I};

The contained objects will be destructed once all TCoopPtrTypeErased and all other synchronized TCoopPtr are destructed.

Definition at line 150 of file TCoopPtr.h.

Public Member Functions

virtual ~TCoopPtrTypeErasedBase ()
 

#include <ROOT/TCoopPtr.h>

+ Inheritance diagram for ROOT::Internal::TCoopPtrTypeErasedBase:

Constructor & Destructor Documentation

virtual ROOT::Internal::TCoopPtrTypeErasedBase::~TCoopPtrTypeErasedBase ( )
inlinevirtual

Definition at line 151 of file TCoopPtr.h.


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