ivutils
Loading...
Searching...
No Matches
ptr_stor_t< T > Class Template Reference

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.
 

Detailed Description

template<class T>
class ptr_stor_t< T >

Pointer storage class for a vector followinfg storage_prototype.


The documentation for this class was generated from the following file: