|
typedef int | global_id_t |
|
typedef int | local_id_t |
|
typedef QMap< global_id_t, D > | GlobalDescriptorMap |
|
typedef QMapIterator
< global_id_t, D > | GlobalDescriptorMapIterator |
|
typedef QMap< global_id_t,
local_id_t > | LocalIdMap |
|
typedef QMapIterator
< global_id_t, local_id_t > | LocaIdMapIterator |
|
|
GlobalDescriptorMap | m_globalDescriptors |
|
QMap< const void *, LocalIdMap > | m_localIds |
|
global_id_t | m_peak |
|
Adds a new description object for a specific object. A description object must have a global unique id, which is ensured by using this function, which will either reuse an existing equal ObjectDescription or use the next free unique ID. Using the provided index the unique ID is then mapped to the one of the specific object.
- Parameters
-
obj | The object |
index | local ID (i.e. within the object ) |
name | Name of the description |
type | Type of the description (e.g. file) |
Overload function. The index of the provided descriptor must be unique within the context of the container.
- Parameters
-
obj | The object |
descriptor | the DescriptionObject with unique index |
Clear the internal mapping of global to local id for a given object.
- Parameters
-
- Parameters
-
- Returns
- ObjectDescriptions associated with a given ID
- Returns
- a list of all global unique IDs of all stored ObjectDescriptions
List of ObjectDescriptions for a given object, the descriptions are limied by the scope of the type (obviously), so you only get ObjectDescription from the container.
- Parameters
-
- Returns
- the list of ObjectDescriptions for a given object, the descriptions are limied by the scope of the type (obviously), so you only get subtitle descriptions from a subtitle container.
- Parameters
-
- Returns
- the local ID associated with the description object
Registers a new object within the container. This essentially creates a new empty ID map.
- Parameters
-
Unregisters a object from the container. This essentially clears the ID map and removes all traces of the object.
- Parameters
-
The documentation for this class was generated from the following file: