Public Types | Public Member Functions | Public Attributes

Proxy< Col< 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 Col< eT > stored_type

Public Member Functions

 Proxy (const Col< 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 Col< eT > & Q
const u32 n_rows
const u32 n_cols
const u32 n_elem

Detailed Description

template<typename eT>
class Proxy< Col< eT > >

Definition at line 74 of file Proxy.hpp.


Member Typedef Documentation

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

Definition at line 78 of file Proxy.hpp.

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

Definition at line 79 of file Proxy.hpp.

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

Definition at line 80 of file Proxy.hpp.


Constructor & Destructor Documentation

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

Definition at line 88 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< Col< eT > >::Proxy ( const u32  in_n_rows,
const u32  in_n_cols 
) [inline, explicit]

Definition at line 97 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< Col< eT > >::operator[] ( const u32  i  )  const [inline]

Definition at line 106 of file Proxy.hpp.

{ return Q[i];           }

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

Definition at line 107 of file Proxy.hpp.

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


Member Data Documentation

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

Definition at line 82 of file Proxy.hpp.

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

Definition at line 84 of file Proxy.hpp.

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

Definition at line 85 of file Proxy.hpp.

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

Definition at line 86 of file Proxy.hpp.