Blender V5.3
blender::blender Namespace Reference

Namespaces

namespace  blenlib_detail
namespace  blenlib_internal
namespace  implicit_sharing
namespace  internal
namespace  iterator
namespace  math

Classes

class  AlignedBuffer
struct  AlignedIndexRanges
struct  BitwiseNotEnumValue
struct  BMEdge
struct  BMEdge_OFlag
struct  BMElem
struct  BMElemF
struct  BMesh
struct  BMFace
struct  BMFace_OFlag
struct  BMFlagLayer
struct  BMHeader
struct  BMLoop
struct  BMLoopNorEditData
struct  BMLoopNorEditDataArray
struct  BMVert
struct  BMVert_OFlag
struct  CustomData
struct  CustomData_MeshMasks
struct  CustomDataExternal
struct  CustomDataLayer
struct  DefaultHash
struct  DefaultHash< bool >
struct  DefaultHash< const T >
struct  DefaultHash< double >
struct  DefaultHash< float >
struct  DefaultHash< Ret(*)(Args...)>
struct  DefaultHash< std::pair< T1, T2 > >
struct  DefaultHash< std::reference_wrapper< T > >
struct  DefaultHash< std::shared_ptr< T > >
struct  DefaultHash< std::string >
struct  DefaultHash< std::string_view >
struct  DefaultHash< std::unique_ptr< T > >
struct  DefaultHash< StringRef >
struct  DefaultHash< StringRefNull >
struct  DefaultHash< T * >
struct  DefaultHash< T >
struct  DestructValueAtAddress
class  GuardedAlignedAllocator
class  GuardedAllocator
class  ImplicitSharedValue
class  ImplicitSharingInfo
struct  ImplicitSharingInfoAndData
class  ImplicitSharingMixin
class  IndexRange
struct  LinkData
struct  ListBase
struct  ListBaseBackwardIterator
struct  ListBaseBackwardWrapper
struct  ListBaseEnumerateIterator
struct  ListBaseEnumerateWrapper
struct  ListBaseMutableBackwardIterator
struct  ListBaseMutableBackwardWrapper
struct  ListBaseMutableIterator
struct  ListBaseMutableWrapper
struct  ListBaseTIterator
class  MutableSpan
class  NoExceptConstructor
class  NoInitialization
class  NonCopyable
class  NonMovable
struct  PointerHashes
class  RawAllocator
class  Span
class  StringRef
class  StringRefBase
class  StringRefNull
class  TypedBuffer
struct  UniqueHash
struct  UniqueHashBytes
struct  vec_struct_base
struct  vec_struct_base< T, 1, false >
struct  vec_struct_base< T, 1, true >
struct  vec_struct_base< T, 2, false >
struct  vec_struct_base< T, 2, true >
struct  vec_struct_base< T, 3, false >
struct  vec_struct_base< T, 3, true >
struct  vec_struct_base< T, 4, false >
struct  vec_struct_base< T, 4, true >
struct  VecBase
struct  VecSwizzleFunc
struct  VecSwizzleFunc< T, 2 >
struct  VecSwizzleFunc< T, 3 >
struct  VecSwizzleFunc< T, 4 >
struct  VecSwizzleReadOnly
struct  VecSwizzleReadWrite
class  Vector
struct  VectorData
struct  wmGizmoPropertyFnParams

Typedefs

template<typename T>
using destruct_ptr = std::unique_ptr<T, DestructValueAtAddress<T>>
template<typename T, int64_t InlineBufferCapacity = default_inline_buffer_capacity(sizeof(T))>
using RawVector = Vector<T, InlineBufferCapacity, RawAllocator>
using char2 = VecBase<int8_t, 2>
using char3 = VecBase<int8_t, 3>
using char4 = VecBase<int8_t, 4>
using uchar2 = VecBase<uint8_t, 2>
using uchar3 = VecBase<uint8_t, 3>
using uchar4 = VecBase<uint8_t, 4>
using int2 = VecBase<int32_t, 2>
using int3 = VecBase<int32_t, 3>
using int4 = VecBase<int32_t, 4>
using uint2 = VecBase<uint32_t, 2>
using uint3 = VecBase<uint32_t, 3>
using uint4 = VecBase<uint32_t, 4>
using short2 = VecBase<int16_t, 2>
using short3 = VecBase<int16_t, 3>
using short4 = VecBase<int16_t, 4>
using ushort2 = VecBase<uint16_t, 2>
using ushort3 = VecBase<uint16_t, 3>
using ushort4 = VecBase<uint16_t, 4>
using float1 = VecBase<float, 1>
using float2 = VecBase<float, 2>
using float3 = VecBase<float, 3>
using float4 = VecBase<float, 4>
using double2 = VecBase<double, 2>
using double3 = VecBase<double, 3>
using double4 = VecBase<double, 4>
using ImplicitSharingInfoHandle = ImplicitSharingInfo
using BMElemFilterFunc = bool (*)(const BMElem *, void *user_data)
using BMVertFilterFunc = bool (*)(const BMVert *, void *user_data)
using BMEdgeFilterFunc = bool (*)(const BMEdge *, void *user_data)
using BMFaceFilterFunc = bool (*)(const BMFace *, void *user_data)
using BMLoopFilterFunc = bool (*)(const BMLoop *, void *user_data)
using BMLoopPairFilterFunc = bool (*)(const BMLoop *, const BMLoop *, void *user_data)
typedef pthread_mutex_t ThreadMutex
typedef pthread_spinlock_t SpinLock
typedef pthread_rwlock_t ThreadRWMutex
typedef pthread_cond_t ThreadCondition
using wmGizmoGroupFnPoll = bool (*)(const bContext *, wmGizmoGroupType *)
using wmGizmoGroupFnInit = void (*)(const bContext *, wmGizmoGroup *)
using wmGizmoGroupFnRefresh = void (*)(const bContext *, wmGizmoGroup *)
using wmGizmoGroupFnDrawPrepare = void (*)(const bContext *, wmGizmoGroup *)
using wmGizmoGroupFnDrawBackground = void (*)(const bContext *, wmGizmoGroup *)
using wmGizmoGroupFnInvokePrepare
using wmGizmoGroupFnSetupKeymap = wmKeyMap *(*)(const wmGizmoGroupType *, wmKeyConfig *)
using wmGizmoGroupFnMsgBusSubscribe = void (*)(const bContext *, wmGizmoGroup *, wmMsgBus *)
using wmGizmoFnSetup = void (*)(wmGizmo *)
using wmGizmoFnDraw = void (*)(const bContext *, wmGizmo *)
using wmGizmoFnDrawSelect = void (*)(const bContext *, wmGizmo *, int)
using wmGizmoFnTestSelect = int (*)(bContext *, wmGizmo *, const int mval[2])
using wmGizmoFnModal
using wmGizmoFnPropertyUpdate = void (*)(wmGizmo *, wmGizmoProperty *)
using wmGizmoFnMatrixBasisGet = void (*)(const wmGizmo *, float[4][4])
using wmGizmoFnInvoke = wmOperatorStatus (*)(bContext *, wmGizmo *, const wmEvent *)
using wmGizmoFnExit = void (*)(bContext *, wmGizmo *, const bool)
using wmGizmoFnCursorGet = int (*)(wmGizmo *)
using wmGizmoFnScreenBoundsGet = bool (*)(const bContext *, wmGizmo *, rcti *r_bounding_box)
using wmGizmoFnSelectRefresh = void (*)(wmGizmo *)
using wmGizmoFnFree = void (*)(wmGizmo *)
using wmGizmoPropertyFnGet
using wmGizmoPropertyFnSet
using wmGizmoPropertyFnRangeGet
using wmGizmoPropertyFnForeachRNAProp
using wmGizmoPropertyFnFree = void (*)(const wmGizmo *, wmGizmoProperty *)

