Public Types | Public Member Functions | Public Attributes

ProxyCube< Cube< eT > > Class Template Reference
[ProxyCube]

#include <ProxyCube.hpp>

List of all members.

Public Types

typedef eT elem_type
typedef get_pod_type
< elem_type >::result 
pod_type
typedef Cube< eT > stored_type

Public Member Functions

 ProxyCube (const Cube< eT > &A)
 ProxyCube (const u32 in_n_rows, const u32 in_n_cols, const u32 in_n_slices)
arma_inline elem_type operator[] (const u32 i) const
arma_inline elem_type at (const u32 row, const u32 col, const u32 slice) const

Public Attributes

const Cube< eT > & Q
const u32 n_rows
const u32 n_cols
const u32 n_elem_slice
const u32 n_slices
const u32 n_elem

Detailed Description

template<typename eT>
class ProxyCube< Cube< eT > >

Definition at line 35 of file ProxyCube.hpp.


Member Typedef Documentation

template<typename eT >
typedef eT ProxyCube< Cube< eT > >::elem_type

Definition at line 39 of file ProxyCube.hpp.

template<typename eT >
typedef get_pod_type<elem_type>::result ProxyCube< Cube< eT > >::pod_type

Definition at line 40 of file ProxyCube.hpp.

template<typename eT >
typedef Cube<eT> ProxyCube< Cube< eT > >::stored_type

Definition at line 41 of file ProxyCube.hpp.


Constructor & Destructor Documentation

template<typename eT >
ProxyCube< Cube< eT > >::ProxyCube ( const Cube< eT > &  A  )  [inline, explicit]

Definition at line 52 of file ProxyCube.hpp.

    : Q           (A)
    , n_rows      (A.n_rows)
    , n_cols      (A.n_cols)
    , n_elem_slice(A.n_elem_slice)
    , n_slices    (A.n_slices)
    , n_elem      (A.n_elem)
    {
    arma_extra_debug_sigprint();
    }

template<typename eT >
ProxyCube< Cube< eT > >::ProxyCube ( const u32  in_n_rows,
const u32  in_n_cols,
const u32  in_n_slices 
) [inline, explicit]

Definition at line 63 of file ProxyCube.hpp.

    : Q           (Q)
    , n_rows      (in_n_rows)
    , n_cols      (in_n_cols)
    , n_elem_slice(in_n_rows*in_n_cols)
    , n_slices    (in_n_slices)
    , n_elem      (in_n_rows*in_n_cols*in_n_slices)
    {
    arma_extra_debug_sigprint();
    }


Member Function Documentation

template<typename eT >
arma_inline elem_type ProxyCube< Cube< eT > >::operator[] ( const u32  i  )  const [inline]

Definition at line 74 of file ProxyCube.hpp.

{ return Q[i];                  }

template<typename eT >
arma_inline elem_type ProxyCube< Cube< eT > >::at ( const u32  row,
const u32  col,
const u32  slice 
) const [inline]

Definition at line 75 of file ProxyCube.hpp.

{ return Q.at(row, col, slice); }


Member Data Documentation

template<typename eT >
const Cube<eT>& ProxyCube< Cube< eT > >::Q

Definition at line 44 of file ProxyCube.hpp.

template<typename eT >
const u32 ProxyCube< Cube< eT > >::n_rows

Definition at line 46 of file ProxyCube.hpp.

template<typename eT >
const u32 ProxyCube< Cube< eT > >::n_cols

Definition at line 47 of file ProxyCube.hpp.

template<typename eT >
const u32 ProxyCube< Cube< eT > >::n_elem_slice

Definition at line 48 of file ProxyCube.hpp.

template<typename eT >
const u32 ProxyCube< Cube< eT > >::n_slices

Definition at line 49 of file ProxyCube.hpp.

template<typename eT >
const u32 ProxyCube< Cube< eT > >::n_elem

Definition at line 50 of file ProxyCube.hpp.