#include <poly_Handles.h>
Public Member Functions | |
poly_BaseHandle (const int _idx=Mobius_InvalidHandleIndex) | |
int | GetIdx () const |
bool | IsValid () const |
The handle is valid iff the index is not negative. | |
void | Invalidate () |
Invalidates this handle. | |
bool | operator== (const poly_BaseHandle &_rhs) const |
bool | operator!= (const poly_BaseHandle &_rhs) const |
bool | operator< (const poly_BaseHandle &_rhs) const |
Public Attributes | |
int | iIdx |
0-based index of the handle. | |
Protected Member Functions | |
void | increment (const int amount) |
void | decrement (const int amount) |
Base class for all handles used to address mesh elements. This class is intended to substitute raw indices which are less descriptive and more error-prone to operate with.
|
inlineexplicit |
Ctor accepting the optional index.
[in] | _idx | 0-based index to set for the handle. Use "-1" to invalidate the handle. |
|
inlineprotected |
Decrements the underlying index by the passed value.
[in] | amount | decrement value to use. |
|
inline |
|
inlineprotected |
Increments the underlying index by the passed value.
[in] | amount | increment value to use. |
|
inline |
Checks for inequality.
[in] | _rhs | another handle to compare this handle with. |
|
inline |
Checks if this handle is less than the passed one.
[in] | _rhs | another handle to compare this handle with. |
|
inline |
Compares this handle with the passed one.
[in] | _rhs | another handle to compare this handle with. |