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

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

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

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

Definition at line 205 of file ModulePortHelpers.H.

Public Types

typedef Port PortType
 
typedef nrt::Message< T > MsgType
 Outgoing message type.
 
typedef void RetType
 The return message type (void)
 
typedef std::unique_ptr< MsgTypeMsgUptr
 Outgoing message pointer type, as passed to post()
 
typedef std::shared_ptr
< MsgType const > 
MsgPtr
 Outgoing message ptr 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,
nrt::Message< T >, 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 = false
 Those messages are atomic and non-splittable.
 

Friends

template<class Posting >
class MessagePosterCore
 

Member Function Documentation

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