OpenVDB: PrintTree.h Source File

OpenVDB 8.0.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 <ostream>
18
19 namespace openvdb {
20 OPENVDB_USE_VERSION_NAMESPACE
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
version.h
Library and file format version numbers.
openvdb::v8_2::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::v8_2::ax::ast::Node
The base abstract node which determines the interface and required methods for all derived concrete n...
Definition: AST.h:102
OPENVDB_USE_VERSION_NAMESPACE
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:153
OPENVDB_VERSION_NAME
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h:101
openvdb
Definition: openvdb/Exceptions.h:13
openvdb::v8_2::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.