Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_virtual_array.hh
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | int64_t size() const | ||||
| return size_; | return size_; | ||||
| } | } | ||||
| bool is_empty() const | bool is_empty() const | ||||
| { | { | ||||
| return size_ == 0; | return size_ == 0; | ||||
| } | } | ||||
| IndexRange index_range() const | |||||
| { | |||||
| return IndexRange(size_); | |||||
| } | |||||
| /* Returns true when the virtual array is stored as a span internally. */ | /* Returns true when the virtual array is stored as a span internally. */ | ||||
| bool is_span() const | bool is_span() const | ||||
| { | { | ||||
| if (size_ == 0) { | if (size_ == 0) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| return this->is_span_impl(); | return this->is_span_impl(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 532 Lines • Show Last 20 Lines | |||||