Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
SkSL::ProgramElement Class Reference

#include <SkSLProgramElement.h>

Inheritance diagram for SkSL::ProgramElement:
SkSL::IRNode SkSL::Poolable SkSL::Extension SkSL::FunctionDefinition SkSL::FunctionPrototype SkSL::GlobalVarDeclaration SkSL::InterfaceBlock SkSL::ModifiersDeclaration SkSL::StructDefinition

Public Types

using Kind = ProgramElementKind
 

Public Member Functions

 ProgramElement (Position pos, Kind kind)
 
Kind kind () const
 
- Public Member Functions inherited from SkSL::IRNode
virtual ~IRNode ()
 
virtual std::string description () const =0
 
 IRNode (const IRNode &)=delete
 
IRNodeoperator= (const IRNode &)=delete
 
Position position () const
 
void setPosition (Position p)
 
template<typename T >
bool is () const
 
template<typename T >
const Tas () const
 
template<typename T >
Tas ()
 

Additional Inherited Members

- Static Public Member Functions inherited from SkSL::Poolable
static void * operator new (const size_t size)
 
static void operator delete (void *ptr)
 
- Public Attributes inherited from SkSL::IRNode
Position fPosition
 
- Protected Member Functions inherited from SkSL::IRNode
 IRNode (Position position, int kind)
 
- Protected Attributes inherited from SkSL::IRNode
int fKind
 

Detailed Description

Represents a top-level element (e.g. function or global variable) in a program.

Definition at line 20 of file SkSLProgramElement.h.

Member Typedef Documentation

◆ Kind

Definition at line 22 of file SkSLProgramElement.h.

Constructor & Destructor Documentation

◆ ProgramElement()

SkSL::ProgramElement::ProgramElement ( Position  pos,
Kind  kind 
)
inline

Definition at line 24 of file SkSLProgramElement.h.

25 : INHERITED(pos, (int) kind) {
26 SkASSERT(kind >= Kind::kFirst && kind <= Kind::kLast);
27 }
SkPoint pos
#define SkASSERT(cond)
Definition: SkAssert.h:116

Member Function Documentation

◆ kind()

Kind SkSL::ProgramElement::kind ( ) const
inline

Definition at line 29 of file SkSLProgramElement.h.

29 {
30 return (Kind) fKind;
31 }

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