Enumerations

enum  eCustomDataType : int {
  CD_AUTO_FROM_NAME = -1 , CD_MDEFORMVERT = 2 , CD_MFACE = 4 , CD_MTFACE = 5 ,
  CD_MCOL = 6 , CD_ORIGINDEX = 7 , CD_NORMAL = 8 , CD_PROP_FLOAT = 10 ,
  CD_PROP_INT32 = 11 , CD_PROP_STRING = 12 , CD_ORIGSPACE = 13 , CD_ORCO = 14 ,
  CD_PROP_BYTE_COLOR = 17 , CD_TANGENT = 18 , CD_MDISPS = 19 , CD_PROP_FLOAT4X4 = 20 ,
  CD_PROP_INT16_2D = 22 , CD_CLOTH_ORCO = 23 , CD_PROP_FLOAT4 = 24 , CD_SHAPE_KEYINDEX = 27 ,
  CD_SHAPEKEY = 28 , CD_ORIGSPACE_MLOOP = 31 , CD_BM_ELEM_PYPTR = 33 , CD_GRID_PAINT_MASK = 35 ,
  CD_MLOOPTANGENT = 39 , CD_TESSLOOPNORMAL = 40 , CD_PROP_INT8 = 45 , CD_PROP_INT32_2D = 46 ,
  CD_PROP_COLOR = 47 , CD_PROP_FLOAT3 = 48 , CD_PROP_FLOAT2 = 49 , CD_PROP_BOOL = 50 ,
  CD_PROP_QUATERNION = 52 , CD_NUMTYPES = 53
}
enum  eCustomDataLayer_Flag : int {
  CD_FLAG_NOCOPY = (1 << 0) , CD_FLAG_UNUSED = (1 << 1) , CD_FLAG_TEMPORARY = ((1 << 2) | CD_FLAG_NOCOPY) , CD_FLAG_EXTERNAL = (1 << 3) ,
  CD_FLAG_IN_MEMORY = (1 << 4) , CD_FLAG_RUNTIME_NOINTERP = (1 << 7)
}
enum  { BM_VERT = 1 , BM_EDGE = 2 , BM_LOOP = 4 , BM_FACE = 8 }
enum  { BM_SPACEARR_DIRTY = 1 << 0 , BM_SPACEARR_DIRTY_ALL = 1 << 1 , BM_SPACEARR_BMO_SET = 1 << 2 }
enum  {
  BM_ELEM_SELECT = (1 << 0) , BM_ELEM_HIDDEN = (1 << 1) , BM_ELEM_SEAM = (1 << 2) , BM_ELEM_SMOOTH = (1 << 3) ,
  BM_ELEM_TAG = (1 << 4) , BM_ELEM_SELECT_UV = (1 << 5) , BM_ELEM_TAG_ALT = (1 << 6) , BM_ELEM_INTERNAL_TAG = (1 << 7)
}
enum  {
  LOCK_IMAGE = 0 , LOCK_DRAW_IMAGE , LOCK_VIEWER , LOCK_CUSTOM1 ,
  LOCK_NODES , LOCK_MOVIECLIP , LOCK_FFTW , LOCK_VIEW3D
}
enum  ThreadQueueWorkPriority { BLI_THREAD_QUEUE_WORK_PRIORITY_LOW , BLI_THREAD_QUEUE_WORK_PRIORITY_NORMAL , BLI_THREAD_QUEUE_WORK_PRIORITY_HIGH }
enum  wmOperatorStatus {
  OPERATOR_RUNNING_MODAL = (1 << 0) , OPERATOR_CANCELLED = (1 << 1) , OPERATOR_FINISHED = (1 << 2) , OPERATOR_PASS_THROUGH = (1 << 3) ,
  OPERATOR_HANDLED = (1 << 4) , OPERATOR_INTERFACE = (1 << 5)
}
enum  eOperator_Flag : short {
  OP_IS_INVOKE = (1 << 0) , OP_IS_REPEAT = (1 << 1) , OP_IS_REPEAT_LAST = (1 << 2) , OP_IS_MODAL_GRAB_CURSOR = (1 << 3) ,
  OP_IS_MODAL_CURSOR_REGION = (1 << 4)
}

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

