129 assert(n >= 0 && n <
size() &&
idx !=
nullptr);
151 int pos(
int i)
const;
160 assert(n >= 0 && n +
size() <=
max());
171 void add(
int n,
const int i[]);
180 void remove(
int n,
int m);
188 assert(n >= 0 && n <
size());
void remove(int n)
removes n 'th index.
bool freeArray
true iff idx should be freed inside of this object
bool isConsistent() const
consistency check.
int pos(int i) const
returns the position of index i.
void add(const IdxSet &set)
appends all indices of set.
void addIdx(int i)
appends index i.
void remove(int n, int m)
removes indices at position numbers n through m.
int max() const
returns the maximal number of indices which can be stored in IdxSet.
int num
number of used indices
virtual ~IdxSet()
destructor.
IdxSet()
default constructor.
IdxSet(int n, int imem[], int l=0)
constructor.
int index(int n) const
access n 'th index.
int dim() const
returns the maximal index.
int * idx
array of indices
void clear()
removes all indices.
void add(int n)
appends n uninitialized indices.
int size() const
returns the number of used indices.
IdxSet & operator=(const IdxSet &set)
assignment operator.
int len
length of array idx
Everything should be within this namespace.
void spx_free(T &p)
Release memory.
Memory allocation routines.
Debugging, floating point type and parameter definitions.