diff options
Diffstat (limited to 'include/framework/scheduling')
| -rw-r--r-- | include/framework/scheduling/Epoch.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/framework/scheduling/Epoch.h b/include/framework/scheduling/Epoch.h index 303ab2f..95c64ea 100644 --- a/include/framework/scheduling/Epoch.h +++ b/include/framework/scheduling/Epoch.h @@ -54,11 +54,13 @@ public: Epoch &operator=(const Epoch &) = delete; Epoch &operator=(Epoch &&) = delete; - size_t get_epoch_number() { return m_epoch_number; } + size_t get_epoch_number() const { return m_epoch_number; } - Structure *get_structure() { return m_structure; } + const Structure *get_structure() const { return m_structure; } - BufView get_buffer() { return m_buffer->get_buffer_view(m_buffer_head); } + Structure *get_mutable_structure() { return m_structure; } + + BufView get_buffer() const { return m_buffer->get_buffer_view(m_buffer_head); } /* * Returns a new Epoch object that is a copy of this one. The new object |