class Core::IDSet
Overview
Maintains a set of integer identifiers. More…
#include <corebitset.h> class IDSet: private Core::BitSet { public: // construction IDSet (int startOffset = 0, int delta = 128); // methods int newID (); void releaseID (int id); };
Inherited Members
public: // methods BitSet& operator = (const BitSet& bs); bool operator == (const BitSet& bs) const; bool operator != (const BitSet& bs) const; void resize (int bitCount); int getSize () const; void setBit (int which, bool state); bool getBit (int which) const; void toggleBit (int which); void setAllBits (bool state); int findFirst (bool state) const; int countBits (bool state) const;
Detailed Documentation
Maintains a set of integer identifiers.
Methods
int newID ()
Allocate new identifier.
void releaseID (int id)
Release given identifier.