Class compare#
Defined in File registry.h
Inheritance Relationships#
Base Type#
public tvm::ffi::reflection::InfoTrait(Struct InfoTrait)
Class Documentation#
-
class compare : public tvm::ffi::reflection::InfoTrait#
InfoTrait to control whether a field participates in recursive comparison.
Usage:
refl::compare(false)marks a field to be excluded from RecursiveEq/RecursiveLt/etc.Public Functions
-
inline explicit compare(bool include)#
Constructor.
- Parameters:
include – Whether the field should participate in comparison.
-
inline void Apply(TVMFFIFieldInfo *info) const#
Apply the compare flag to the field info.
- Parameters:
info – The field info.
-
inline explicit compare(bool include)#