#include <GElementID.h>
Collaboration diagram for GCS::GElementID:

Public Member Functions | |
| GElementID () | |
| GElementID (unsigned long ID) | |
| GElementID (const GElementID &original) | |
| unsigned long | getID () const |
| QString | toString () const |
| bool | operator== (const GElementID &id) const |
| bool | operator!= (const GElementID &id) const |
| bool | operator> (const GElementID &id) const |
| bool | operator< (const GElementID &id) const |
| bool | operator>= (const GElementID &id) const |
| bool | operator<= (const GElementID &id) const |
Static Public Member Functions | |
| static GElementID | getFreeID () |
| static GIDContainer | getFreeIDRange (unsigned long amount) |
| static void | addFreeIDRange (unsigned long lower_bound, unsigned long upper_bound) |
| static unsigned long | countFreeIDs () |
Private Attributes | |
| unsigned long | ID |
Static Private Attributes | |
| static GIDContainer | FreeIDs |
| GCS::GElementID::GElementID | ( | ) |
DO NOT USE THIS CONSTRUCTOR!!!
For some reason QValueListNode requires a default constructor. to avoid instantiation without a value everywhere else this constructor is private.
does not depend on such a constructor for QValueList anymore.
| GCS::GElementID::GElementID | ( | unsigned long | ID | ) |
Public constructor initializes to given ID.
| GCS::GElementID::GElementID | ( | const GElementID & | original | ) |
Copy constructor.
| void GCS::GElementID::addFreeIDRange | ( | unsigned long | lower_bound, | |
| unsigned long | upper_bound | |||
| ) | [static] |
Adds given range of element IDs to storage.
| unsigned long GCS::GElementID::countFreeIDs | ( | ) | [static] |
| GElementID GCS::GElementID::getFreeID | ( | ) | [static] |
The returned ID is removed from storage.
| GIDContainer GCS::GElementID::getFreeIDRange | ( | unsigned long | amount | ) | [static] |
The returned IDs are removed from GElementID::FreeIDs.
| unsigned long GCS::GElementID::getID | ( | ) | const |
| bool GCS::GElementID::operator!= | ( | const GElementID & | id | ) | const |
This enables comparing of element IDs.
| bool GCS::GElementID::operator< | ( | const GElementID & | id | ) | const |
This enables comparing of element IDs.
| bool GCS::GElementID::operator<= | ( | const GElementID & | id | ) | const |
This enables comparing of element IDs.
| bool GCS::GElementID::operator== | ( | const GElementID & | id | ) | const |
This enables comparing of element IDs.
| bool GCS::GElementID::operator> | ( | const GElementID & | id | ) | const |
This enables comparing of element IDs.
| bool GCS::GElementID::operator>= | ( | const GElementID & | id | ) | const |
This enables comparing of element IDs.
| QString GCS::GElementID::toString | ( | ) | const |
GIDContainer GCS::GElementID::FreeIDs [static, private] |
The Container with all available free Element IDs.
unsigned long GCS::GElementID::ID [private] |
The ID is represented by an unsigned long integer.
1.4.7