From d58659dd2d6d2c7c9411a689254ae0ad8b2c0764 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 15 Apr 2013 23:43:33 -0700 Subject: gras: added vec call to work buffer --- include/gras/detail/work_buffer.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include/gras/detail') diff --git a/include/gras/detail/work_buffer.hpp b/include/gras/detail/work_buffer.hpp index 851bbf9..ec7cbea 100644 --- a/include/gras/detail/work_buffer.hpp +++ b/include/gras/detail/work_buffer.hpp @@ -60,6 +60,25 @@ inline size_t &WorkBufferArray::max(void) return _max; } +template +inline const std::vector &WorkBufferArray::vec(void) const +{ + return _vec; +} + +template +inline std::vector &WorkBufferArray::vec(void) +{ + return _vec; +} + +template +inline void WorkBufferArray::resize(const size_t size) +{ + _vec.resize(size); + std::vector >::resize(size); +} + } //namespace gras #endif /*INCLUDED_GRAS_DETAIL_WORK_BUFFER_HPP*/ -- cgit