Blender V5.0
blender::fn::GFieldBase< NodePtr > Class Template Reference

#include <FN_field.hh>

Public Member Functions

 GFieldBase ()=default
 operator bool () const
uint64_t hash () const
const CPPTypecpp_type () const
const FieldNodenode () const
int node_output_index () const

Protected Member Functions

 GFieldBase (NodePtr node, const int node_output_index)

Protected Attributes

NodePtr node_ = nullptr
int node_output_index_ = 0

Friends

bool operator== (const GFieldBase &a, const GFieldBase &b)

Detailed Description

template<typename NodePtr>
class blender::fn::GFieldBase< NodePtr >

Common base class for fields to avoid declaring the same methods for GField and GFieldRef.

Definition at line 100 of file FN_field.hh.

Constructor & Destructor Documentation

◆ GFieldBase() [1/2]

template<typename NodePtr>
blender::fn::GFieldBase< NodePtr >::GFieldBase ( NodePtr node,
const int node_output_index )
inlineprotected

Definition at line 105 of file FN_field.hh.

References node(), node_, node_output_index(), and node_output_index_.

Referenced by operator==.

◆ GFieldBase() [2/2]

template<typename NodePtr>
blender::fn::GFieldBase< NodePtr >::GFieldBase ( )
default

Member Function Documentation

◆ cpp_type()

◆ hash()

template<typename NodePtr>
uint64_t blender::fn::GFieldBase< NodePtr >::hash ( ) const
inline

Definition at line 125 of file FN_field.hh.

References blender::get_default_hash(), node_, and node_output_index_.

◆ node()

◆ node_output_index()

template<typename NodePtr>
int blender::fn::GFieldBase< NodePtr >::node_output_index ( ) const
inline

Definition at line 140 of file FN_field.hh.

References node_output_index_.

Referenced by GFieldBase().

◆ operator bool()

template<typename NodePtr>
blender::fn::GFieldBase< NodePtr >::operator bool ( ) const
inline

Definition at line 113 of file FN_field.hh.

References node_.

◆ operator==

template<typename NodePtr>
bool operator== ( const GFieldBase< NodePtr > & a,
const GFieldBase< NodePtr > & b )
friend

Definition at line 118 of file FN_field.hh.

References b, GFieldBase(), node_, and node_output_index_.

Member Data Documentation

◆ node_

template<typename NodePtr>
NodePtr blender::fn::GFieldBase< NodePtr >::node_ = nullptr
protected

Definition at line 102 of file FN_field.hh.

Referenced by cpp_type(), GFieldBase(), hash(), node(), operator bool(), and operator==.

◆ node_output_index_

template<typename NodePtr>
int blender::fn::GFieldBase< NodePtr >::node_output_index_ = 0
protected

Definition at line 103 of file FN_field.hh.

Referenced by cpp_type(), GFieldBase(), hash(), node_output_index(), and operator==.


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