Typedef Documentation

◆ BMEdgeFilterFunc

using blender::blender::BMEdgeFilterFunc = bool (*)(const BMEdge *, void *user_data)

Definition at line 568 of file bmesh_polygon.hh.

◆ BMElemFilterFunc

using blender::blender::BMElemFilterFunc = bool (*)(const BMElem *, void *user_data)

Definition at line 566 of file bmesh_polygon.hh.

◆ BMFaceFilterFunc

using blender::blender::BMFaceFilterFunc = bool (*)(const BMFace *, void *user_data)

Definition at line 569 of file bmesh_polygon.hh.

◆ BMLoopFilterFunc

using blender::blender::BMLoopFilterFunc = bool (*)(const BMLoop *, void *user_data)

Definition at line 570 of file bmesh_polygon.hh.

◆ BMLoopPairFilterFunc

using blender::blender::BMLoopPairFilterFunc = bool (*)(const BMLoop *, const BMLoop *, void *user_data)

Definition at line 571 of file bmesh_polygon.hh.

◆ BMVertFilterFunc

using blender::blender::BMVertFilterFunc = bool (*)(const BMVert *, void *user_data)

Definition at line 567 of file bmesh_polygon.hh.

◆ char2

Definition at line 773 of file bmesh_polygon.hh.

◆ char3

Definition at line 774 of file bmesh_polygon.hh.

◆ char4

Definition at line 775 of file bmesh_polygon.hh.

◆ destruct_ptr

template<typename T>
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.

◆ double2

using blender::blender::double2 = VecBase<double, 2>

Definition at line 802 of file bmesh_polygon.hh.

◆ double3

using blender::blender::double3 = VecBase<double, 3>

Definition at line 803 of file bmesh_polygon.hh.

◆ double4

using blender::blender::double4 = VecBase<double, 4>

Definition at line 804 of file bmesh_polygon.hh.

◆ float1

Definition at line 797 of file bmesh_polygon.hh.

◆ float2

Definition at line 798 of file bmesh_polygon.hh.

◆ float3

Definition at line 799 of file bmesh_polygon.hh.

◆ float4

Definition at line 800 of file bmesh_polygon.hh.

◆ ImplicitSharingInfoHandle

◆ int2

Definition at line 781 of file bmesh_polygon.hh.

◆ int3

Definition at line 782 of file bmesh_polygon.hh.

◆ int4

Definition at line 783 of file bmesh_polygon.hh.

◆ RawVector

template<typename T, int64_t InlineBufferCapacity = default_inline_buffer_capacity(sizeof(T))>
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.

◆ short2

Definition at line 789 of file bmesh_polygon.hh.

◆ short3

Definition at line 790 of file bmesh_polygon.hh.

◆ short4

Definition at line 791 of file bmesh_polygon.hh.

◆ SpinLock

typedef pthread_spinlock_t blender::blender::SpinLock

Definition at line 109 of file render_preview.cc.

◆ ThreadCondition

typedef pthread_cond_t blender::blender::ThreadCondition

Definition at line 150 of file render_preview.cc.

◆ ThreadMutex

typedef pthread_mutex_t blender::blender::ThreadMutex

Definition at line 81 of file render_preview.cc.

◆ ThreadRWMutex

typedef pthread_rwlock_t blender::blender::ThreadRWMutex

Definition at line 124 of file render_preview.cc.

◆ uchar2

Definition at line 777 of file bmesh_polygon.hh.

◆ uchar3

Definition at line 778 of file bmesh_polygon.hh.

◆ uchar4

Definition at line 779 of file bmesh_polygon.hh.

◆ uint2

Definition at line 785 of file bmesh_polygon.hh.

◆ uint3

Definition at line 786 of file bmesh_polygon.hh.

◆ uint4

Definition at line 787 of file bmesh_polygon.hh.

◆ ushort2

Definition at line 793 of file bmesh_polygon.hh.

◆ ushort3

Definition at line 794 of file bmesh_polygon.hh.

◆ ushort4

Definition at line 795 of file bmesh_polygon.hh.

◆ wmGizmoFnCursorGet

Definition at line 56 of file wm_gizmo_intern.hh.

◆ wmGizmoFnDraw

using blender::blender::wmGizmoFnDraw = void (*)(const bContext *, wmGizmo *)

Definition at line 45 of file wm_gizmo_intern.hh.

◆ wmGizmoFnDrawSelect

using blender::blender::wmGizmoFnDrawSelect = void (*)(const bContext *, wmGizmo *, int)

Definition at line 46 of file wm_gizmo_intern.hh.

◆ wmGizmoFnExit

using blender::blender::wmGizmoFnExit = void (*)(bContext *, wmGizmo *, const bool)

Definition at line 55 of file wm_gizmo_intern.hh.

◆ wmGizmoFnFree

Definition at line 59 of file wm_gizmo_intern.hh.

◆ wmGizmoFnInvoke

Definition at line 54 of file wm_gizmo_intern.hh.

◆ wmGizmoFnMatrixBasisGet

using blender::blender::wmGizmoFnMatrixBasisGet = void (*)(const wmGizmo *, float[4][4])

Definition at line 53 of file wm_gizmo_intern.hh.

◆ wmGizmoFnModal

Initial value:

