ValidatorRange< T > Class Template Reference

#include <ValidatorRange.h>

Inherits Validator< T >< T >.

Inheritance diagram for ValidatorRange< T >:

Inheritance graph
[legend]
Collaboration diagram for ValidatorRange< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ValidatorRange ()
 ValidatorRange (const T &min, const T &max)
virtual ~ValidatorRange ()
void setMin (const T &value)
void setMax (const T &value)
min () const
max () const
bool isMinSet () const
bool isMaxSet () const
virtual bool valid (const T &value) const

Protected Attributes

bool _minSet
_min
bool _maxSet
_max

Detailed Description

template<class T>
class ValidatorRange< T >

Definition at line 15 of file ValidatorRange.h.


Constructor & Destructor Documentation

template<class T>
ValidatorRange< T >::ValidatorRange (  )  [inline]

Definition at line 19 of file ValidatorRange.h.

template<class T>
ValidatorRange< T >::ValidatorRange ( const T &  min,
const T &  max 
) [inline]

Definition at line 20 of file ValidatorRange.h.

References ValidatorRange< T >::setMax(), and ValidatorRange< T >::setMin().

template<class T>
virtual ValidatorRange< T >::~ValidatorRange (  )  [inline, virtual]

Definition at line 21 of file ValidatorRange.h.


Member Function Documentation

template<class T>
void ValidatorRange< T >::setMin ( const T &  value  )  [inline]

Definition at line 23 of file ValidatorRange.h.

References ValidatorRange< T >::_min, and ValidatorRange< T >::_minSet.

Referenced by ValidatorRange< T >::ValidatorRange().

template<class T>
void ValidatorRange< T >::setMax ( const T &  value  )  [inline]

Definition at line 24 of file ValidatorRange.h.

References ValidatorRange< T >::_max, and ValidatorRange< T >::_maxSet.

Referenced by ValidatorRange< T >::ValidatorRange().

template<class T>
T ValidatorRange< T >::min (  )  const [inline]

Definition at line 25 of file ValidatorRange.h.

References ValidatorRange< T >::_min.

template<class T>
T ValidatorRange< T >::max (  )  const [inline]

Definition at line 26 of file ValidatorRange.h.

References ValidatorRange< T >::_max.

template<class T>
bool ValidatorRange< T >::isMinSet (  )  const [inline]

Definition at line 27 of file ValidatorRange.h.

References ValidatorRange< T >::_minSet.

template<class T>
bool ValidatorRange< T >::isMaxSet (  )  const [inline]

Definition at line 28 of file ValidatorRange.h.

References ValidatorRange< T >::_maxSet.

template<class T>
bool ValidatorRange< T >::valid ( const T &  value  )  const [virtual]

Implements Validator< T >.

Definition at line 41 of file ValidatorRange.h.

References ValidatorRange< T >::_max, ValidatorRange< T >::_maxSet, ValidatorRange< T >::_min, and ValidatorRange< T >::_minSet.


Member Data Documentation

template<class T>
bool ValidatorRange< T >::_minSet [protected]

Definition at line 32 of file ValidatorRange.h.

Referenced by ValidatorRange< T >::isMinSet(), ValidatorRange< T >::setMin(), and ValidatorRange< T >::valid().

template<class T>
T ValidatorRange< T >::_min [protected]

Definition at line 33 of file ValidatorRange.h.

Referenced by ValidatorRange< T >::min(), ValidatorRange< T >::setMin(), and ValidatorRange< T >::valid().

template<class T>
bool ValidatorRange< T >::_maxSet [protected]

Definition at line 34 of file ValidatorRange.h.

Referenced by ValidatorRange< T >::isMaxSet(), ValidatorRange< T >::setMax(), and ValidatorRange< T >::valid().

template<class T>
T ValidatorRange< T >::_max [protected]

Definition at line 35 of file ValidatorRange.h.

Referenced by ValidatorRange< T >::max(), ValidatorRange< T >::setMax(), and ValidatorRange< T >::valid().


The documentation for this class was generated from the following file:
Generated on Thu Sep 6 20:14:08 2007 for Pylon Application Platform by  doxygen 1.5.1