Rose
Public Types | Static Public Member Functions | List of all members
rose::Protocol< Args > Struct Template Reference

A convenience structure that composes Signal and Slot types from a protocol signature, and provides a Slot factory. More...

#include <Signals.h>

Public Types

typedef std::shared_ptr< Slot< Args... > > slot_type
 Composed Slot type.
 
typedef Signal< Args... > signal_type
 Composed Signal type.
 

Static Public Member Functions

static slot_type createSlot ()
 The Protocol Slot factory. More...
 

Detailed Description

template<typename ... Args>
struct rose::Protocol< Args >

A convenience structure that composes Signal and Slot types from a protocol signature, and provides a Slot factory.

All Slots should be created by the appropriated Protocol Slot factory. This ensures that the Slots will be properly composed std::shared_ptr or std::weak_ptr. Also using a Protocol structure to create Signals and Slots will ensure that those intended to be connected have compatible signatures.

Template Parameters
ArgsThe signature of all Signals and Slots in the Protocol.

Member Function Documentation

◆ createSlot()

template<typename ... Args>
static slot_type rose::Protocol< Args >::createSlot ( )
inlinestatic

The Protocol Slot factory.

Returns

The documentation for this struct was generated from the following file: