Here is a diagram that shows how this simulation conceptually fits into a TTNT radio. The functionality modeled by this simulation is shown by the gray boxes with the dashed lines.

![System Diagram][SystemDiagram]

[SystemDiagram]: doc/System.svg "System Diagram" width=6in

TARGET2 = $(PROJDIR)/doc/System.svg

$(PROJDIR)/doc/%.svg: %.dia
        dia --export=$@ $<

template<class T, class... Args> inline
unique_ptr<T> make_unique(Args&&... args)
  { return unique_ptr<T>(new T(std::forward<Args>(args)...)); }

Also do monotonic_clock for gcc4.6-ish.