Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
podarray< eT > Class Template Reference

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

#include <podarray_bones.hpp>

List of all members.

Public Member Functions

arma_hot void copy_row (const Mat< eT > &A, const uword row)
void fill (const eT val)
arma_inline eT * memptr ()
arma_inline const eT * memptr () const
arma_inline eT & operator() (const uword i)
arma_inline eT operator() (const uword i) const
const podarrayoperator= (const podarray &x)
arma_inline eT & operator[] (const uword i)
arma_inline eT operator[] (const uword i) const
 podarray ()
 podarray (const podarray &x)
arma_inline podarray (const uword new_N)
arma_inline podarray (const eT *X, const uword new_N)
void reset ()
void set_size (const uword new_n_elem)
void zeros ()
void zeros (const uword new_n_elem)
 ~podarray ()

Public Attributes

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

Protected Member Functions

void init (const uword new_n_elem)

Protected Attributes

arma_aligned eT mem_local [podarray_prealloc_n_elem::val]
 Internal memory, to avoid calling the 'new' operator for small amounts of memory.

Detailed Description

template<typename eT>
class podarray< eT >

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

Definition at line 29 of file podarray_bones.hpp.


Member Data Documentation

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

pointer to memory used by the object

Definition at line 34 of file podarray_bones.hpp.

template<typename eT>
arma_aligned eT podarray< eT >::mem_local[podarray_prealloc_n_elem::val] [protected]

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

Definition at line 39 of file podarray_bones.hpp.

template<typename eT>
arma_aligned const uword podarray< eT >::n_elem

number of elements held

Definition at line 33 of file podarray_bones.hpp.


The documentation for this class was generated from the following files:


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Jan 7 2014 11:42:08