class Solid.Predicate |
|
|
This class implements predicates for devices. A predicate is a logical condition that a given device can match or not. It's a constraint about the value a property must have in a given device interface, or any combination (conjunction, disjunction) of such constraints. FIXME: Add an example. |
|
|
Constructs an invalid predicate. |
|
Copy constructor.
other - the predicate to copy |
|
|
Constructs a predicate matching the value of a property in a given device interface.
ifaceName - the name of the device interface the device must have property - the property name of the device interface value - the value the property must have to make the device match compOperator - the operator to apply between the property and the value when matching |
|
Constructs a predicate matching devices being of a particular device interface
ifaceType - the device interface the device must have |
|
Constructs a predicate matching devices being of a particular device interface
ifaceName - the name of the device interface the device must have |
|
Converts a string to a predicate.
predicate - the string to convert Returns a new valid predicate if the given string is syntactically correct, Predicate() otherwise |
|
Indicates if the predicate is valid. Predicate() is the only invalid predicate. Returns true if the predicate is valid, false otherwise |
|
Checks if a device matches the predicate.
device - the device to match against the predicate Returns true if the given device matches the predicate, false otherwise |
|
Converts the predicate to its string form. Returns a string representation of the predicate |
|
Retrieves the device interface types used in this predicate. Returns all the device interface types used in this predicate |
|
Equals | - | ||
Mask | - |