Class EnumObj#
Defined in File enum.h
Inheritance Relationships#
Base Type#
public tvm::ffi::Object(Class Object)
Derived Types#
public tvm::ffi::IntEnumObj(Class IntEnumObj)public tvm::ffi::StrEnumObj(Class StrEnumObj)
Class Documentation#
-
class EnumObj : public tvm::ffi::Object#
Base class for FFI-registered enum singletons.
Subclassed by tvm::ffi::IntEnumObj, tvm::ffi::StrEnumObj
Public Functions
-
EnumObj() = default#
Public Members
-
int64_t _int_index = 0#
Canonical integer index.
Public Static Functions
-
template<typename EnumClsObj>
static inline Enum _GetByIntIndex(int64_t index)# Look up a registered enum singleton by its canonical integer index.
-
template<typename EnumClsObj>
static inline Enum _GetByStrIndex(const String &index)# Look up a registered enum singleton by its canonical string index.
-
static inline Enum _GetByIntIndex(int32_t type_index, int64_t index)#
Look up a registered enum singleton by runtime type and canonical integer index.
- Parameters:
type_index – The runtime type index of the registered enum class.
index – The canonical integer index.
- Returns:
The registered
Enumsingleton.
-
static inline Enum _GetByStrIndex(int32_t type_index, const String &index)#
Look up a registered enum singleton by runtime type and canonical string index.
- Parameters:
type_index – The runtime type index of the registered enum class.
index – The canonical string index.
- Returns:
The registered
Enumsingleton.
-
EnumObj() = default#