template<class Input>
BipedalLocomotion::System::Sink class

Sink is a template specialization of Advanceable and represents a block that does not contains output.

In this case Sink::getOutput() will return an EmptySignal.

Base classes

template<class _Input, class _Output>
class Advanceable<Input, EmptySignal>
Basic class that represents a discrete system.

Constructors, destructors, conversion operators

Sink() defaulted
Sink(const Sink&) deleted
Sink(Sink&&) deleted
~Sink() defaulted virtual

Public functions

auto getOutput() const -> const EmptySignal& final
Get the output of the port.
auto isOutputValid() const -> bool final
Determines the validity of the object retrieved with getOutput()
auto operator=(const Sink&) -> Sink& deleted
auto operator=(Sink&&) -> Sink& deleted

Function documentation

template<class Input>
const EmptySignal& BipedalLocomotion::System::Sink<Input>::getOutput() const final

Get the output of the port.

Returns a const reference of the requested object.

template<class Input>
bool BipedalLocomotion::System::Sink<Input>::isOutputValid() const final

Determines the validity of the object retrieved with getOutput()

Returns True if the object is valid, false otherwise.