|
tvm
|
Native object mutation over one constraint-aware engine and variable remap. More...
#include <object_functor_with_constraint_context.h>
Public Member Functions | |
| ObjectMutatorWithConstraintContext () | |
| ObjectMutatorWithConstraintContext (const ObjectMutatorWithConstraintContext &)=delete | |
| ObjectMutatorWithConstraintContext & | operator= (const ObjectMutatorWithConstraintContext &)=delete |
| virtual ffi::UnchangedOr< ffi::Any > | Mutate (ffi::AnyView value, ffi::InplaceMode mode=ffi::InplaceMode::kDisallow) |
| Dispatch a borrowed value after checking mutation permission and uniqueness. | |
| ffi::Expected< ffi::UnchangedOr< ffi::Any > > | MutateExpected (ffi::AnyView value, ffi::InplaceMode mode=ffi::InplaceMode::kDisallow) noexcept |
Protected Types | |
| using | VTable = ObjectFunctor< ffi::UnchangedOr< ffi::Any >(const ffi::Object *, ObjectMutatorWithConstraintContext *, ffi::InplaceMode)> |
Protected Member Functions | |
| ObjectMutatorWithConstraintContext (const VTable *table) | |
Static Protected Member Functions | |
| static void | InitVTable (VTable *table) |
| template<typename Self , typename Node > | |
| static void | SetDispatch (VTable *table) |
Native object mutation over one constraint-aware engine and variable remap.
Override Mutate for general dispatch. Forward inherited permission to children; the entry point checks uniqueness before dispatching a native hook. Unregistered values use structural fallback. Errors propagate without restoring the context.
|
protected |
|
inline |
|
delete |
|
inlineexplicitprotected |
|
inlinestaticprotected |
|
virtual |
Dispatch a borrowed value after checking mutation permission and uniqueness.
Reimplemented in tvm::tirx::StmtExprMutatorWithConstraintContext.
|
inlinenoexcept |
|
delete |
|
inlinestaticprotected |