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

#include <FN_field.hh>

Inherits blender::fn::GField, and blender::fn::detail::TypedFieldBase.

Public Types

using base_type = T

Public Member Functions

 Field ()=default
 Field (GField field)
template<typename U>
 Field (Field< U > field)
 Field (std::shared_ptr< FieldNode > node, const int node_output_index=0)
Public Member Functions inherited from blender::fn::GField
 GField ()=default
 GField (std::shared_ptr< FieldNode > node, const int node_output_index=0)
Public Member Functions inherited from blender::fn::GFieldBase< std::shared_ptr< FieldNode > >
 operator bool () const
uint64_t hash () const
const CPPTypecpp_type () const
const FieldNodenode () const
int node_output_index () const

Additional Inherited Members

Protected Member Functions inherited from blender::fn::GFieldBase< std::shared_ptr< FieldNode > >
 GFieldBase (std::shared_ptr< FieldNode > node, const int node_output_index)
Protected Attributes inherited from blender::fn::GFieldBase< std::shared_ptr< FieldNode > >
std::shared_ptr< FieldNodenode_
int node_output_index_

Detailed Description

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

A typed version of GField. It has the same memory layout as GField.

Definition at line 186 of file FN_field.hh.

Member Typedef Documentation

◆ base_type

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

Definition at line 188 of file FN_field.hh.

Constructor & Destructor Documentation

◆ Field() [1/4]

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

Referenced by Field(), and Field().

◆ Field() [2/4]

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

◆ Field() [3/4]

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

Generally, the constructor above would be sufficient, but this additional constructor ensures that trying to create e.g. a Field<int> from a Field<float> does not compile (instead of only failing at run-time).

Definition at line 202 of file FN_field.hh.

References Field(), and blender::fn::GField::GField().

◆ Field() [4/4]

template<typename T>
blender::fn::Field< T >::Field ( std::shared_ptr< FieldNode > node,
const int node_output_index = 0 )
inline

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