15 #ifndef PNDSTDMUTABLECONTAINER_HH 16 #define PNDSTDMUTABLECONTAINER_HH 23 #include "FairLogger.h" 24 #include "FairRootManager.h" 61 if (fSTD !=
nullptr) {
62 return &(fSTD->at(t_idx));
74 if (fSTD !=
nullptr) {
88 if (fSTD !=
nullptr) {
89 fSTD->push_back(T{t_element});
91 LOG(error) <<
"PndSTDMutableContainer::CreateCopy() no underlying std::vector";
104 if (this->fSTD !=
nullptr) {
105 this->fSTD->erase(this->fSTD->begin() + t_index);
121 if (this->fSTD !=
nullptr) {
131 void SetData(std::vector<T> *t_container) { fSTD = t_container; }
141 std::vector<T> *fSTD{
nullptr};
std::vector< T > * GetData()
Get the Data.
virtual T * CreateCopy(const T &t_element)
Create a Copy object of t_element and return pointer to copy.
void SetData(std::vector< T > *t_container)
Set the Data.
virtual void Reset() final
"Delete" all elements
virtual void RemoveAt(Int_t t_index) final
remove t_index element
virtual ~PndSTDMutableContainer()
Destroy the PndSTDMutableContainer object.
PndSTDMutableContainer(const TString &t_foldername="", Bool_t t_persistency=kTRUE)
Construct a new PndSTDMutableContainer object.
virtual ssize_t GetSize() const final
Get the number of elements.
virtual T * GetElement(Int_t t_idx) const final
Get the t_idx Element.
PndSTDMutableContainer implementation of PndMutableContainerI<T> for FairRootManager and std::vector<...
virtual void Compress()
Compress.