MTL 4: mtl::matrix< T, Shape, Storage, Orientation >::shifted_inserter< BaseInserter > Class Template Reference
#include <shifted_inserter.hpp>
Public Member Functions | |
shifted_inserter (matrix_type &A, size_type slot_size=0, size_type row_offset=0, size_type col_offset=0) | |
Constructor with matrix A , the slot size and the offsets. | |
void | set_row_offset (size_type ro) |
Change row offset. | |
void | set_col_offset (size_type co) |
Change column offset. | |
size_type | get_row_offset () const |
Get row offset. | |
size_type | get_col_offset () const |
Get column offset. | |
bracket_proxy | operator[] (size_type row) |
proxy_type | operator() (size_type row, size_type col) |
The main work is performed by the underlying base inserter whose type is given as template argument.
proxy_type mtl::matrix< T, Shape, Storage, Orientation >::shifted_inserter< BaseInserter >::operator() | ( | size_type | row, | |
size_type | col | |||
) | [inline] |
col | To be used in ins(r, c) << value; |
bracket_proxy mtl::matrix< T, Shape, Storage, Orientation >::shifted_inserter< BaseInserter >::operator[] | ( | size_type | row | ) | [inline] |
row | To be used in ins[r][c] << value; |
mtl::matrix< T, Shape, Storage, Orientation >::shifted_inserter< BaseInserter > Class Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine
-- Gen. with
rev. 7542
on 7 Apr 2011 by doxygen 1.5.9 -- © 2010 by SimuNova UG.