diff options
Diffstat (limited to 'include/gras/work_buffer.hpp')
-rw-r--r-- | include/gras/work_buffer.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/gras/work_buffer.hpp b/include/gras/work_buffer.hpp index 0900ed7..fa38314 100644 --- a/include/gras/work_buffer.hpp +++ b/include/gras/work_buffer.hpp @@ -50,9 +50,19 @@ public: //! Get a reference to the max items size_t &max(void); + //! Get a vector of just the work pointers + const std::vector<PtrType> &vec(void) const; + + //! Get a reference to the work pointers + std::vector<PtrType> &vec(void); + + //! Resize the work buffer array + void resize(const size_t size); + private: size_t _min; size_t _max; + std::vector<PtrType> _vec; }; } //namespace gras |