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

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

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

Specialization of MessagePosting for void return type.

Definition at line 174 of file ModulePortHelpers.H.

Public Types

typedef Port PortType
 
typedef Msg MsgType
 The outgoing message type.
 
typedef void RetType
 The return message type (void)
 
typedef std::unique_ptr< Msg > MsgUptr
 Outgoing message pointer type, as passed to post()
 
typedef std::shared_ptr< Msg
const > 
MsgPtr
 Outgoing message pointer type, as received by callbacks.
 
typedef void RetUptr
 Return message pointer type, as returned by callback.
 
typedef void RetPtr
 Return message pointer type, as received by poster.
 
typedef std::function< void(MsgPtr)> CallbackFuncType
 

Public Member Functions

template<typename... Args>
nrt::MessagePosting< Port, Msg,
void >::MsgUptr 
make_message (Args &&...args)
 

Static Public Member Functions

template<typename... Args>
static MsgUptr make_message (Args &&...args)
 Allocate a message and return a unique_ptr to it, to be used by post() More...
 

Static Public Attributes

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

Friends

template<class Posting >
class MessagePosterCore
 

Member Function Documentation

template<class Port , class Msg >
template<typename... Args>
static MsgUptr nrt::MessagePosting< Port, Msg, void >::make_message ( Args &&...  args)
static

Allocate a message and return a unique_ptr to it, to be used by post()

All given args are forwarded to the message constructor.


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