tvm
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
tvm::PVarWithCheck< Derived, T > Class Template Reference

Wrapper for pattern variable container with extra match logic. More...

#include <pattern_match.h>

Inheritance diagram for tvm::PVarWithCheck< Derived, T >:
Collaboration diagram for tvm::PVarWithCheck< Derived, T >:

Public Types

using Nested = const PVarWithCheck< Derived, T > &
 
- Public Types inherited from tvm::Pattern< PVarWithCheck< Derived, T > >
using Nested = PVarWithCheck< Derived, T >
 Nested storage type in the expression.
 

Public Member Functions

void InitMatch_ () const
 
bool Match_ (const T &value) const
 
template<typename NodeRefType , typename = typename std::enable_if<std::is_base_of<NodeRefType, T>::value>::type>
bool Match_ (const NodeRefType &value) const
 
T Eval () const
 
- Public Member Functions inherited from tvm::Pattern< PVarWithCheck< Derived, T > >
bool Match (const NodeType &value) const
 Check if value matches the current pattern.
 
bool Match (const NodeType &value, Condition cond) const
 Check if value matches the current pattern.
 
const PVarWithCheck< Derived, T > & derived () const
 

Protected Attributes

PVar< T > pvar_
 

Detailed Description

template<typename Derived, typename T>
class tvm::PVarWithCheck< Derived, T >

Wrapper for pattern variable container with extra match logic.

Template Parameters
Derivedthe type of derived class.
Tthe type of the hole.

Member Typedef Documentation

◆ Nested

template<typename Derived , typename T >
using tvm::PVarWithCheck< Derived, T >::Nested = const PVarWithCheck<Derived, T>&

Member Function Documentation

◆ Eval()

template<typename Derived , typename T >
T tvm::PVarWithCheck< Derived, T >::Eval ( ) const
inline

◆ InitMatch_()

template<typename Derived , typename T >
void tvm::PVarWithCheck< Derived, T >::InitMatch_ ( ) const
inline

◆ Match_() [1/2]

template<typename Derived , typename T >
template<typename NodeRefType , typename = typename std::enable_if<std::is_base_of<NodeRefType, T>::value>::type>
bool tvm::PVarWithCheck< Derived, T >::Match_ ( const NodeRefType &  value) const
inline

◆ Match_() [2/2]

template<typename Derived , typename T >
bool tvm::PVarWithCheck< Derived, T >::Match_ ( const T &  value) const
inline

Member Data Documentation

◆ pvar_

template<typename Derived , typename T >
PVar<T> tvm::PVarWithCheck< Derived, T >::pvar_
protected

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