Template Function tvm::ffi::reflection::ForEachFieldInfo

Template Function tvm::ffi::reflection::ForEachFieldInfo#

Function Documentation#

template<typename Callback>
inline void tvm::ffi::reflection::ForEachFieldInfo(const TypeInfo *type_info, Callback callback)#

Visit each field info of the type info and run callback.

Note

This function calls both the child and parent type info.

Template Parameters:

Callback – The callback function type.

Parameters:
  • type_info – The type info.

  • callback – The callback function.