Definition at line 48 of file wm_gizmo_intern.hh.

◆ wmGizmoFnPropertyUpdate

Definition at line 52 of file wm_gizmo_intern.hh.

◆ wmGizmoFnScreenBoundsGet

using blender::blender::wmGizmoFnScreenBoundsGet = bool (*)(const bContext *, wmGizmo *, rcti *r_bounding_box)

Definition at line 57 of file wm_gizmo_intern.hh.

◆ wmGizmoFnSelectRefresh

Definition at line 58 of file wm_gizmo_intern.hh.

◆ wmGizmoFnSetup

Definition at line 44 of file wm_gizmo_intern.hh.

◆ wmGizmoFnTestSelect

using blender::blender::wmGizmoFnTestSelect = int (*)(bContext *, wmGizmo *, const int mval[2])

Definition at line 47 of file wm_gizmo_intern.hh.

◆ wmGizmoGroupFnDrawBackground

Definition at line 33 of file wm_gizmo_intern.hh.

◆ wmGizmoGroupFnDrawPrepare

Definition at line 32 of file wm_gizmo_intern.hh.

◆ wmGizmoGroupFnInit

Definition at line 30 of file wm_gizmo_intern.hh.

◆ wmGizmoGroupFnInvokePrepare

Initial value:

Definition at line 34 of file wm_gizmo_intern.hh.

◆ wmGizmoGroupFnMsgBusSubscribe

Definition at line 39 of file wm_gizmo_intern.hh.

◆ wmGizmoGroupFnPoll

Definition at line 29 of file wm_gizmo_intern.hh.

◆ wmGizmoGroupFnRefresh

Definition at line 31 of file wm_gizmo_intern.hh.

◆ wmGizmoGroupFnSetupKeymap

◆ wmGizmoPropertyFnForeachRNAProp

Initial value:

To inspect the RNA properties gizmos are manipulating (can be multiple). Used e.g. for auto-keying.

Parameters
gz_propThe gizmo property to inspect.
callbackCalled for each RNA property being manipulated.
  • index: Property element index (-1 for all items).

Definition at line 82 of file wm_gizmo_intern.hh.

◆ wmGizmoPropertyFnFree

Definition at line 86 of file wm_gizmo_intern.hh.

◆ wmGizmoPropertyFnGet

Initial value:
void (*)(const wmGizmo *,
void *value)

Definition at line 62 of file wm_gizmo_intern.hh.

◆ wmGizmoPropertyFnRangeGet

Initial value:
void (*)(const wmGizmo *,
void *range)

Definition at line 70 of file wm_gizmo_intern.hh.

◆ wmGizmoPropertyFnSet

Initial value:
void (*)(const wmGizmo *,
const void *value)

Definition at line 66 of file wm_gizmo_intern.hh.

Enumeration Type Documentation

◆ anonymous enum

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

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

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

anonymous enum

Global Mutex Locks

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.

◆ eCustomDataLayer_Flag

#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).

Note
Disabling interpolation isn't something we want to rely on, however existing cases (the skin modifier's flags were never interpolated) need to be supported, see: #165039.

Definition at line 177 of file bmesh_polygon.hh.

◆ eCustomDataType

#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.

◆ eOperator_Flag

#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.

◆ ThreadQueueWorkPriority

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.

◆ wmOperatorStatus

Operator type return flags: exec(), invoke() modal(), return values.

Enumerator
OPERATOR_RUNNING_MODAL 
OPERATOR_CANCELLED 
OPERATOR_FINISHED 
OPERATOR_PASS_THROUGH 

Add this flag if the event should pass through.

OPERATOR_HANDLED 

In case operator got executed outside WM code (like via file-select).

OPERATOR_INTERFACE 

Used for operators that act indirectly (eg. popup menu).

Note
this isn't great design (using operators to trigger UI) avoid where possible.

Definition at line 18 of file wm_gizmo_intern.hh.

Function Documentation

◆ ARRAY_SIZE()

template<class T, size_t N>
size_t blender::blender::ARRAY_SIZE ( const T(&) arg[N])
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.

◆ assign_if_different() [1/2]

template<typename T>
bool blender::blender::assign_if_different ( T & old_value,
const T & new_value )
inline

Definition at line 335 of file bmesh_polygon.hh.

◆ assign_if_different() [2/2]

template<typename T>
bool blender::blender::assign_if_different ( T & old_value,
T && new_value )
inline

Returns true if the value is different and was assigned.

Definition at line 327 of file bmesh_polygon.hh.

◆ BLI_addhead()

void blender::blender::BLI_addhead ( ListBase * listbase,
void * vlink )

Prepends vlink (assumed to begin with a Link) onto listbase.

◆ BLI_addtail()

void blender::blender::BLI_addtail ( ListBase * listbase,
void * vlink )

Appends vlink (assumed to begin with a Link) onto listbase.

◆ BLI_available_threads()

int blender::blender::BLI_available_threads ( ListBaseT< ThreadSlot > * threadbase)

Amount of available threads.

◆ BLI_condition_end()

void blender::blender::BLI_condition_end ( ThreadCondition * cond)

◆ BLI_condition_init()

void blender::blender::BLI_condition_init ( ThreadCondition * cond)

◆ BLI_condition_notify_all()

void blender::blender::BLI_condition_notify_all ( ThreadCondition * cond)

◆ BLI_condition_notify_one()

void blender::blender::BLI_condition_notify_one ( ThreadCondition * cond)

◆ BLI_condition_wait()

void blender::blender::BLI_condition_wait ( ThreadCondition * cond,
ThreadMutex * mutex )

◆ BLI_condition_wait_global_mutex()

void blender::blender::BLI_condition_wait_global_mutex ( ThreadCondition * cond,
int type )

