Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
SkSL::Nop Class Referencefinal

#include <SkSLNop.h>

Inheritance diagram for SkSL::Nop:
SkSL::Statement SkSL::IRNode SkSL::Poolable

Public Member Functions

 Nop ()
 
bool isEmpty () const override
 
std::string description () const override
 
- Public Member Functions inherited from SkSL::Statement
 Statement (Position pos, Kind kind)
 
Kind kind () const
 
virtual bool isEmpty () 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 ()
 

Static Public Member Functions

static std::unique_ptr< StatementMake ()
 
- Static Public Member Functions inherited from SkSL::Poolable
static void * operator new (const size_t size)
 
static void operator delete (void *ptr)
 

Static Public Attributes

static constexpr Kind kIRNodeKind = Kind::kNop
 

Additional Inherited Members

- Public Types inherited from SkSL::Statement
using Kind = StatementKind
 
- 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

A no-op statement that does nothing.

Definition at line 19 of file SkSLNop.h.

Constructor & Destructor Documentation

◆ Nop()

SkSL::Nop::Nop ( )
inline

Definition at line 23 of file SkSLNop.h.

24 : INHERITED(Position(), kIRNodeKind) {}
static constexpr Kind kIRNodeKind
Definition: SkSLNop.h:21

Member Function Documentation

◆ description()

std::string SkSL::Nop::description ( ) const
inlineoverridevirtual

Implements SkSL::IRNode.

Definition at line 34 of file SkSLNop.h.

34 {
35 return ";";
36 }

◆ isEmpty()

bool SkSL::Nop::isEmpty ( ) const
inlineoverridevirtual

Reimplemented from SkSL::Statement.

Definition at line 30 of file SkSLNop.h.

30 {
31 return true;
32 }

◆ Make()

static std::unique_ptr< Statement > SkSL::Nop::Make ( )
inlinestatic

Definition at line 26 of file SkSLNop.h.

26 {
27 return std::make_unique<Nop>();
28 }

Member Data Documentation

◆ kIRNodeKind

constexpr Kind SkSL::Nop::kIRNodeKind = Kind::kNop
inlinestaticconstexpr

Definition at line 21 of file SkSLNop.h.


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