Mesh: Reimplement and unify topology maps #107861
|
@ -115,6 +115,16 @@ template<typename T> struct GroupedSpan {
|
|||
return this->data.slice(this->offsets[index]);
|
||||
HooglyBoogly marked this conversation as resolved
Outdated
|
||||
}
|
||||
|
||||
int64_t size() const
|
||||
{
|
||||
return this->offsets.size();
|
||||
}
|
||||
|
||||
IndexRange index_range() const
|
||||
{
|
||||
return this->offsets.index_range();
|
||||
}
|
||||
|
||||
bool is_empty() const
|
||||
{
|
||||
return this->data.size() == 0;
|
||||
|
|
Loading…
Reference in New Issue
Also add a
size
andindex_range
method.