1 #ifndef PNDMUTABLECONTAINERI_HH 2 #define PNDMUTABLECONTAINERI_HH 29 virtual void Reset() = 0;
44 virtual void RemoveAt(Int_t t_index) = 0;
58 virtual T *
GetElement(Int_t t_index)
const = 0;
75 std::vector<T *> result{};
76 result.reserve(this->
GetSize());
virtual void Reset()=0
Reset data.
virtual T * GetElement(Int_t t_index) const =0
Get the Element object at t_index.
PndMutableContainerI(const TString &t_foldername="", Bool_t t_persistency=kTRUE)
Construct a new PndMutableContainerI object.
std::vector< T * > GetVector() const
return vector of ptrs pointing at internal data, to be used to access data independent of underlying ...
virtual ssize_t GetSize() const =0
Get the number of members in internal data.
Bool_t GetPersistency() const
Get the Persistency of the data.
const TString & GetFolderName() const
Get the Folder Name.
virtual T * CreateCopy(const T &t_data)=0
Create a copy of t_data in internal data and return ptr to it.
virtual void Compress()
Compress.
virtual void RemoveAt(Int_t t_index)=0
Delete object at t_index in internal data.
virtual T const * GetConstElementPtr(Int_t t_index) const
Get the Element object at t_index.
void SetPersistency(Bool_t t_persistency)
Set the Persistency of the data.
void SetFolderName(const TString &t_foldername)
Set the FolderName.
Interface to a datacontainer to be used in PandaROOT.
virtual ~PndMutableContainerI()
Destroy the PndMutableContainerI object.