30int IdxSet::dim()
const
41int IdxSet::pos(
int i)
const
50void IdxSet::add(
int n,
const int i[])
54 for(
int j = 0;
j <
n;
j++)
60void IdxSet::remove(
int n,
int m)
126bool IdxSet::isConsistent()
const
128#ifdef ENABLE_CONSISTENCY_CHECKS
139 for(
j = 0;
j <
i;
j++)
Safe arrays of data objects.
int size() const
return nr. of elements.
bool freeArray
true iff idx should be freed inside of this object
bool isConsistent() const
consistency check.
int max() const
returns the maximal number of indices which can be stored in IdxSet.
int num
number of used indices
int index(int n) const
access n 'th index.
int * idx
array of indices
void add(int n)
appends n uninitialized indices.
int size() const
returns the number of used indices.
int len
length of array idx
Everything should be within this namespace.
void spx_free(T &p)
Release memory.
void spx_alloc(T &p, int n=1)
Allocate memory.
#define MSGinconsistent(name)