This is the Tiny Vector Matrix Expression Templates library found at http://tvmet.sourceforge.net. It is the fastest and most compact matrix lib out there (for < 10x10 matricies). I have done some minor tweaks to make it compile for mbed. For examples and hints on how to use, see: http://tvmet.sourceforge.net/usage.html

Dependents:   Eurobot_2012_Secondary

Embed: (wiki syntax)

« Back to documentation index

Incrementor< T > Class Template Reference

Incrementor< T > Class Template Reference

A simple incrementor class. More...

#include <tvmet/util/Incrementor.h>


Detailed Description

template<class T>
class tvmet::util::Incrementor< T >

A simple incrementor class.

> Incrementor.h "tvmet/util/Incrementor.h"

The start value is given at construction time. After each access the class increments the internal counter.

Example:
 #include <algorithm>

 using namespace tvmet;

 ...

 std::generate(m1.begin(), m1.end(),
 util::Incrementor<typename matrix_type::value_type>());

Specialized Incrementor class.

Definition at line 52 of file Incrementor.h.