PandaRoot
PndConstContainerI< T > Class Template Referenceabstract

#include <BSEmcMCDepositProductionProcess.h>

Inheritance diagram for PndConstContainerI< T >:
PndContainerI< T > PndContainerBaseI PndConstContainer< T > PndSTDConstContainer< T > PndTCAConstContainer< T >

Public Member Functions

 PndConstContainerI ()
 Construct a new PndConstContainerI object. More...
 
virtual T const * GetElement (Int_t t_index) const =0
 Get the Element object at t_index. More...
 
virtual T const * GetConstElementPtr (Int_t t_index) const
 Get the Element object at t_index. More...
 
std::vector< T const * > GetVector () const
 return vector of ptrs pointing at internal data, to be used to access data independent of underlying data container More...
 
- Public Member Functions inherited from PndContainerI< T >
 PndContainerI ()
 Construct a new PndContainerI object. More...
 
virtual ~PndContainerI ()
 Destroy the PndContainerI object. 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 PndConstContainerI< T >

Definition at line 34 of file BSEmcMCDepositProductionProcess.h.

Constructor & Destructor Documentation

◆ PndConstContainerI()

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

Construct a new PndConstContainerI object.

Definition at line 13 of file PndConstContainerI.h.

Member Function Documentation

◆ GetConstElementPtr()

template<class T>
virtual T const* PndConstContainerI< T >::GetConstElementPtr ( Int_t  t_index) const
inlinevirtual

Get the Element object at t_index.

Parameters
t_index
Returns
T const *

Implements PndContainerI< T >.

Definition at line 34 of file PndConstContainerI.h.

Referenced by TestInTask::Exec(), and BSEmcMCDepositToTimebasedWaveforms< BSEmcBwEndcapDigiPar >::Exec().

34 { return this->GetElement(t_index); }
virtual T const * GetElement(Int_t t_index) const =0
Get the Element object at t_index.

◆ GetElement()

◆ GetVector()

template<class T>
std::vector<T const *> PndConstContainerI< T >::GetVector ( ) const
inline

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

Returns
std::vector<T *>

Definition at line 41 of file PndConstContainerI.h.

42  {
43  std::vector<T const *> result{};
44  result.reserve(this->GetSize());
45  for (Int_t i = 0; i < this->GetSize(); ++i) {
46  result.push_back(this->GetElement(i));
47  }
48  return result;
49  }
virtual ssize_t GetSize() const =0
Get the number of members in internal data.
unsigned int i
Definition: P4_F32vec4.h:21
virtual T const * GetElement(Int_t t_index) const =0
Get the Element object at t_index.

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