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

Reference type of DictDocNode. More...

#include <doc.h>

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

Public Member Functions

 DictDoc ()
 Create an empty dictionary. More...
 
 DictDoc (ffi::Array< ExprDoc > keys, ffi::Array< ExprDoc > values)
 Constructor of DictDoc. More...
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (DictDoc, ExprDoc, DictDocNode)
 
- Public Member Functions inherited from tvm::script::printer::ExprDoc
ExprDoc operator[] (ffi::Array< Doc > indices) const
 Create a doc representing index access on the current ExprDoc. More...
 
 ExprDoc (ObjectPtr< ExprDocNode > data)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (ExprDoc, Doc, ExprDocNode)
 
- 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::ExprDoc
 ExprDoc ()=default
 
- Protected Member Functions inherited from tvm::script::printer::Doc
 Doc ()=default
 
 Doc (ObjectPtr< DocNode > data)
 

Detailed Description

Reference type of DictDocNode.

See also
DictDocNode

Constructor & Destructor Documentation

◆ DictDoc() [1/2]

tvm::script::printer::DictDoc::DictDoc ( )
inline

Create an empty dictionary.

◆ DictDoc() [2/2]

tvm::script::printer::DictDoc::DictDoc ( ffi::Array< ExprDoc keys,
ffi::Array< ExprDoc values 
)
explicit

Constructor of DictDoc.

Parameters
keysKeys of dictionary.
valuesValues of dictionary, must have same length as keys.

Member Function Documentation

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::script::printer::DictDoc::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( DictDoc  ,
ExprDoc  ,
DictDocNode   
)

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