title: Composite iterator with queue
body: <p>I have a tree structure with events and as soon as an event fires I´d like to match that event at the current tree level, dequeue it and wait for the next event and match it against the underlying level. Im having a hard time wrapping this up in my head..Im just sitting here stairing like a zombie.</p>
  
  <p>Is the composite pattern the right choice here or should I do something completly different?</p>
  
  <p>/Mike</p>