class set

A set can contain a single instance of an object.

Inheritance:


Public Methods

[more] set()
[more] set(unsigned int capacity, unsigned int grow = DEFAULT_CONTAINER_GROWTH)
[more] set(const set &src)
[more]void add(object* obj)
If the item is already a member of the set, the item's current index is returned
[more]set& operator+=(const set &b)
[more]set& operator-=(const set &b)
[more]set& operator*=(const set &b)
[more]set& assignUnion(const set &b)
[more]set* operator+(const set &b) const
The allocated set is the responsibility of the caller
[more]set* operator-(const set &b) const
The allocated set is the responsibility of the caller
[more]set* operator*(const set &b) const
The allocated set is the responsibility of the caller
[more]set* Union(const set &b) const
The allocated set is the responsibility of the caller
[more]bool operator==(const set &b) const
[more]bool operator!=(const set &b) const
[more]unsigned int hashcode() const
[more] ~set()
Deletes the structure.


Inherited from collection:

Public Methods

ovirtual void swap(unsigned i, unsigned j)
ovirtual void empty()
ovirtual object* remove(unsigned index)
ovirtual void removeAll()
ounsigned instanceCount(const object &obj) const
ounsigned indexOf(const object &obj) const


Inherited from indexed:

Public Methods

oinline unsigned int getSize() const
oinline unsigned int getCapacity() const
ovoid trim()
ovoid enlarge(unsigned adjustment)
oinline object* operator[](unsigned index) const
oinline object* getObj(unsigned index) const
ovirtual void append(const indexed& src)


Inherited from object:

Public Methods

ovirtual object* clone() const


Documentation

A set can contain a single instance of an object. The set supports unions and intersections, and equivalence testing.

operators are
+ symetric difference
* intersection
- difference

o set()

o set(unsigned int capacity, unsigned int grow = DEFAULT_CONTAINER_GROWTH)

o set(const set &src)

ovoid add(object* obj)
If the item is already a member of the set, the item's current index is returned

oset& operator+=(const set &b)

oset& operator-=(const set &b)

oset& operator*=(const set &b)

oset& assignUnion(const set &b)

oset* operator+(const set &b) const
The allocated set is the responsibility of the caller

oset* operator-(const set &b) const
The allocated set is the responsibility of the caller

oset* operator*(const set &b) const
The allocated set is the responsibility of the caller

oset* Union(const set &b) const
The allocated set is the responsibility of the caller

obool operator==(const set &b) const

obool operator!=(const set &b) const

ounsigned int hashcode() const

o ~set()
Deletes the structure. Has no effect on elements.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.