iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::SimpleMessageSubscription< T, true > Struct Template Reference

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

template<typename T>
struct nrt::SimpleMessageSubscription< T, true >

Simple CRTP struct for a MessageSubscription, used by split subscribers.

Definition at line 449 of file ModulePortHelpers.H.

Inheritance diagram for nrt::SimpleMessageSubscription< T, true >:
nrt::MessageSubscription< SimpleMessageSubscription< T >, T, void >

Public Member Functions

 SimpleMessageSubscription (std::shared_ptr< T const > msg)
 Construct from a shared_ptr to a message.
 
- Public Member Functions inherited from nrt::MessageSubscription< SimpleMessageSubscription< T >, T, void >
 MessageSubscription (std::shared_ptr< Tconst > msg)
 Construct from a shared_ptr to a message.
 

Additional Inherited Members

- Public Types inherited from nrt::MessageSubscription< SimpleMessageSubscription< T >, T, void >
typedef
SimpleMessageSubscription< T > 
PortType
 
typedef T MsgType
 The outgoing message type.
 
typedef void RetType
 The return message type.
 
typedef std::shared_ptr< Tconst > MsgPtr
 The outgoing message pointer type.
 
typedef std::shared_ptr
< voidconst > 
RetPtr
 The return message pointer type, as received by poster.
 
typedef std::unique_ptr< void > RetUptr
 The return message pointer type, as returned by callback.
 
- Static Public Member Functions inherited from nrt::MessageSubscription< SimpleMessageSubscription< T >, T, void >
static RetPtr runBoundOnMessage (std::function< RetUptr()> func)
 
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 inherited from nrt::MessageSubscription< SimpleMessageSubscription< T >, T, void >
static bool const isSplittable
 Subscriptions with non-void returns cannot be split.
 

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