Reference type of FunctionDocNode.
More...
#include <doc.h>
|
| | FunctionDoc (IdDoc name, Array< AssignDoc > args, Array< ExprDoc > decorators, Optional< ExprDoc > return_type, Array< StmtDoc > body) |
| | Constructor of FunctionDoc. More...
|
| |
| | TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS (FunctionDoc, StmtDoc, FunctionDocNode) |
| |
| | TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS (StmtDoc, Doc, StmtDocNode) |
| |
| virtual | ~Doc ()=default |
| |
| | TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS (Doc, ObjectRef, DocNode) |
| |
| | ObjectRef ()=default |
| | default constructor More...
|
| |
| | ObjectRef (ObjectPtr< Object > data) |
| | Constructor from existing object ptr. More...
|
| |
| bool | same_as (const ObjectRef &other) const |
| | Comparator. More...
|
| |
| bool | operator== (const ObjectRef &other) const |
| | Comparator. More...
|
| |
| bool | operator!= (const ObjectRef &other) const |
| | Comparator. More...
|
| |
| bool | operator< (const ObjectRef &other) const |
| | Comparator. More...
|
| |
| bool | defined () const |
| |
| const Object * | get () const |
| |
| const Object * | operator-> () const |
| |
| bool | unique () const |
| |
| int | use_count () const |
| |
| template<typename ObjectType > |
| const ObjectType * | as () const |
| | Try to downcast the internal Object to a raw pointer of a corresponding type. More...
|
| |
◆ FunctionDoc()
Constructor of FunctionDoc.
- Parameters
-
| name | The name of function.. |
| args | The arguments of function. |
| decorators | The decorator of function. |
| return_type | The return type of function. |
| body | The body of function. |
◆ TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file:
- include/tvm/script/printer/doc.h