VectorAlloc< Size, Precision > Struct Template Reference
[TooN internals]

Allocate memory for a Vector. More...

#include <allocator.hh>

Inheritance diagram for VectorAlloc< Size, Precision >:

StaticSizedAllocator< 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


Detailed Description

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

Allocate memory for a Vector.

For internal use only.


Constructor & Destructor Documentation

VectorAlloc (  ) 

Default constructor (only for statically sized vectors).

VectorAlloc ( int   ) 

Construction from a size (required by damic vectors, ignored otherwise).

VectorAlloc ( const Operator< Op > &   ) 

Construction from an Operator. See Operator::size().


Member Function Documentation

int size (  )  const

Return the size of the vector.


Generated on Tue Oct 27 16:09:25 2009 for TooN by  doxygen 1.5.9