TooN 2.1
Public Types | Public Member Functions | Public Attributes | Protected Member Functions
VectorSlice< S, Precision, PtrType, ConstPtrType, RefType, ConstRefType > Struct Template Reference

Hold a pointer to yield a statically sized slice of a Vector. Not resizable. More...

#include <allocator.hh>

List of all members.

Public Types

typedef PtrType PointerType
typedef ConstPtrType ConstPointerType
typedef RefType ReferenceType
typedef ConstRefType ConstReferenceType

Public Member Functions

int size () const
 VectorSlice (PtrType p)
 VectorSlice (PtrType p, int)
template<class Op >
 VectorSlice (const Operator< Op > &op)

Public Attributes

const PtrType my_data

Protected Member Functions

PtrType data ()
ConstPtrType data () const
void try_destructive_resize (int)
template<class Op >
void try_destructive_resize (const Operator< Op > &)

Detailed Description

template<int S, class Precision, class PtrType = Precision*, class ConstPtrType = const Precision*, class RefType = Precision&, class ConstRefType = const Precision&>
struct TooN::Internal::VectorSlice< S, Precision, PtrType, ConstPtrType, RefType, ConstRefType >

Hold a pointer to yield a statically sized slice of a Vector. Not resizable.