ivutils
|
Pointer storage class for a vector followinfg storage_prototype. More...
#include <math_utils.h>
Public Member Functions | |
ptr_stor_t () | |
Default constructor. | |
ptr_stor_t (const ptr_stor_t &other) | |
Copy constructor. | |
ptr_stor_t (std::size_t dimension, T *ptr=nullptr, int managed=0) | |
Binds the address in memory, if managed is 1, ownership over the pointer is transferred to the object (the pointer will be deleted automatically). | |
ptr_stor_t (const std::vector< T > &vec) | |
Binds to existing std::vector. | |
void | resize (std::size_t new_dim) |
Resize creates a new pointer, discarding the old one regardless of its size. | |
Pointer storage class for a vector followinfg storage_prototype.