Blender
V3.3
|
#include <BLI_virtual_array.hh>
Public Member Functions | |
MutableVArraySpan ()=default | |
MutableVArraySpan (VMutableArray< T > varray, const bool copy_values_to_span=true) | |
MutableVArraySpan (MutableVArraySpan &&other) | |
~MutableVArraySpan () | |
MutableVArraySpan & | operator= (MutableVArraySpan &&other) |
const VMutableArray< T > & | varray () const |
void | save () |
void | disable_not_applied_warning () |
![]() | |
constexpr | MutableSpan ()=default |
constexpr | MutableSpan (T *start, const int64_t size) |
constexpr | MutableSpan (std::vector< T > &vector) |
template<std::size_t N> | |
constexpr | MutableSpan (std::array< T, N > &array) |
template<typename U , BLI_ENABLE_IF((is_span_convertible_pointer_v< U, T >)) > | |
constexpr | MutableSpan (MutableSpan< U > span) |
constexpr | operator Span< T > () const |
template<typename U , BLI_ENABLE_IF((is_span_convertible_pointer_v< T, U >)) > | |
constexpr | operator Span< U > () const |
constexpr int64_t | size () const |
constexpr bool | is_empty () const |
constexpr void | fill (const T &value) |
constexpr void | fill_indices (Span< int64_t > indices, const T &value) |
constexpr T * | data () const |
constexpr T * | begin () const |
constexpr T * | end () const |
constexpr std::reverse_iterator< T * > | rbegin () const |
constexpr std::reverse_iterator< T * > | rend () const |
constexpr T & | operator[] (const int64_t index) const |
constexpr MutableSpan | slice (const int64_t start, const int64_t size) const |
constexpr MutableSpan | slice (IndexRange range) const |
constexpr MutableSpan | drop_front (const int64_t n) const |
constexpr MutableSpan | drop_back (const int64_t n) const |
constexpr MutableSpan | take_front (const int64_t n) const |
constexpr MutableSpan | take_back (const int64_t n) const |
constexpr void | reverse () |
constexpr Span< T > | as_span () const |
constexpr IndexRange | index_range () const |
constexpr T & | first () const |
constexpr T & | last (const int64_t n=0) const |
constexpr int64_t | count (const T &value) const |
constexpr void | copy_from (Span< T > values) |
template<typename NewT > | |
constexpr MutableSpan< NewT > | cast () const |
Additional Inherited Members | |
![]() | |
using | value_type = T |
using | pointer = T * |
using | const_pointer = const T * |
using | reference = T & |
using | const_reference = const T & |
using | iterator = T * |
using | size_type = int64_t |
![]() | |
T * | data_ = nullptr |
int64_t | size_ = 0 |
Same as #VArraySpan, but for a mutable span. The important thing to note is that when changing this span, the results might not be immediately reflected in the underlying virtual array (only when the virtual array is a span internally). The save method can be used to write all changes to the underlying virtual array, if necessary.
Definition at line 1185 of file BLI_virtual_array.hh.
|
default |
Referenced by blender::MutableVArraySpan< T >::operator=().
|
inline |
Definition at line 1197 of file BLI_virtual_array.hh.
References blender::VArrayCommon< T >::common_info(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::CommonVArrayInfo::data, blender::VArrayCommon< T >::materialize_to_uninitialized(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::VArrayCommon< T >::size(), blender::CommonVArrayInfo::Span, T, blender::CommonVArrayInfo::type, and blender::Array< T, InlineBufferCapacity, Allocator >::~Array().
|
inline |
Definition at line 1222 of file BLI_virtual_array.hh.
References blender::VArrayCommon< T >::common_info(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::CommonVArrayInfo::data, blender::VArrayCommon< T >::size(), blender::CommonVArrayInfo::Span, T, and blender::CommonVArrayInfo::type.
|
inline |
Definition at line 1243 of file BLI_virtual_array.hh.
|
inline |
Definition at line 1279 of file BLI_virtual_array.hh.
|
inline |
Definition at line 1254 of file BLI_virtual_array.hh.
References blender::MutableVArraySpan< T >::MutableVArraySpan().
|
inline |
Definition at line 1270 of file BLI_virtual_array.hh.
References blender::Array< T, InlineBufferCapacity, Allocator >::data(), and blender::VMutableArray< T >::set_all().
Referenced by blender::bke::SpanAttributeWriter< T >::finish().
|
inline |
Definition at line 1264 of file BLI_virtual_array.hh.