Class AccessStep#
Defined in File access_path.h
Inheritance Relationships#
Base Type#
public tvm::ffi::ObjectRef
(Class ObjectRef)
Class Documentation#
-
class AccessStep : public tvm::ffi::ObjectRef#
ObjectRef class of AccessStepObj.
See also
Public Functions
-
inline AccessStep(AccessKind kind, Any key)#
Constructor.
- Parameters:
kind – The kind of the access step.
key – The key of the access step.
Public Static Functions
-
static inline AccessStep Attr(String field_name)#
Create an access step for a object attribute access.
- Parameters:
field_name – The name of the field to access.
- Returns:
The access step.
-
static inline AccessStep AttrMissing(String field_name)#
Create an access step for a object attribute missing access.
- Parameters:
field_name – The name of the field to access.
- Returns:
The access step.
-
static inline AccessStep ArrayItem(int64_t index)#
Create an access step for a array item access.
- Parameters:
index – The index of the array item to access.
- Returns:
The access step.
-
static inline AccessStep ArrayItemMissing(int64_t index)#
Create an access step for a array item missing access.
- Parameters:
index – The index of the array item to access.
- Returns:
The access step.
-
static inline AccessStep MapItem(Any key)#
Create an access step for a map item access.
- Parameters:
key – The key of the map item to access.
- Returns:
The access step.
-
static inline AccessStep MapItemMissing(Any key = nullptr)#
Create an access step for a map item missing access.
- Parameters:
key – The key of the map item to access.
- Returns:
The access step.
-
inline AccessStep(AccessKind kind, Any key)#