Set Class Reference

#include <set.h>

Collaboration diagram for Set:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Set ()
 Set (Data data)
 operator Data ()
Setoperator= (Array< 1, Data > &arr)
void add (const Data &element)
int size ()
Dataoperator[] (int i)

Detailed Description

A set interpretation of an array. The add function will extend the array by doubling its size.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Set& Set::operator= ( Array< 1, Data > &  arr  )  [inline]

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2