geomc 1.0
A c++ linear algebra template library
Public Types | Public Member Functions | Public Attributes | List of all members
GenericStorage< T, N, STORAGE_UNIQUE > Struct Template Reference
Inheritance diagram for GenericStorage< T, N, STORAGE_UNIQUE >:
UniqueStorage< T, N >

Public Types

typedef UniqueStorage< T, N > type
 

Public Member Functions

 GenericStorage (index_t n, const T *srcdata)
 
 GenericStorage (index_t n)
 
T * get ()
 Return a pointer to the first element in the storage array.
 
const T * get () const
 Return a pointer to the first (const) element in the storage array.
 
index_t size () const
 Return the number of elements in the array.
 
T & operator[] (index_t i)
 Return a reference to the ith element in the array.
 
operator[] (index_t i) const
 Return the ith element in the array.
 

Public Attributes

data [N]
 Data array.
 

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