Blender V5.3
blender::fn::GField::TrivialInlineConstant Struct Reference

#include <FN_field.hh>

Static Public Member Functions

Inline Methods
static bool cpp_type_supported (const CPPType &type)

Public Attributes

const CPPType * type = nullptr
AlignedBuffer< inline_size, inline_alignment > value

Static Public Attributes

static constexpr int64_t inline_size = 16
static constexpr int64_t inline_alignment = 8
template<typename T>
static constexpr bool type_supported_v

Detailed Description

Allows storing constants inside of GField without any additional memory allocation.

Definition at line 83 of file FN_field.hh.

Member Function Documentation

◆ cpp_type_supported()

bool blender::fn::GField::TrivialInlineConstant::cpp_type_supported ( const CPPType & type)
inlinestatic

Member Data Documentation

◆ inline_alignment

int64_t blender::fn::GField::TrivialInlineConstant::inline_alignment = 8
staticconstexpr

Definition at line 85 of file FN_field.hh.

Referenced by cpp_type_supported().

◆ inline_size

int64_t blender::fn::GField::TrivialInlineConstant::inline_size = 16
staticconstexpr

Definition at line 84 of file FN_field.hh.

Referenced by cpp_type_supported().

◆ type

const CPPType* blender::fn::GField::TrivialInlineConstant::type = nullptr

◆ type_supported_v

template<typename T>
bool blender::fn::GField::TrivialInlineConstant::type_supported_v
staticconstexpr
Initial value:
= std::is_trivially_destructible_v<T> &&
std::is_trivially_copyable_v<T> &&
sizeof(T) <= inline_size &&
alignof(T) <= inline_alignment
#define T
static constexpr int64_t inline_alignment
Definition FN_field.hh:85
static constexpr int64_t inline_size
Definition FN_field.hh:84

Definition at line 88 of file FN_field.hh.

Referenced by blender::fn::Field< T >::Field().

◆ value

AlignedBuffer<inline_size, inline_alignment> blender::fn::GField::TrivialInlineConstant::value

The documentation for this struct was generated from the following file: