PandaRoot
PndConstContainer< T > Class Template Reference

#include <PndConstContainer.h>

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

Public Member Functions

 PndConstContainer ()
 Construct a new PndConstContainer object. More...
 
virtual ~PndConstContainer ()
 Destroy the PndConstContainer object. More...
 
void SetConstContainer (PndConstContainerI< T > *t_container)
 Set the Input Container object. More...
 
virtual ssize_t GetSize () const final
 Get the number of members in internal data. More...
 
virtual T const * GetElement (Int_t t_index) const final
 Get the Element object at t_index. More...
 
- Public Member Functions inherited from PndConstContainerI< T >
 PndConstContainerI ()
 Construct a new PndConstContainerI object. 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...
 
const TString & GetBranchName () const
 Get the BranchName. More...
 
void SetBranchName (const TString &t_branchname)
 Set the Branch Name. More...
 

Protected Attributes

std::unique_ptr< PndConstContainerI< T > > fImp {nullptr}
 
- Protected Attributes inherited from PndContainerBaseI
TString fBranchName {""}
 

Detailed Description

template<class T>
class PndConstContainer< T >

Definition at line 24 of file PndConstContainer.h.

Constructor & Destructor Documentation

◆ PndConstContainer()

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

Construct a new PndConstContainer object.

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

Definition at line 33 of file PndConstContainer.h.

◆ ~PndConstContainer()

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

Destroy the PndConstContainer object.

Definition at line 39 of file PndConstContainer.h.

39 {};

Member Function Documentation

◆ GetElement()

template<class T>
virtual T const* PndConstContainer< T >::GetElement ( Int_t  t_index) const
inlinefinalvirtual

Get the Element object at t_index.

Parameters
t_index
Returns
T*

Implements PndConstContainerI< T >.

Definition at line 67 of file PndConstContainer.h.

68  {
69  if (this->fImp != nullptr) {
70  return this->fImp->GetElement(t_index);
71  }
72  return nullptr;
73  }
std::unique_ptr< PndConstContainerI< T > > fImp

◆ GetSize()

template<class T>
virtual ssize_t PndConstContainer< T >::GetSize ( ) const
inlinefinalvirtual

Get the number of members in internal data.

Returns
ssize_t

Implements PndContainerBaseI.

Definition at line 53 of file PndConstContainer.h.

Referenced by TestInTask::Exec().

54  {
55  if (this->fImp != nullptr) {
56  return this->fImp->GetSize();
57  }
58  return 0;
59  }
std::unique_ptr< PndConstContainerI< T > > fImp

◆ SetConstContainer()

template<class T>
void PndConstContainer< T >::SetConstContainer ( PndConstContainerI< T > *  t_container)
inline

Set the Input Container object.

Parameters
t_container

Definition at line 46 of file PndConstContainer.h.

Referenced by TestInTask::Init().

46 { this->fImp.reset(t_container); }
std::unique_ptr< PndConstContainerI< T > > fImp

Member Data Documentation

◆ fImp


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