Template Function cpphots::process(P&, const Events&, bool, bool)

Function Documentation

template<typename P>
Events cpphots::process(P &processor, const Events &events, bool reset = true, bool skip_check = false)

Generic event processing function.

Process a sequence of events using a generic processor class.

A processor is something with the following methods:

  • void reset()

  • Events process(const event&, bool)

Both Layer and Network satisfy the requirements.

Template Parameters

P – processor type

Parameters
  • processor – the processor

  • events – events

  • reset – true if processor.reset() should be called

  • skip_check – if true consider all events as valid

Returns

events emitted by the processor