tvm
Public Types | Public Member Functions | List of all members
tvm::TypeFunctor< R(const Type &n, Args...)> Class Template Reference

#include <type_functor.h>

Collaboration diagram for tvm::TypeFunctor< R(const Type &n, Args...)>:

Public Types

using result_type = R
 the result type of this functor More...
 

Public Member Functions

virtual ~TypeFunctor ()
 virtual destructor More...
 
operator() (const Type &n, Args... args)
 Same as call. More...
 
virtual R VisitType (const Type &n, Args... args)
 The functor call. More...
 
virtual R VisitType_ (const TensorTypeNode *op, Args... args)
 
virtual R VisitType_ (const TypeVarNode *op, Args... args)
 
virtual R VisitType_ (const TypeConstraintNode *op, Args... args)
 
virtual R VisitType_ (const FuncTypeNode *op, Args... args)
 
virtual R VisitType_ (const TypeRelationNode *op, Args... args)
 
virtual R VisitType_ (const TupleTypeNode *op, Args... args)
 
virtual R VisitType_ (const IncompleteTypeNode *op, Args... args)
 
virtual R VisitType_ (const RelayRefTypeNode *op, Args... args)
 
virtual R VisitType_ (const GlobalTypeVarNode *op, Args... args)
 
virtual R VisitType_ (const TypeCallNode *op, Args... args)
 
virtual R VisitType_ (const TypeDataNode *op, Args... args)
 
virtual R VisitType_ (const PrimTypeNode *op, Args... args)
 
virtual R VisitType_ (const PointerTypeNode *op, Args... args)
 
virtual R VisitTypeDefault_ (const Object *op, Args...)
 

Member Typedef Documentation

◆ result_type

template<typename R , typename... Args>
using tvm::TypeFunctor< R(const Type &n, Args...)>::result_type = R

the result type of this functor

Constructor & Destructor Documentation

◆ ~TypeFunctor()

template<typename R , typename... Args>
virtual tvm::TypeFunctor< R(const Type &n, Args...)>::~TypeFunctor ( )
inlinevirtual

virtual destructor

Member Function Documentation

◆ operator()()

template<typename R , typename... Args>
R tvm::TypeFunctor< R(const Type &n, Args...)>::operator() ( const Type n,
Args...  args 
)
inline

Same as call.

Parameters
nThe expression node.
argsAdditional arguments.
Returns
The result of the call

◆ VisitType()

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType ( const Type n,
Args...  args 
)
inlinevirtual

The functor call.

Parameters
nThe expression node.
argsAdditional arguments.
Returns
The result of the call

◆ VisitType_() [1/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const FuncTypeNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [2/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const GlobalTypeVarNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [3/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const IncompleteTypeNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [4/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const PointerTypeNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [5/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const PrimTypeNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [6/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const RelayRefTypeNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [7/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const TensorTypeNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [8/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const TupleTypeNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [9/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const TypeCallNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [10/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const TypeConstraintNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [11/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const TypeDataNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [12/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const TypeRelationNode op,
Args...  args 
)
inlinevirtual

◆ VisitType_() [13/13]

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitType_ ( const TypeVarNode op,
Args...  args 
)
inlinevirtual

◆ VisitTypeDefault_()

template<typename R , typename... Args>
virtual R tvm::TypeFunctor< R(const Type &n, Args...)>::VisitTypeDefault_ ( const Object op,
Args...   
)
inlinevirtual

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