From 879f2fd8a6a5c52c852fb221eeacccec715f0a56 Mon Sep 17 00:00:00 2001 From: Fred Suter Date: Tue, 23 May 2023 08:08:43 -0400 Subject: [PATCH 1/1] add accessors --- include/simgrid/plugins/operation.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/simgrid/plugins/operation.hpp b/include/simgrid/plugins/operation.hpp index f335c6d39f..ee4b606af2 100644 --- a/include/simgrid/plugins/operation.hpp +++ b/include/simgrid/plugins/operation.hpp @@ -145,7 +145,9 @@ public: static IoOpPtr init(const std::string& name); static IoOpPtr init(const std::string& name, double bytes, s4u::Disk* disk, s4u::Io::OpType type); IoOpPtr set_disk(s4u::Disk* disk); + s4u::Disk* get_disk() const { return disk_; } IoOpPtr set_bytes(double bytes); + double get_bytes() { return get_amount(); } IoOpPtr set_op_type(s4u::Io::OpType type); friend void inline intrusive_ptr_release(IoOp* i) { intrusive_ptr_release(static_cast(i)); } -- 2.20.1