Unidirectional point-to-point messaging channel.
Iterate through a HashTable.
u32 ProcessID
Process Identification Number.
HashTable< ProcessID, Channel * > m_consumer
Contains registered consumer channels.
Channel * getConsumer(const ProcessID pid)
Get one consumer.
Result registerConsumer(const ProcessID pid, Channel *channel)
Register consumer channel.
virtual int remove(const K &key)
Remove value(s) for the given key.
virtual ~ChannelRegistry()
Destructor.
virtual const V * get(const K &key) const
Returns the first value for the given key.
HashTable< ProcessID, Channel * > & getConsumers()
Get all consumers.
HashTable< ProcessID, Channel * > m_producer
Contains registered producer channels.
Result registerProducer(const ProcessID pid, Channel *channel)
Register producer channel.
Result unregisterProducer(const ProcessID pid)
Unregister producer channel.
virtual bool hasCurrent() const
Check if there is a current item.
ChannelRegistry()
Constructor.
Channel * getProducer(const ProcessID pid)
Get one producer.
Result unregisterConsumer(const ProcessID pid)
Unregister consumer channel.
HashTable< ProcessID, Channel * > & getProducers()
Get all producers.
virtual bool insert(const K &key, const V &value)
Inserts the given item to the HashTable.