Template Class PublisherInterface

Class Documentation

template<typename T, typename H>
class PublisherInterface

The PublisherInterface class defines the publisher interface used by the Sample class to make it generic. This allows any publisher specialization to be stored as a reference by the Sample class. It is also needed to avoid circular dependencies between Sample and Publisher.

Public Types

using SampleType = Sample<T, H>

Public Functions

virtual void publish(SampleType &&sample) noexcept = 0

Publishes the given sample and then releases its loan.

Parameters:

sample – The sample to publish.

Protected Functions

PublisherInterface() = default