|
libqasm
library for handling cQASM files
|
Visitor class that debug-dumps a tree to a stream. More...
Public Member Functions | |
| Dumper (std::ostream &out, int indent=0, ::tree::base::PointerMap *ids=nullptr) | |
| Construct a dumping visitor. More... | |
| void | visit_node (Node &node) override |
Dumps a Node. More... | |
| void | visit_bit_refs (BitRefs &node) override |
Dumps a BitRefs node. More... | |
| void | visit_const_axis (ConstAxis &node) override |
Dumps a ConstAxis node. More... | |
| void | visit_const_bool (ConstBool &node) override |
Dumps a ConstBool node. More... | |
| void | visit_const_complex (ConstComplex &node) override |
Dumps a ConstComplex node. More... | |
| void | visit_const_complex_matrix (ConstComplexMatrix &node) override |
Dumps a ConstComplexMatrix node. More... | |
| void | visit_const_int (ConstInt &node) override |
Dumps a ConstInt node. More... | |
| void | visit_const_json (ConstJson &node) override |
Dumps a ConstJson node. More... | |
| void | visit_const_real (ConstReal &node) override |
Dumps a ConstReal node. More... | |
| void | visit_const_real_matrix (ConstRealMatrix &node) override |
Dumps a ConstRealMatrix node. More... | |
| void | visit_const_string (ConstString &node) override |
Dumps a ConstString node. More... | |
| void | visit_constant (Constant &node) override |
Dumps a Constant node. More... | |
| void | visit_function (Function &node) override |
Dumps a Function node. More... | |
| void | visit_qubit_refs (QubitRefs &node) override |
Dumps a QubitRefs node. More... | |
| void | visit_reference (Reference &node) override |
Dumps a Reference node. More... | |
| void | visit_variable_ref (VariableRef &node) override |
Dumps a VariableRef node. More... | |
Public Member Functions inherited from cqasm::v1::values::Visitor< void > | |
| virtual void | visit_node (Node &node)=0 |
| Fallback function for nodes of any type. More... | |
Public Member Functions inherited from cqasm::v1::values::VisitorBase | |
| virtual | ~VisitorBase ()=default |
| Virtual destructor for proper cleanup. More... | |
Protected Member Functions | |
| void | write_indent () |
| Writes the current indentation level's worth of spaces. More... | |
Protected Member Functions inherited from cqasm::v1::values::Visitor< void > | |
| void | raw_visit_node (Node &node, void *retval) override |
| Internal visitor function for nodes of any type. More... | |
| void | raw_visit_node (Node &node, void *retval) |
| Internal visitor function for nodes of any type. More... | |
| void | raw_visit_node (Node &node, void *retval) |
| Internal visitor function for nodes of any type. More... | |
| void | raw_visit_bit_refs (BitRefs &node, void *retval) override |
Internal visitor function for BitRefs nodes. More... | |
| void | raw_visit_bit_refs (BitRefs &node, void *retval) |
Internal visitor function for BitRefs nodes. More... | |
| void | raw_visit_bit_refs (BitRefs &node, void *retval) |
Internal visitor function for BitRefs nodes. More... | |
| void | raw_visit_const_axis (ConstAxis &node, void *retval) override |
Internal visitor function for ConstAxis nodes. More... | |
| void | raw_visit_const_axis (ConstAxis &node, void *retval) |
Internal visitor function for ConstAxis nodes. More... | |
| void | raw_visit_const_axis (ConstAxis &node, void *retval) |
Internal visitor function for ConstAxis nodes. More... | |
| void | raw_visit_const_bool (ConstBool &node, void *retval) override |
Internal visitor function for ConstBool nodes. More... | |
| void | raw_visit_const_bool (ConstBool &node, void *retval) |
Internal visitor function for ConstBool nodes. More... | |
| void | raw_visit_const_bool (ConstBool &node, void *retval) |
Internal visitor function for ConstBool nodes. More... | |
| void | raw_visit_const_complex (ConstComplex &node, void *retval) override |
Internal visitor function for ConstComplex nodes. More... | |
| void | raw_visit_const_complex (ConstComplex &node, void *retval) |
Internal visitor function for ConstComplex nodes. More... | |
| void | raw_visit_const_complex (ConstComplex &node, void *retval) |
Internal visitor function for ConstComplex nodes. More... | |
| void | raw_visit_const_complex_matrix (ConstComplexMatrix &node, void *retval) override |
Internal visitor function for ConstComplexMatrix nodes. More... | |
| void | raw_visit_const_complex_matrix (ConstComplexMatrix &node, void *retval) |
Internal visitor function for ConstComplexMatrix nodes. More... | |
| void | raw_visit_const_complex_matrix (ConstComplexMatrix &node, void *retval) |
Internal visitor function for ConstComplexMatrix nodes. More... | |
| void | raw_visit_const_int (ConstInt &node, void *retval) override |
Internal visitor function for ConstInt nodes. More... | |
| void | raw_visit_const_int (ConstInt &node, void *retval) |
Internal visitor function for ConstInt nodes. More... | |
| void | raw_visit_const_int (ConstInt &node, void *retval) |
Internal visitor function for ConstInt nodes. More... | |
| void | raw_visit_const_json (ConstJson &node, void *retval) override |
Internal visitor function for ConstJson nodes. More... | |
| void | raw_visit_const_json (ConstJson &node, void *retval) |
Internal visitor function for ConstJson nodes. More... | |
| void | raw_visit_const_json (ConstJson &node, void *retval) |
Internal visitor function for ConstJson nodes. More... | |
| void | raw_visit_const_real (ConstReal &node, void *retval) override |
Internal visitor function for ConstReal nodes. More... | |
| void | raw_visit_const_real (ConstReal &node, void *retval) |
Internal visitor function for ConstReal nodes. More... | |
| void | raw_visit_const_real (ConstReal &node, void *retval) |
Internal visitor function for ConstReal nodes. More... | |
| void | raw_visit_const_real_matrix (ConstRealMatrix &node, void *retval) override |
Internal visitor function for ConstRealMatrix nodes. More... | |
| void | raw_visit_const_real_matrix (ConstRealMatrix &node, void *retval) |
Internal visitor function for ConstRealMatrix nodes. More... | |
| void | raw_visit_const_real_matrix (ConstRealMatrix &node, void *retval) |
Internal visitor function for ConstRealMatrix nodes. More... | |
| void | raw_visit_const_string (ConstString &node, void *retval) override |
Internal visitor function for ConstString nodes. More... | |
| void | raw_visit_const_string (ConstString &node, void *retval) |
Internal visitor function for ConstString nodes. More... | |
| void | raw_visit_const_string (ConstString &node, void *retval) |
Internal visitor function for ConstString nodes. More... | |
| void | raw_visit_constant (Constant &node, void *retval) override |
Internal visitor function for Constant nodes. More... | |
| void | raw_visit_constant (Constant &node, void *retval) |
Internal visitor function for Constant nodes. More... | |
| void | raw_visit_constant (Constant &node, void *retval) |
Internal visitor function for Constant nodes. More... | |
| void | raw_visit_function (Function &node, void *retval) override |
Internal visitor function for Function nodes. More... | |
| void | raw_visit_function (Function &node, void *retval) |
Internal visitor function for Function nodes. More... | |
| void | raw_visit_function (Function &node, void *retval) |
Internal visitor function for Function nodes. More... | |
| void | raw_visit_qubit_refs (QubitRefs &node, void *retval) override |
Internal visitor function for QubitRefs nodes. More... | |
| void | raw_visit_qubit_refs (QubitRefs &node, void *retval) |
Internal visitor function for QubitRefs nodes. More... | |
| void | raw_visit_qubit_refs (QubitRefs &node, void *retval) |
Internal visitor function for QubitRefs nodes. More... | |
| void | raw_visit_reference (Reference &node, void *retval) override |
Internal visitor function for Reference nodes. More... | |
| void | raw_visit_reference (Reference &node, void *retval) |
Internal visitor function for Reference nodes. More... | |
| void | raw_visit_reference (Reference &node, void *retval) |
Internal visitor function for Reference nodes. More... | |
| void | raw_visit_variable_ref (VariableRef &node, void *retval) override |
Internal visitor function for VariableRef nodes. More... | |
| void | raw_visit_variable_ref (VariableRef &node, void *retval) |
Internal visitor function for VariableRef nodes. More... | |
| void | raw_visit_variable_ref (VariableRef &node, void *retval) |
Internal visitor function for VariableRef nodes. More... | |
Protected Member Functions inherited from cqasm::v1::values::VisitorBase | |
| virtual void | raw_visit_node (Node &node, void *retval)=0 |
| Internal visitor function for nodes of any type. More... | |
Protected Attributes | |
| std::ostream & | out |
| Output stream to dump to. More... | |
| int | indent = 0 |
| Current indentation level. More... | |
| ::tree::base::PointerMap * | ids |
| When non-null, the print node IDs from here instead of link contents. More... | |
| bool | in_link = false |
| Whether we're printing the contents of a link. More... | |
Visitor class that debug-dumps a tree to a stream.
Definition at line 2291 of file cqasm-v1-values-gen.hpp.
#include <cqasm-v1-values-gen.hpp>


