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 | |
|---|---|
| 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 | |
|---|---|
| virtual void | onIndication(constIndication & 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 | |
|---|---|
| virtual void | onConfirmation(constConfirmation & 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 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