summaryrefslogtreecommitdiff
path: root/include/gras/detail/work_buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/gras/detail/work_buffer.hpp')
-rw-r--r--include/gras/detail/work_buffer.hpp19
1 files changed, 19 insertions, 0 deletions
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<PtrType>::max(void)
return _max;
}
+template <typename PtrType>
+inline const std::vector<PtrType> &WorkBufferArray<PtrType>::vec(void) const
+{
+ return _vec;
+}
+
+template <typename PtrType>
+inline std::vector<PtrType> &WorkBufferArray<PtrType>::vec(void)
+{
+ return _vec;
+}
+
+template <typename PtrType>
+inline void WorkBufferArray<PtrType>::resize(const size_t size)
+{
+ _vec.resize(size);
+ std::vector<WorkBuffer<PtrType> >::resize(size);
+}
+
} //namespace gras
#endif /*INCLUDED_GRAS_DETAIL_WORK_BUFFER_HPP*/