MLIR  21.0.0git
Classes | Public Member Functions | List of all members
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 73 of file VariantValue.h.

Constructor & Destructor Documentation

◆ VariantValue() [1/6]

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

Definition at line 75 of file VariantValue.h.

◆ VariantValue() [2/6]

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

Definition at line 44 of file VariantValue.cpp.

◆ ~VariantValue()

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

Definition at line 67 of file VariantValue.cpp.

◆ VariantValue() [3/6]

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

Definition at line 49 of file VariantValue.cpp.

References mlir::String.

◆ VariantValue() [4/6]

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

Definition at line 54 of file VariantValue.cpp.

References mlir::query::matcher::Matcher.

◆ VariantValue() [5/6]

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

Definition at line 59 of file VariantValue.cpp.

◆ VariantValue() [6/6]

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

Definition at line 63 of file VariantValue.cpp.

References mlir::query::matcher::Boolean, and setBoolean().

Member Function Documentation

◆ getBoolean()

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

◆ getMatcher()

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

◆ 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 109 of file VariantValue.h.

Referenced by operator bool().

◆ isBoolean()

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

◆ isMatcher()

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

◆ 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 108 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 125 of file VariantValue.cpp.

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

◆ setMatcher()

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

Definition at line 150 of file VariantValue.cpp.

Referenced by operator=().

◆ setSigned()

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

Definition at line 115 of file VariantValue.cpp.

Referenced by operator=().

◆ setString()

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

Definition at line 137 of file VariantValue.cpp.

Referenced by operator=().


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