class HandleTable

Defined at line 100 of file ../../src/devices/testing/fake-object/include/lib/fake-object/object.h

Public Methods

bool IsValidFakeHandle (zx_handle_t handle)

Defined at line 18 of file ../../src/devices/testing/fake-object/fake-handle.cc

zx::result<std::shared_ptr<Object>> Get (zx_handle_t handle)

Defined at line 37 of file ../../src/devices/testing/fake-object/fake-handle.cc

zx::result<> Remove (zx_handle_t handle)

Defined at line 80 of file ../../src/devices/testing/fake-object/fake-handle.cc

zx::result<zx_handle_t> Add (std::shared_ptr<Object> obj)

Defined at line 51 of file ../../src/devices/testing/fake-object/fake-handle.cc

void Clear ()

Defined at line 96 of file ../../src/devices/testing/fake-object/fake-handle.cc

void HandleTable ()

Defined at line 102 of file ../../src/devices/testing/fake-object/include/lib/fake-object/object.h

void Dump ()

Defined at line 102 of file ../../src/devices/testing/fake-object/fake-handle.cc

void ~HandleTable ()

Defined at line 103 of file ../../src/devices/testing/fake-object/include/lib/fake-object/object.h

void HandleTable (const HandleTable & )

Defined at line 105 of file ../../src/devices/testing/fake-object/include/lib/fake-object/object.h

HandleTable & operator= (const HandleTable & )

Defined at line 106 of file ../../src/devices/testing/fake-object/include/lib/fake-object/object.h

void HandleTable (HandleTable && )

Defined at line 107 of file ../../src/devices/testing/fake-object/include/lib/fake-object/object.h

HandleTable & operator= (HandleTable && )

Defined at line 108 of file ../../src/devices/testing/fake-object/include/lib/fake-object/object.h

template <typename ObjectCallback>
void ForEach (zx_obj_type_t type, const ObjectCallback cb)

Walks the handle table and calls |cb| on each handle that matches the

provided |type|. Stops walking the table when |cb| returns false.

|cb| must NOT attempt to acquire the lock, so this method is not suitable

for internal methods.

Defined at line 123 of file ../../src/devices/testing/fake-object/include/lib/fake-object/object.h

size_t size ()

We use the overall size of the vector to calculate new indices

so to determine the occupied size we have to verify each element.

Defined at line 137 of file ../../src/devices/testing/fake-object/include/lib/fake-object/object.h