|
Blender V5.3
|
Namespaces | |
| namespace | blenlib_detail |
| namespace | blenlib_internal |
| namespace | implicit_sharing |
| namespace | internal |
| namespace | iterator |
| namespace | math |
Functions | |
| template<class T, size_t N> | |
| constexpr size_t | ARRAY_SIZE (const T(&arg)[N]) noexcept |
| template<class T> | |
| constexpr std::enable_if_t< blenlib_internal::IsBoundedArray< T >::value, size_t > | BOUNDED_ARRAY_TYPE_SIZE () noexcept |
| template<typename T, typename... Args> | |
| constexpr uint64_t | get_default_hash (const T &v, const Args &...args) |
| AlignedIndexRanges | split_index_range_by_alignment (const IndexRange range, const int64_t alignment) |
| template<typename T> | |
| void | destruct_n (T *ptr, int64_t n) |
| template<typename T> | |
| void | default_construct_n (T *ptr, int64_t n) |
| template<typename T> | |
| void | initialized_copy_n (const T *src, int64_t n, T *dst) |
| template<typename T> | |
| void | uninitialized_copy_n (const T *src, int64_t n, T *dst) |
| template<typename From, typename To> | |
| void | uninitialized_convert_n (const From *src, int64_t n, To *dst) |
| template<typename T> | |
| void | initialized_move_n (T *src, int64_t n, T *dst) |
| template<typename T> | |
| void | uninitialized_move_n (T *src, int64_t n, T *dst) |
| template<typename T> | |
| void | initialized_relocate_n (T *src, int64_t n, T *dst) |
| template<typename T> | |
| void | uninitialized_relocate_n (T *src, int64_t n, T *dst) |
| template<typename T> | |
| void | initialized_fill_n (T *dst, int64_t n, const T &value) |
| template<typename T> | |
| void | uninitialized_fill_n (T *dst, int64_t n, const T &value) |
| constexpr int64_t | default_inline_buffer_capacity (size_t element_size) |
| template<typename Container> | |
| Container & | copy_assign_container (Container &dst, const Container &src) |
| template<typename Container> | |
| Container & | move_assign_container (Container &dst, Container &&src) noexcept(std::is_nothrow_move_constructible_v< Container >) |
| template<typename T> | |
| bool | assign_if_different (T &old_value, T &&new_value) |
| template<typename T> | |
| bool | assign_if_different (T &old_value, const T &new_value) |
| constexpr uint64_t | hash_string (StringRef str) |
| template<typename T> | |
| void | hash_unique_default (const T &value, UniqueHashBytes &hash) |
| template<typename T> requires (std::is_integral_v<T> || std::is_enum_v<T> || std::is_pointer_v<T>) | |
| void | hash_unique_default (const T &value, UniqueHashBytes &hash) |
| template<typename T> requires (std::is_floating_point_v<T>) | |
| void | hash_unique_default (const T &value, UniqueHashBytes &hash) |
| template<typename T> requires requires { value.hash_unique(hash); } | |
| void | hash_unique_default (const T &value, UniqueHashBytes &hash) |
| template<typename T, int Size> | |
| constexpr bool | value_is_zero_memory (const VecBase< T, Size > &v) |
| BLI_STATIC_ASSERT ((sizeof(BMHeader)<=16), "BMHeader size has grown!") | |
| void | bpy_bm_generic_invalidate (struct BPy_BMGeneric *self) |
| int | BLI_findindex (const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| int | BLI_findstringindex (const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| ListBase | BLI_listbase_from_link (Link *some_link) |
| template<typename T> | |
| ListBaseT< T > | BLI_listbase_from_link (T *some_link) |
| void * | BLI_findlink (const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_findlinkfrom (Link *start, int step) ATTR_WARN_UNUSED_RESULT |
| void * | BLI_findstring (const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_listbase_findafter_string (Link *link, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_findstring_ptr (const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_listbase_findafter_string_ptr (Link *link, const char *id, int offset) |
| void * | BLI_findptr (const ListBase *listbase, const void *ptr, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_listbase_bytes_find (const ListBase *listbase, const void *bytes, size_t bytes_size, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1 |
| void void * | BLI_listbase_string_or_index_find (const ListBase *listbase, const char *string, size_t string_offset, int index) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_rfindlink (const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_rfindstring (const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_rfindstring_ptr (const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_rfindptr (const ListBase *listbase, const void *ptr, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void * | BLI_listbase_bytes_rfind (const ListBase *listbase, const void *bytes, size_t bytes_size, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1 |
| void void | BLI_freelistN (ListBase *listbase) ATTR_NONNULL(1) |
| void | BLI_addtail (ListBase *listbase, void *vlink) ATTR_NONNULL(1) |
| void | BLI_remlink (ListBase *listbase, void *vlink) ATTR_NONNULL(1) |
| bool | BLI_remlink_safe (ListBase *listbase, void *vlink) ATTR_NONNULL(1) |
| void * | BLI_pophead (ListBase *listbase) ATTR_NONNULL(1) |
| void * | BLI_poptail (ListBase *listbase) ATTR_NONNULL(1) |
| void | BLI_addhead (ListBase *listbase, void *vlink) ATTR_NONNULL(1) |
| void | BLI_insertlinkbefore (ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1) |
| void | BLI_insertlinkafter (ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1) |
| void | BLI_insertlinkreplace (ListBase *listbase, void *vreplacelink, void *vnewlink) ATTR_NONNULL(1 |
| void void | BLI_listbase_sort (ListBase *listbase, int(*cmp)(const void *, const void *)) ATTR_NONNULL(1 |
| void void void | BLI_listbase_sort_r (ListBase *listbase, int(*cmp)(void *, const void *, const void *), void *thunk) ATTR_NONNULL(1 |
| void void void bool | BLI_listbase_link_move (ListBase *listbase, void *vlink, int step) ATTR_NONNULL() |
| bool | BLI_listbase_move_index (ListBase *listbase, int from, int to) ATTR_NONNULL() |
| void | BLI_freelist (ListBase *listbase) ATTR_NONNULL(1) |
| int | BLI_listbase_count_at_most (const ListBase *listbase, int count_max) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| BLI_INLINE bool | BLI_listbase_count_is_equal_to (const ListBase *listbase, const int count_cmp) |
| int | BLI_listbase_count (const ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
| void | BLI_freelinkN (ListBase *listbase, void *vlink) ATTR_NONNULL(1) |
| void | BLI_listbase_swaplinks (ListBase *listbase, void *vlinka, void *vlinkb) ATTR_NONNULL(1 |
| void void | BLI_listbases_swaplinks (ListBase *listbasea, ListBase *listbaseb, void *vlinka, void *vlinkb) ATTR_NONNULL(2 |
| void void void | BLI_movelisttolist (ListBase *dst, ListBase *src) ATTR_NONNULL(1 |
| void void void void | BLI_movelisttolist_reverse (ListBase *dst, ListBase *src) ATTR_NONNULL(1 |
| void void void void void | BLI_listbase_split_after (ListBase *original_listbase, ListBase *split_listbase, void *vlink) ATTR_NONNULL(1 |
| void void void void void void | BLI_duplicatelist (ListBase *dst, const ListBase *src) ATTR_NONNULL(1 |
| void void void void void void void | BLI_listbase_reverse (ListBase *lb) ATTR_NONNULL(1) |
| void | BLI_listbase_rotate_first (ListBase *lb, void *vlink) ATTR_NONNULL(1 |
| void void | BLI_listbase_rotate_last (ListBase *lb, void *vlink) ATTR_NONNULL(1 |
| void void BLI_INLINE bool | BLI_listbase_is_single (const ListBase *lb) |
| BLI_INLINE bool | BLI_listbase_is_empty (const ListBase *lb) |
| BLI_INLINE void | BLI_listbase_clear (ListBase *lb) |
| bool | BLI_listbase_validate (ListBase *lb) |
| BLI_INLINE bool | BLI_listbase_equal (const ListBase *a, const ListBase *b) |
| LinkData * | BLI_genericNodeN (void *data) |
| BLI_INLINE bool | operator== (const ListBase &a, const ListBase &b) |
| BLI_INLINE bool | operator!= (const ListBase &a, const ListBase &b) |
| template<typename T, typename Fn> | |
| T * | BLI_listbase_find (const ListBaseT< T > &listbase, Fn &&predicate) |
| void | BLI_threadapi_init () |
| void | BLI_threadapi_exit () |
| void | BLI_threadpool_init (ListBaseT< ThreadSlot > *threadbase, void *(*do_thread)(void *), int tot) |
| int | BLI_available_threads (ListBaseT< ThreadSlot > *threadbase) |
| int | BLI_threadpool_available_thread_index (ListBaseT< ThreadSlot > *threadbase) |
| void | BLI_threadpool_insert (ListBaseT< ThreadSlot > *threadbase, void *callerdata) |
| void | BLI_threadpool_remove (ListBaseT< ThreadSlot > *threadbase, void *callerdata) |
| void | BLI_threadpool_remove_index (ListBaseT< ThreadSlot > *threadbase, int index) |
| void | BLI_threadpool_clear (ListBaseT< ThreadSlot > *threadbase) |
| void | BLI_threadpool_end (ListBaseT< ThreadSlot > *threadbase) |
| int | BLI_thread_is_main () |
| int | BLI_system_thread_count () |
| void | BLI_system_num_threads_override_set (int num) |
| int | BLI_system_num_threads_override_get () |
| void | BLI_thread_lock (int type) |
| void | BLI_thread_unlock (int type) |
| void | BLI_mutex_init (ThreadMutex *mutex) |
| void | BLI_mutex_end (ThreadMutex *mutex) |
| ThreadMutex * | BLI_mutex_alloc () |
| void | BLI_mutex_free (ThreadMutex *mutex) |
| void | BLI_mutex_lock (ThreadMutex *mutex) |
| bool | BLI_mutex_trylock (ThreadMutex *mutex) |
| void | BLI_mutex_unlock (ThreadMutex *mutex) |
| void | BLI_spin_init (SpinLock *spin) |
| void | BLI_spin_lock (SpinLock *spin) |
| void | BLI_spin_unlock (SpinLock *spin) |
| void | BLI_spin_end (SpinLock *spin) |
| void | BLI_rw_mutex_init (ThreadRWMutex *mutex) |
| void | BLI_rw_mutex_end (ThreadRWMutex *mutex) |
| ThreadRWMutex * | BLI_rw_mutex_alloc () |
| void | BLI_rw_mutex_free (ThreadRWMutex *mutex) |
| void | BLI_rw_mutex_lock (ThreadRWMutex *mutex, int mode) |
| void | BLI_rw_mutex_unlock (ThreadRWMutex *mutex) |
| TicketMutex * | BLI_ticket_mutex_alloc () |
| void | BLI_ticket_mutex_free (TicketMutex *ticket) |
| void | BLI_ticket_mutex_lock (TicketMutex *ticket) |
| bool | BLI_ticket_mutex_lock_check_recursive (TicketMutex *ticket) |
| void | BLI_ticket_mutex_unlock (TicketMutex *ticket) |
| void | BLI_condition_init (ThreadCondition *cond) |
| void | BLI_condition_wait (ThreadCondition *cond, ThreadMutex *mutex) |
| void | BLI_condition_wait_global_mutex (ThreadCondition *cond, int type) |
| void | BLI_condition_notify_one (ThreadCondition *cond) |
| void | BLI_condition_notify_all (ThreadCondition *cond) |
| void | BLI_condition_end (ThreadCondition *cond) |
| ThreadQueue * | BLI_thread_queue_init () |
| void | BLI_thread_queue_free (ThreadQueue *queue) |
| uint64_t | BLI_thread_queue_push (ThreadQueue *queue, void *work, ThreadQueueWorkPriority priority) |
| bool | BLI_thread_queue_cancel_work (ThreadQueue *queue, uint64_t work_id) |
| void * | BLI_thread_queue_pop (ThreadQueue *queue) |
| void * | BLI_thread_queue_pop_timeout (ThreadQueue *queue, int ms) |
| int | BLI_thread_queue_len (ThreadQueue *queue) |
| bool | BLI_thread_queue_is_empty (ThreadQueue *queue) |
| void | BLI_thread_queue_wait_finish (ThreadQueue *queue) |
| void | BLI_thread_queue_nowait (ThreadQueue *queue) |
| ENUM_OPERATORS (wmOperatorStatus) | |
Simple Math Macros | |
| constexpr int64_t | is_power_of_2 (const int64_t x) |
| constexpr int64_t | log2_floor (const int64_t x) |
| constexpr int64_t | log2_ceil (const int64_t x) |
| constexpr int64_t | power_of_2_max (const int64_t x) |
Struct After Macros | |
Typically used to copy/clear polymorphic structs which have a generic member at the start which needs to be left as-is. | |
| constexpr bool | memory_is_zero (const void *data, const size_t size) |
| template<typename T> | |
| constexpr bool | value_is_zero_memory (const T &value) |
#StringRefBase Inline Methods | |
| constexpr int64_t | index_or_npos_to_int64 (size_t index) |
Operator Overloads | |
| std::ostream & | operator<< (std::ostream &stream, StringRef ref) |
| std::ostream & | operator<< (std::ostream &stream, StringRefNull ref) |
| std::string | operator+ (StringRef a, StringRef b) |
| constexpr bool | operator== (StringRef a, StringRef b) |
| constexpr bool | operator!= (StringRef a, StringRef b) |
| constexpr bool | operator< (StringRef a, StringRef b) |
| constexpr bool | operator> (StringRef a, StringRef b) |
| constexpr bool | operator<= (StringRef a, StringRef b) |
| constexpr bool | operator>= (StringRef a, StringRef b) |
Formatting | |
| std::string_view | format_as (StringRef str) |
Variables | |
| template<typename T> | |
| constexpr bool | is_trivial_extended_v = std::is_trivial_v<T> |
| template<typename T> | |
| constexpr bool | is_trivially_destructible_extended_v |
| template<typename T> | |
| constexpr bool | is_trivially_copy_constructible_extended_v |
| template<typename T> | |
| constexpr bool | is_trivially_move_constructible_extended_v |
| template<typename From, typename To> | |
| constexpr bool | is_convertible_pointer_v |
| template<typename From, typename To> | |
| constexpr bool | is_span_convertible_pointer_v |
| template<typename T, typename... Args> | |
| constexpr bool | is_same_any_v = (std::is_same_v<T, Args> || ...) |
| template<typename T> | |
| static constexpr bool | is_Vector_v = false |
| template<typename T, int64_t InlineBufferCapacity, typename Allocator> | |
| static constexpr bool | is_Vector_v< Vector< T, InlineBufferCapacity, Allocator > > = true |
| using blender::blender::BMEdgeFilterFunc = bool (*)(const BMEdge *, void *user_data) |
Definition at line 568 of file bmesh_polygon.hh.
| using blender::blender::BMElemFilterFunc = bool (*)(const BMElem *, void *user_data) |
Definition at line 566 of file bmesh_polygon.hh.
| using blender::blender::BMFaceFilterFunc = bool (*)(const BMFace *, void *user_data) |
Definition at line 569 of file bmesh_polygon.hh.
| using blender::blender::BMLoopFilterFunc = bool (*)(const BMLoop *, void *user_data) |
Definition at line 570 of file bmesh_polygon.hh.
| using blender::blender::BMLoopPairFilterFunc = bool (*)(const BMLoop *, const BMLoop *, void *user_data) |
Definition at line 571 of file bmesh_polygon.hh.
| using blender::blender::BMVertFilterFunc = bool (*)(const BMVert *, void *user_data) |
Definition at line 567 of file bmesh_polygon.hh.
| using blender::blender::char2 = VecBase<int8_t, 2> |
Definition at line 773 of file bmesh_polygon.hh.
| using blender::blender::char3 = VecBase<int8_t, 3> |
Definition at line 774 of file bmesh_polygon.hh.
| using blender::blender::char4 = VecBase<int8_t, 4> |
Definition at line 775 of file bmesh_polygon.hh.
| using blender::blender::destruct_ptr = std::unique_ptr<T, DestructValueAtAddress<T>> |
A destruct_ptr is like unique_ptr, but it will only call the destructor and will not free the memory. This is useful when using custom allocators.
Definition at line 111 of file bmesh_polygon.hh.
| using blender::blender::double2 = VecBase<double, 2> |
Definition at line 802 of file bmesh_polygon.hh.
| using blender::blender::double3 = VecBase<double, 3> |
Definition at line 803 of file bmesh_polygon.hh.
| using blender::blender::double4 = VecBase<double, 4> |
Definition at line 804 of file bmesh_polygon.hh.
| using blender::blender::float1 = VecBase<float, 1> |
Definition at line 797 of file bmesh_polygon.hh.
| using blender::blender::float2 = VecBase<float, 2> |
Definition at line 798 of file bmesh_polygon.hh.
| using blender::blender::float3 = VecBase<float, 3> |
Definition at line 799 of file bmesh_polygon.hh.
| using blender::blender::float4 = VecBase<float, 4> |
Definition at line 800 of file bmesh_polygon.hh.
Definition at line 21 of file bmesh_polygon.hh.
| using blender::blender::int2 = VecBase<int32_t, 2> |
Definition at line 781 of file bmesh_polygon.hh.
| using blender::blender::int3 = VecBase<int32_t, 3> |
Definition at line 782 of file bmesh_polygon.hh.
| using blender::blender::int4 = VecBase<int32_t, 4> |
Definition at line 783 of file bmesh_polygon.hh.
| using blender::blender::RawVector = Vector<T, InlineBufferCapacity, RawAllocator> |
Same as a normal Vector, but does not use Blender's guarded allocator. This is useful when allocating memory with static storage duration.
Definition at line 1161 of file bmesh_polygon.hh.
| using blender::blender::short2 = VecBase<int16_t, 2> |
Definition at line 789 of file bmesh_polygon.hh.
| using blender::blender::short3 = VecBase<int16_t, 3> |
Definition at line 790 of file bmesh_polygon.hh.
| using blender::blender::short4 = VecBase<int16_t, 4> |
Definition at line 791 of file bmesh_polygon.hh.
| typedef pthread_spinlock_t blender::blender::SpinLock |
Definition at line 109 of file render_preview.cc.
| typedef pthread_cond_t blender::blender::ThreadCondition |
Definition at line 150 of file render_preview.cc.
| typedef pthread_mutex_t blender::blender::ThreadMutex |
Definition at line 81 of file render_preview.cc.
| typedef pthread_rwlock_t blender::blender::ThreadRWMutex |
Definition at line 124 of file render_preview.cc.
| using blender::blender::uchar2 = VecBase<uint8_t, 2> |
Definition at line 777 of file bmesh_polygon.hh.
| using blender::blender::uchar3 = VecBase<uint8_t, 3> |
Definition at line 778 of file bmesh_polygon.hh.
| using blender::blender::uchar4 = VecBase<uint8_t, 4> |
Definition at line 779 of file bmesh_polygon.hh.
| using blender::blender::uint2 = VecBase<uint32_t, 2> |
Definition at line 785 of file bmesh_polygon.hh.
| using blender::blender::uint3 = VecBase<uint32_t, 3> |
Definition at line 786 of file bmesh_polygon.hh.
| using blender::blender::uint4 = VecBase<uint32_t, 4> |
Definition at line 787 of file bmesh_polygon.hh.
| using blender::blender::ushort2 = VecBase<uint16_t, 2> |
Definition at line 793 of file bmesh_polygon.hh.
| using blender::blender::ushort3 = VecBase<uint16_t, 3> |
Definition at line 794 of file bmesh_polygon.hh.
| using blender::blender::ushort4 = VecBase<uint16_t, 4> |
Definition at line 795 of file bmesh_polygon.hh.
| using blender::blender::wmGizmoFnCursorGet = int (*)(wmGizmo *) |
Definition at line 56 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnDraw = void (*)(const bContext *, wmGizmo *) |
Definition at line 45 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnDrawSelect = void (*)(const bContext *, wmGizmo *, int) |
Definition at line 46 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnExit = void (*)(bContext *, wmGizmo *, const bool) |
Definition at line 55 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnFree = void (*)(wmGizmo *) |
Definition at line 59 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnInvoke = wmOperatorStatus (*)(bContext *, wmGizmo *, const wmEvent *) |
Definition at line 54 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnMatrixBasisGet = void (*)(const wmGizmo *, float[4][4]) |
Definition at line 53 of file wm_gizmo_intern.hh.
Definition at line 48 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnPropertyUpdate = void (*)(wmGizmo *, wmGizmoProperty *) |
Definition at line 52 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnScreenBoundsGet = bool (*)(const bContext *, wmGizmo *, rcti *r_bounding_box) |
Definition at line 57 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnSelectRefresh = void (*)(wmGizmo *) |
Definition at line 58 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnSetup = void (*)(wmGizmo *) |
Definition at line 44 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoFnTestSelect = int (*)(bContext *, wmGizmo *, const int mval[2]) |
Definition at line 47 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoGroupFnDrawBackground = void (*)(const bContext *, wmGizmoGroup *) |
Definition at line 33 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoGroupFnDrawPrepare = void (*)(const bContext *, wmGizmoGroup *) |
Definition at line 32 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoGroupFnInit = void (*)(const bContext *, wmGizmoGroup *) |
Definition at line 30 of file wm_gizmo_intern.hh.
Definition at line 34 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoGroupFnMsgBusSubscribe = void (*)(const bContext *, wmGizmoGroup *, wmMsgBus *) |
Definition at line 39 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoGroupFnPoll = bool (*)(const bContext *, wmGizmoGroupType *) |
Definition at line 29 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoGroupFnRefresh = void (*)(const bContext *, wmGizmoGroup *) |
Definition at line 31 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoGroupFnSetupKeymap = wmKeyMap *(*)(const wmGizmoGroupType *, wmKeyConfig *) |
Definition at line 38 of file wm_gizmo_intern.hh.
To inspect the RNA properties gizmos are manipulating (can be multiple). Used e.g. for auto-keying.
| gz_prop | The gizmo property to inspect. |
| callback | Called for each RNA property being manipulated.
|
Definition at line 82 of file wm_gizmo_intern.hh.
| using blender::blender::wmGizmoPropertyFnFree = void (*)(const wmGizmo *, wmGizmoProperty *) |
Definition at line 86 of file wm_gizmo_intern.hh.
Definition at line 62 of file wm_gizmo_intern.hh.
Definition at line 70 of file wm_gizmo_intern.hh.
Definition at line 66 of file wm_gizmo_intern.hh.
| anonymous enum |
#BMHeader.hflag (char)
| Enumerator | |
|---|---|
| BM_ELEM_SELECT | |
| BM_ELEM_HIDDEN | |
| BM_ELEM_SEAM | |
| BM_ELEM_SMOOTH | Used for faces and edges, note from the user POV, this is a sharp edge when disabled. |
| BM_ELEM_TAG | Internal flag, used for ensuring correct normals during multi-resolution interpolation, and any other time when temp tagging is handy. always assume dirty & clear before use. |
| BM_ELEM_SELECT_UV | Used for BMLoop for loop-vertex selection & BMFace when the face is selected. The BMLoop also stores edge selection: BM_ELEM_SELECT_UV_EDGE. |
| BM_ELEM_TAG_ALT | Spare tag, assumed dirty, use define in each function to name based on use. |
| BM_ELEM_INTERNAL_TAG | For low level internal API tagging, since tools may want to tag verts and not have functions clobber them. Leave cleared! |
Definition at line 529 of file bmesh_polygon.hh.
| anonymous enum |
#BMesh.spacearr_dirty
| Enumerator | |
|---|---|
| BM_SPACEARR_DIRTY | |
| BM_SPACEARR_DIRTY_ALL | |
| BM_SPACEARR_BMO_SET | |
Definition at line 477 of file bmesh_polygon.hh.
| anonymous enum |
#BMHeader.htype (char)
| Enumerator | |
|---|---|
| BM_VERT | |
| BM_EDGE | |
| BM_LOOP | |
| BM_FACE | |
Definition at line 445 of file bmesh_polygon.hh.
| anonymous enum |
One custom lock available now. can be extended.
| Enumerator | |
|---|---|
| LOCK_IMAGE | |
| LOCK_DRAW_IMAGE | |
| LOCK_VIEWER | |
| LOCK_CUSTOM1 | |
| LOCK_NODES | |
| LOCK_MOVIECLIP | |
| LOCK_FFTW | |
| LOCK_VIEW3D | |
Definition at line 65 of file render_preview.cc.
| enum blender::blender::eCustomDataLayer_Flag : int |
#CustomDataLayer.flag
| Enumerator | |
|---|---|
| CD_FLAG_NOCOPY | Indicates layer should not be copied by #CustomData_from_template or CustomData_copy_data. |
| CD_FLAG_UNUSED | |
| CD_FLAG_TEMPORARY | Indicates the layer is only temporary, also implies no copy |
| CD_FLAG_EXTERNAL | Indicates the layer is stored in an external file |
| CD_FLAG_IN_MEMORY | Indicates external data is read into memory |
| CD_FLAG_RUNTIME_NOINTERP | Indicates the layer should not be interpolated (the default value is used instead). Run-time only: set from the layer name when the layer is added, never written to files (cleared on read).
|
Definition at line 177 of file bmesh_polygon.hh.
| enum blender::blender::eCustomDataType : int |
#CustomDataLayer.type
| Enumerator | |
|---|---|
| CD_AUTO_FROM_NAME | Used by GPU attributes in the cases when we don't know which layer we are addressing in advance. |
| CD_MDEFORMVERT | |
| CD_MFACE | |
| CD_MTFACE | |
| CD_MCOL | |
| CD_ORIGINDEX | |
| CD_NORMAL | Used as temporary storage for some areas that support interpolating custom normals. Using a separate type from generic 3D vectors is a simple way of keeping values normalized. |
| CD_PROP_FLOAT | |
| CD_PROP_INT32 | |
| CD_PROP_STRING | |
| CD_ORIGSPACE | |
| CD_ORCO | |
| CD_PROP_BYTE_COLOR | |
| CD_TANGENT | Previously used for runtime corner tangent storage in mesh CustomData. Currently only used as an identifier to choose tangents in a few places. |
| CD_MDISPS | |
| CD_PROP_FLOAT4X4 | |
| CD_PROP_INT16_2D | |
| CD_CLOTH_ORCO | |
| CD_PROP_FLOAT4 | |
| CD_SHAPE_KEYINDEX | |
| CD_SHAPEKEY | |
| CD_ORIGSPACE_MLOOP | |
| CD_BM_ELEM_PYPTR | |
| CD_GRID_PAINT_MASK | |
| CD_MLOOPTANGENT | |
| CD_TESSLOOPNORMAL | |
| CD_PROP_INT8 | |
| CD_PROP_INT32_2D | |
| CD_PROP_COLOR | |
| CD_PROP_FLOAT3 | |
| CD_PROP_FLOAT2 | |
| CD_PROP_BOOL | |
| CD_PROP_QUATERNION | |
| CD_NUMTYPES | |
Definition at line 21 of file bmesh_polygon.hh.
| enum blender::blender::eOperator_Flag : short |
#wmOperator.flag
| Enumerator | |
|---|---|
| OP_IS_INVOKE | Low level flag so exec() operators can tell if they were invoked, use with care. Typically this shouldn't make any difference, but it rare cases its needed (see smooth-view). |
| OP_IS_REPEAT | So we can detect if an operators exec() call is activated by adjusting the last action. |
| OP_IS_REPEAT_LAST | So we can detect if an operators exec() call is activated from #SCREEN_OT_repeat_last. This difference can be important because previous settings may be used, even with PROP_SKIP_SAVE the repeat last operator will use the previous settings. Unlike OP_IS_REPEAT the selection (and context generally) may be different each time. See #60777 for an example of when this is needed. |
| OP_IS_MODAL_GRAB_CURSOR | When the cursor is grabbed |
| OP_IS_MODAL_CURSOR_REGION | Allow modal operators to have the region under the cursor for their context (the region-type is maintained to prevent errors). |
Definition at line 47 of file wm_gizmo_intern.hh.
| Enumerator | |
|---|---|
| BLI_THREAD_QUEUE_WORK_PRIORITY_LOW | |
| BLI_THREAD_QUEUE_WORK_PRIORITY_NORMAL | |
| BLI_THREAD_QUEUE_WORK_PRIORITY_HIGH | |
Definition at line 165 of file render_preview.cc.
Operator type return flags: exec(), invoke() modal(), return values.
Definition at line 18 of file wm_gizmo_intern.hh.
|
constexprnoexcept |
Size of a bounded array provided as an arg.
The arg must be a bounded array, such as int[7] or MyType[11]. Returns the number of elements in the array, known at the compile time.
Definition at line 608 of file blenkernel/intern/sound.cc.
References CLOG_DEBUG, and LOG.
|
inline |
Definition at line 335 of file bmesh_polygon.hh.
|
inline |
Returns true if the value is different and was assigned.
Definition at line 327 of file bmesh_polygon.hh.
| void blender::blender::BLI_addhead | ( | ListBase * | listbase, |
| void * | vlink ) |
Prepends vlink (assumed to begin with a Link) onto listbase.
| void blender::blender::BLI_addtail | ( | ListBase * | listbase, |
| void * | vlink ) |
Appends vlink (assumed to begin with a Link) onto listbase.
| int blender::blender::BLI_available_threads | ( | ListBaseT< ThreadSlot > * | threadbase | ) |
Amount of available threads.
| void blender::blender::BLI_condition_end | ( | ThreadCondition * | cond | ) |
| void blender::blender::BLI_condition_init | ( | ThreadCondition * | cond | ) |
| void blender::blender::BLI_condition_notify_all | ( | ThreadCondition * | cond | ) |
| void blender::blender::BLI_condition_notify_one | ( | ThreadCondition * | cond | ) |
| void blender::blender::BLI_condition_wait | ( | ThreadCondition * | cond, |
| ThreadMutex * | mutex ) |
| void blender::blender::BLI_condition_wait_global_mutex | ( | ThreadCondition * | cond, |
| int | type ) |
| void void void void void void blender::blender::BLI_duplicatelist | ( | ListBase * | dst, |
| const ListBase * | src ) |
Sets dst to a duplicate of the entire contents of src. dst may be the same as src.
| int blender::blender::BLI_findindex | ( | const ListBase * | listbase, |
| const void * | vlink ) |
Returns the position of vlink within listbase, numbering from 0, or -1 if not found.
| void * blender::blender::BLI_findlink | ( | const ListBase * | listbase, |
| int | number ) |
Returns the nth element of listbase, numbering from 0.
| void * blender::blender::BLI_findlinkfrom | ( | Link * | start, |
| int | step ) |
Returns the element before/after link that is step links away, numbering from 0. step is allowed to be negative. Returns NULL when the link is out-of-bounds.
| void * blender::blender::BLI_findptr | ( | const ListBase * | listbase, |
| const void * | ptr, | ||
| int | offset ) |
Finds the first element of listbase which contains the specified pointer value at the specified offset, returning NULL if not found.
| void * blender::blender::BLI_findstring | ( | const ListBase * | listbase, |
| const char * | id, | ||
| int | offset ) |
Finds the first element of listbase which contains the null-terminated string id at the specified offset, returning NULL if not found.
| void * blender::blender::BLI_findstring_ptr | ( | const ListBase * | listbase, |
| const char * | id, | ||
| int | offset ) |
Finds the first element of listbase which contains a pointer to the null-terminated string id at the specified offset, returning NULL if not found.
| int blender::blender::BLI_findstringindex | ( | const ListBase * | listbase, |
| const char * | id, | ||
| int | offset ) |
Returns the 0-based index of the first element of listbase which contains the specified null-terminated string at the specified offset, or -1 if not found.
| void blender::blender::BLI_freelinkN | ( | ListBase * | listbase, |
| void * | vlink ) |
Removes vlink from listbase and disposes of it. Assumes it is linked into there!
References blender::MA_CUBE, and blender::MA_SHADERBALL.
| void blender::blender::BLI_freelist | ( | ListBase * | listbase | ) |
Removes and disposes of the entire contents of listbase using direct free(3).
References blender::G.
| void void blender::blender::BLI_freelistN | ( | ListBase * | listbase | ) |
Removes and disposes of the entire contents of listbase using guardedalloc.
| LinkData * blender::blender::BLI_genericNodeN | ( | void * | data | ) |
Create a generic list node containing link to provided data.
| void blender::blender::BLI_insertlinkafter | ( | ListBase * | listbase, |
| void * | vprevlink, | ||
| void * | vnewlink ) |
Inserts vnewlink immediately following vprevlink in listbase. Or, if vprevlink is NULL, puts vnewlink at the front of the list.
References blender::G.
| void blender::blender::BLI_insertlinkbefore | ( | ListBase * | listbase, |
| void * | vnextlink, | ||
| void * | vnewlink ) |
Inserts vnewlink immediately preceding vnextlink in listbase. Or, if vnextlink is NULL, puts vnewlink at the end of the list.
| void blender::blender::BLI_insertlinkreplace | ( | ListBase * | listbase, |
| void * | vreplacelink, | ||
| void * | vnewlink ) |
Insert a link in place of another, without changing its position in the list.
Puts vnewlink in the position of vreplacelink, removing vreplacelink.
| void * blender::blender::BLI_listbase_bytes_find | ( | const ListBase * | listbase, |
| const void * | bytes, | ||
| size_t | bytes_size, | ||
| int | offset ) |
Finds the first element of listbase which contains the specified bytes at the specified offset, returning NULL if not found.
| void * blender::blender::BLI_listbase_bytes_rfind | ( | const ListBase * | listbase, |
| const void * | bytes, | ||
| size_t | bytes_size, | ||
| int | offset ) |
Finds the last element of listbase which contains the specified bytes at the specified offset, returning NULL if not found.
| BLI_INLINE void blender::blender::BLI_listbase_clear | ( | ListBase * | lb | ) |
Definition at line 306 of file render_preview.cc.
References blender::switch_preview_floor_material().
| int blender::blender::BLI_listbase_count | ( | const ListBase * | listbase | ) |
Returns the number of elements in listbase.
| int blender::blender::BLI_listbase_count_at_most | ( | const ListBase * | listbase, |
| int | count_max ) |
Returns the number of elements in listbase, up until (and including count_max)
References blender::BKE_main_free(), and blender::G_pr_main_grease_pencil.
| BLI_INLINE bool blender::blender::BLI_listbase_count_is_equal_to | ( | const ListBase * | listbase, |
| const int | count_cmp ) |
Returns true when the number of items in listbase matches count_cmp.
Definition at line 239 of file render_preview.cc.
| BLI_INLINE bool blender::blender::BLI_listbase_equal | ( | const ListBase * | a, |
| const ListBase * | b ) |
Equality check for ListBase.
This only shallowly compares the ListBase itself (so the first/last pointers), and does not do any equality checks on the list items.
Definition at line 323 of file render_preview.cc.
References blender::switch_preview_floor_visibility().
| T * blender::blender::BLI_listbase_find | ( | const ListBaseT< T > & | listbase, |
| Fn && | predicate ) |
Definition at line 386 of file render_preview.cc.
References blender::BKE_ntree_update_after_single_tree_change(), blender::bke::node_find_socket(), blender::bke::node_set_active(), output, blender::SOCK_IN, and blender::SOCK_OUT.
| void * blender::blender::BLI_listbase_findafter_string | ( | Link * | link, |
| const char * | id, | ||
| int | offset ) |
Finds the first element in the listbase after the given link element which contains the null-terminated string id at the specified offset, returning nullptr if not found.
| void * blender::blender::BLI_listbase_findafter_string_ptr | ( | Link * | link, |
| const char * | id, | ||
| int | offset ) |
Finds the first element in the listbase after the given link element which contains a pointer to the null-terminated string id at the specified offset, returning NULL if not found.
Return a typed ListBase representing the entire list the given link is in.
Definition at line 44 of file render_preview.cc.
| BLI_INLINE bool blender::blender::BLI_listbase_is_empty | ( | const ListBase * | lb | ) |
Definition at line 302 of file render_preview.cc.
| void void BLI_INLINE bool blender::blender::BLI_listbase_is_single | ( | const ListBase * | lb | ) |
Utility functions to avoid first/last references inline all over.
Definition at line 298 of file render_preview.cc.
| void void void bool blender::blender::BLI_listbase_link_move | ( | ListBase * | listbase, |
| void * | vlink, | ||
| int | step ) |
Reinsert vlink relative to its current position but offset by step. Doesn't move item if new position would exceed list (could optionally move to head/tail).
| step | Absolute value defines step size, sign defines direction. E.g pass -1 to move vlink before previous, or 1 to move behind next. |
| bool blender::blender::BLI_listbase_move_index | ( | ListBase * | listbase, |
| int | from, | ||
| int | to ) |
Move the link at the index from to the position at index to.
References ELEM, blender::PR_BUTS_RENDER, and blender::PR_ICON_RENDER.
| void void void void void void void blender::blender::BLI_listbase_reverse | ( | ListBase * | lb | ) |
References blender::ED_preview_collection_name(), and STREQ.
| void blender::blender::BLI_listbase_rotate_first | ( | ListBase * | lb, |
| void * | vlink ) |
| vlink | Link to make first. |
References blender::COLLECTION_HIDE_RENDER.
| void void blender::blender::BLI_listbase_rotate_last | ( | ListBase * | lb, |
| void * | vlink ) |
| vlink | Link to make last. |
| void void blender::blender::BLI_listbase_sort | ( | ListBase * | listbase, |
| int(* | cmp )(const void *, const void *) ) |
Sorts the elements of listbase into the order defined by cmp (which should return 1 if its first arg should come after its second arg). This uses insertion sort, so NOT ok for large list.
| void void void blender::blender::BLI_listbase_sort_r | ( | ListBase * | listbase, |
| int(* | cmp )(void *, const void *, const void *), | ||
| void * | thunk ) |
| void void void void void blender::blender::BLI_listbase_split_after | ( | ListBase * | original_listbase, |
| ListBase * | split_listbase, | ||
| void * | vlink ) |
Split original_listbase after given vlink, putting the remaining of the list into given split_listbase.
| void void * blender::blender::BLI_listbase_string_or_index_find | ( | const ListBase * | listbase, |
| const char * | string, | ||
| size_t | string_offset, | ||
| int | index ) |
Find the first item in the list that matches the given string, or the given index as fallback.
| void blender::blender::BLI_listbase_swaplinks | ( | ListBase * | listbase, |
| void * | vlinka, | ||
| void * | vlinkb ) |
Swaps vlinka and vlinkb in the list. Assumes they are both already in the list!
References blender::MA_CLOTH, blender::MA_FLUID, and blender::MA_SPHERE_A.
| bool blender::blender::BLI_listbase_validate | ( | ListBase * | lb | ) |
Validate the integrity of a given ListBase.
References blender::preview_floor_material_name().
| void void blender::blender::BLI_listbases_swaplinks | ( | ListBase * | listbasea, |
| ListBase * | listbaseb, | ||
| void * | vlinka, | ||
| void * | vlinkb ) |
Swaps vlinka and vlinkb from their respective lists. Assumes they are both already in their listbasea!
Moves the entire contents of src onto the end of dst.
Moves the entire contents of src at the beginning of dst.
References BLI_assert_msg.
| ThreadMutex * blender::blender::BLI_mutex_alloc | ( | ) |
| void blender::blender::BLI_mutex_end | ( | ThreadMutex * | mutex | ) |
| void blender::blender::BLI_mutex_free | ( | ThreadMutex * | mutex | ) |
| void blender::blender::BLI_mutex_init | ( | ThreadMutex * | mutex | ) |
| void blender::blender::BLI_mutex_lock | ( | ThreadMutex * | mutex | ) |
| bool blender::blender::BLI_mutex_trylock | ( | ThreadMutex * | mutex | ) |
| void blender::blender::BLI_mutex_unlock | ( | ThreadMutex * | mutex | ) |
| void * blender::blender::BLI_pophead | ( | ListBase * | listbase | ) |
Removes the head from listbase and returns it.
| void * blender::blender::BLI_poptail | ( | ListBase * | listbase | ) |
Removes the tail from listbase and returns it.
| void blender::blender::BLI_remlink | ( | ListBase * | listbase, |
| void * | vlink ) |
Removes vlink from listbase. Assumes it is linked into there!
| bool blender::blender::BLI_remlink_safe | ( | ListBase * | listbase, |
| void * | vlink ) |
Checks that vlink is linked into listbase, removing it from there if so.
References blender::preview_kill_jobs_for_undo.
| void * blender::blender::BLI_rfindlink | ( | const ListBase * | listbase, |
| int | number ) |
Returns the nth-last element of listbase, numbering from 0.
| void * blender::blender::BLI_rfindptr | ( | const ListBase * | listbase, |
| const void * | ptr, | ||
| int | offset ) |
Finds the last element of listbase which contains the specified pointer value at the specified offset, returning NULL if not found.
| void * blender::blender::BLI_rfindstring | ( | const ListBase * | listbase, |
| const char * | id, | ||
| int | offset ) |
Finds the last element of listbase which contains the null-terminated string id at the specified offset, returning NULL if not found.
| void * blender::blender::BLI_rfindstring_ptr | ( | const ListBase * | listbase, |
| const char * | id, | ||
| int | offset ) |
Finds the last element of listbase which contains a pointer to the null-terminated string id at the specified offset, returning NULL if not found.
| ThreadRWMutex * blender::blender::BLI_rw_mutex_alloc | ( | ) |
| void blender::blender::BLI_rw_mutex_end | ( | ThreadRWMutex * | mutex | ) |
| void blender::blender::BLI_rw_mutex_free | ( | ThreadRWMutex * | mutex | ) |
| void blender::blender::BLI_rw_mutex_init | ( | ThreadRWMutex * | mutex | ) |
| void blender::blender::BLI_rw_mutex_lock | ( | ThreadRWMutex * | mutex, |
| int | mode ) |
| void blender::blender::BLI_rw_mutex_unlock | ( | ThreadRWMutex * | mutex | ) |
| void blender::blender::BLI_spin_end | ( | SpinLock * | spin | ) |
| void blender::blender::BLI_spin_init | ( | SpinLock * | spin | ) |
| void blender::blender::BLI_spin_lock | ( | SpinLock * | spin | ) |
| void blender::blender::BLI_spin_unlock | ( | SpinLock * | spin | ) |
| int blender::blender::BLI_system_num_threads_override_get | ( | ) |
| void blender::blender::BLI_system_num_threads_override_set | ( | int | num | ) |
| int blender::blender::BLI_system_thread_count | ( | ) |
| int blender::blender::BLI_thread_is_main | ( | ) |
| void blender::blender::BLI_thread_lock | ( | int | type | ) |
| bool blender::blender::BLI_thread_queue_cancel_work | ( | ThreadQueue * | queue, |
| uint64_t | work_id ) |
Remove the corresponding work from the queue.
| void blender::blender::BLI_thread_queue_free | ( | ThreadQueue * | queue | ) |
Deallocate the ThreadQueue. Assumes no one is using the queue anymore.
References blender::G, and blender::G_FILE_NO_UI.
| ThreadQueue * blender::blender::BLI_thread_queue_init | ( | ) |
Allocate a new ThreadQueue.
| bool blender::blender::BLI_thread_queue_is_empty | ( | ThreadQueue * | queue | ) |
References blender::ED_preview_free_dbase().
| int blender::blender::BLI_thread_queue_len | ( | ThreadQueue * | queue | ) |
References blender::preview_method_is_render().
| void blender::blender::BLI_thread_queue_nowait | ( | ThreadQueue * | queue | ) |
After calling this function, BLI_thread_queue_pop and BLI_thread_queue_pop_timeout won't block the calling thread even when the queue is empty.
| void * blender::blender::BLI_thread_queue_pop | ( | ThreadQueue * | queue | ) |
Pop the oldest, highest priority work from the queue. Blocks the calling thread unless BLI_thread_queue_nowait has been called for this queue.
| void * blender::blender::BLI_thread_queue_pop_timeout | ( | ThreadQueue * | queue, |
| int | ms ) |
Try to pop the oldest, highest priority work from the queue. Blocks the calling thread unless BLI_thread_queue_nowait has been called for this queue.
| uint64_t blender::blender::BLI_thread_queue_push | ( | ThreadQueue * | queue, |
| void * | work, | ||
| ThreadQueueWorkPriority | priority ) |
Push one work pointer to the queue. Higher priority works always take priority over lower priority ones, regardless of their insertion order. Works within the same priority follow FIFO order.
| void blender::blender::BLI_thread_queue_wait_finish | ( | ThreadQueue * | queue | ) |
Blocks the calling thread until the queue is empty.
| void blender::blender::BLI_thread_unlock | ( | int | type | ) |
| void blender::blender::BLI_threadapi_exit | ( | ) |
| void blender::blender::BLI_threadapi_init | ( | ) |
This is run once at startup.
| int blender::blender::BLI_threadpool_available_thread_index | ( | ListBaseT< ThreadSlot > * | threadbase | ) |
Returns thread number, for sample patterns or threadsafe tables.
| void blender::blender::BLI_threadpool_clear | ( | ListBaseT< ThreadSlot > * | threadbase | ) |
| void blender::blender::BLI_threadpool_end | ( | ListBaseT< ThreadSlot > * | threadbase | ) |
| void blender::blender::BLI_threadpool_init | ( | ListBaseT< ThreadSlot > * | threadbase, |
| void * | do_thread (*)(void *), | ||
| int | tot ) |
| tot | When 0 only initializes malloc mutex in a safe way (see sequence.c) problem otherwise: scene render will kill of the mutex! |
| void blender::blender::BLI_threadpool_insert | ( | ListBaseT< ThreadSlot > * | threadbase, |
| void * | callerdata ) |
| void blender::blender::BLI_threadpool_remove | ( | ListBaseT< ThreadSlot > * | threadbase, |
| void * | callerdata ) |
| void blender::blender::BLI_threadpool_remove_index | ( | ListBaseT< ThreadSlot > * | threadbase, |
| int | index ) |
| TicketMutex * blender::blender::BLI_ticket_mutex_alloc | ( | ) |
| void blender::blender::BLI_ticket_mutex_free | ( | TicketMutex * | ticket | ) |
| void blender::blender::BLI_ticket_mutex_lock | ( | TicketMutex * | ticket | ) |
| bool blender::blender::BLI_ticket_mutex_lock_check_recursive | ( | TicketMutex * | ticket | ) |
| void blender::blender::BLI_ticket_mutex_unlock | ( | TicketMutex * | ticket | ) |
|
constexprnoexcept |
Number of elements in a type which defines a bounded array.
For example, struct MyType { int array[12]; };
BOUNDED_ARRAY_TYPE_SIZE<decltype(MyType::array)> returns 12.
Definition at line 626 of file blenkernel/intern/sound.cc.
References blender::BKE_sound_init_once().
|
extern |
| Container & blender::blender::copy_assign_container | ( | Container & | dst, |
| const Container & | src ) |
This can be used by containers to implement an exception-safe copy-assignment-operator. It assumes that the container has an exception safe copy constructor and an exception-safe move-assignment-operator.
Definition at line 284 of file bmesh_polygon.hh.
Definition at line 43 of file bmesh_polygon.hh.
|
constexpr |
Inline buffers for small-object-optimization should be disabled by default for large objects. Otherwise we might get large unexpected allocations on the stack.
Definition at line 274 of file bmesh_polygon.hh.
Definition at line 34 of file bmesh_polygon.hh.
| blender::blender::ENUM_OPERATORS | ( | wmOperatorStatus | ) |
|
inline |
Support using the fmt library with StringRef and implicitly also StringRefNull.
Definition at line 720 of file bmesh_polygon.hh.
|
constexpr |
Definition at line 252 of file bmesh_polygon.hh.
Definition at line 183 of file bmesh_polygon.hh.
|
inline |
Definition at line 69 of file bmesh_polygon.hh.
|
inline |
Definition at line 57 of file bmesh_polygon.hh.
|
inline |
Definition at line 50 of file bmesh_polygon.hh.
|
inline |
Definition at line 50 of file bmesh_polygon.hh.
|
constexpr |
Definition at line 330 of file bmesh_polygon.hh.
Referenced by blender::blender::StringRefBase::find(), blender::blender::StringRefBase::find(), blender::blender::StringRefBase::find_first_not_of(), blender::blender::StringRefBase::find_first_not_of(), blender::blender::StringRefBase::find_first_of(), blender::blender::StringRefBase::find_first_of(), blender::blender::StringRefBase::find_last_not_of(), blender::blender::StringRefBase::find_last_not_of(), blender::blender::StringRefBase::find_last_of(), blender::blender::StringRefBase::find_last_of(), blender::blender::StringRefBase::rfind(), and blender::blender::StringRefBase::rfind().
| void blender::blender::initialized_copy_n | ( | const T * | src, |
| int64_t | n, | ||
| T * | dst ) |
Definition at line 48 of file bmesh_polygon.hh.
| void blender::blender::initialized_fill_n | ( | T * | dst, |
| int64_t | n, | ||
| const T & | value ) |
Definition at line 86 of file bmesh_polygon.hh.
Definition at line 64 of file bmesh_polygon.hh.
Definition at line 74 of file bmesh_polygon.hh.
Definition at line 170 of file blenkernel/intern/sound.cc.
References lock.
Definition at line 182 of file blenkernel/intern/sound.cc.
Definition at line 176 of file blenkernel/intern/sound.cc.
References lock, and blender::bSound::runtime.
|
constexpr |
Check if size bytes at data are all zero.
Definition at line 375 of file blenkernel/intern/sound.cc.
References blender::bSound::stream_index.
|
noexcept |
This can be used by containers to implement an exception-safe move-assignment-operator. It assumes that the container has an exception-safe move-constructor and a noexcept constructor tagged with the NoExceptConstructor tag.
Definition at line 301 of file bmesh_polygon.hh.
| BLI_INLINE bool blender::blender::operator!= | ( | const ListBase & | a, |
| const ListBase & | b ) |
Definition at line 380 of file render_preview.cc.
References blender::BKE_world_add(), blender::bke::node_add_link(), blender::bke::node_add_node(), and output.
Definition at line 686 of file bmesh_polygon.hh.
Adding two #StringRefs will allocate an std::string. This is not efficient, but convenient in most cases.
Definition at line 666 of file bmesh_polygon.hh.
Definition at line 691 of file bmesh_polygon.hh.
| std::ostream & blender::blender::operator<< | ( | std::ostream & | stream, |
| StringRef | ref ) |
| std::ostream & blender::blender::operator<< | ( | std::ostream & | stream, |
| StringRefNull | ref ) |
Definition at line 701 of file bmesh_polygon.hh.
| BLI_INLINE bool blender::blender::operator== | ( | const ListBase & | a, |
| const ListBase & | b ) |
Definition at line 376 of file render_preview.cc.
This does not compare StringRef and std::string_view, because of ambiguous overloads. This is not a problem when #std::string_view is only used at API boundaries. To compare a StringRef and a #std::string_view, one should convert the #std::string_view to StringRef (which is very cheap). Ideally, we only use StringRef in our code to avoid this problem altogether.
NOTE: these functions are also suitable for StringRefNull comparisons, as these are implicitly converted to StringRef by the compiler.
Definition at line 681 of file bmesh_polygon.hh.
Definition at line 696 of file bmesh_polygon.hh.
Definition at line 706 of file bmesh_polygon.hh.
Definition at line 188 of file blenkernel/intern/sound.cc.
References blender::bke::SoundRuntime::waveform, and blender::bke::WaveformNoReload.
| AlignedIndexRanges blender::blender::split_index_range_by_alignment | ( | const IndexRange | range, |
| const int64_t | alignment ) |
Split a range into three parts so that the boundaries of the middle part are aligned to some power of two.
This can be used when an algorithm can be optimized on aligned indices/memory. The algorithm then needs a slow path for the beginning and end, and a fast path for the aligned elements.
| void blender::blender::uninitialized_convert_n | ( | const From * | src, |
| int64_t | n, | ||
| To * | dst ) |
Definition at line 59 of file bmesh_polygon.hh.
| void blender::blender::uninitialized_copy_n | ( | const T * | src, |
| int64_t | n, | ||
| T * | dst ) |
Definition at line 53 of file bmesh_polygon.hh.
| void blender::blender::uninitialized_fill_n | ( | T * | dst, |
| int64_t | n, | ||
| const T & | value ) |
Definition at line 91 of file bmesh_polygon.hh.
Definition at line 69 of file bmesh_polygon.hh.
| void blender::blender::uninitialized_relocate_n | ( | T * | src, |
| int64_t | n, | ||
| T * | dst ) |
Definition at line 80 of file bmesh_polygon.hh.
Similar to memory_is_zero but is easier to see through for the compiler. This may return false even if the value is technically all zeroes in some cases, because reading from padding bits/bytes may cause undefined behavior.
This can be overloaded for custom types if an is-zero check is important for performance.
Definition at line 394 of file blenkernel/intern/sound.cc.
References blender::sound_new_file_exists_ex().
|
constexpr |
This is a specialization of value_is_zero_memory for VecBase. It allows using calloc for container construction in some cases.
Definition at line 754 of file bmesh_polygon.hh.
|
inlineconstexpr |
Helper variable that checks if a pointer type can be converted into another pointer type without issues. Possible issues are casting away const and casting a pointer to a child class. Adding const or casting to a parent class is fine.
Definition at line 242 of file bmesh_polygon.hh.
|
inlineconstexpr |
Same as #std::is_same_v but allows for checking multiple types at the same time.
Definition at line 268 of file bmesh_polygon.hh.
|
inlineconstexpr |
Helper variable that checks if a Span<From> can be converted to Span<To> safely, whereby From and To are pointers. Adding const and casting to a void pointer is allowed. Casting up and down a class hierarchy generally is not allowed, because this might change the pointer under some circumstances.
Definition at line 252 of file bmesh_polygon.hh.
|
inlineconstexpr |
Under some circumstances #std::is_trivial_v<T> is false even though we know that the type is actually trivial. Using that extra knowledge allows for some optimizations.
Definition at line 23 of file bmesh_polygon.hh.
|
inlineconstexpr |
Definition at line 28 of file bmesh_polygon.hh.
|
inlineconstexpr |
Definition at line 25 of file bmesh_polygon.hh.
|
inlineconstexpr |
Definition at line 31 of file bmesh_polygon.hh.
Definition at line 1163 of file bmesh_polygon.hh.
|
staticconstexpr |
Definition at line 1165 of file bmesh_polygon.hh.