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

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

template<class Port, typename T>
class nrt::MessageSubscription< Port, nrt::Message< T >, void >

Specialization of MessageSubscription for void return type and nrt::Message<T> message.

Definition at line 357 of file ModulePortHelpers.H.

Inherits shared_ptr< nrt::Message< T > const >.

Public Types

typedef Port PortType
 
typedef nrt::Message< T > MsgType
 The outgoing message type.
 
typedef void RetType
 The return message type (void)
 
typedef std::shared_ptr
< MsgType 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< nrt::Message< T > 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 = false
 Atomic message, not splittable.
 

Member Function Documentation

template<class Port , typename T >
template<typename... Args>
static RetUptr nrt::MessageSubscription< Port, nrt::Message< T >, 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: