MLIR 22.0.0git
mlir::query::matcher::VariantValue Class Reference

#include "mlir/Query/Matcher/VariantValue.h"

Public Member Functions

 VariantValue ()
 VariantValue (const VariantValue &other)
 ~VariantValue ()
VariantValueoperator= (const VariantValue &other)
 VariantValue (const llvm::StringRef string)
 VariantValue (const VariantMatcher &matcher)
 VariantValue (int64_t signedValue)
 VariantValue (bool setBoolean)
bool isString () const
const llvm::StringRef & getString () const
void setString (const llvm::StringRef &string)
bool isMatcher () const
const VariantMatchergetMatcher () const
void setMatcher (const VariantMatcher &matcher)
bool isSigned () const
int64_t getSigned () const
void setSigned (int64_t signedValue)
bool isBoolean () const
bool getBoolean () const
void setBoolean (bool booleanValue)
std::string getTypeAsString () const
 operator bool () const
bool hasValue () const

Detailed Description

Definition at line 82 of file VariantValue.h.

Constructor & Destructor Documentation

◆ VariantValue() [1/6]

mlir::query::matcher::VariantValue::VariantValue ( )
inline

Definition at line 84 of file VariantValue.h.

Referenced by operator=(), and VariantValue().

◆ VariantValue() [2/6]

mlir::query::matcher::VariantValue::VariantValue ( const VariantValue & other)

Definition at line 95 of file VariantValue.cpp.

References VariantValue().

◆ ~VariantValue()

mlir::query::matcher::VariantValue::~VariantValue ( )

Definition at line 118 of file VariantValue.cpp.

◆ VariantValue() [3/6]

mlir::query::matcher::VariantValue::VariantValue ( const llvm::StringRef string)

Definition at line 100 of file VariantValue.cpp.

◆ VariantValue() [4/6]

mlir::query::matcher::VariantValue::VariantValue ( const VariantMatcher & matcher)

Definition at line 105 of file VariantValue.cpp.

◆ VariantValue() [5/6]

mlir::query::matcher::VariantValue::VariantValue ( int64_t signedValue)

Definition at line 110 of file VariantValue.cpp.

◆ VariantValue() [6/6]

mlir::query::matcher::VariantValue::VariantValue ( bool setBoolean)

Definition at line 114 of file VariantValue.cpp.

References setBoolean().

Member Function Documentation

◆ getBoolean()

bool mlir::query::matcher::VariantValue::getBoolean ( ) const

◆ getMatcher()

◆ getSigned()

int64_t mlir::query::matcher::VariantValue::getSigned ( ) const

◆ getString()

const llvm::StringRef & mlir::query::matcher::VariantValue::getString ( ) const

◆ getTypeAsString()

std::string mlir::query::matcher::VariantValue::getTypeAsString ( ) const

◆ hasValue()

bool mlir::query::matcher::VariantValue::hasValue ( ) const
inline

Definition at line 118 of file VariantValue.h.

Referenced by operator bool().

◆ isBoolean()

bool mlir::query::matcher::VariantValue::isBoolean ( ) const

◆ isMatcher()

◆ isSigned()

bool mlir::query::matcher::VariantValue::isSigned ( ) const

◆ isString()

bool mlir::query::matcher::VariantValue::isString ( ) const

◆ operator bool()

mlir::query::matcher::VariantValue::operator bool ( ) const
inlineexplicit

Definition at line 117 of file VariantValue.h.

References hasValue().

◆ operator=()

VariantValue & mlir::query::matcher::VariantValue::operator= ( const VariantValue & other)

◆ setBoolean()

void mlir::query::matcher::VariantValue::setBoolean ( bool booleanValue)

Definition at line 176 of file VariantValue.cpp.

Referenced by operator=(), and VariantValue().

◆ setMatcher()

void mlir::query::matcher::VariantValue::setMatcher ( const VariantMatcher & matcher)

Definition at line 201 of file VariantValue.cpp.

Referenced by operator=().

◆ setSigned()

void mlir::query::matcher::VariantValue::setSigned ( int64_t signedValue)

Definition at line 166 of file VariantValue.cpp.

Referenced by operator=().

◆ setString()

void mlir::query::matcher::VariantValue::setString ( const llvm::StringRef & string)

Definition at line 188 of file VariantValue.cpp.

Referenced by operator=().


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