refactor: cleanup setPosBuffer funciton, add getters for geometry

This commit is contained in:
parker
2025-08-03 03:22:52 +01:00
parent 48ad8909cc
commit 488ff9ff72
6 changed files with 139 additions and 65 deletions

View File

@@ -55,13 +55,18 @@ public:
data_->push_back(value);
}
void reserve(std::size_t newCap)
{
data_->reserve(newCap);
}
// TODO: replace with iterator
std::vector<T> getAllValues() const
{
return {data_->begin(), data_->end()};
}
size_t getSize()
size_t getSize() const
{
return data_->size();
}
@@ -70,7 +75,7 @@ public:
{
// TODO:protect against invalid positions
// TODO: cast types
return data_->at(pos);
return data_[pos];
}
void setValue(size_t pos, const T& value)