Skip to content

Commit

Permalink
Add AddressableItem::clear_hardware_address.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvousden committed May 20, 2019
1 parent 949bba5 commit 3118769
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/hardware_model_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1658,16 +1658,19 @@ Methods:

- `AddressableItem::AddressableItem()`: Constructor (obviously).

- `AddressableItem::~AddressableItem()`: Destructor, deletes any hardware
address that hass been assigned to this item (see
`AddressableItem::set_hardware_address`).
- `AddressableItem::~AddressableItem()`: Destructor, calls
`clear_hardware_address()`.

- `HardwareAddress* AddressableItem::clear_hardware_address()`: Deletes the
hardware address held by this `AddressableItem`, if one has been assigned.

- `HardwareAddress* AddressableItem::copy_hardware_address()`: Convenience
method to dynamically create a copy of the `hardwareAddress` owned by this
`AddressableItem` using copy construction.

- `HardwareAddress* AddressableItem::get_hardware_address()`: Returns
`hardwareAddress`.
`hardwareAddress`. Throws a `MissingAddressException` if `isAddressBound` is
not true.

- `void AddressableItem::set_hardware_address(HardwareAddress* value)`: Binds
`hardwareAddress` to `value`, and updates `isAddressBound`. Note that the
Expand Down

0 comments on commit 3118769

Please sign in to comment.