PandaRoot
PndOutputContainerI< T > Class Template Referenceabstract

#include <BSEmcAddLinksToCluster.h>

Inheritance diagram for PndOutputContainerI< T >:
PndContainerI< T > PndOutputContainer< T > PndSTDOutputContainer< T > PndTCAOutputContainer< T >

Public Member Functions

 PndOutputContainerI (const TString &t_foldername="", Bool_t t_persistency=kTRUE)
 Construct a new PndOutputContainerI object. More...
 
 fFolderName (t_foldername)
 
 fPersistency (t_persistency)
 
virtual ~PndOutputContainerI ()
 Destroy the PndOutputContainerI object. More...
 
virtual void Reset ()=0
 Reset data. More...
 
virtual T * CreateCopy (const T &t_data)=0
 Create a copy of t_data in internal data and return ptr to it. More...
 
virtual void RemoveAt (Int_t t_index)=0
 Delete object at t_index in internal data. More...
 
virtual void Compress ()
 Compress. More...
 
virtual T * 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 * > GetVector () const
 return vector of ptrs pointing at internal data, to be used to access data independent of underlying data container More...
 
void SetFolderName (const TString &t_foldername)
 Set the FolderName. More...
 
void SetPersistency (Bool_t t_persistency)
 Set the Persistency of the data. More...
 
const TString & GetFolderName () const
 Get the Folder Name. More...
 
Bool_t GetPersistency () const
 Get the Persistency of the data. More...
 
- Public Member Functions inherited from PndContainerI< T >
 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...
 
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 fFolderName {""}
 
Bool_t fPersistency {kFALSE}
 
- Protected Attributes inherited from PndContainerI< T >
TString fBranchName {""}
 

Detailed Description

template<class T>
class PndOutputContainerI< T >

Definition at line 28 of file BSEmcAddLinksToCluster.h.

Constructor & Destructor Documentation

◆ PndOutputContainerI()

template<class T>
PndOutputContainerI< T >::PndOutputContainerI ( const TString &  t_foldername = "",
Bool_t  t_persistency = kTRUE 
)
inline

Construct a new PndOutputContainerI object.

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

Definition at line 16 of file PndOutputContainerI.h.

◆ ~PndOutputContainerI()

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

Destroy the PndOutputContainerI object.

Definition at line 21 of file PndOutputContainerI.h.

21 {};

Member Function Documentation

◆ Compress()

◆ CreateCopy()

◆ fFolderName()

template<class T>
PndOutputContainerI< T >::fFolderName ( t_foldername  )

◆ fPersistency()

template<class T>
PndOutputContainerI< T >::fPersistency ( t_persistency  )
inline

Definition at line 16 of file PndOutputContainerI.h.

◆ GetConstElementPtr()

template<class T>
virtual T const* PndOutputContainerI< 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 66 of file PndOutputContainerI.h.

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

◆ GetElement()

◆ GetFolderName()

template<class T>
const TString& PndOutputContainerI< T >::GetFolderName ( ) const
inline

Get the Folder Name.

Returns
const TString&

Definition at line 102 of file PndOutputContainerI.h.

102 { return fFolderName; }

◆ GetPersistency()

template<class T>
Bool_t PndOutputContainerI< T >::GetPersistency ( ) const
inline

Get the Persistency of the data.

Returns
Bool_t

Definition at line 109 of file PndOutputContainerI.h.

109 { return fPersistency; }

◆ GetVector()

template<class T>
std::vector<T *> PndOutputContainerI< 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 73 of file PndOutputContainerI.h.

74  {
75  std::vector<T *> result{};
76  result.reserve(this->GetSize());
77  for (Int_t i = 0; i < this->GetSize(); ++i) {
78  result.push_back(this->GetElement(i));
79  }
80  return result;
81  }
unsigned int i
Definition: P4_F32vec4.h:21
virtual ssize_t GetSize() const =0
Get the number of members in internal data.
virtual T * GetElement(Int_t t_index) const =0
Get the Element object at t_index.

◆ RemoveAt()

◆ Reset()

◆ SetFolderName()

template<class T>
void PndOutputContainerI< T >::SetFolderName ( const TString &  t_foldername)
inline

Set the FolderName.

Parameters
t_foldername

Definition at line 88 of file PndOutputContainerI.h.

88 { fFolderName = t_foldername; }

◆ SetPersistency()

template<class T>
void PndOutputContainerI< T >::SetPersistency ( Bool_t  t_persistency)
inline

Set the Persistency of the data.

Parameters
t_persistency

Definition at line 95 of file PndOutputContainerI.h.

95 { fPersistency = t_persistency; }

Member Data Documentation

◆ fFolderName

◆ fPersistency


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