◆ BLI_duplicatelist()

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.

◆ BLI_findindex()

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.

◆ BLI_findlink()

void * blender::blender::BLI_findlink ( const ListBase * listbase,
int number )

Returns the nth element of listbase, numbering from 0.

◆ BLI_findlinkfrom()

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.

◆ BLI_findptr()

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.

◆ BLI_findstring()

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.

◆ BLI_findstring_ptr()

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.

◆ BLI_findstringindex()

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.

◆ BLI_freelinkN()

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.

◆ BLI_freelist()

void blender::blender::BLI_freelist ( ListBase * listbase)

Removes and disposes of the entire contents of listbase using direct free(3).

References blender::G.

◆ BLI_freelistN()

void void blender::blender::BLI_freelistN ( ListBase * listbase)

Removes and disposes of the entire contents of listbase using guardedalloc.

◆ BLI_genericNodeN()

LinkData * blender::blender::BLI_genericNodeN ( void * data)

Create a generic list node containing link to provided data.

◆ BLI_insertlinkafter()

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.

◆ BLI_insertlinkbefore()

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.

◆ BLI_insertlinkreplace()

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.

  • vreplacelink must be in the list.
  • vnewlink must not be in the list.

◆ BLI_listbase_bytes_find()

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.

◆ BLI_listbase_bytes_rfind()

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_listbase_clear()

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().

◆ BLI_listbase_count()

int blender::blender::BLI_listbase_count ( const ListBase * listbase)

Returns the number of elements in listbase.

◆ BLI_listbase_count_at_most()

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)

Note
Use to avoid redundant looping.

References blender::BKE_main_free(), and blender::G_pr_main_grease_pencil.

◆ BLI_listbase_count_is_equal_to()

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.

Note
Use to avoid redundant looping.

Definition at line 239 of file render_preview.cc.

◆ BLI_listbase_equal()

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().

◆ BLI_listbase_find()

template<typename T, typename Fn>
T * blender::blender::BLI_listbase_find ( const ListBaseT< T > & listbase,
Fn && predicate )

◆ BLI_listbase_findafter_string()

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.

◆ BLI_listbase_findafter_string_ptr()

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.

◆ BLI_listbase_from_link() [1/2]

ListBase blender::blender::BLI_listbase_from_link ( Link * some_link)

Return a ListBase representing the entire list the given Link is in.

◆ BLI_listbase_from_link() [2/2]

template<typename T>
ListBaseT< T > blender::blender::BLI_listbase_from_link ( T * some_link)

Return a typed ListBase representing the entire list the given link is in.

Definition at line 44 of file render_preview.cc.

◆ BLI_listbase_is_empty()

BLI_INLINE bool blender::blender::BLI_listbase_is_empty ( const ListBase * lb)

Definition at line 302 of file render_preview.cc.

◆ BLI_listbase_is_single()

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.

◆ BLI_listbase_link_move()

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).

Parameters
stepAbsolute value defines step size, sign defines direction. E.g pass -1 to move vlink before previous, or 1 to move behind next.
Returns
If position of vlink has changed.

◆ BLI_listbase_move_index()

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.

Returns
If the move was successful.

References ELEM, blender::PR_BUTS_RENDER, and blender::PR_ICON_RENDER.

◆ BLI_listbase_reverse()

void void void void void void void blender::blender::BLI_listbase_reverse ( ListBase * lb)

◆ BLI_listbase_rotate_first()

void blender::blender::BLI_listbase_rotate_first ( ListBase * lb,
void * vlink )
Parameters
vlinkLink to make first.

References blender::COLLECTION_HIDE_RENDER.

◆ BLI_listbase_rotate_last()

void void blender::blender::BLI_listbase_rotate_last ( ListBase * lb,
void * vlink )
Parameters
vlinkLink to make last.

◆ BLI_listbase_sort()

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.

◆ BLI_listbase_sort_r()

void void void blender::blender::BLI_listbase_sort_r ( ListBase * listbase,
int(* cmp )(void *, const void *, const void *),
void * thunk )

◆ BLI_listbase_split_after()

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.

Note
If vlink is NULL, it is considered as 'the item before the first item', so the whole list is moved from original_listbase to split_listbase.

◆ BLI_listbase_string_or_index_find()

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.

Note
The string is only used is non-NULL and non-empty.
Returns
The found item, or NULL.

◆ BLI_listbase_swaplinks()

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.

◆ BLI_listbase_validate()

bool blender::blender::BLI_listbase_validate ( ListBase * lb)

Validate the integrity of a given ListBase.

Returns
true if everything is OK, false otherwise.

References blender::preview_floor_material_name().

◆ BLI_listbases_swaplinks()

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!

◆ BLI_movelisttolist()

void void void blender::blender::BLI_movelisttolist ( ListBase * dst,
ListBase * src )

Moves the entire contents of src onto the end of dst.

◆ BLI_movelisttolist_reverse()

void void void void blender::blender::BLI_movelisttolist_reverse ( ListBase * dst,
ListBase * src )

Moves the entire contents of src at the beginning of dst.

References BLI_assert_msg.

◆ BLI_mutex_alloc()

ThreadMutex * blender::blender::BLI_mutex_alloc ( )

◆ BLI_mutex_end()

void blender::blender::BLI_mutex_end ( ThreadMutex * mutex)

◆ BLI_mutex_free()

void blender::blender::BLI_mutex_free ( ThreadMutex * mutex)

◆ BLI_mutex_init()

void blender::blender::BLI_mutex_init ( ThreadMutex * mutex)

◆ BLI_mutex_lock()

void blender::blender::BLI_mutex_lock ( ThreadMutex * mutex)

◆ BLI_mutex_trylock()

bool blender::blender::BLI_mutex_trylock ( ThreadMutex * mutex)

