TooN 2.1
Public Member Functions | Protected Member Functions
VectorAlloc< Size, Precision > Struct Template Reference

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>

Inheritance diagram for VectorAlloc< Size, Precision >:
StaticSizedAllocator< Size, Precision > DefaultTypes< Precision > StackOrHeap GenericVBase< Size, Precision, 1, VectorAlloc< Size, Precision > > VBase::VLayout< Size, Precision >

List of all members.

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 > &)

Detailed Description

template<int Size, class Precision>
struct TooN::Internal::VectorAlloc< Size, Precision >

Allocate memory for a static sized Vector. The class switches to heap allocation automatically for large Vectors. Naturally, the vector is not resizable.