Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lang::pretty_tree Struct Reference

tree pretty printer More...

#include <tree.h>

Collaboration diagram for lang::pretty_tree:

Public Member Functions

 pretty_tree (const TreeRef &tree, size_t col=40)
 
const std::string & get_flat (const TreeRef &t)
 
void print (std::ostream &out, const TreeRef &t, int indent)
 

Public Attributes

const TreeReftree
 
size_t col
 
std::unordered_map< TreeRef,
std::string > 
flat_strings
 

Detailed Description

tree pretty printer

Constructor & Destructor Documentation

lang::pretty_tree::pretty_tree ( const TreeRef tree,
size_t  col = 40 
)
inline

Member Function Documentation

const std::string& lang::pretty_tree::get_flat ( const TreeRef t)
inline
void lang::pretty_tree::print ( std::ostream &  out,
const TreeRef t,
int  indent 
)
inline

Member Data Documentation

size_t lang::pretty_tree::col
std::unordered_map<TreeRef, std::string> lang::pretty_tree::flat_strings
const TreeRef& lang::pretty_tree::tree

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