Iteratates a value of the type T (the type T must have a normal behavior for the "+=" , "<" and "/" operators) More...
#include <ParameterIterator.h>
Public Member Functions | |
virtual bool | HasNext () |
virtual void | Next () |
ParameterIterator (T start, T end, T stepSize, T *target) | |
ParameterIterator (const ParameterIterator &other) | |
Copy constructor. | |
virtual void | PrintValue () |
Prints the current value to std::cout. | |
virtual void | Reset () |
Resets the paramter to the start value. | |
Protected Attributes | |
T | m_end |
T | m_start |
T | m_stepSize |
T * | m_target |
Iteratates a value of the type T (the type T must have a normal behavior for the "+=" , "<" and "/" operators)
Definition at line 22 of file ParameterIterator.h.
face_contour_detector::ParameterIterator< T >::ParameterIterator | ( | T | start, |
T | end, | ||
T | stepSize, | ||
T * | target | ||
) |
Constructs a ParameterIterator
start | if Reset() is beeing called, the parameter is beeing reset to this value |
end | if the parameter value >= than this, HasNext() returns false |
stepSize | with every Next() call this is beeing added to the paramter value |
target | a pointer to the value that is beeing iterated |
Definition at line 84 of file ParameterIterator.h.
face_contour_detector::ParameterIterator< T >::ParameterIterator | ( | const ParameterIterator< T > & | other | ) |
Copy constructor.
Definition at line 88 of file ParameterIterator.h.
bool face_contour_detector::ParameterIterator< T >::HasNext | ( | ) | [virtual] |
Returns true if Next() can be called again
Implements face_contour_detector::ParameterIteratorI.
Definition at line 97 of file ParameterIterator.h.
void face_contour_detector::ParameterIterator< T >::Next | ( | ) | [virtual] |
Adds the step size to the paramters
Implements face_contour_detector::ParameterIteratorI.
Definition at line 92 of file ParameterIterator.h.
void face_contour_detector::ParameterIterator< T >::PrintValue | ( | ) | [virtual] |
Prints the current value to std::cout.
Implements face_contour_detector::ParameterIteratorI.
Definition at line 106 of file ParameterIterator.h.
void face_contour_detector::ParameterIterator< T >::Reset | ( | ) | [virtual] |
Resets the paramter to the start value.
Implements face_contour_detector::ParameterIteratorI.
Definition at line 102 of file ParameterIterator.h.
T face_contour_detector::ParameterIterator< T >::m_end [protected] |
Definition at line 45 of file ParameterIterator.h.
T face_contour_detector::ParameterIterator< T >::m_start [protected] |
Definition at line 44 of file ParameterIterator.h.
T face_contour_detector::ParameterIterator< T >::m_stepSize [protected] |
Definition at line 46 of file ParameterIterator.h.
T* face_contour_detector::ParameterIterator< T >::m_target [protected] |
Definition at line 47 of file ParameterIterator.h.