Template Class StreamPort

Inheritance Relationships

Base Type

Class Documentation

template<typename T>
class StreamPort : public eat::framework::StreamPortBase

stream port containing items of type T

Public Functions

virtual bool compatible(const PortPtr &other) const override

are connections between this and other valid (i.e. the same type)

void push(T value)
bool available() const
T pop()
virtual void close() override

end the stream of data

virtual bool eof() override

has the stream ended? true when there’s no more data to read, and the other side has called close()

virtual bool eof_triggered() override

has close been called (i.e. eof() will become true once the queue is drained)

virtual void copy_to(StreamPortBase &other) override
virtual void move_to(StreamPortBase &other) override
virtual void clear() override
virtual ProcessPtr get_buffer_writer(const std::string &name) override

get a process with a compatible streaming input and a non-streaming output compatible with get_buffer_writer(), which writes the inputs to a buffer

virtual ProcessPtr get_buffer_reader(const std::string &name) override

get a process with a compatible streaming output and a non-streaming input compatible with get_buffer_reader(), which reads from a buffer