Skip to content

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_taddr() const =0
Unique address of this object on the bus.
virtual addr_tbroadcastAddr() const =0
Broadcast (group) address for this object.
virtual addr_tparentAddr() 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 voidonIndication(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 voidonConfirmation(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 & 
) =deleted

function operator= ​

cpp
ConnectedObject & operator=(
    const ConnectedObject & 
) =deleted

function ConnectedObject ​

cpp
ConnectedObject(
    ConnectedObject && 
) =deleted

function operator= ​

cpp
ConnectedObject & operator=(
    ConnectedObject && 
) =deleted

function addr ​

cpp
virtual addr_t addr() const =0

Unique 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 =0

Broadcast (group) address for this object.

Return: The group address subscribers listen on.

function parentAddr ​

cpp
virtual addr_t parentAddr() const =0

Address 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() =default

function ~ConnectedObject ​

cpp
~ConnectedObject() =default