|
TooN 2.1
|
Allocate memory for a static sized Vector. The class switches to heap allocation automatically for large Vectors. Naturally, the vector is not resizable. More...
#include <allocator.hh>
Public Member Functions | |
| VectorAlloc () | |
| VectorAlloc (int) | |
| template<class Op > | |
| VectorAlloc (const Operator< Op > &) | |
| int | size () const |
| Precision * | get_data_ptr () |
| const Precision * | get_data_ptr () const |
Protected Member Functions | |
| Precision * | data () |
| const Precision * | data () const |
| void | try_destructive_resize (int) |
| template<class Op > | |
| void | try_destructive_resize (const Operator< Op > &) |
Allocate memory for a static sized Vector. The class switches to heap allocation automatically for large Vectors. Naturally, the vector is not resizable.
1.7.4