33 assert(
idx !=
nullptr);
67 len = (n < 1) ? 1 : n;
virtual ~DIdxSet()
destructor.
DIdxSet(int n=8)
default constructor. n gives the initial size of the index space.
void setMax(int newmax=1)
sets the maximum number of indices.
int max() const
returns the maximal number of indices which can be stored in IdxSet.
int * idx
array of 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_realloc(T &p, int n)
Change amount of allocated memory.
void spx_free(T &p)
Release memory.
void spx_alloc(T &p, int n=1)
Allocate memory.
Memory allocation routines.