|
Blender V5.0
|
#include <BLI_generic_span.hh>
Inherited by blender::GMutableVArraySpan.
Public Member Functions | |
| GMutableSpan ()=default | |
| GMutableSpan (const CPPType *type, void *buffer, int64_t size) | |
| GMutableSpan (const CPPType &type, void *buffer, int64_t size) | |
| GMutableSpan (const CPPType &type) | |
| GMutableSpan (const CPPType *type) | |
| template<typename T> | |
| GMutableSpan (MutableSpan< T > array) | |
| operator GSpan () const | |
| const CPPType & | type () const |
| const CPPType * | type_ptr () const |
| bool | is_empty () const |
| int64_t | size () const |
| int64_t | size_in_bytes () const |
| void * | data () const |
| void * | operator[] (int64_t index) const |
| template<typename T> | |
| MutableSpan< T > | typed () const |
| GMutableSpan | slice (const int64_t start, int64_t size) const |
| GMutableSpan | slice (IndexRange range) const |
| GMutableSpan | drop_front (const int64_t n) const |
| GMutableSpan | drop_back (const int64_t n) const |
| GMutableSpan | take_front (const int64_t n) const |
| GMutableSpan | take_back (const int64_t n) const |
| void | copy_from (GSpan values) |
Protected Attributes | |
| const CPPType * | type_ = nullptr |
| void * | data_ = nullptr |
| int64_t | size_ = 0 |
A generic mutable span. It behaves just like a blender::MutableSpan<T>, but the type is only known at run-time.
Definition at line 145 of file BLI_generic_span.hh.
|
default |
|
inline |
Definition at line 154 of file BLI_generic_span.hh.
|
inline |
Definition at line 163 of file BLI_generic_span.hh.
|
inline |
Definition at line 167 of file BLI_generic_span.hh.
|
inline |
Definition at line 169 of file BLI_generic_span.hh.
|
inline |
Definition at line 172 of file BLI_generic_span.hh.
|
inline |
Copy all values from another span into this span. This invokes undefined behavior when the destination contains uninitialized data and T is not trivially copy constructible. The size of both spans is expected to be the same.
Definition at line 273 of file BLI_generic_span.hh.
|
inline |
Definition at line 208 of file BLI_generic_span.hh.
|
inline |
Definition at line 247 of file BLI_generic_span.hh.
|
inline |
Definition at line 240 of file BLI_generic_span.hh.
|
inline |
Definition at line 193 of file BLI_generic_span.hh.
|
inline |
Definition at line 177 of file BLI_generic_span.hh.
|
inline |
Definition at line 213 of file BLI_generic_span.hh.
|
inline |
Definition at line 198 of file BLI_generic_span.hh.
|
inline |
Definition at line 203 of file BLI_generic_span.hh.
|
inline |
Definition at line 227 of file BLI_generic_span.hh.
|
inline |
Definition at line 235 of file BLI_generic_span.hh.
|
inline |
Definition at line 261 of file BLI_generic_span.hh.
|
inline |
Definition at line 254 of file BLI_generic_span.hh.
|
inline |
Definition at line 182 of file BLI_generic_span.hh.
|
inline |
Definition at line 188 of file BLI_generic_span.hh.
|
inline |
Definition at line 220 of file BLI_generic_span.hh.
|
protected |
Definition at line 148 of file BLI_generic_span.hh.
|
protected |
Definition at line 149 of file BLI_generic_span.hh.
|
protected |
Definition at line 147 of file BLI_generic_span.hh.