◆ BLI_mutex_unlock()

void blender::blender::BLI_mutex_unlock ( ThreadMutex * mutex)

◆ BLI_pophead()

void * blender::blender::BLI_pophead ( ListBase * listbase)

Removes the head from listbase and returns it.

◆ BLI_poptail()

void * blender::blender::BLI_poptail ( ListBase * listbase)

Removes the tail from listbase and returns it.

◆ BLI_remlink()

void blender::blender::BLI_remlink ( ListBase * listbase,
void * vlink )

Removes vlink from listbase. Assumes it is linked into there!

Warning
Does not clear the prev/next pointers of the removed vlink.

◆ BLI_remlink_safe()

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.

◆ BLI_rfindlink()

void * blender::blender::BLI_rfindlink ( const ListBase * listbase,
int number )

Returns the nth-last element of listbase, numbering from 0.

◆ BLI_rfindptr()

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.

◆ BLI_rfindstring()

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.

◆ BLI_rfindstring_ptr()

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.

◆ BLI_rw_mutex_alloc()

ThreadRWMutex * blender::blender::BLI_rw_mutex_alloc ( )

◆ BLI_rw_mutex_end()

void blender::blender::BLI_rw_mutex_end ( ThreadRWMutex * mutex)

◆ BLI_rw_mutex_free()

void blender::blender::BLI_rw_mutex_free ( ThreadRWMutex * mutex)

◆ BLI_rw_mutex_init()

void blender::blender::BLI_rw_mutex_init ( ThreadRWMutex * mutex)

◆ BLI_rw_mutex_lock()

void blender::blender::BLI_rw_mutex_lock ( ThreadRWMutex * mutex,
int mode )

◆ BLI_rw_mutex_unlock()

void blender::blender::BLI_rw_mutex_unlock ( ThreadRWMutex * mutex)

◆ BLI_spin_end()

void blender::blender::BLI_spin_end ( SpinLock * spin)

◆ BLI_spin_init()

void blender::blender::BLI_spin_init ( SpinLock * spin)

◆ BLI_spin_lock()

void blender::blender::BLI_spin_lock ( SpinLock * spin)

◆ BLI_spin_unlock()

void blender::blender::BLI_spin_unlock ( SpinLock * spin)

◆ BLI_STATIC_ASSERT()

blender::blender::BLI_STATIC_ASSERT ( (sizeof(BMHeader)<=16) ,
"BMHeader size has grown!"  )

◆ BLI_system_num_threads_override_get()

int blender::blender::BLI_system_num_threads_override_get ( )

◆ BLI_system_num_threads_override_set()

void blender::blender::BLI_system_num_threads_override_set ( int num)

◆ BLI_system_thread_count()

int blender::blender::BLI_system_thread_count ( )
Returns
the number of threads the system can make use of.

◆ BLI_thread_is_main()

int blender::blender::BLI_thread_is_main ( )

◆ BLI_thread_lock()

void blender::blender::BLI_thread_lock ( int type)

◆ BLI_thread_queue_cancel_work()

bool blender::blender::BLI_thread_queue_cancel_work ( ThreadQueue * queue,
uint64_t work_id )

Remove the corresponding work from the queue.

Returns
true if the work_id was still in the queue.

◆ BLI_thread_queue_free()

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.

◆ BLI_thread_queue_init()

ThreadQueue * blender::blender::BLI_thread_queue_init ( )

Allocate a new ThreadQueue.

◆ BLI_thread_queue_is_empty()

bool blender::blender::BLI_thread_queue_is_empty ( ThreadQueue * queue)
Returns
true if there are no pending works in the queue.

References blender::ED_preview_free_dbase().

◆ BLI_thread_queue_len()

int blender::blender::BLI_thread_queue_len ( ThreadQueue * queue)
Returns
the total amount of pending works still in the queue.

References blender::preview_method_is_render().

◆ BLI_thread_queue_nowait()

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.

◆ BLI_thread_queue_pop()

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.

Returns
nullptr if nowait has been set and the queue is empty. Otherwise returns a work pointer.

◆ BLI_thread_queue_pop_timeout()

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.

Returns
nullptr if time runs out, or if nowait has been set and the queue is empty. Otherwise returns a work pointer.

◆ BLI_thread_queue_push()

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.

Returns
a unique work_id that can be used later for canceling the work before it's popped out from the queue.

◆ BLI_thread_queue_wait_finish()

void blender::blender::BLI_thread_queue_wait_finish ( ThreadQueue * queue)

Blocks the calling thread until the queue is empty.

◆ BLI_thread_unlock()

void blender::blender::BLI_thread_unlock ( int type)

◆ BLI_threadapi_exit()

void blender::blender::BLI_threadapi_exit ( )

◆ BLI_threadapi_init()

void blender::blender::BLI_threadapi_init ( )

This is run once at startup.

◆ BLI_threadpool_available_thread_index()

int blender::blender::BLI_threadpool_available_thread_index ( ListBaseT< ThreadSlot > * threadbase)

Returns thread number, for sample patterns or threadsafe tables.

◆ BLI_threadpool_clear()

void blender::blender::BLI_threadpool_clear ( ListBaseT< ThreadSlot > * threadbase)

◆ BLI_threadpool_end()

void blender::blender::BLI_threadpool_end ( ListBaseT< ThreadSlot > * threadbase)

◆ BLI_threadpool_init()

void blender::blender::BLI_threadpool_init ( ListBaseT< ThreadSlot > * threadbase,
void * do_thread (*)(void *),
int tot )
Parameters
totWhen 0 only initializes malloc mutex in a safe way (see sequence.c) problem otherwise: scene render will kill of the mutex!

◆ BLI_threadpool_insert()

void blender::blender::BLI_threadpool_insert ( ListBaseT< ThreadSlot > * threadbase,
void * callerdata )

