]> git.saurik.com Git - apple/system_cmds.git/blobdiff - KDBG/VoucherInterval.hpp
system_cmds-643.30.1.tar.gz
[apple/system_cmds.git] / KDBG / VoucherInterval.hpp
diff --git a/KDBG/VoucherInterval.hpp b/KDBG/VoucherInterval.hpp
new file mode 100644 (file)
index 0000000..7544b32
--- /dev/null
@@ -0,0 +1,26 @@
+//
+//  VoucherInterval.hpp
+//  KDBG
+//
+//  Created by James McIlree on 2/18/14.
+//  Copyright (c) 2014 Apple. All rights reserved.
+//
+
+#ifndef kernel_perf_cmds_Header_h
+#define kernel_perf_cmds_Header_h
+
+template <typename SIZE>
+class VoucherInterval : public AbsInterval {
+       MachineVoucher<SIZE>*   _voucher;
+
+    public:
+       VoucherInterval(MachineVoucher<SIZE>* voucher, AbsInterval interval) :
+               AbsInterval(interval),
+               _voucher(voucher)
+       {
+       }
+
+       const MachineVoucher<SIZE>* voucher() const     { return _voucher; }
+};
+
+#endif