Blender  V3.3
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
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 92 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 97 of file FN_field.hh.

◆ GFieldBase() [2/2]

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

Member Function Documentation

◆ cpp_type()

template<typename NodePtr >
const CPPType& blender::fn::GFieldBase< NodePtr >::cpp_type ( ) const
inline

◆ hash()

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

◆ node()

template<typename NodePtr >
const FieldNode& blender::fn::GFieldBase< NodePtr >::node ( ) const
inline

◆ node_output_index()

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

◆ operator bool()

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

Definition at line 105 of file FN_field.hh.

References blender::fn::GFieldBase< NodePtr >::node_.

Friends And Related Function Documentation

◆ operator==

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

Definition at line 110 of file FN_field.hh.

Member Data Documentation

◆ node_

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

◆ node_output_index_

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

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