|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
BIG OBJECT.
This is a simple set of symbols, this will NOT do any pattern matching,
or unification operations.
Parent Classes:
Methods:
- VLSymbSetC()
-
Default Constructor.
- VLSymbSetC(const VLSymbLstC & Lst)
-
Construct from a list.
- VLSymbSetC Copy() const
-
Make a copy.
- BooleanT operator==(const VLSymbSetC & oth) const
-
Comparision operator.
- BooleanT operator!=(const VLSymbSetC & oth) const
-
Comparision operator.
- BooleanT Add(const VLSymbC & Obj)
-
Add to set.
Return: true = not member already.
- BooleanT Remove(const VLSymbC & Obj)
-
Remove Obj from the set.
- BooleanT IsMember(const VLSymbC & Obj) const
-
Is Obj a member of the set.
- StringC Name() const
-
Get set in text form.
- void LockObj(void)
-
Lock objects.
- void Dump(void) const
-
Dump contents to stdout.
- VLSymbSetC(const HSetC<VLSymbC> & nSet)
-
Constructor.
- HSetC<VLSymbC> Copy() const
-
Make a Shallow copy of the set.
- BooleanT IsMember(const VLSymbC & It) const
-
Is It a member of the set ?
- BooleanT Insert(const VLSymbC & It)
-
Insert an element into the set.
Ret = False, member already present.
True, new member added.
- BooleanT Remove(const VLSymbC & It)
-
Remove an item from the set.
Ret = True, item removed.
False, item not in set.
- void Empty()
-
Remove everthing from the set.
- UIntT Size() const
-
Number of elements in set.
- HSetC<VLSymbC> & operator+=(const VLSymbC & dat)
-
Add a member to the set.
- HSetC<VLSymbC> & operator-=(const VLSymbC & dat)
-
Remove a member from the set.
- HSetC<VLSymbC> & operator+=(const HSetC<VLSymbC> & dat)
-
Add a set to this set.
- HSetC<VLSymbC> & operator-=(const HSetC<VLSymbC> & dat)
-
Remove a set from this one.
- const VLSymbC & Random() const
-
Select a random member of the set.
NOTE: It is the user's responsibility to ensure the
set it not empty when this function is called.
- const VLSymbC & First() const
-
Return the first member of the set.
The exact member this returns is undefined,
but it is not random.
NOTE: It is the user's responsibility to ensure the
set it not empty when this function is called.
- BooleanT IsEmpty() const
-
Test if the set is empty.
- HSetC<VLSymbC> Union(const HSetC<VLSymbC> & Oth) const
-
Get Union of another set with this one.
- BooleanT UnionIP(const HSetC<VLSymbC> & Oth)
-
Get Union of another set with this one.
Returns true when resulting set in non-empty.
- HSetC<VLSymbC> Intersect(const HSetC<VLSymbC> & Oth) const
-
Get intersection of another set with this one.
- BooleanT IntersectIP(const HSetC<VLSymbC> & Oth)
-
Intersect this set with another (In Place)
Returns true when resulting set in non-empty.
- HSetC<VLSymbC> Disjunction(const HSetC<VLSymbC> & Oth) const
-
Return the items in either set but not in both.
- BooleanT DisjunctionIP(const HSetC<VLSymbC> & Oth)
-
Return the items in either set but not in both. (In Place).
Returns true when resulting set in non-empty.
- BooleanT IsSubset(const HSetC<VLSymbC> & oth) const
-
is oth a subset of this ?
- BooleanT operator==(const HSetC<VLSymbC> & oth) const
-
Is equal, ie contains all the same members ?
- BooleanT operator!=(const HSetC<VLSymbC> & oth) const
-
Is not equal, ie contains different members ?
More comming soon.... (Or on request. )
|
Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|