]> git.cworth.org Git - apitrace/blobdiff - cli/trim_callset.hpp
Extend trim::CallSet with a new range-based add method.
[apitrace] / cli / trim_callset.hpp
index 667ec5e98c081c3745f809d07f320384e82b5477..fb2c92a4747b3bb14af915e14b7b8d754fdc1e4e 100644 (file)
@@ -40,9 +40,6 @@ namespace trim {
  *
  *   Simplifications:
  *
- *     * This supports only the addition of a single call number, not
- *       the addition of a range.
- *
  *     * There is no support here for the 'step' and 'freq' features
  *       supported by trace::CallSet.
  *
@@ -76,7 +73,7 @@ public:
     int level;
     CallRange **next;
 
-    CallRange(CallNo call_no, int level);
+    CallRange(CallNo first, CallNo last, int level);
 
     bool contains(CallNo call_no);
 };
@@ -88,6 +85,8 @@ public:
 
     CallSet();
 
+    void add(CallNo first, CallNo last);
+
     void add(CallNo call_no);
 
     bool contains(CallNo call_no);