LuciadCPillar 2024.0.05
|
Priority class that can be used in all kinds of classes. More...
#include <luciad/containers/Priority.h>
Public Member Functions | |
constexpr | Priority (uint32_t value) |
Creates a new priority with the given value. More... | |
uint32_t | getValue () const |
Returns the priority value. More... | |
bool | operator!= (const Priority &rhs) const |
bool | operator< (const Priority &rhs) const |
bool | operator<= (const Priority &rhs) const |
bool | operator== (const Priority &rhs) const |
bool | operator> (const Priority &rhs) const |
bool | operator>= (const Priority &rhs) const |
Static Public Member Functions | |
static const Priority & | fallback () |
Preset priority value that represents a fallback priority. More... | |
static const Priority & | high () |
Preset priority value that represents a high priority. More... | |
static const Priority & | low () |
Preset priority value that represents a low priority. More... | |
static const Priority & | normal () |
Preset priority value that represents a default priority. More... | |
Priority class that can be used in all kinds of classes.
For example in composites where it can be used to determine the order in which the delegates are used.
The binary operators that determine the ordering sort priorities from high to low.
|
inlineexplicitconstexpr |
Creates a new priority with the given value.
value | a priority value. A lower value means a higher priority. The default value is the value of Priority::normal() . |
|
static |
Preset priority value that represents a fallback priority.
Its priority value is 50000. Priority order: High > Normal > Low > Fallback
uint32_t luciad::Priority::getValue | ( | ) | const |
Returns the priority value.
A lower value means a higher priority.
|
static |
Preset priority value that represents a high priority.
Its priority value is 5000. Priority order: High > Normal > Low > Fallback
|
static |
Preset priority value that represents a low priority.
Its priority value is 20000. Priority order: High > Normal > Low > Fallback
|
static |
Preset priority value that represents a default priority.
Its priority value is 10000. Priority order: High > Normal > Low > Fallback
bool luciad::Priority::operator!= | ( | const Priority & | rhs | ) | const |
bool luciad::Priority::operator< | ( | const Priority & | rhs | ) | const |
bool luciad::Priority::operator<= | ( | const Priority & | rhs | ) | const |
bool luciad::Priority::operator== | ( | const Priority & | rhs | ) | const |
bool luciad::Priority::operator> | ( | const Priority & | rhs | ) | const |
bool luciad::Priority::operator>= | ( | const Priority & | rhs | ) | const |