AliPhysics  c7b8e89 (c7b8e89)
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

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

Detailed Description

Unique_ptr implementation for ROOT5 compatibility.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
Since
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 69 of file AliTrackContainer.h.

Constructor & Destructor Documentation

AliTrackContainer::TrackOwnerHandler::TrackOwnerHandler ( )

Definition at line 736 of file AliTrackContainer.cxx.

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

Definition at line 744 of file AliTrackContainer.cxx.

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

Definition at line 752 of file AliTrackContainer.cxx.

AliTrackContainer::TrackOwnerHandler::~TrackOwnerHandler ( )
virtual

Definition at line 770 of file AliTrackContainer.cxx.

Member Function Documentation

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

Definition at line 81 of file AliTrackContainer.h.

Referenced by ReceiveOwnershipFrom().

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

Definition at line 760 of file AliTrackContainer.cxx.

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

Definition at line 788 of file AliTrackContainer.cxx.

Referenced by IsOwner().

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

Definition at line 774 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 783 of file AliTrackContainer.cxx.

Referenced by IsOwner().

Member Data Documentation

TObjArray* AliTrackContainer::TrackOwnerHandler::fManagedObject
private

Object managed by the handler.

Definition at line 87 of file AliTrackContainer.h.

Referenced by GetData(), operator=(), SetObject(), and ~TrackOwnerHandler().

Bool_t AliTrackContainer::TrackOwnerHandler::fOwnership
private

Ownership implementation.

Definition at line 88 of file AliTrackContainer.h.

Referenced by IsOwner(), operator=(), ReceiveOwnershipFrom(), SetObject(), SetOwner(), TransferOwnershipTo(), and ~TrackOwnerHandler().


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