#include <external_2D.h>
Public Types | |
enum | { array_rows = Rows, array_cols = Cols } |
typedef fixed_1D< Element, Cols > | col_array_type |
typedef const Element * | const_pointer |
typedef const Element & | const_reference |
typedef twod_tag | dimension_tag |
typedef external< Rows, Cols > | generator_type |
typedef Layout | layout |
typedef external_memory_tag | memory_tag |
typedef Element * | pointer |
typedef Element & | reference |
typedef not_resizable_tag | resizing_tag |
typedef fixed_1D< Element, Rows > | row_array_type |
typedef fixed_size_tag | size_tag |
typedef fixed_2D< Element, Cols, Rows, Layout > | transposed_type |
typedef Element | value_type |
Public Member Functions | |
CML_STATIC_REQUIRE ((Rows > 0)&&(Cols > 0)) | |
size_t | cols () const |
Return the number of cols in the array. | |
const_pointer | data () const |
Return access to the data as a raw pointer. | |
pointer | data () |
Return access to the data as a raw pointer. | |
external_2D (value_type *const ptr) | |
Construct an external array from a pointer. | |
external_2D (value_type const ptr[Rows][Cols]) | |
Construct an external array from a pointer. | |
const_reference | operator() (size_t row, size_t col) const |
Const access element (row,col) of the matrix. | |
reference | operator() (size_t row, size_t col) |
Access element (row,col) of the matrix. | |
size_t | rows () const |
Return the number of rows in the array. | |
Protected Member Functions | |
const_reference | get_element (size_t row, size_t col, col_major) const |
reference | get_element (size_t row, size_t col, col_major) |
const_reference | get_element (size_t row, size_t col, row_major) const |
reference | get_element (size_t row, size_t col, row_major) |
Protected Attributes | |
pointer const | m_data |
Both the memory and the size are fixed at compile time, and cannot be changed.
Definition at line 36 of file external_2D.h.
typedef fixed_1D<Element,Cols> cml::external_2D< Element, Rows, Cols, Layout >::col_array_type |
Definition at line 76 of file external_2D.h.
typedef const Element* cml::external_2D< Element, Rows, Cols, Layout >::const_pointer |
Definition at line 51 of file external_2D.h.
typedef const Element& cml::external_2D< Element, Rows, Cols, Layout >::const_reference |
Reimplemented in cml::matrix< Element, external< Rows, Cols >, BasisOrient, Layout >.
Definition at line 50 of file external_2D.h.
typedef twod_tag cml::external_2D< Element, Rows, Cols, Layout >::dimension_tag |
Definition at line 66 of file external_2D.h.
typedef external<Rows,Cols> cml::external_2D< Element, Rows, Cols, Layout >::generator_type |
Reimplemented in cml::matrix< Element, external< Rows, Cols >, BasisOrient, Layout >.
Definition at line 44 of file external_2D.h.
typedef Layout cml::external_2D< Element, Rows, Cols, Layout >::layout |
Reimplemented in cml::matrix< Element, external< Rows, Cols >, BasisOrient, Layout >.
Definition at line 54 of file external_2D.h.
typedef external_memory_tag cml::external_2D< Element, Rows, Cols, Layout >::memory_tag |
Reimplemented in cml::matrix< Element, external< Rows, Cols >, BasisOrient, Layout >.
Definition at line 57 of file external_2D.h.
typedef Element* cml::external_2D< Element, Rows, Cols, Layout >::pointer |
Definition at line 48 of file external_2D.h.
typedef Element& cml::external_2D< Element, Rows, Cols, Layout >::reference |
Reimplemented in cml::matrix< Element, external< Rows, Cols >, BasisOrient, Layout >.
Definition at line 49 of file external_2D.h.
typedef not_resizable_tag cml::external_2D< Element, Rows, Cols, Layout >::resizing_tag |
Reimplemented in cml::matrix< Element, external< Rows, Cols >, BasisOrient, Layout >.
Definition at line 63 of file external_2D.h.
typedef fixed_1D<Element,Rows> cml::external_2D< Element, Rows, Cols, Layout >::row_array_type |
Definition at line 75 of file external_2D.h.
typedef fixed_size_tag cml::external_2D< Element, Rows, Cols, Layout >::size_tag |
Reimplemented in cml::matrix< Element, external< Rows, Cols >, BasisOrient, Layout >.
Definition at line 60 of file external_2D.h.
typedef fixed_2D<Element,Cols,Rows,Layout> cml::external_2D< Element, Rows, Cols, Layout >::transposed_type |
Reimplemented in cml::matrix< Element, external< Rows, Cols >, BasisOrient, Layout >.
Definition at line 69 of file external_2D.h.
typedef Element cml::external_2D< Element, Rows, Cols, Layout >::value_type |
Reimplemented in cml::matrix< Element, external< Rows, Cols >, BasisOrient, Layout >.
Definition at line 47 of file external_2D.h.
anonymous enum |
cml::external_2D< Element, Rows, Cols, Layout >::external_2D | ( | value_type const | ptr[Rows][Cols] | ) | [inline] |
cml::external_2D< Element, Rows, Cols, Layout >::external_2D | ( | value_type *const | ptr | ) | [inline] |
cml::external_2D< Element, Rows, Cols, Layout >::CML_STATIC_REQUIRE | ( | (Rows > 0)&&(Cols > 0) | ) |
size_t cml::external_2D< Element, Rows, Cols, Layout >::cols | ( | ) | const [inline] |
const_pointer cml::external_2D< Element, Rows, Cols, Layout >::data | ( | ) | const [inline] |
pointer cml::external_2D< Element, Rows, Cols, Layout >::data | ( | ) | [inline] |
const_reference cml::external_2D< Element, Rows, Cols, Layout >::get_element | ( | size_t | row, | |
size_t | col, | |||
col_major | ||||
) | const [inline, protected] |
Definition at line 156 of file external_2D.h.
reference cml::external_2D< Element, Rows, Cols, Layout >::get_element | ( | size_t | row, | |
size_t | col, | |||
col_major | ||||
) | [inline, protected] |
Definition at line 152 of file external_2D.h.
const_reference cml::external_2D< Element, Rows, Cols, Layout >::get_element | ( | size_t | row, | |
size_t | col, | |||
row_major | ||||
) | const [inline, protected] |
Definition at line 148 of file external_2D.h.
reference cml::external_2D< Element, Rows, Cols, Layout >::get_element | ( | size_t | row, | |
size_t | col, | |||
row_major | ||||
) | [inline, protected] |
Definition at line 144 of file external_2D.h.
Referenced by cml::external_2D< Element,-1,-1, Layout >::operator()(), and cml::external_2D< Element, Rows, Cols, Layout >::operator()().
const_reference cml::external_2D< Element, Rows, Cols, Layout >::operator() | ( | size_t | row, | |
size_t | col | |||
) | const [inline] |
Const access element (row,col) of the matrix.
row | row of element. | |
col | column of element. |
Definition at line 129 of file external_2D.h.
reference cml::external_2D< Element, Rows, Cols, Layout >::operator() | ( | size_t | row, | |
size_t | col | |||
) | [inline] |
Access element (row,col) of the matrix.
row | row of element. | |
col | column of element. |
Definition at line 116 of file external_2D.h.
size_t cml::external_2D< Element, Rows, Cols, Layout >::rows | ( | ) | const [inline] |
pointer const cml::external_2D< Element, Rows, Cols, Layout >::m_data [protected] |