|
inline |
Construct a dumping visitor.
Definition at line 2323 of file cqasm-v1-values-gen.hpp.
|
protected |
Writes the current indentation level's worth of spaces.
Definition at line 2164 of file cqasm-v1-values-gen.cpp.
|
override |
Dumps a Node.
Definition at line 2173 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a BitRefs node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2182 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a ConstAxis node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2221 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a ConstBool node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2265 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a ConstComplex node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2309 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a ConstComplexMatrix node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2353 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a ConstInt node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2397 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a ConstJson node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2441 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a ConstReal node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2485 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a ConstRealMatrix node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2529 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a ConstString node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2573 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a Constant node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2617 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a Function node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2634 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a QubitRefs node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2711 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a Reference node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2750 of file cqasm-v1-values-gen.cpp.
|
overridevirtual |
Dumps a VariableRef node.
Reimplemented from cqasm::v1::values::RecursiveVisitor.
Definition at line 2767 of file cqasm-v1-values-gen.cpp.
|
protected |
Output stream to dump to.
Definition at line 2297 of file cqasm-v1-values-gen.hpp.
|
protected |
Current indentation level.
Definition at line 2302 of file cqasm-v1-values-gen.hpp.
|
protected |
When non-null, the print node IDs from here instead of link contents.
Definition at line 2307 of file cqasm-v1-values-gen.hpp.
|
protected |
Whether we're printing the contents of a link.
Definition at line 2311 of file cqasm-v1-values-gen.hpp.
1.8.13