TooN
Public Member Functions | Protected Member Functions | List of all members
TooN::Internal::VectorAlloc< Size, Precision > Struct Template Reference
Inheritance diagram for TooN::Internal::VectorAlloc< Size, Precision >:
Inheritance graph
[legend]
Collaboration diagram for TooN::Internal::VectorAlloc< Size, Precision >:
Collaboration graph
[legend]

Public Member Functions

 VectorAlloc ()
 Default constructor (only for statically sized vectors)
 
 VectorAlloc (int)
 Construction from a size (required by damic vectors, ignored otherwise).
 
template<class Precision2 , int Size2>
 VectorAlloc (const Precision2(&i)[Size2])
 
template<class Op >
 VectorAlloc (const Operator< Op > &)
 Construction from an Operator. See Operator::size().
 
int size () const
 Return the size of the vector.
 
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 > &)
 

Additional Inherited Members

- Public Types inherited from TooN::Internal::DefaultTypes< Precision >
typedef Precision * PointerType
 
typedef const Precision * ConstPointerType
 
typedef Precision & ReferenceType
 
typedef const Precision & ConstReferenceType
 

The documentation for this struct was generated from the following file: