podarray< T1 > Class Template Reference
[Podarray]

A lightweight array for POD types. If the amount of memory requested is small, the stack is used. More...

#include <podarray_proto.hpp>

List of all members.

Public Member Functions

 ~podarray ()
 podarray ()
 podarray (const podarray &x)
const podarrayoperator= (const podarray &x)
arma_inline podarray (const u32 new_N)
arma_inline T1 & operator[] (const u32 i)
arma_inline T1 operator[] (const u32 i) const
arma_inline T1 & operator() (const u32 i)
arma_inline T1 operator() (const u32 i) const
void set_size (const u32 new_n_elem)
void fill (const T1 val)
void zeros ()
void zeros (const u32 new_n_elem)
arma_inline T1 * memptr ()
arma_inline const T1 * memptr () const

Public Attributes

const u32 n_elem
 number of elements held
arma_aligned const T1 *const mem
 pointer to memory used by the object

Protected Member Functions

void init (const u32 new_n_elem)

Protected Attributes

arma_aligned T1 mem_local [16]
 Internal memory, to avoid calling the 'new' operator for small amounts of memory.


Detailed Description

template<typename T1>
class podarray< T1 >

A lightweight array for POD types. If the amount of memory requested is small, the stack is used.

Definition at line 24 of file podarray_proto.hpp.


Member Data Documentation

template<typename T1 >
const u32 podarray< T1 >::n_elem

template<typename T1 >
arma_aligned const T1* const podarray< T1 >::mem

template<typename T1 >
arma_aligned T1 podarray< T1 >::mem_local[16] [protected]

Internal memory, to avoid calling the 'new' operator for small amounts of memory.

Definition at line 36 of file podarray_proto.hpp.

Referenced by podarray< T1 >::init(), and podarray< T1 >::~podarray().