tvm
Public Member Functions | Friends | List of all members
tvm::ContextManager Class Reference

A context type that delegates EnterWithScope and ExitWithScope to user-provided functions. More...

#include <with.h>

Collaboration diagram for tvm::ContextManager:

Public Member Functions

template<class FEnter , class FExit >
 ContextManager (FEnter f_enter, FExit f_exit)
 Constructor of ContextManager. More...
 

Friends

template<typename >
class With
 

Detailed Description

A context type that delegates EnterWithScope and ExitWithScope to user-provided functions.

Constructor & Destructor Documentation

◆ ContextManager()

template<class FEnter , class FExit >
tvm::ContextManager::ContextManager ( FEnter  f_enter,
FExit  f_exit 
)
inlineexplicit

Constructor of ContextManager.

Parameters
f_enterThe function to call when entering scope. If it's nullptr, do nothing when entering.
f_exitThe function to call when exiting scope. If it's nullptr, do nothing when exiting.

Friends And Related Function Documentation

◆ With

template<typename >
friend class With
friend

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