14 #ifndef PNDMUTABLECONTAINER_HH 15 #define PNDMUTABLECONTAINER_HH 56 if (this->
fImp !=
nullptr) {
69 if (this->
fImp !=
nullptr) {
70 return this->
fImp->CreateCopy(t_data);
82 if (this->
fImp !=
nullptr) {
83 this->
fImp->RemoveAt(t_index);
94 if (this->
fImp !=
nullptr) {
95 return this->
fImp->GetSize();
108 if (this->
fImp !=
nullptr) {
109 return this->
fImp->GetElement(t_index);
120 if (this->
fImp !=
nullptr) {
121 this->
fImp->Compress();
126 std::unique_ptr<PndMutableContainerI<T>>
fImp{
nullptr};
PndMutableContainer(const TString &t_foldername="", Bool_t t_persistency=kTRUE)
Construct a new PndMutableContainer object.
virtual void Compress()
Compress.
Input and Output Container implementation of PndMutableContainerI using an underlying TClonesArray...
virtual ~PndMutableContainer()
Destroy the PndMutableContainer object.
virtual void RemoveAt(Int_t t_index) final
Delete object at t_index in internal data.
virtual T * CreateCopy(const T &t_data) final
Create a copy of t_data in internal data and return ptr to it.
Input and Output Container implementation of PndMutableContainerI using an underlying std::vector<T> ...
virtual ssize_t GetSize() const final
Get the number of members in internal data.
virtual void Reset() final
Reset data.
Interface to a datacontainer to be used in PandaROOT.
std::unique_ptr< PndMutableContainerI< T > > fImp
virtual T * GetElement(Int_t t_index) const final
Get the Element object at t_index.
void SetContainer(PndMutableContainerI< T > *t_container)
Set the Output Container object.