#include <set.h>

Public Member Functions | |
| Set () | |
| Set (Data data) | |
| operator Data () | |
| Set & | operator= (Array< 1, Data > &arr) |
| void | add (const Data &element) |
| int | size () |
| Data & | operator[] (int i) |
A set interpretation of an array. The add function will extend the array by doubling its size.
| Set::Set | ( | ) | [inline] |
Initializes a set with no elements
| Set::Set | ( | Data | data | ) | [inline] |
Initialized the set with the given data, which is casted to an array.
| void Set::add | ( | const Data & | element | ) |
Will add a new data element to the set
| Set::operator Data | ( | ) | [inline] |
The conversion to a data array is done by taking the appropriate view on the
Sets the content of the set to the given array
| Data& Set::operator[] | ( | int | i | ) | [inline] |
Returns the data element at the given position
| int Set::size | ( | ) | [inline] |
Returns the size of the set
1.6.2