Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::proto::functional::display_expr Struct Reference

Pretty-print a Proto expression tree. More...

#include <debug.hpp>

Public Types

typedef void result_type
 

Public Member Functions

 display_expr (std::ostream &sout=std::cout, int depth=0)
 
template<typename Expr >
void operator() (Expr const &expr) const
 Pretty-print the current node in a Proto expression tree. More...
 

Detailed Description

Pretty-print a Proto expression tree.

A PolymorphicFunctionObject which accepts a Proto expression tree and pretty-prints it to an ostream for debugging purposes.

Member Typedef Documentation

Constructor & Destructor Documentation

boost::proto::functional::display_expr::display_expr ( std::ostream &  sout = std::cout,
int  depth = 0 
)
inlineexplicit
Parameters
soutThe ostream to which the expression tree will be written.
depthThe starting indentation depth for this node. Children nodes will be displayed at a starting depth of depth+4.

Member Function Documentation

template<typename Expr >
void boost::proto::functional::display_expr::operator() ( Expr const &  expr) const
inline

Pretty-print the current node in a Proto expression tree.


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