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, Optional< ExprDoc > msg=std::nullopt)
 Constructor of AssertDoc. More...
 
 TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS (AssertDoc, StmtDoc, AssertDocNode)
 
- Public Member Functions inherited from tvm::script::printer::StmtDoc
 TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS (StmtDoc, Doc, StmtDocNode)
 
- Public Member Functions inherited from tvm::script::printer::Doc
 TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS (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
 

Detailed Description

Reference type of AssertDocNode.

See also
AssertDocNode

Constructor & Destructor Documentation

◆ AssertDoc()

tvm::script::printer::AssertDoc::AssertDoc ( ExprDoc  test,
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_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS()

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

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