tvm
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::ReprLegacyPrinter Class Reference

Legacy behavior of ReprPrinter. More...

#include <repr_printer.h>

Collaboration diagram for tvm::ReprLegacyPrinter:

Public Types

using FType = NodeFunctor< void(const ObjectRef &, ReprLegacyPrinter *)>
 

Public Member Functions

 ReprLegacyPrinter (std::ostream &stream)
 
void Print (const ObjectRef &node)
 The node to be printed. More...
 
void PrintIndent ()
 Print indent to the stream. More...
 
std::ostream & Stream () const
 Return the ostream it maintains. More...
 

Static Public Member Functions

static bool CanDispatch (const ObjectRef &node)
 Could the LegacyPrinter dispatch the node. More...
 
static FTypevtable ()
 

Public Attributes

int indent {0}
 The indentation level. More...
 

Detailed Description

Legacy behavior of ReprPrinter.

Member Typedef Documentation

◆ FType

Constructor & Destructor Documentation

◆ ReprLegacyPrinter()

tvm::ReprLegacyPrinter::ReprLegacyPrinter ( std::ostream &  stream)
inlineexplicit

Member Function Documentation

◆ CanDispatch()

static bool tvm::ReprLegacyPrinter::CanDispatch ( const ObjectRef node)
static

Could the LegacyPrinter dispatch the node.

◆ Print()

void tvm::ReprLegacyPrinter::Print ( const ObjectRef node)

The node to be printed.

◆ PrintIndent()

void tvm::ReprLegacyPrinter::PrintIndent ( )

Print indent to the stream.

◆ Stream()

std::ostream& tvm::ReprLegacyPrinter::Stream ( ) const

Return the ostream it maintains.

◆ vtable()

static FType& tvm::ReprLegacyPrinter::vtable ( )
static

Member Data Documentation

◆ indent

int tvm::ReprLegacyPrinter::indent {0}

The indentation level.


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