From e35a1d09a5332981a4439ee265f601b771cd1486 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Fri, 25 Jun 2021 16:18:06 +0200 Subject: [PATCH] added ModelWrapper::space_indices_table_size() method --- src/modelwrapper.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/modelwrapper.h b/src/modelwrapper.h index c7ec4f5..b7656b2 100644 --- a/src/modelwrapper.h +++ b/src/modelwrapper.h @@ -97,6 +97,11 @@ public: { } + virtual size_t space_indices_table_size() + { + return 0; + } + virtual bool is_iterator_correct() { return false; @@ -191,9 +196,6 @@ class ModelWrapperSpace : public ModelWrapper { public: - const size_t MODEL_WRAPPER_SPACE_INDICES_TABLE_SIZE = 32; - - ModelWrapperSpace(pt::Space * space) { this->space = space; @@ -205,6 +207,12 @@ public: return space; } + size_t space_indices_table_size() + { + return MODEL_WRAPPER_SPACE_INDICES_TABLE_SIZE; + } + + void increment_iterator(size_t space_index, size_t table_size) { if( space_index < indices.size() ) @@ -232,6 +240,7 @@ public: protected: + const size_t MODEL_WRAPPER_SPACE_INDICES_TABLE_SIZE = 32; pt::Space * space; std::vector indices;