characterSet
Section: OATH Reference Manual (3O)
Updated: 26 August 1991
Index
Return to Main Contents
NAME
characterSet (characterSetA, characterSetG) - a set of characters
SYNOPSIS
#include <oath/characterSet.h>
DESCRIPTION
The characterSet is a set of characters. A single character can appear in a
characterSet only once. If anything other than a character is inserted into
a characterSet, it will fall through.
DERIVATION
characterSet : finiteSet : set : bag : obj
characterSet is an abstract implementation type.
STATIC OPERATIONS
- characterSetA characterSetA:: isa (objA)
-
characterSetA::isa(O) returns O if it is truly a characterSet; otherwise it
returns Nil.
- characterSetA characterSetA:: make (int = FALSE)
-
characterSetA::make() makes and returns an empty characterSet.
If the last argument is TRUE, then the new characterSet will be const.
- characterSetA characterSetA:: make (stringA, int = FALSE)
-
characterSetA::make(S) makes and returns a characterSet containing each
character in string S. If a hyphen ('-') appears between two characters in
S, then all characters between and including those two are inserted. If the
first character in S is '^', then the result is inverted.
If the last argument is TRUE, then the new characterSet will be const.
- characterSetA characterSetA:: make (const char*, int = FALSE)
-
characterSetA::make(S) is the same as above, taking a null-terminated string.
MEMBER OPERATIONS
- characterSetA characterSetA:: insert (characterA)
-
S.insert(C) inserts character C into characterSet S. Nothing happens if C is
already in characterSet S.
- characterSetA characterSetA:: operator << (characterA)
-
S << C is the same as S.insert(C).
- characterSetA characterSetA:: insert (char)
-
S.insert(C) inserts char C into characterSet S. Nothing happens if C is
already in characterSet S.
- characterSetA characterSetA:: operator << (char)
-
S << C is the same as S.insert(C).
- int characterSetA:: contains (char)
-
S.contains(C) returns TRUE if char C is in characterSet S.
- characterSetA characterSetA:: remove (char)
-
S.remove(C) removes C from set S and returns S.
- characterSetA characterSetA:: operator -= (char)
-
S -= C is the same as S.remove(C).
INTERNAL OPERATIONS
- int characterSetG:: getbit (char) const
-
- void characterSetG:: clearbit (char)
-
- void characterSetG:: setbit (char)
-
- void characterSetG:: setbits (char S, char B)
-
- void characterSetG:: flipbits ()
-
SEE ALSO
OATH(3O), finiteSet(3O), character(3O)
AUTHOR
Brian M. Kennedy (Computer Science Center, Texas Instruments Incorporated)
BUGS
The characterSetG virtual functions append, isEqual, apply, and applyX are
not implemented yet.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- DERIVATION
-
- STATIC OPERATIONS
-
- MEMBER OPERATIONS
-
- INTERNAL OPERATIONS
-
- SEE ALSO
-
- AUTHOR
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 20:37:48 GMT, July 24, 2024