#include <views.h>
Public Methods | |
| TCommandSet () | |
| TCommandSet (const TCommandSet &tc) | |
| Boolean | has (int cmd) |
| void | disableCmd (int cmd) |
| void | enableCmd (int cmd) |
| void | operator+= (int cmd) |
| void | operator-= (int cmd) |
| void | disableCmd (const TCommandSet &tc) |
| void | enableCmd (const TCommandSet &tc) |
| void | operator+= (const TCommandSet &tc) |
| void | operator-= (const TCommandSet &tc) |
| Boolean | isEmpty () |
| TCommandSet& | operator &= (const TCommandSet &tc) |
| TCommandSet& | operator|= (const TCommandSet &tc) |
Friends | |
| TCommandSet | operator & (const TCommandSet &, const TCommandSet &) |
| TCommandSet | operator| (const TCommandSet &, const TCommandSet &) |
| int | operator== (const TCommandSet &tc1, const TCommandSet &tc2) |
| int | operator!= (const TCommandSet &tc1, const TCommandSet &tc2) |
Member functions are provided for enabling and disabling commands and for testing for the presence of a given command. Several operators are overloaded to allow natural testing for equality and so on.
Note: this object can only handle commands whose code is within 0 and 255. Only commands in this range may be disabled.
Definition at line 584 of file views.h.
|
|
Constructor. Creates and clears a command set. |
|
|
Constructor. This form creates a command set and initializes it from the `tc' argument. |
|
|
Removes all commands in set `tc' from this command set. |
|
|
Removes command `cmd' from the set. Referenced by operator-=().
|
|
|
Adds all commands in set `tc' to this command set. |
|
|
Adds command `cmd' to the set. Referenced by operator+=().
|
|
|
Returns True if command `cmd' is in the set. |
|
|
Returns True if the command set is empty. |
|
|
Calculates the intersection of this set and the `tc' set. The resulting set is the largest set which contains commands present in both sets. Returns a reference to this object. |
|
|
Adds all commands in set `tc' to this command set. |
|
|
Adds command `cmd' to the set. |
|
|
Removes all commands in set `tc' from this command set. |
|
|
Removes command `cmd' from the set. |
|
|
Calculates the union of this set and the `tc' set. The resulting set is the smallest set which contains commands present in either sets. Returns a reference to this object. |
|
|
Calculates the intersection of this set and the `tc' set. The resulting set is the largest set which contains commands present in both sets. Returns the resulting set. |
|
|
Returns 1 if the sets `tc1' and `tc2' are not equal. Otherwise returns 0. |
|
|
Returns 1 if the sets `tc1' and `tc2' are equal. Otherwise returns 0. |
|
|
Calculates the union of this set and the `tc' set. The resulting set is the smallest set which contains commands present in either sets. Returns the resulting set. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001