![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
A simple class to provide an allocate()
function for pointers.
More...
#include <array.h>
This class uses new
and delete
and may throw a C++ exception in the usual way. It contains a simple garbage collection mechanism to assist in exception safety.
This class is used in tensor_grid .
Public Member Functions | |
void | allocate (base_t *&v, size_t i) |
Allocate v for i elements. | |
void | free (base_t *&v) |
Free memory. | |
Protected Attributes | |
std::vector< base_t * > | list |
Store allocated pointers. |
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).