Appearance
class flake::ConnectedObject
An object that is connected to the Flake bus and has an address. More...
#include <platform/flake/Object.h>
Inherits from flake::IndicationSink, flake::ConfirmationSink
Public Functions
| Name | |
|---|---|
| ConnectedObject(const ConnectedObject & ) =deleted | |
| ConnectedObject & | operator=(const ConnectedObject & ) =deleted |
| ConnectedObject(ConnectedObject && ) =deleted | |
| ConnectedObject & | operator=(ConnectedObject && ) =deleted |
| virtual addr_t | addr() const =0 Unique address of this object on the bus. |
| virtual addr_t | broadcastAddr() const =0 Broadcast (group) address for this object. |
| virtual addr_t | parentAddr() const =0 Address of the parent object in the object tree. |
Protected Functions
| Name | |
|---|---|
| ConnectedObject() =default | |
| ~ConnectedObject() =default |
Additional inherited members
Public Functions inherited from flake::IndicationSink
| Name | |
|---|---|
| IndicationSink(const IndicationSink & ) =deleted | |
| IndicationSink(IndicationSink && ) =deleted | |
| virtual void | onIndication(const Indication & indication) =0 Called when an indication arrives. |
Protected Functions inherited from flake::IndicationSink
| Name | |
|---|---|
| IndicationSink() =default | |
| ~IndicationSink() =default |
Public Functions inherited from flake::ConfirmationSink
| Name | |
|---|---|
| ConfirmationSink(const ConfirmationSink & ) =deleted | |
| ConfirmationSink(ConfirmationSink && ) =deleted | |
| virtual void | onConfirmation(const Confirmation & confirmation) =0 Called when a confirmation arrives. |
Protected Functions inherited from flake::ConfirmationSink
| Name | |
|---|---|
| ConfirmationSink() =default | |
| ~ConfirmationSink() =default |
Detailed Description
cpp
class flake::ConnectedObject;An object that is connected to the Flake bus and has an address.
Note: Non-copyable, non-movable.
ConnectedObject combines both IndicationSink and ConfirmationSink so that subclasses can receive both types of messages.
Public Functions Documentation
function ConnectedObject
cpp
ConnectedObject(
const ConnectedObject &
) =deletedfunction operator=
cpp
ConnectedObject & operator=(
const ConnectedObject &
) =deletedfunction ConnectedObject
cpp
ConnectedObject(
ConnectedObject &&
) =deletedfunction operator=
cpp
ConnectedObject & operator=(
ConnectedObject &&
) =deletedfunction addr
cpp
virtual addr_t addr() const =0Unique address of this object on the bus.
Return: The object's address, or EMPTY_ADDR if not assigned.
function broadcastAddr
cpp
virtual addr_t broadcastAddr() const =0Broadcast (group) address for this object.
Return: The group address subscribers listen on.
function parentAddr
cpp
virtual addr_t parentAddr() const =0Address of the parent object in the object tree.
Return: The parent's address, or EMPTY_ADDR if none.
Protected Functions Documentation
function ConnectedObject
cpp
ConnectedObject() =defaultfunction ~ConnectedObject
cpp
~ConnectedObject() =default