Wrapper to have a vector of pointers such that when it is destroyed, all the pointers are deleted.
Definition: PointerVector.h:17
PointerVector(size_t const numElements)
Constructor that initializes a shared vector to hold for numElements pointers.
Definition: PointerVector.h:39
PointerVector()=default
Default constructor.
std::vector< T * > & operator*()
Access a reference to the vector.
Definition: PointerVector.h:51
virtual ~PointerVector()
Destructor that deletes what is hold for each pointer in the pointer vector before deleting the Point...
Definition: PointerVector.h:44
std::vector< T * > v
The vector of pointers.
Definition: PointerVector.h:24
T * operator[](size_t const i)
Definition: PointerVector.h:57