TCommandSet Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


Stores a set of commands More...

#include <views.h>

Public Members


Detailed Description

This class stores a set of commands.

Note: this object can only handle commands whose code is within 0 and 255. Only commands in this range may be disabled.


TCommandSet() [public]

Constructor.

The initial command set is empty.

TCommandSet( const TCommandSet& tc ) [public]

Constructor.

The initial command set is copied from set `tc'.

Boolean has( int cmd ) [public]

Returns True if command `cmd' is in the set.

void disableCmd( int cmd ) [public]

Removes command `cmd' from the set.

void enableCmd( int cmd ) [public]

Adds command `cmd' to the set.

void operator +=( int cmd ) [public]

Adds command `cmd' to the set.

void operator -=( int cmd ) [public]

Removes command `cmd' from the set.

void disableCmd( const TCommandSet& tc ) [public]

Removes all commands in set `tc' from this command set.

void enableCmd( const TCommandSet& tc ) [public]

Adds all commands in set `tc' to this command set.

void operator +=( const TCommandSet& tc ) [public]

Adds all commands in set `tc' to this command set.

void operator -=( const TCommandSet& tc ) [public]

Removes all commands in set `tc' from this command set.

Boolean TCommandSet::isEmpty() [public]

Returns True if the command set is empty.

TCommandSet& operator &=( const TCommandSet& tc) [public]

Calculates the intersection of this set and the `tc' set.

The resulting set is the larger set which contains commands present in both sets. Returns a reference to this object.

TCommandSet& operator |=( const TCommandSet& tc) [public]

Calculates the union of this set and the `tc' set.

The resulting set is the smaller set which contains commands present in either sets. Returns a reference to this object.

friend TCommandSet operator &( const TCommandSet&, const TCommandSet& ) [public]

Calculates the intersection of this set and the `tc' set.

The resulting set is the larger set which contains commands present in both sets. Returns the resulting set.

friend TCommandSet operator |( const TCommandSet&, const TCommandSet& ) [public]

Calculates the union of this set and the `tc' set.

The resulting set is the smaller set which contains commands present in either sets. Returns the resulting set.

friend int operator ==( const TCommandSet& tc1, const TCommandSet& tc2 ) [public]

Returns 1 if the sets `tc1' and `tc2' are equal.

Otherwise returns 0.

friend int operator !=( const TCommandSet& tc1, const TCommandSet& tc2 ) [public]

Returns 1 if the sets `tc1' and `tc2' are not equal.

Otherwise returns 0.


Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc