|
Blender V5.0
|
#include <BLI_implicit_sharing_ptr.hh>
Public Member Functions | |
| ImplicitSharingPtrAndData ()=default | |
| ImplicitSharingPtrAndData (ImplicitSharingPtr<> sharing_info, const void *data) | |
| ImplicitSharingPtrAndData (const ImplicitSharingPtrAndData &other)=default | |
| 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 175 of file BLI_implicit_sharing_ptr.hh.
|
default |
Referenced by ImplicitSharingPtrAndData(), ImplicitSharingPtrAndData(), operator=(), and operator=().
|
inline |
Definition at line 181 of file BLI_implicit_sharing_ptr.hh.
References data, and sharing_info.
|
default |
References ImplicitSharingPtrAndData().
|
inline |
Definition at line 188 of file BLI_implicit_sharing_ptr.hh.
References data, ImplicitSharingPtrAndData(), nullptr, and sharing_info.
|
inline |
Definition at line 213 of file BLI_implicit_sharing_ptr.hh.
|
inline |
Definition at line 218 of file BLI_implicit_sharing_ptr.hh.
References blender::ImplicitSharingPtr< T, IsStrong >::has_value().
|
inline |
Definition at line 193 of file BLI_implicit_sharing_ptr.hh.
References ImplicitSharingPtrAndData().
|
inline |
Definition at line 203 of file BLI_implicit_sharing_ptr.hh.
References ImplicitSharingPtrAndData().
| const void* blender::ImplicitSharingPtrAndData::data = nullptr |
Definition at line 178 of file BLI_implicit_sharing_ptr.hh.
Referenced by ImplicitSharingPtrAndData(), ImplicitSharingPtrAndData(), and blender::modify_curves().
| ImplicitSharingPtr blender::ImplicitSharingPtrAndData::sharing_info |
Definition at line 177 of file BLI_implicit_sharing_ptr.hh.
Referenced by ImplicitSharingPtrAndData(), ImplicitSharingPtrAndData(), blender::bke::CurvesEditHints::positions_for_write(), and blender::bke::GreasePencilDrawingEditHints::positions_for_write().