|
Blender V4.3
|
#include <BLI_implicit_sharing_ptr.hh>
Public Member Functions | |
| ImplicitSharingPtrAndData ()=default | |
| ImplicitSharingPtrAndData (ImplicitSharingPtr<> sharing_info, const void *data) | |
| ImplicitSharingPtrAndData (const ImplicitSharingPtrAndData &other) | |
| ImplicitSharingPtrAndData (ImplicitSharingPtrAndData &&other) | |
| ImplicitSharingPtrAndData & | operator= (const ImplicitSharingPtrAndData &other) |
| ImplicitSharingPtrAndData & | operator= (ImplicitSharingPtrAndData &&other) |
| ~ImplicitSharingPtrAndData () | |
| bool | has_value () const |
Public Attributes | |
| ImplicitSharingPtr | sharing_info |
| const void * | data = nullptr |
Utility struct to allow used #ImplicitSharingPtr when it's necessary to type-erase the backing storage for user-exposed data. For example, blender::Vector, or #std::vector might be used to store an implicitly shared array that is only accessed with #Span or #MutableSpan.
This class handles RAII for the sharing info and the exposed data pointer. Retrieving the data with write access and type safety must be handled elsewhere.
Definition at line 173 of file BLI_implicit_sharing_ptr.hh.
|
default |
Referenced by operator=(), and operator=().
|
inline |
Definition at line 179 of file BLI_implicit_sharing_ptr.hh.
|
inline |
Definition at line 184 of file BLI_implicit_sharing_ptr.hh.
|
inline |
Definition at line 189 of file BLI_implicit_sharing_ptr.hh.
|
inline |
Definition at line 214 of file BLI_implicit_sharing_ptr.hh.
|
inline |
Definition at line 219 of file BLI_implicit_sharing_ptr.hh.
References blender::ImplicitSharingPtr< T, IsStrong >::has_value().
Referenced by blender::bke::CurvesEditHints::positions(), blender::bke::GreasePencilDrawingEditHints::positions(), blender::bke::CurvesEditHints::positions_for_write(), and blender::bke::GreasePencilDrawingEditHints::positions_for_write().
|
inline |
Definition at line 194 of file BLI_implicit_sharing_ptr.hh.
References ImplicitSharingPtrAndData().
|
inline |
Definition at line 204 of file BLI_implicit_sharing_ptr.hh.
References ImplicitSharingPtrAndData().
| const void* blender::ImplicitSharingPtrAndData::data = nullptr |
Definition at line 176 of file BLI_implicit_sharing_ptr.hh.
Referenced by blender::bke::CurvesEditHints::positions(), blender::bke::GreasePencilDrawingEditHints::positions(), and blender::bke::save_shared_attribute().
| ImplicitSharingPtr blender::ImplicitSharingPtrAndData::sharing_info |
Definition at line 175 of file BLI_implicit_sharing_ptr.hh.
Referenced by blender::bke::CurvesEditHints::positions_for_write(), and blender::bke::GreasePencilDrawingEditHints::positions_for_write().