![]() |
OpendTect
6.3
|
A unique identifier for an object consisting of a group and an ID within the group. More...
Classes | |
| class | GroupID |
| class | ObjID |
Public Types | |
| typedef GroupNrT | GroupNrType |
| typedef ObjNrT | ObjNrType |
Public Member Functions | |
| IDWithGroup () | |
| IDWithGroup (GroupID gid, ObjID oid) | |
| virtual | ~IDWithGroup () |
| GroupID | groupID () const |
| ObjID | objID () const |
| GroupNrT | groupNr () const |
| ObjNrT | objNr () const |
| void | setGroupID (GroupID id) |
| void | setObjID (ObjID id) |
| void | setGroupNr (GroupNrT nr) |
| void | setObjNr (ObjNrT nr) |
| bool | operator== (const IDWithGroup &oth) const |
| bool | operator!= (const IDWithGroup &oth) const |
| virtual bool | isInvalid () const |
| bool | isValid () const |
| bool | hasValidGroupID () const |
| bool | hasValidObjID () const |
| void | setInvalid () |
| void | setInvalidGroup () |
| void | setInvalidObj () |
| virtual BufferString | toString () const |
| virtual void | fromString (const char *) |
| virtual int64_t | toInt64 () const |
| virtual void | fromInt64 (int64_t) |
Static Public Member Functions | |
| static IDWithGroup | get (GroupNrT grpnr, ObjNrT objnr) |
| static IDWithGroup | getInvalid () |
| static bool | isValidString (const char *) |
| static IDWithGroup | getFromString (const char *) |
| static IDWithGroup | getFromInt64 (int64_t) |
Protected Member Functions | |
| IDWithGroup (GroupNrT gnr, ObjNrT onr) | |
Protected Attributes | |
| GroupNrT | groupnr_ |
| ObjNrT | objnr_ |
A unique identifier for an object consisting of a group and an ID within the group.
In many places there is a need for an ID consisting of not only an object ID but also a group ID. If the groups were closed, an enum would be sufficient. But if the number of groups is not fixed (e.g. because they are in a factory) then both group ID and the object ID need to be integer numbers.
Usually there are a lot less groups than possible objects, so the group ID can be represented by a short int.
The most standard GroupedID class (used for o.a. DataPack IDs) is a typedef for IDWithGroup<short,int>.
| typedef GroupNrT IDWithGroup< GroupNrT, ObjNrT >::GroupNrType |
| typedef ObjNrT IDWithGroup< GroupNrT, ObjNrT >::ObjNrType |
|
inline |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in DBKey.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in DBKey.
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in DBKey.
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017