KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
kjb::Increment< T > Class Template Reference

Generator that increments (++) its state everytime it is called. Useful for creating sequences of contigous values. More...

#include <l_functors.h>

Public Types

typedef T result_type
 

Public Member Functions

 Increment (const T &initial_value=T())
 
operator() ()
 
 ~Increment ()
 

Detailed Description

template<class T>
class kjb::Increment< T >

Generator that increments (++) its state everytime it is called. Useful for creating sequences of contigous values.

Member Typedef Documentation

template<class T >
typedef T kjb::Increment< T >::result_type

Constructor & Destructor Documentation

template<class T >
kjb::Increment< T >::Increment ( const T &  initial_value = T())
inline
template<class T >
kjb::Increment< T >::~Increment ( )
inline

Member Function Documentation

template<class T >
T kjb::Increment< T >::operator() ( )
inline

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