Public Types | Public Member Functions | Public Attributes

Proxy< Row< eT > > Class Template Reference
[Proxy]

#include <Proxy.hpp>

List of all members.

Public Types

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

Public Member Functions

 Proxy (const Row< eT > &A)
 Proxy (const u32 in_n_rows, const u32 in_n_cols)
arma_inline elem_type operator[] (const u32 i) const
arma_inline elem_type at (const u32 row, const u32 col) const

Public Attributes

const Row< eT > & Q
const u32 n_rows
const u32 n_cols
const u32 n_elem

Detailed Description

template<typename eT>
class Proxy< Row< eT > >

Definition at line 113 of file Proxy.hpp.


Member Typedef Documentation

template<typename eT >
typedef eT Proxy< Row< eT > >::elem_type

Definition at line 117 of file Proxy.hpp.

template<typename eT >
typedef get_pod_type<elem_type>::result Proxy< Row< eT > >::pod_type

Definition at line 118 of file Proxy.hpp.

template<typename eT >
typedef Row<eT> Proxy< Row< eT > >::stored_type

Definition at line 119 of file Proxy.hpp.


Constructor & Destructor Documentation

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

Definition at line 127 of file Proxy.hpp.

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

template<typename eT >
Proxy< Row< eT > >::Proxy ( const u32  in_n_rows,
const u32  in_n_cols 
) [inline, explicit]

Definition at line 136 of file Proxy.hpp.

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


Member Function Documentation

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

Definition at line 145 of file Proxy.hpp.

{ return Q[i];           }

template<typename eT >
arma_inline elem_type Proxy< Row< eT > >::at ( const u32  row,
const u32  col 
) const [inline]

Definition at line 146 of file Proxy.hpp.

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


Member Data Documentation

template<typename eT >
const Row<eT>& Proxy< Row< eT > >::Q

Definition at line 121 of file Proxy.hpp.

template<typename eT >
const u32 Proxy< Row< eT > >::n_rows

Definition at line 123 of file Proxy.hpp.

template<typename eT >
const u32 Proxy< Row< eT > >::n_cols

Definition at line 124 of file Proxy.hpp.

template<typename eT >
const u32 Proxy< Row< eT > >::n_elem

Definition at line 125 of file Proxy.hpp.