Logo MTL4

mtl::matrix< T, Shape, Storage, Orientation >::shifted_inserter< BaseInserter > Class Template Reference

Inserter with shifted row and column indices. More...

#include <shifted_inserter.hpp>

Collaboration diagram for mtl::matrix< T, Shape, Storage, Orientation >::shifted_inserter< BaseInserter >:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

template<class T, class Shape = rectangle<>, class Storage = dense<>, class Orientation = row_major>
template<typename BaseInserter>
class mtl::matrix< T, Shape, Storage, Orientation >::shifted_inserter< BaseInserter >

Inserter with shifted row and column indices.

The main work is performed by the underlying base inserter whose type is given as template argument.


Member Function Documentation

template<class T , class Shape = rectangle<>, class Storage = dense<>, class Orientation = row_major>
template<typename BaseInserter >
proxy_type mtl::matrix< T, Shape, Storage, Orientation >::shifted_inserter< BaseInserter >::operator() ( size_type  row,
size_type  col 
) [inline]

Parameters:
col To be used in ins(r, c) << value;

template<class T , class Shape = rectangle<>, class Storage = dense<>, class Orientation = row_major>
template<typename BaseInserter >
bracket_proxy mtl::matrix< T, Shape, Storage, Orientation >::shifted_inserter< BaseInserter >::operator[] ( size_type  row  )  [inline]

Parameters:
row To be used in ins[r][c] << value;


The documentation for this class was generated from the following file:


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.