PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Public Member Functions | List of all members
PropWare::NonNegativeIntegerComparator Class Reference

Also known as whole numbers, this class will only allow numbers that are zero or greater with no fractional part. More...

#include <PropWare/utility/comparator.h>

+ Inheritance diagram for PropWare::NonNegativeIntegerComparator:
+ Collaboration diagram for PropWare::NonNegativeIntegerComparator:

Public Member Functions

 NonNegativeIntegerComparator ()
 Required default constructor.
 
bool valid (const int *lhs) const
 Determines if the given argument is valid.
 

Detailed Description

Also known as whole numbers, this class will only allow numbers that are zero or greater with no fractional part.

Though you are welcome to construct your own instance, a global instance is available for use in the PropWare namespace: PropWare::NON_NEGATIVE_COMP.

Definition at line 53 of file comparator.h.


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