Blender V5.3
blender::fn::Field< T > Class Template Reference

#include <FN_field.hh>

Public Types

using base_type = T
using generic_type = GField

Static Public Member Functions

template<typename InputT, typename... Args>
static Field from_input (Args &&...args)

Inline Methods

 Field ()
 Field (FieldInputPtr node)
 Field (FieldOperationPtr node, int output_i=0)
 Field (T value)
 operator const GField & () const
bool depends_on_input () const
template<typename InputT>
const InputT * get_input_if () const
uint64_t hash () const
template<typename InputT, typename... Args>
Field< T > from_input (Args &&...args)
static Field from_non_owning_ref (const Field &field)

Detailed Description

template<typename T>
class blender::fn::Field< T >

A version of GField that should be used when the field type is known at compile time.

Definition at line 203 of file FN_field.hh.

Member Typedef Documentation

◆ base_type

template<typename T>
using blender::fn::Field< T >::base_type = T

Definition at line 205 of file FN_field.hh.

◆ generic_type

template<typename T>
using blender::fn::Field< T >::generic_type = GField

Definition at line 206 of file FN_field.hh.

Constructor & Destructor Documentation

◆ Field() [1/4]

template<typename T>
blender::fn::Field< T >::Field ( )
inline

Unlike GField, default construction is allowed here, because the type is known without extra arguments.

Definition at line 603 of file FN_field.hh.

References T.

Referenced by from_input(), from_non_owning_ref(), and operator const GField &().

◆ Field() [2/4]

template<typename T>
blender::fn::Field< T >::Field ( FieldInputPtr node)
inlineexplicit

Same as corresponding GField constructors.

Definition at line 605 of file FN_field.hh.

References node.

◆ Field() [3/4]

template<typename T>
blender::fn::Field< T >::Field ( FieldOperationPtr node,
int output_i = 0 )
inlineexplicit

Definition at line 609 of file FN_field.hh.

References node.

◆ Field() [4/4]

template<typename T>
blender::fn::Field< T >::Field ( T value)
inlineexplicit

Member Function Documentation

◆ depends_on_input()

◆ from_input() [1/2]

template<typename T>
template<typename InputT, typename... Args>
Field< T > blender::fn::Field< T >::from_input ( Args &&... args)
inline

Definition at line 490 of file FN_field.hh.

◆ from_input() [2/2]

template<typename T>
template<typename InputT, typename... Args>
Field blender::fn::Field< T >::from_input ( Args &&... args)
static

◆ from_non_owning_ref()

◆ get_input_if()

template<typename T>
template<typename InputT>
const InputT * blender::fn::Field< T >::get_input_if ( ) const
inline

◆ hash()

template<typename T>
uint64_t blender::fn::Field< T >::hash ( ) const
inline

Definition at line 554 of file FN_field.hh.

◆ operator const GField &()

template<typename T>
blender::fn::Field< T >::operator const GField & ( ) const
inline

This is implicitly cast to GField which is always valid.

Definition at line 579 of file FN_field.hh.

References Field().


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