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

#include <ast.hh>

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

Public Member Functions

 NODE_COMMON (ClassDecl)
bool is_enum () const
bool is_enum_class () const
bool is_union () const
bool is_anonymous () const
IdQualified identifier () const
AttrList attributes () const
IdQualified parent_class () const
LocalScope body () 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 1293 of file ast.hh.

Member Function Documentation

◆ attributes()

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

Definition at line 1307 of file ast.hh.

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

◆ body()

LocalScope blender::gpu::shader::parser::ast::ClassDecl::body ( ) const
inline

Definition at line 1314 of file ast.hh.

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

Referenced by parent_class().

◆ identifier()

◆ is_anonymous()

bool blender::gpu::shader::parser::ast::ClassDecl::is_anonymous ( ) const
inline

Definition at line 1300 of file ast.hh.

References identifier(), and blender::gpu::shader::parser::ast::Node::is_valid().

◆ is_enum()

bool blender::gpu::shader::parser::ast::ClassDecl::is_enum ( ) const

Definition at line 133 of file ast.cc.

References lexit::Enum, and blender::gpu::shader::parser::ast::Node::front().

Referenced by NODE_COMMON().

◆ is_enum_class()

bool blender::gpu::shader::parser::ast::ClassDecl::is_enum_class ( ) const

◆ is_union()

bool blender::gpu::shader::parser::ast::ClassDecl::is_union ( ) const

Definition at line 143 of file ast.cc.

References blender::gpu::shader::parser::ast::Node::front(), and lexit::Union.

Referenced by NODE_COMMON().

◆ NODE_COMMON()

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

◆ parent_class()

IdQualified blender::gpu::shader::parser::ast::ClassDecl::parent_class ( ) const

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