#include <Playable.h>
Collaboration diagram for TSE3::PlayableIterator:
Public Member Functions | |
PlayableIterator () | |
virtual | ~PlayableIterator () |
const MidiEvent & | operator * () const |
const MidiEvent * | operator-> () const |
bool | more () const |
virtual void | moveTo (Clock) |
PlayableIterator & | operator++ () |
Protected Member Functions | |
virtual void | getNextEvent ()=0 |
Protected Attributes | |
MidiEvent | _next |
bool | _more |
This is an iterator that moves over every MidiEvent in a Playable object. Each MidiEvent are delivered in time order. This is a use of the 'Iterator' design pattern in the GoF book.
Each kind of Playable object will provide an implementation of the PlayableIterator interface that knows how to iterate over that kind of object.
|
Create a PlayableIterator. Client code will never call this member function.
|
|
|
|
Returns the next MidiEvent in the iterator
|
|
Returns the next MidiEvent in the iterator
|
|
Returns whether there are any more events to come; i.e. whether ++ is valid on this object.
|
|
Moves the iterator to the given time position.
|
|
Increments the iterator, so that it will return the next MidiEvent in the Playable. |
|
|
|
|
|
|