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

Reference type of IfDocNode. More...

#include <doc.h>

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

Public Member Functions

 IfDoc (ExprDoc predicate, Array< StmtDoc > then_branch, Array< StmtDoc > else_branch)
 Constructor of IfDoc. More...
 
 TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS (IfDoc, StmtDoc, IfDocNode)
 
- 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 IfDocNode.

See also
IfDocNode

Constructor & Destructor Documentation

◆ IfDoc()

tvm::script::printer::IfDoc::IfDoc ( ExprDoc  predicate,
Array< StmtDoc then_branch,
Array< StmtDoc else_branch 
)
explicit

Constructor of IfDoc.

Parameters
predicateThe predicate of the if-then-else statement.
then_branchThe then branch of the if-then-else statement.
else_branchThe else branch of the if-then-else statement.

Member Function Documentation

◆ TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS()

tvm::script::printer::IfDoc::TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS ( IfDoc  ,
StmtDoc  ,
IfDocNode   
)

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