Hedgehog  3.1.0
A library to generate hybrid pipeline workflow systems
Loading...
Searching...
No Matches
state_sender.h
Go to the documentation of this file.
1
2
3#ifndef HEDGEHOG_STATE_SENDER_H_
4#define HEDGEHOG_STATE_SENDER_H_
5
6#include <queue>
7#include <memory>
8
10namespace hh {
12namespace behavior {
13
16template<class Output>
18 private:
19 std::unique_ptr<std::queue<std::shared_ptr<Output>>>
20 readyList_ = std::make_unique<std::queue<std::shared_ptr<Output>>>();
21 public:
23 StateSender() = default;
25 ~StateSender() = default;
26
29 std::unique_ptr<std::queue<std::shared_ptr<Output>>> const &readyList() const { return readyList_; }
30
31};
32}
33}
34#endif //HEDGEHOG_STATE_SENDER_H_
Hedgehog main namespace.
Behavior abstraction for states that send a type of data, holds a ready list for that type.
Definition: state_sender.h:17
~StateSender()=default
Default destructor.
StateSender()=default
Default constructor.
std::unique_ptr< std::queue< std::shared_ptr< Output > > > const & readyList() const
Ready list accessor.
Definition: state_sender.h:29
std::unique_ptr< std::queue< std::shared_ptr< Output > > > readyList_
Ready list for that type.
Definition: state_sender.h:20