tvm
|
RAII wrapper function to enter and exit a context object similar to python's with syntax. More...
#include <with.h>
Public Member Functions | |
template<typename... Args> | |
With (Args &&... args) | |
constructor. Enter the scope of the context. More... | |
~With () DMLC_THROW_EXCEPTION | |
destructor, leaves the scope of the context. More... | |
With (const With &other)=delete | |
With & | operator= (const With &other)=delete |
With (With &&other)=delete | |
With & | operator= (With &&other)=delete |
ContextType * | get () |
const ContextType * | get () const |
ContextType * | operator-> () |
const ContextType * | operator-> () const |
ContextType & | operator* () |
const ContextType * | operator* () const |
ContextType | operator() () |
RAII wrapper function to enter and exit a context object similar to python's with syntax.
ContextType | Type of the context object. |
|
inlineexplicit |
constructor. Enter the scope of the context.
destructor, leaves the scope of the context.
|
delete |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
delete |