subview_field< oT > Class Template Reference
[Subview_field]

Class for storing data required to construct or apply operations to a subfield (i.e. where the subfield starts and ends as well as a reference/pointer to the original field),. More...

#include <subview_field_proto.hpp>

List of all members.

Public Types

typedef oT object_type

Public Member Functions

 ~subview_field ()
void operator= (const field< oT > &x)
void operator= (const subview_field &x)
 x.subfield(...) = y.subfield(...)
arma_inline oT & operator[] (const u32 i)
arma_inline const oT & operator[] (const u32 i) const
arma_inline oT & operator() (const u32 i)
arma_inline const oT & operator() (const u32 i) const
arma_inline oT & at (const u32 row, const u32 col)
arma_inline const oT & at (const u32 row, const u32 col) const
arma_inline oT & operator() (const u32 row, const u32 col)
arma_inline const oT & operator() (const u32 row, const u32 col) const
bool check_overlap (const subview_field &x) const

Static Public Member Functions

static void extract (field< oT > &out, const subview_field &in)
 X = Y.subfield(...).

Public Attributes

const field< oT > & f
const u32 aux_row1
const u32 aux_col1
const u32 aux_row2
const u32 aux_col2
const u32 n_rows
const u32 n_cols
const u32 n_elem

Protected Member Functions

arma_inline subview_field (const field< oT > &in_f, const u32 in_row1, const u32 in_col1, const u32 in_row2, const u32 in_col2)
arma_inline subview_field (field< oT > &in_f, const u32 in_row1, const u32 in_col1, const u32 in_row2, const u32 in_col2)

Protected Attributes

field< oT > * f_ptr

Private Member Functions

 subview_field ()

Friends

class field< oT >


Detailed Description

template<typename oT>
class subview_field< oT >

Class for storing data required to construct or apply operations to a subfield (i.e. where the subfield starts and ends as well as a reference/pointer to the original field),.

Definition at line 23 of file subview_field_proto.hpp.


Member Typedef Documentation

template<typename oT >
typedef oT subview_field< oT >::object_type

Definition at line 30 of file subview_field_proto.hpp.


Constructor & Destructor Documentation

template<typename oT >
subview_field< oT >::subview_field (  )  [private]


Friends And Related Function Documentation

template<typename oT >
friend class field< oT > [friend]

Definition at line 75 of file subview_field_proto.hpp.


Member Data Documentation

template<typename oT >
const field<oT>& subview_field< oT >::f

template<typename oT >
field<oT>* subview_field< oT >::f_ptr [protected]

template<typename oT >
const u32 subview_field< oT >::aux_row1

template<typename oT >
const u32 subview_field< oT >::aux_col1

template<typename oT >
const u32 subview_field< oT >::aux_row2

template<typename oT >
const u32 subview_field< oT >::aux_col2

template<typename oT >
const u32 subview_field< oT >::n_rows

template<typename oT >
const u32 subview_field< oT >::n_cols

template<typename oT >
const u32 subview_field< oT >::n_elem

Definition at line 40 of file subview_field_proto.hpp.

Referenced by subview_field< oT >::operator()().