◆ BLI_threadpool_remove()

void blender::blender::BLI_threadpool_remove ( ListBaseT< ThreadSlot > * threadbase,
void * callerdata )

◆ BLI_threadpool_remove_index()

void blender::blender::BLI_threadpool_remove_index ( ListBaseT< ThreadSlot > * threadbase,
int index )

◆ BLI_ticket_mutex_alloc()

TicketMutex * blender::blender::BLI_ticket_mutex_alloc ( )

◆ BLI_ticket_mutex_free()

void blender::blender::BLI_ticket_mutex_free ( TicketMutex * ticket)

◆ BLI_ticket_mutex_lock()

void blender::blender::BLI_ticket_mutex_lock ( TicketMutex * ticket)

◆ BLI_ticket_mutex_lock_check_recursive()

bool blender::blender::BLI_ticket_mutex_lock_check_recursive ( TicketMutex * ticket)

◆ BLI_ticket_mutex_unlock()

void blender::blender::BLI_ticket_mutex_unlock ( TicketMutex * ticket)

◆ BOUNDED_ARRAY_TYPE_SIZE()

template<class T>
std::enable_if_t< blenlib_internal::IsBoundedArray< T >::value, size_t > blender::blender::BOUNDED_ARRAY_TYPE_SIZE ( )
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().

◆ bpy_bm_generic_invalidate()

void blender::blender::bpy_bm_generic_invalidate ( struct BPy_BMGeneric * self)
extern

◆ copy_assign_container()

template<typename Container>
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.

◆ default_construct_n()

template<typename T>
void blender::blender::default_construct_n ( T * ptr,
int64_t n )

Definition at line 43 of file bmesh_polygon.hh.

◆ default_inline_buffer_capacity()

int64_t blender::blender::default_inline_buffer_capacity ( size_t element_size)
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.

◆ destruct_n()

template<typename T>
void blender::blender::destruct_n ( T * ptr,
int64_t n )

Definition at line 34 of file bmesh_polygon.hh.

◆ ENUM_OPERATORS()

blender::blender::ENUM_OPERATORS ( wmOperatorStatus )

◆ format_as()

std::string_view blender::blender::format_as ( StringRef str)
inline

Support using the fmt library with StringRef and implicitly also StringRefNull.

Definition at line 720 of file bmesh_polygon.hh.

◆ get_default_hash()

template<typename T, typename... Args>
uint64_t blender::blender::get_default_hash ( const T & v,
const Args &... args )
constexpr

Definition at line 252 of file bmesh_polygon.hh.

◆ hash_string()

uint64_t blender::blender::hash_string ( StringRef str)
constexpr

Definition at line 183 of file bmesh_polygon.hh.

◆ hash_unique_default() [1/4]

template<typename T>
requires requires { value.hash_unique(hash); }
void blender::blender::hash_unique_default ( const T & value,
UniqueHashBytes & hash )
inline

Definition at line 69 of file bmesh_polygon.hh.

◆ hash_unique_default() [2/4]

template<typename T>
requires (std::is_floating_point_v<T>)
void blender::blender::hash_unique_default ( const T & value,
UniqueHashBytes & hash )
inline

Definition at line 57 of file bmesh_polygon.hh.

◆ hash_unique_default() [3/4]

template<typename T>
requires (std::is_integral_v<T> || std::is_enum_v<T> || std::is_pointer_v<T>)
void blender::blender::hash_unique_default ( const T & value,
UniqueHashBytes & hash )
inline

Definition at line 50 of file bmesh_polygon.hh.

◆ hash_unique_default() [4/4]

template<typename T>
void blender::blender::hash_unique_default ( const T & value,
UniqueHashBytes & hash )
inline

Definition at line 50 of file bmesh_polygon.hh.

◆ index_or_npos_to_int64()

◆ initialized_copy_n()

template<typename T>
void blender::blender::initialized_copy_n ( const T * src,
int64_t n,
T * dst )

Definition at line 48 of file bmesh_polygon.hh.

◆ initialized_fill_n()

template<typename T>
void blender::blender::initialized_fill_n ( T * dst,
int64_t n,
const T & value )

Definition at line 86 of file bmesh_polygon.hh.

◆ initialized_move_n()

template<typename T>
void blender::blender::initialized_move_n ( T * src,
int64_t n,
T * dst )

Definition at line 64 of file bmesh_polygon.hh.

◆ initialized_relocate_n()

template<typename T>
void blender::blender::initialized_relocate_n ( T * src,
int64_t n,
T * dst )

Definition at line 74 of file bmesh_polygon.hh.

◆ is_power_of_2()

int64_t blender::blender::is_power_of_2 ( const int64_t x)
constexpr

Definition at line 170 of file blenkernel/intern/sound.cc.

References lock.

◆ log2_ceil()

int64_t blender::blender::log2_ceil ( const int64_t x)
constexpr

Definition at line 182 of file blenkernel/intern/sound.cc.

◆ log2_floor()

int64_t blender::blender::log2_floor ( const int64_t x)
constexpr

Definition at line 176 of file blenkernel/intern/sound.cc.

References lock, and blender::bSound::runtime.

◆ memory_is_zero()

bool blender::blender::memory_is_zero ( const void * data,
const size_t size )
constexpr

Check if size bytes at data are all zero.

Warning
Every byte is compared, including any padding. Padding is indeterminate even when all struct members have been zeroed, so only buffers where every byte has been written are safe to pass in (memset or calloc for e.g.). For typed values prefer #value_is_zero which accounts for this.

Definition at line 375 of file blenkernel/intern/sound.cc.

References blender::bSound::stream_index.

◆ move_assign_container()

template<typename Container>
Container & blender::blender::move_assign_container ( Container & dst,
Container && src )
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.

