This class will generate keep track of a pool of unique 32-bit ID's that can be used for distinct object instances. More...
#include <interval.h>
Public Types | |
typedef Interval< NumType > | SelfType |
Convenience type for the implemented type. | |
Public Member Functions | |
Interval () | |
Blank constructor. | |
Interval (const SelfType &Other) | |
Copy constructor. More... | |
Interval (const NumType &Lower, const NumType &Upper) | |
Descriptive constructor. More... | |
~Interval () | |
Class destructor. | |
NumType | GetIntervalSize () const |
Gets the numeric distance between the lower and upper bounds of this interval. More... | |
NumType & | GetLowerBound () |
Gets the lower boundry of this Interval. More... | |
const NumType & | GetLowerBound () const |
Gets the lower boundry of this Interval. More... | |
NumType & | GetUpperBound () |
Gets the upper boundry of this Interval. More... | |
const NumType & | GetUpperBound () const |
Gets the upper boundry of this Interval. More... | |
Boole | IsWithinBounds (const NumType &Num) const |
Gets whether or not a number is inside the bounds of this Interval. More... | |
Boole | operator!= (const SelfType &Other) const |
Inequality comparison operator. More... | |
Boole | operator< (const NumType &Num) const |
Less-than comparison with NumType. More... | |
Boole | operator< (const SelfType &Other) const |
Less-than operator. More... | |
Boole | operator<= (const NumType &Num) const |
Less-than or equal comparison with NumType. More... | |
Interval & | operator= (const SelfType &Other) |
Assignment operator. More... | |
Boole | operator== (const SelfType &Other) const |
Equality comparison operator. More... | |
Boole | operator> (const NumType &Num) const |
Greater-than comparison with NumType. More... | |
Boole | operator> (const SelfType &Other) const |
Greater-than operator. More... | |
Boole | operator>= (const NumType &Num) const |
Greater-than or equal comparison with NumType. More... | |
void | ProtoDeSerialize (const XML::Node &SelfRoot) |
Take the data stored in an XML Node and overwrite this object with it. More... | |
void | ProtoSerialize (XML::Node &ParentNode) const |
Convert this class to an XML::Node ready for serialization. More... | |
void | SetBounds (const NumType &Lower, const NumType &Upper) |
Sets both values of this Interval. More... | |
Static Public Member Functions | |
static String | GetSerializableName () |
Get the name of the the XML tag the Interval class will leave behind as its instances are serialized. More... | |
Public Attributes | |
NumType | LowerBound |
The lower numeric boundry of the interval. | |
NumType | UpperBound |
The upper numeric boundry of the interval. | |
This class will generate keep track of a pool of unique 32-bit ID's that can be used for distinct object instances.
Definition at line 55 of file interval.h.
|
inline |
Copy constructor.
Other | The other Interval to be copied. |
Definition at line 79 of file interval.h.
|
inline |
Descriptive constructor.
Lower | The lower numeric boundry of the interval. |
Upper | The upper numeric boundry of the interval. |
Definition at line 86 of file interval.h.
|
inline |
Gets the numeric distance between the lower and upper bounds of this interval.
Definition at line 131 of file interval.h.
|
inline |
Gets the lower boundry of this Interval.
Definition at line 114 of file interval.h.
|
inline |
Gets the lower boundry of this Interval.
Definition at line 118 of file interval.h.
|
inlinestatic |
Get the name of the the XML tag the Interval class will leave behind as its instances are serialized.
Definition at line 242 of file interval.h.
|
inline |
Gets the upper boundry of this Interval.
Definition at line 122 of file interval.h.
|
inline |
Gets the upper boundry of this Interval.
Definition at line 126 of file interval.h.
|
inline |
Gets whether or not a number is inside the bounds of this Interval.
Num | The number to check against this Interval. |
Definition at line 109 of file interval.h.
|
inline |
Inequality comparison operator.
Other | The other Interval to be compared with. |
Definition at line 155 of file interval.h.
|
inline |
Less-than comparison with NumType.
Num | The number to be compared with. |
Definition at line 161 of file interval.h.
|
inline |
Less-than operator.
Other | The other Interval to compare to. |
Definition at line 186 of file interval.h.
|
inline |
Less-than or equal comparison with NumType.
Num | The number to be compared with. |
Definition at line 172 of file interval.h.
|
inline |
Assignment operator.
Other | The other Interval to being assigned to this. |
Definition at line 140 of file interval.h.
|
inline |
Equality comparison operator.
Other | The other Interval to be compared with. |
Definition at line 150 of file interval.h.
|
inline |
Greater-than comparison with NumType.
Num | The number to be compared with. |
Definition at line 166 of file interval.h.
|
inline |
Greater-than operator.
Other | The other Interval to compare to. |
Definition at line 191 of file interval.h.
|
inline |
Greater-than or equal comparison with NumType.
Num | The number to be compared with. |
Definition at line 177 of file interval.h.
|
inline |
Take the data stored in an XML Node and overwrite this object with it.
SelfRoot | An XML::Node containing the data to populate this class with. |
Definition at line 214 of file interval.h.
|
inline |
Convert this class to an XML::Node ready for serialization.
Definition at line 199 of file interval.h.
|
inline |
Sets both values of this Interval.
Lower | The lower numeric boundry of the interval. |
Upper | The upper numeric boundry of the interval. |
Definition at line 100 of file interval.h.