tvm
Public Member Functions | List of all members
tvm::script::printer::AssertDoc Class Reference

Reference type of AssertDocNode. More...

#include <doc.h>

Inheritance diagram for tvm::script::printer::AssertDoc:
Collaboration diagram for tvm::script::printer::AssertDoc:

Public Member Functions

 AssertDoc (ExprDoc test, ffi::Optional< ExprDoc > msg=std::nullopt)
 Constructor of AssertDoc. More...
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (AssertDoc, StmtDoc, AssertDocNode)
 
- Public Member Functions inherited from tvm::script::printer::StmtDoc
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (StmtDoc, Doc, StmtDocNode)
 
- Public Member Functions inherited from tvm::script::printer::Doc
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Doc, ObjectRef, DocNode)
 

Additional Inherited Members

- Protected Member Functions inherited from tvm::script::printer::StmtDoc
 StmtDoc ()=default
 
- Protected Member Functions inherited from tvm::script::printer::Doc
 Doc ()=default
 
 Doc (ObjectPtr< DocNode > data)
 

Detailed Description

Reference type of AssertDocNode.

See also
AssertDocNode

Constructor & Destructor Documentation

◆ AssertDoc()

tvm::script::printer::AssertDoc::AssertDoc ( ExprDoc  test,
ffi::Optional< ExprDoc msg = std::nullopt 
)
explicit

Constructor of AssertDoc.

Parameters
testThe expression to test.
msgThe optional error message when assertion failed.

Member Function Documentation

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::script::printer::AssertDoc::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( AssertDoc  ,
StmtDoc  ,
AssertDocNode   
)

The documentation for this class was generated from the following file: