added ModelWrapper::space_indices_table_size() method
This commit is contained in:
parent
89148de66d
commit
e35a1d09a5
|
@ -97,6 +97,11 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual size_t space_indices_table_size()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
virtual bool is_iterator_correct()
|
virtual bool is_iterator_correct()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -191,9 +196,6 @@ class ModelWrapperSpace : public ModelWrapper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
const size_t MODEL_WRAPPER_SPACE_INDICES_TABLE_SIZE = 32;
|
|
||||||
|
|
||||||
|
|
||||||
ModelWrapperSpace(pt::Space * space)
|
ModelWrapperSpace(pt::Space * space)
|
||||||
{
|
{
|
||||||
this->space = space;
|
this->space = space;
|
||||||
|
@ -205,6 +207,12 @@ public:
|
||||||
return space;
|
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)
|
void increment_iterator(size_t space_index, size_t table_size)
|
||||||
{
|
{
|
||||||
if( space_index < indices.size() )
|
if( space_index < indices.size() )
|
||||||
|
@ -232,6 +240,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
const size_t MODEL_WRAPPER_SPACE_INDICES_TABLE_SIZE = 32;
|
||||||
pt::Space * space;
|
pt::Space * space;
|
||||||
std::vector<size_t> indices;
|
std::vector<size_t> indices;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue