MLIR  20.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)
 
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)
 
std::string getTypeAsString () const
 

Detailed Description

Definition at line 73 of file VariantValue.h.

Constructor & Destructor Documentation

◆ VariantValue() [1/4]

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

Definition at line 75 of file VariantValue.h.

◆ VariantValue() [2/4]

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 59 of file VariantValue.cpp.

◆ VariantValue() [3/4]

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

Definition at line 49 of file VariantValue.cpp.

References mlir::String.

◆ VariantValue() [4/4]

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

Definition at line 54 of file VariantValue.cpp.

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

Member Function Documentation

◆ getMatcher()

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

◆ getString()

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

◆ getTypeAsString()

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

◆ isMatcher()

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

◆ isString()

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

◆ operator=()

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

Definition at line 61 of file VariantValue.cpp.

References getMatcher(), getString(), setMatcher(), and setString().

◆ setMatcher()

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

Definition at line 114 of file VariantValue.cpp.

Referenced by operator=().

◆ setString()

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

Definition at line 101 of file VariantValue.cpp.

Referenced by operator=().


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