Logo MTL4
mtl::vector::inserter< Vector, Updater > Struct Template Reference

Class for generic insertion into vectors. More...

#include <inserter.hpp>

Collaboration diagram for mtl::vector::inserter< Vector, Updater >:
Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename Vector, typename Updater>
struct mtl::vector::inserter< Vector, Updater >

Class for generic insertion into vectors.

Parameters:
Vectoris the type of the vector in which will be inserted
Updateris a functor that determine how existed entries are updated Remark: For regular vectors, one can set the entries directly without inserter. An inserter is needed when vectors are distributed. Reversely, setting vectors with an inserter works for both distributed and non-distributed vector types and is therefore more generic. To understand how to use inserters it is best to read the page Matrix Insertion. This applies all to vector insertion except that only one index is used.

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


mtl::vector::inserter< Vector, Updater > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Gen. with rev. 7542 on Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.