PandaRoot
PndContainerI< T > Class Template Referenceabstract

#include <BSEmcAddLinksToCluster.h>

Inheritance diagram for PndContainerI< T >:
PndInputContainerI< T > PndOutputContainerI< T > PndInputContainer< T > PndSTDInputContainer< T > PndTCAInputContainer< T > PndOutputContainer< T > PndSTDOutputContainer< T > PndTCAOutputContainer< T >

Public Member Functions

 PndContainerI ()
 Construct a new PndContainerI object. More...
 
virtual ~PndContainerI ()
 Destroy the PndContainerI object. More...
 
virtual Bool_t Init (const TString &t_branchname)=0
 Init internal data. More...
 
virtual ssize_t GetSize () const =0
 Get the number of members in internal data. 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...
 
const TString & GetBranchName () const
 Get the BranchName. More...
 

Protected Attributes

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 32 of file PndContainerI.h.

32 {}

◆ ~PndContainerI()

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

Destroy the PndContainerI object.

Definition at line 37 of file PndContainerI.h.

37 {};

Member Function Documentation

◆ GetBranchName()

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

Get the BranchName.

Returns
const TString&

Definition at line 81 of file PndContainerI.h.

81 { return fBranchName; }
TString fBranchName
Definition: PndContainerI.h:84

◆ GetConstElementPtr()

◆ GetSize()

◆ 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 66 of file PndContainerI.h.

67  {
68  std::vector<T const *> result{};
69  result.reserve(this->GetSize());
70  for (Int_t i = 0; i < this->GetSize(); ++i) {
71  result.push_back(this->GetConstElementPtr(i));
72  }
73  return result;
74  }
virtual T const * GetConstElementPtr(Int_t t_index) const =0
Get the Element object at t_index.
unsigned int i
Definition: P4_F32vec4.h:21
virtual ssize_t GetSize() const =0
Get the number of members in internal data.

◆ Init()

Member Data Documentation

◆ fBranchName


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