knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <AnswerMerger.h>
Public Member Functions | |
AnswerMerger (AnswerPtr partialResult) | |
TokenPtr | transform (const TokenPtr &tok) override |
AnswerMerger (AnswerPtr partialResult) | |
TokenPtr | transform (const TokenPtr &tok) override |
Public Member Functions inherited from knowrob::AnswerTransformer | |
AnswerTransformer () | |
AnswerTransformer () | |
Public Member Functions inherited from knowrob::TokenBroadcaster | |
TokenBroadcaster () | |
~TokenBroadcaster () override | |
void | addSubscriber (const std::shared_ptr< Channel > &subscriber) |
void | removeSubscriber (const std::shared_ptr< Channel > &subscriber) |
TokenBroadcaster () | |
~TokenBroadcaster () override | |
void | addSubscriber (const std::shared_ptr< Channel > &subscriber) |
void | removeSubscriber (const std::shared_ptr< Channel > &subscriber) |
Public Member Functions inherited from knowrob::TokenStream | |
TokenStream () | |
virtual | ~TokenStream () |
TokenStream (const TokenStream &)=delete | |
virtual void | close () |
bool | isOpened () const |
TokenStream () | |
virtual | ~TokenStream () |
TokenStream (const TokenStream &)=delete | |
virtual void | close () |
bool | isOpened () const |
Protected Attributes | |
const AnswerPtr | partialResult_ |
Protected Attributes inherited from knowrob::TokenBroadcaster | |
std::list< std::shared_ptr< Channel > > | subscribers_ |
std::mutex | mtx_ |
Protected Attributes inherited from knowrob::TokenStream | |
std::list< std::shared_ptr< Channel > > | channels_ |
std::atomic< bool > | isOpened_ |
std::mutex | channel_mutex_ |
Additional Inherited Members | |
Protected Member Functions inherited from knowrob::AnswerTransformer | |
void | push (const TokenPtr &tok) override |
void | push (const TokenPtr &tok) override |
Protected Member Functions inherited from knowrob::TokenBroadcaster | |
virtual void | pushToBroadcast (const TokenPtr &tok) |
void | push (const TokenPtr &tok) override |
virtual void | pushToBroadcast (const TokenPtr &tok) |
Protected Member Functions inherited from knowrob::TokenStream | |
virtual void | push (Channel &channel, const TokenPtr &tok) |
virtual void | push (Channel &channel, const TokenPtr &tok) |
A transformer that merges two partial answers.
Definition at line 16 of file AnswerMerger.h.
|
explicit |
Definition at line 12 of file AnswerMerger.cpp.
|
explicit |
Transform a token.
tok | the token to transform. |
Implements knowrob::AnswerTransformer.
Definition at line 16 of file AnswerMerger.cpp.
Transform a token.
tok | the token to transform. |
Implements knowrob::AnswerTransformer.
|
protected |
Definition at line 24 of file AnswerMerger.h.