Blender V5.3
blender::gpu::shader::parser::ast::FuncArg Struct Reference

#include <ast.hh>

Inherits blender::gpu::shader::parser::ast::Node.

Public Member Functions

 NODE_COMMON (FuncArg)
AttrList attributes () const
IdType type () const
Declarator declarator () const
bool is_reference () const
bool is_const () const
IdQualified identifier () const
ArrayDecl array () const
InitializerList initializer_list () const
AssignStmt initial_value () const
Public Member Functions inherited from blender::gpu::shader::parser::ast::Node
 Node ()=default
 Node (const ParserBase *p, NodeID id)
const NodeData * data () const
NodeType type () const
Token front () const
Token back () const
Node prev () const
Node next () const
Node parent () const
Node children () const
Node child_first () const
Node child_last () const
Node prev (NodeType type) const
Node next (NodeType type) const
Node parent (NodeType type) const
Node child_first (NodeType type) const
Node child_last (NodeType type) const
int child_count () const
bool is_empty () const
bool has_single_child () const
bool is_valid () const
std::string_view str () const
std::string_view str_full () const
void print_ast () const
bool operator== (NodeType type) const
bool operator!= (NodeType type) const
std::ostream & operator<< (std::ostream &os)
ChildRange children_range () const
template<typename NodeT>
TypedChildRange< NodeT > children_of_type () const
template<typename NodeT>
RecursiveTypedRange< NodeT > descendants_of_type () const

Additional Inherited Members

Public Attributes inherited from blender::gpu::shader::parser::ast::Node
const ParserBase * p = nullptr
NodeID id = -1

Detailed Description

Definition at line 918 of file ast.hh.

Member Function Documentation

◆ array()

ArrayDecl blender::gpu::shader::parser::ast::FuncArg::array ( ) const
inline

Definition at line 951 of file ast.hh.

References blender::gpu::shader::parser::ast::Declarator::array(), and declarator().

◆ attributes()

AttrList blender::gpu::shader::parser::ast::FuncArg::attributes ( ) const
inline

Definition at line 921 of file ast.hh.

References blender::gpu::shader::parser::ast::Node::child_first().

◆ declarator()

◆ identifier()

IdQualified blender::gpu::shader::parser::ast::FuncArg::identifier ( ) const
inline

◆ initial_value()

AssignStmt blender::gpu::shader::parser::ast::FuncArg::initial_value ( ) const
inline

◆ initializer_list()

InitializerList blender::gpu::shader::parser::ast::FuncArg::initializer_list ( ) const
inline

◆ is_const()

bool blender::gpu::shader::parser::ast::FuncArg::is_const ( ) const
inline

Definition at line 941 of file ast.hh.

References type().

◆ is_reference()

bool blender::gpu::shader::parser::ast::FuncArg::is_reference ( ) const
inline

◆ NODE_COMMON()

blender::gpu::shader::parser::ast::FuncArg::NODE_COMMON ( FuncArg )

◆ type()

IdType blender::gpu::shader::parser::ast::FuncArg::type ( ) const
inline

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