+#ifdef __cplusplus
+namespace simgrid {
+ namespace trace_mgr {
+
+/* Future Event Set (collection of iterators over the traces)
+ * That's useful to quickly know which is the next occurring event in a set of traces. */
+XBT_PUBLIC_CLASS future_evt_set {
+public:
+ future_evt_set();
+ virtual ~future_evt_set();
+ double next_date();
+ tmgr_trace_iterator_t pop_leq(double date, double *value, void** resource);
+ tmgr_trace_iterator_t add_trace(
+ tmgr_trace_t trace,
+ double start_time,
+ unsigned int offset,
+ void *model);
+
+private:
+ // TODO: use a boost type for the heap (or a ladder queue)
+ xbt_heap_t p_heap = xbt_heap_new(8, xbt_free_f); /* Content: only trace_events (yep, 8 is an arbitrary value) */
+};
+
+}} // namespace simgrid::trace_mgr
+#endif /* C++ only */
+