Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
#include <tvmet/util/Incrementor.h>
Collaboration diagram for tvmet::util::Incrementor< T >:
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>());
Public Member Functions | |
Incrementor (T start=0) | |
T | operator() () |
Private Attributes | |
T | m_inc |
tvmet::util::Incrementor< T >::Incrementor | ( | T | start = 0 |
) | [inline] |
T tvmet::util::Incrementor< T >::operator() | ( | ) | [inline] |
T tvmet::util::Incrementor< T >::m_inc [private] |
Author: |