15 #include "../config/config.hpp"
67 int Size() {
return TheList.Size(); }
int Lookup(IntegerSet &s)
int Size() const
Return the logical size of the array.
void Recreate(const int n, const int *p)
Create an integer set from C-array 'p' of 'n' integers. Overwrites any existing set data...
void AsTable(Table &t)
Write the list of sets into table 't'.
IntegerSet(const int n, const int *p)
Create an integer set from C-array 'p' of 'n' integers.
int PickRandomElement()
Return the value of a random element of the set.
int PickElementInSet(int i)
Return the value of the first element of the ith set.
int PickRandomElementInSet(int i)
Return a random value from the ith set in the list.
int operator==(IntegerSet &s)
Return 1 if the sets are equal and 0 otherwise.
int Insert(IntegerSet &s)
Check to see if set 's' is in the list. If not append it to the end of the list. Returns the index of...
int Size()
Return the number of integer sets in the list.
int Size()
Return the size of the set.
double p(const Vector &x, double t)
IntegerSet()
Create an empty set.
int PickElement()
Return the value of the lowest element of the set.