|
xentara-workbench-plugin v1.0.1
The Xentara Workbench Plugin Framework
|
An ID to identify a property in a property controller. More...
#include <xentara/workbench/bindings/PropertyId.hpp>
Public Member Functions | |
| constexpr | PropertyId () noexcept=default |
| Default constructor that constructs a null ID that does not represent any property. | |
| auto | operator== (const PropertyId &) const -> bool=default |
| Enable equality comparison. | |
| auto | operator<=> (const PropertyId &) const -> auto=default |
| Enable three-way comparison. | |
| constexpr | operator bool () const noexcept |
| Checks whether the ID represents a property. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<utils::tparam::String kName> | |
| consteval auto | operator""_propertyId () -> bindings::PropertyId |
| Literal operator for creating a property ID from a property’s name. | |
An ID to identify a property in a property controller.
To create a property ID for an address-based property, use the function PropertyController::propertyId(). To create the property ID for a variable named _portNumber, for example, you can use the following code:
To create a property ID for a name-based property, use the literal operator operator""_propertyId(). To create the property ID for a property named “portNumber”, for example, you can use the following code:
|
constexprdefaultnoexcept |
Default constructor that constructs a null ID that does not represent any property.
|
explicitconstexprnoexcept |
Checks whether the ID represents a property.
|
default |
Enable three-way comparison.
|
default |
Enable equality comparison.
|
related |
Literal operator for creating a property ID from a property’s name.
#include <xentara/workbench/bindings/PropertyController.hpp>