Member values
Member name | Data type | Description |
---|---|---|
device_handle | DeviceHandle | Device handle |
Member functions
Function name | Return type | Input type | Description |
---|---|---|---|
device_handle_size() const | int | void | Returns the number of elements currently in the field. |
device_handle() const | const DeviceHandle | int index | Returns the element at the given zero-based index. Calling this method with index outside of [0, device_handle_size()) yields undefined behavior. |
mutable_device_handle() | DeviceHandle* | int index | Returns a pointer to the mutable DeviceHandle object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, device_handle_size()) yields undefined behavior. |
add_device_handle() | DeviceHandle* | void | Adds a new element and returns a pointer to it. The returned DeviceHandle is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated DeviceHandle). |
clear_device_handle() | void | void | Removes all elements from the field. After calling this, device_handle_size() will return zero. |
device_handle() const | const RepeatedPtrField< DeviceHandle>& | void | Returns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods. |
mutable_device_handle() | RepeatedPtrField< DeviceHandle>* | void | Returns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods. |
Parent topic: DeviceManager (C++)