OpenVDB  8.1.0
PrintTree.h
Go to the documentation of this file.
1 // Copyright Contributors to the OpenVDB Project
2 // SPDX-License-Identifier: MPL-2.0
3 
11 
12 #ifndef OPENVDB_AX_AST_PRINT_TREE_HAS_BEEN_INCLUDED
13 #define OPENVDB_AX_AST_PRINT_TREE_HAS_BEEN_INCLUDED
14 
15 #include <openvdb/version.h>
16 
17 #include <iostream>
18 
19 namespace openvdb {
21 namespace OPENVDB_VERSION_NAME {
22 
23 namespace ax {
24 namespace ast {
25 
26 struct Node;
27 
34 void print(const ast::Node& node,
35  const bool numberStatements = true,
36  std::ostream& os = std::cout,
37  const char* indent = " ");
38 
48 void reprint(const ast::Node& node,
49  std::ostream& os = std::cout,
50  const char* indent = " ");
51 
52 } // namespace ast
53 } // namespace ax
54 
55 } // namespace OPENVDB_VERSION_NAME
56 } // namespace openvdb
57 
58 #endif // OPENVDB_AX_AST_PRINT_TREE_HAS_BEEN_INCLUDED
59 
OPENVDB_VERSION_NAME
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h.in:116
OPENVDB_USE_VERSION_NAMESPACE
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h.in:178
openvdb::v8_1::ax::ast::print
void print(const ast::Node &node, const bool numberStatements=true, std::ostream &os=std::cout, const char *indent=" ")
Writes a descriptive printout of a Node hierarchy into a target stream.
openvdb::v8_1::ax::ast::reprint
void reprint(const ast::Node &node, std::ostream &os=std::cout, const char *indent=" ")
Using the provided AST, print corresponding AX code which may have been used to create it.
openvdb
Definition: openvdb/Exceptions.h:13