AliPhysics  4ef2867 (4ef2867)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliTrackContainer::TrackOwnerHandler Class Reference

Unique_ptr implementation for ROOT5 compatibility. More...

#include <AliTrackContainer.h>

Inheritance diagram for AliTrackContainer::TrackOwnerHandler:

Public Member Functions

 TrackOwnerHandler ()
 TrackOwnerHandler (TObjArray *managedobject, Bool_t ownership)
 TrackOwnerHandler (const TrackOwnerHandler &other)
TrackOwnerHandleroperator= (const TrackOwnerHandler &other)
virtual ~TrackOwnerHandler ()
void SetObject (TObjArray *obj)
void SetOwner (Bool_t owner)
TObjArrayGetData () const
Bool_t IsOwner () const
void TransferOwnershipTo (TrackOwnerHandler &target)
void ReceiveOwnershipFrom (TrackOwnerHandler &source)

Private Attributes

 Object managed by the handler. More...
Bool_t fOwnership
 Ownership implementation. More...

Detailed Description

Unique_ptr implementation for ROOT5 compatibility.

Markus Fasel, Oak Ridge National Laboratory
Dec. 20, 2017

This class treats ownership over a shared object in the way a unique_ptr would do this: Ownership can only be transfered.

Definition at line 67 of file AliTrackContainer.h.

Constructor & Destructor Documentation

AliTrackContainer::TrackOwnerHandler::TrackOwnerHandler ( )

Definition at line 682 of file AliTrackContainer.cxx.

AliTrackContainer::TrackOwnerHandler::TrackOwnerHandler ( TObjArray managedobject,
Bool_t  ownership 

Definition at line 690 of file AliTrackContainer.cxx.

AliTrackContainer::TrackOwnerHandler::TrackOwnerHandler ( const TrackOwnerHandler other)

Definition at line 698 of file AliTrackContainer.cxx.

AliTrackContainer::TrackOwnerHandler::~TrackOwnerHandler ( )

Definition at line 716 of file AliTrackContainer.cxx.

Member Function Documentation

TObjArray* AliTrackContainer::TrackOwnerHandler::GetData ( ) const
Bool_t AliTrackContainer::TrackOwnerHandler::IsOwner ( ) const

Definition at line 79 of file AliTrackContainer.h.

Referenced by ReceiveOwnershipFrom().

AliTrackContainer::TrackOwnerHandler & AliTrackContainer::TrackOwnerHandler::operator= ( const TrackOwnerHandler other)

Definition at line 706 of file AliTrackContainer.cxx.

void AliTrackContainer::TrackOwnerHandler::ReceiveOwnershipFrom ( AliTrackContainer::TrackOwnerHandler source)

Definition at line 734 of file AliTrackContainer.cxx.

void AliTrackContainer::TrackOwnerHandler::SetObject ( TObjArray obj)

Definition at line 720 of file AliTrackContainer.cxx.

Referenced by AliTrackContainer::NextEvent().

void AliTrackContainer::TrackOwnerHandler::SetOwner ( Bool_t  owner)
void AliTrackContainer::TrackOwnerHandler::TransferOwnershipTo ( AliTrackContainer::TrackOwnerHandler target)

Definition at line 729 of file AliTrackContainer.cxx.

Member Data Documentation

TObjArray* AliTrackContainer::TrackOwnerHandler::fManagedObject

Object managed by the handler.

Definition at line 85 of file AliTrackContainer.h.

Referenced by GetData(), and operator=().

Bool_t AliTrackContainer::TrackOwnerHandler::fOwnership

Ownership implementation.

Definition at line 86 of file AliTrackContainer.h.

Referenced by IsOwner().

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