◆ operator!=() [1/2]

BLI_INLINE bool blender::blender::operator!= ( const ListBase & a,
const ListBase & b )

◆ operator!=() [2/2]

bool blender::blender::operator!= ( StringRef a,
StringRef b )
constexpr

Definition at line 686 of file bmesh_polygon.hh.

◆ operator+()

std::string blender::blender::operator+ ( StringRef a,
StringRef b )
inline

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.

◆ operator<()

bool blender::blender::operator< ( StringRef a,
StringRef b )
constexpr

Definition at line 691 of file bmesh_polygon.hh.

◆ operator<<() [1/2]

std::ostream & blender::blender::operator<< ( std::ostream & stream,
StringRef ref )

◆ operator<<() [2/2]

std::ostream & blender::blender::operator<< ( std::ostream & stream,
StringRefNull ref )

◆ operator<=()

bool blender::blender::operator<= ( StringRef a,
StringRef b )
constexpr

Definition at line 701 of file bmesh_polygon.hh.

◆ operator==() [1/2]

BLI_INLINE bool blender::blender::operator== ( const ListBase & a,
const ListBase & b )

Definition at line 376 of file render_preview.cc.

◆ operator==() [2/2]

bool blender::blender::operator== ( StringRef a,
StringRef b )
constexpr

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.

◆ operator>()

bool blender::blender::operator> ( StringRef a,
StringRef b )
constexpr

Definition at line 696 of file bmesh_polygon.hh.

◆ operator>=()

bool blender::blender::operator>= ( StringRef a,
StringRef b )
constexpr

Definition at line 706 of file bmesh_polygon.hh.

◆ power_of_2_max()

int64_t blender::blender::power_of_2_max ( const int64_t x)
constexpr

◆ split_index_range_by_alignment()

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.

◆ uninitialized_convert_n()

template<typename From, typename To>
void blender::blender::uninitialized_convert_n ( const From * src,
int64_t n,
To * dst )

Definition at line 59 of file bmesh_polygon.hh.

◆ uninitialized_copy_n()

template<typename T>
void blender::blender::uninitialized_copy_n ( const T * src,
int64_t n,
T * dst )

Definition at line 53 of file bmesh_polygon.hh.

◆ uninitialized_fill_n()

template<typename T>
void blender::blender::uninitialized_fill_n ( T * dst,
int64_t n,
const T & value )

Definition at line 91 of file bmesh_polygon.hh.

◆ uninitialized_move_n()

template<typename T>
void blender::blender::uninitialized_move_n ( T * src,
int64_t n,
T * dst )

Definition at line 69 of file bmesh_polygon.hh.

◆ uninitialized_relocate_n()

template<typename T>
void blender::blender::uninitialized_relocate_n ( T * src,
int64_t n,
T * dst )

Definition at line 80 of file bmesh_polygon.hh.

◆ value_is_zero_memory() [1/2]

template<typename T>
bool blender::blender::value_is_zero_memory ( const T & value)
constexpr

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().

◆ value_is_zero_memory() [2/2]

template<typename T, int Size>
bool blender::blender::value_is_zero_memory ( const VecBase< T, Size > & v)
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.

Variable Documentation

◆ is_convertible_pointer_v

template<typename From, typename To>
bool blender::blender::is_convertible_pointer_v
inlineconstexpr
Initial value:
= std::is_convertible_v<From, To> &&
std::is_pointer_v<From> && std::is_pointer_v<To>

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.

◆ is_same_any_v

template<typename T, typename... Args>
bool blender::blender::is_same_any_v = (std::is_same_v<T, Args> || ...)
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.

◆ is_span_convertible_pointer_v

template<typename From, typename To>
bool blender::blender::is_span_convertible_pointer_v
inlineconstexpr
Initial value:
=
std::is_pointer_v<From> && std::is_pointer_v<To> &&
(
std::is_same_v<From, To> ||
std::is_same_v<std::remove_pointer_t<From>, std::remove_const_t<std::remove_pointer_t<To>>> ||
(!std::is_const_v<std::remove_pointer_t<From>> && std::is_same_v<To, void *>) ||
std::is_same_v<To, const void *>)

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.

◆ is_trivial_extended_v

template<typename T>
bool blender::blender::is_trivial_extended_v = std::is_trivial_v<T>
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.

◆ is_trivially_copy_constructible_extended_v

template<typename T>
bool blender::blender::is_trivially_copy_constructible_extended_v
inlineconstexpr
Initial value:
=
is_trivial_extended_v<T> || std::is_trivially_copy_constructible_v<T>
constexpr bool is_trivial_extended_v

Definition at line 28 of file bmesh_polygon.hh.

◆ is_trivially_destructible_extended_v

template<typename T>
bool blender::blender::is_trivially_destructible_extended_v
inlineconstexpr
Initial value:
std::is_trivially_destructible_v<T>

Definition at line 25 of file bmesh_polygon.hh.

◆ is_trivially_move_constructible_extended_v

template<typename T>
bool blender::blender::is_trivially_move_constructible_extended_v
inlineconstexpr
Initial value:
=
is_trivial_extended_v<T> || std::is_trivially_move_constructible_v<T>

Definition at line 31 of file bmesh_polygon.hh.

◆ is_Vector_v

template<typename T>
bool blender::blender::is_Vector_v = false
staticconstexpr

Definition at line 1163 of file bmesh_polygon.hh.

◆ is_Vector_v< Vector< T, InlineBufferCapacity, Allocator > >

template<typename T, int64_t InlineBufferCapacity, typename Allocator>
bool blender::blender::is_Vector_v< Vector< T, InlineBufferCapacity, Allocator > > = true
staticconstexpr

Definition at line 1165 of file bmesh_polygon.hh.