Flutter Engine
The Flutter Engine
|
#include <SkSLTernaryExpression.h>
Public Member Functions | |
TernaryExpression (Position pos, std::unique_ptr< Expression > test, std::unique_ptr< Expression > ifTrue, std::unique_ptr< Expression > ifFalse) | |
std::unique_ptr< Expression > & | test () |
const std::unique_ptr< Expression > & | test () const |
std::unique_ptr< Expression > & | ifTrue () |
const std::unique_ptr< Expression > & | ifTrue () const |
std::unique_ptr< Expression > & | ifFalse () |
const std::unique_ptr< Expression > & | ifFalse () const |
std::unique_ptr< Expression > | clone (Position pos) const override |
std::string | description (OperatorPrecedence parentPrecedence) const override |
Public Member Functions inherited from SkSL::Expression | |
Expression (Position pos, Kind kind, const Type *type) | |
Kind | kind () const |
const Type & | type () const |
bool | isAnyConstructor () const |
bool | isIntLiteral () const |
bool | isFloatLiteral () const |
bool | isBoolLiteral () const |
AnyConstructor & | asAnyConstructor () |
const AnyConstructor & | asAnyConstructor () const |
bool | isIncomplete (const Context &context) const |
virtual ComparisonResult | compareConstant (const Expression &other) const |
CoercionCost | coercionCost (const Type &target) const |
virtual bool | supportsConstantValues () const |
virtual std::optional< double > | getConstantValue (int n) const |
virtual std::unique_ptr< Expression > | clone (Position pos) const =0 |
std::unique_ptr< Expression > | clone () const |
std::string | description () const final |
virtual std::string | description (OperatorPrecedence parentPrecedence) const =0 |
Public Member Functions inherited from SkSL::IRNode | |
virtual | ~IRNode () |
virtual std::string | description () const =0 |
IRNode (const IRNode &)=delete | |
IRNode & | operator= (const IRNode &)=delete |
Position | position () const |
void | setPosition (Position p) |
template<typename T > | |
bool | is () const |
template<typename T > | |
const T & | as () const |
template<typename T > | |
T & | as () |
Static Public Member Functions | |
static std::unique_ptr< Expression > | Convert (const Context &context, Position pos, std::unique_ptr< Expression > test, std::unique_ptr< Expression > ifTrue, std::unique_ptr< Expression > ifFalse) |
static std::unique_ptr< Expression > | Make (const Context &context, Position pos, std::unique_ptr< Expression > test, std::unique_ptr< Expression > ifTrue, std::unique_ptr< Expression > ifFalse) |
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::kTernary |
Additional Inherited Members | |
Public Types inherited from SkSL::Expression | |
enum class | ComparisonResult { kUnknown = -1 , kNotEqual , kEqual } |
using | Kind = ExpressionKind |
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 |
A ternary expression (test ? ifTrue : ifFalse).
Definition at line 30 of file SkSLTernaryExpression.h.
|
inline |
Definition at line 34 of file SkSLTernaryExpression.h.
|
inlineoverridevirtual |
Implements SkSL::Expression.
Definition at line 82 of file SkSLTernaryExpression.h.
|
static |
Definition at line 24 of file SkSLTernaryExpression.cpp.
|
overridevirtual |
Implements SkSL::Expression.
Definition at line 139 of file SkSLTernaryExpression.cpp.
|
inline |
Definition at line 74 of file SkSLTernaryExpression.h.
|
inline |
Definition at line 78 of file SkSLTernaryExpression.h.
|
inline |
Definition at line 66 of file SkSLTernaryExpression.h.
|
inline |
Definition at line 70 of file SkSLTernaryExpression.h.
|
static |
Definition at line 72 of file SkSLTernaryExpression.cpp.
|
inline |
Definition at line 58 of file SkSLTernaryExpression.h.
|
inline |
Definition at line 62 of file SkSLTernaryExpression.h.
|
inlinestaticconstexpr |
Definition at line 32 of file SkSLTernaryExpression.h.