|
Open Model Railroad Network (OpenMRN)
|
EventIterator that produces every single entry in a given container (which can be any STL-compatible container with begin() and end() methods). More...
#include <EventHandlerContainer.hxx>
Public Member Functions | |
| FullContainerIterator (C *container) | |
| EventRegistryEntry * | next_entry () OVERRIDE |
| Steps the iteration. | |
| void | clear_iteration () OVERRIDE |
| Stops iteration and resets iteration variables. | |
| void | init_iteration (EventReport *) OVERRIDE |
| Starts the iteration. | |
Private Attributes | |
| C::iterator | it_ |
| C * | container_ |
Additional Inherited Members | |
Protected Member Functions inherited from openlcb::EventIterator | |
| EventIterator () | |
| Creates an EventIterator. | |
EventIterator that produces every single entry in a given container (which can be any STL-compatible container with begin() and end() methods).
Definition at line 87 of file EventHandlerContainer.hxx.
|
inline |
Definition at line 89 of file EventHandlerContainer.hxx.
|
inlinevirtual |
Stops iteration and resets iteration variables.
Implements openlcb::EventIterator.
Definition at line 99 of file EventHandlerContainer.hxx.
|
inlinevirtual |
Starts the iteration.
If the iteration is not done yet, call clear_iteration first.
| event | is the event report to reset the iteration for. |
Implements openlcb::EventIterator.
Definition at line 102 of file EventHandlerContainer.hxx.
|
inlinevirtual |
Steps the iteration.
Implements openlcb::EventIterator.
Definition at line 93 of file EventHandlerContainer.hxx.
|
private |
Definition at line 108 of file EventHandlerContainer.hxx.
|
private |
Definition at line 107 of file EventHandlerContainer.hxx.