![]() |
WhirlyGlobe
1.2
A 3D interactive globe toolkit for iOS
|
#include <Identifiable.h>
Public Member Functions | |
Identifiable () | |
Construct with a new ID. | |
SimpleIdentity | getId () const |
Return the identity. | |
void | setId (SimpleIdentity inId) |
In most cases you should be using the one you inherit. | |
bool | operator< (const Identifiable &that) const |
Used for sorting. | |
Static Public Member Functions | |
static SimpleIdentity | genId () |
Protected Attributes | |
SimpleIdentity | myId |
Simple unique ID base class. If you subclass this you'll get your own unique ID for the given object instance. See the SimpleIdentity for an explanation of why we use these.
static SimpleIdentity WhirlyGlobe::Identifiable::genId | ( | ) | [static] |
Generate a new ID without an object. We use this in cases where we're going to be creating an Identifiable subclass, but haven't yet.
void WhirlyGlobe::Identifiable::setId | ( | SimpleIdentity | inId | ) | [inline] |
In most cases you should be using the one you inherit.
Think carefully before setting this