AnalysisTree
Loading...
Searching...
No Matches
AnalysisTree::IndexedObject Class Reference

#include <IndexedObject.hpp>

Inheritance diagram for AnalysisTree::IndexedObject:
Inheritance graph
Collaboration diagram for AnalysisTree::IndexedObject:
Collaboration graph

Public Member Functions

 IndexedObject (size_t id)
 
 IndexedObject (const IndexedObject &indexedObject)=default
 
 IndexedObject (IndexedObject &&indexedObject)=default
 
IndexedObjectoperator= (IndexedObject &&)=default
 
IndexedObjectoperator= (const IndexedObject &indexedObject)=default
 
ANALYSISTREE_ATTR_NODISCARD size_t GetId () const
 

Friends

class IndexAccessor
 
bool operator== (const IndexedObject &that, const IndexedObject &other)
 
bool operator!= (const IndexedObject &that, const IndexedObject &other)
 

Detailed Description

This is the base class for all indexed objects like tracks, channels, detectors etc By the contract field id_ is uniq and an actual position inside vector object (e.g. TClonesArray)

Constructor & Destructor Documentation

◆ IndexedObject() [1/2]

AnalysisTree::IndexedObject::IndexedObject ( size_t id)
inlineexplicit

Object ID is defined at the object creation and mustn't change anymore in the lifecycle

Parameters
id_

◆ IndexedObject() [2/2]

AnalysisTree::IndexedObject::IndexedObject ( const IndexedObject & indexedObject)
default

Copy ctor for IndexedObject TODO consider if we do really need this ctor since as soon as it was copied it is not uniq

Parameters
indexedObject

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