15 #ifndef DETECTORGRAPH_INCLUDE_SUBSCRIPTIONDISPATCHERCONTAINER_LITE_HPP_ 16 #define DETECTORGRAPH_INCLUDE_SUBSCRIPTIONDISPATCHERCONTAINER_LITE_HPP_ 20 #include "detectorgraphliteconfig.hpp" 48 template<
class TTopicState>
60 DG_ASSERT(mNumInDispatchers < DetectorGraphConfig::kMaxNumberOfInEdges);
66 mInDispatchers[mNumInDispatchers++] = dispatcher;
71 return mInDispatchers;
76 return mNumInDispatchers;
83 for (
unsigned i = 0; i !=
GetSize(); ++i)
91 size_t mNumInDispatchers;
96 #endif // DETECTORGRAPH_INCLUDE_SUBSCRIPTIONDISPATCHERCONTAINER_LITE_HPP_
~SubscriptionDispatchersContainer()
Internal - Manages a fixed number of SubscriptionDispatchers.
SubscriptionDispatcherInterface *const (& GetDispatchers() const)[DetectorGraphConfig::kMaxNumberOfInEdges]
virtual ~SubscriptionDispatcherInterface()
Manage data and its handler.
Internal - Implements the data-out edge from a topic to one of its subscriber.
Internal - Provide interface for a SubscriptionDispatcher
SubscriptionDispatchersContainer()
void CreateDispatcher(Topic< TTopicState > *topic, SubscriberInterface< TTopicState > *subscriber)
A Pure interface that declares the Subscriber behavior.
#define DG_ASSERT(condition)
const size_t GetSize() const