iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::MessageSubscription< Port, Msg, void > Class Template Reference

#include <nrt/Core/Blackboard/details/ModulePortHelpers.H>

template<class Port, class Msg>
class nrt::MessageSubscription< Port, Msg, void >

Specialization of MessageSubscription for void return type.

Definition at line 330 of file ModulePortHelpers.H.

Inherits shared_ptr< Msg const >.

Public Types

typedef Port PortType
 
typedef Msg MsgType
 The outgoing message type.
 
typedef void RetType
 The return message type (void)
 
typedef std::shared_ptr< Msg
const > 
MsgPtr
 The outgoing message pointer type.
 
typedef void RetPtr
 The return message pointer type, as received by poster.
 
typedef void RetUptr
 The return message pointer type, as returned by callback.
 

Public Member Functions

 MessageSubscription (std::shared_ptr< Msg const > msg)
 Construct from a shared_ptr to a message.
 
template<typename... Args>
void make_return_message (Args &&...args)
 

Static Public Member Functions

static RetPtr runBoundOnMessage (std::function< RetUptr()> func)
 
template<typename... Args>
static RetUptr make_return_message (Args &&...args)
 Allocate a return message and return a unique_ptr to it, to be used in a callback as return value. More...
 

Static Public Attributes

static bool const isSplittable = Msg::isComposite
 CompositeMessage can be split.
 

Member Function Documentation

template<class Port , class Msg >
template<typename... Args>
static RetUptr nrt::MessageSubscription< Port, Msg, void >::make_return_message ( Args &&...  args)
static

Allocate a return message and return a unique_ptr to it, to be used in a callback as return value.

This is a no-op for subscriptions with void return type


The documentation for this class was generated from the following files: