Blender V4.3
blender::fn::FieldConstant Class Reference

#include <FN_field.hh>

Inherits blender::fn::FieldNode.

Public Member Functions

#FieldConstant
 FieldConstant (const CPPType &type, const void *value)
 
 ~FieldConstant ()
 
const CPPTypeoutput_cpp_type (int output_index) const override
 
const CPPTypetype () const
 
GPointer value () const
 
- Public Member Functions inherited from blender::fn::FieldNode
 FieldNode (FieldNodeType node_type)
 
FieldNodeType node_type () const
 
bool depends_on_input () const
 
const std::shared_ptr< const FieldInputs > & field_inputs () const
 
virtual uint64_t hash () const
 
virtual bool is_equal_to (const FieldNode &other) const
 
virtual ~FieldNode ()
 
virtual void for_each_field_input_recursive (FunctionRef< void(const FieldInput &)> fn) const
 

Additional Inherited Members

- Protected Attributes inherited from blender::fn::FieldNode
std::shared_ptr< const FieldInputsfield_inputs_
 

Detailed Description

Definition at line 296 of file FN_field.hh.

Constructor & Destructor Documentation

◆ FieldConstant()

blender::fn::FieldConstant::FieldConstant ( const CPPType & type,
const void * value )

Definition at line 700 of file field.cc.

References MEM_mallocN_aligned().

◆ ~FieldConstant()

blender::fn::FieldConstant::~FieldConstant ( )

Definition at line 707 of file field.cc.

References blender::CPPType::destruct(), and MEM_freeN().

Member Function Documentation

◆ output_cpp_type()

const CPPType & blender::fn::FieldConstant::output_cpp_type ( int output_index) const
overridevirtual

Implements blender::fn::FieldNode.

Definition at line 713 of file field.cc.

References BLI_assert, and UNUSED_VARS_NDEBUG.

◆ type()

const CPPType & blender::fn::FieldConstant::type ( ) const

◆ value()

GPointer blender::fn::FieldConstant::value ( ) const

The documentation for this class was generated from the following files: