All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Public Member Functions | Protected Attributes
face_contour_detector::ParameterIterator< T > Class Template Reference

Iteratates a value of the type T (the type T must have a normal behavior for the "+=" , "<" and "/" operators) More...

#include <ParameterIterator.h>

Inheritance diagram for face_contour_detector::ParameterIterator< T >:
Inheritance graph
[legend]

List of all members.

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
Tm_target

Detailed Description

template<class T>
class face_contour_detector::ParameterIterator< T >

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.


Constructor & Destructor Documentation

template<class T >
face_contour_detector::ParameterIterator< T >::ParameterIterator ( T  start,
T  end,
T  stepSize,
T target 
)

Constructs a ParameterIterator

Parameters:
startif Reset() is beeing called, the parameter is beeing reset to this value
endif the parameter value >= than this, HasNext() returns false
stepSizewith every Next() call this is beeing added to the paramter value
targeta pointer to the value that is beeing iterated

Definition at line 84 of file ParameterIterator.h.

Copy constructor.

Definition at line 88 of file ParameterIterator.h.


Member Function Documentation

template<class T >
bool face_contour_detector::ParameterIterator< T >::HasNext ( ) [virtual]

Returns true if Next() can be called again

Returns:
true if there is a next value

Implements face_contour_detector::ParameterIteratorI.

Definition at line 97 of file ParameterIterator.h.

template<class T >
void face_contour_detector::ParameterIterator< T >::Next ( ) [virtual]

Adds the step size to the paramters

Precondition:
HasNext() == true

Implements face_contour_detector::ParameterIteratorI.

Definition at line 92 of file ParameterIterator.h.

template<class T >
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.

template<class T >
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.


Member Data Documentation

template<class T>
T face_contour_detector::ParameterIterator< T >::m_end [protected]

Definition at line 45 of file ParameterIterator.h.

template<class T>
T face_contour_detector::ParameterIterator< T >::m_start [protected]

Definition at line 44 of file ParameterIterator.h.

template<class T>
T face_contour_detector::ParameterIterator< T >::m_stepSize [protected]

Definition at line 46 of file ParameterIterator.h.

template<class T>
T* face_contour_detector::ParameterIterator< T >::m_target [protected]

Definition at line 47 of file ParameterIterator.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


face_contour_detector
Author(s): Fabian Wenzelmann and Julian Schmid
autogenerated on Wed Dec 26 2012 16:18:17