Class ObjectMap

Nested Relationships

Nested Types

Class Documentation

class ObjectMap

Provides a mechanism for mapping a given identifier to a live object. Expected use case is during playback when mapping captured object IDs to playback objects.

Public Types

typedef uint64_t Key
typedef void *ObjectRef
typedef uint64_t Timestamp

Public Functions

ObjectMap()
~ObjectMap()
ObjectRef AcquireObject(Key key) const

Retrieves a given object using a given key.

void SetObjectMapping(Key key, ObjectRef value)

Sets a given object mapping.

size_t Size() const

Returns the size of the map.

void Clear()

Clears the content of the object map.

void Enumerate(std::function<void(Key, ObjectRef, Timestamp)> callback) const

Enumerates all entries.

struct ObjectEntry

Public Members

ObjectRef ref
Timestamp timestamp