PandaRoot
PndContainerI< T > Class Template Referenceabstract

#include <BSEmcAddLinksToCluster.h>

Inheritance diagram for PndContainerI< T >:
PndContainerBaseI PndConstContainerI< T > PndMutableContainerI< T > PndConstContainer< T > PndSTDConstContainer< T > PndTCAConstContainer< T > PndMutableContainer< T > PndSTDMutableContainer< T > PndTCAMutableContainer< T >

Public Member Functions

 PndContainerI ()
 Construct a new PndContainerI object. More...
 
virtual ~PndContainerI ()
 Destroy the PndContainerI object. More...
 
virtual T const * GetConstElementPtr (Int_t t_index) const =0
 Get the Element object at t_index. More...
 
std::vector< T const * > GetVectorOfPtrToConst () const
 return vector of const ptrs pointing at internal data, to be used to access data independent of underlying data container More...
 
TString GetClassName () const
 
- Public Member Functions inherited from PndContainerBaseI
 PndContainerBaseI ()
 Construct a new PndContainerBaseI object. More...
 
virtual ~PndContainerBaseI ()
 Destroy the PndContainerBaseI object. More...
 
virtual ssize_t GetSize () const =0
 Get the number of members in internal data. More...
 
const TString & GetBranchName () const
 Get the BranchName. More...
 
void SetBranchName (const TString &t_branchname)
 Set the Branch Name. More...
 

Additional Inherited Members

- Protected Attributes inherited from PndContainerBaseI
TString fBranchName {""}
 

Detailed Description

template<class T>
class PndContainerI< T >

Definition at line 26 of file BSEmcAddLinksToCluster.h.

Constructor & Destructor Documentation

◆ PndContainerI()

template<class T>
PndContainerI< T >::PndContainerI ( )
inline

Construct a new PndContainerI object.

Parameters
constTString &t_foldername : Name of folder
Bool_tt_persistency : Should date be stored to file

Definition at line 33 of file PndContainerI.h.

33 {}

◆ ~PndContainerI()

template<class T>
virtual PndContainerI< T >::~PndContainerI ( )
inlinevirtual

Destroy the PndContainerI object.

Definition at line 38 of file PndContainerI.h.

38 {};

Member Function Documentation

◆ GetClassName()

template<class T>
TString PndContainerI< T >::GetClassName ( ) const
inline

Definition at line 63 of file PndContainerI.h.

Referenced by PndContainerRegister::SetInput(), and PndContainerRegister::SetOutput().

63 { return T{}.ClassName(); }

◆ GetConstElementPtr()

◆ GetVectorOfPtrToConst()

template<class T>
std::vector<T const *> PndContainerI< T >::GetVectorOfPtrToConst ( ) const
inline

return vector of const ptrs pointing at internal data, to be used to access data independent of underlying data container

Returns
std::vector<T *>

Definition at line 53 of file PndContainerI.h.

54  {
55  std::vector<T const *> result{};
56  result.reserve(this->GetSize());
57  for (Int_t i = 0; i < this->GetSize(); ++i) {
58  result.push_back(this->GetConstElementPtr(i));
59  }
60  return result;
61  }
virtual T const * GetConstElementPtr(Int_t t_index) const =0
Get the Element object at t_index.
virtual ssize_t GetSize() const =0
Get the number of members in internal data.
unsigned int i
Definition: P4_F32vec4.h:21

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