|
|
Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
A simple incrementor class. More...
#include <tvmet/util/Incrementor.h>
Public Member Functions | |
| Incrementor (T start=0) | |
| T | operator() () |
Private Attributes | |
| T | m_inc |
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.
#include <algorithm> using namespace tvmet; ... std::generate(m1.begin(), m1.end(), util::Incrementor<typename matrix_type::value_type>());
Specialized Incrementor class.
| tvmet::util::Incrementor< T >::Incrementor | ( | T | start = 0 | ) | [inline] |
| T tvmet::util::Incrementor< T >::operator() | ( | ) | [inline] |
References tvmet::util::Incrementor< T >::m_inc.
T tvmet::util::Incrementor< T >::m_inc [private] |
|
Author: |