Class AccessStep#

Inheritance Relationships#

Base Type#

Class Documentation#

class AccessStep : public tvm::ffi::ObjectRef#

ObjectRef class of AccessStepObj.

See also

AccessStepObj

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.