libqasm
library for handling cQASM files
|
Internal class for implementing the visitor pattern. More...
Public Member Functions | |
virtual | ~VisitorBase ()=default |
Virtual destructor for proper cleanup. More... | |
Protected Member Functions | |
virtual void | raw_visit_node (Node &node, void *retval)=0 |
Internal visitor function for nodes of any type. More... | |
virtual void | raw_visit_axis (Axis &node, void *retval)=0 |
Internal visitor function for Axis nodes. More... | |
virtual void | raw_visit_bool (Bool &node, void *retval)=0 |
Internal visitor function for Bool nodes. More... | |
virtual void | raw_visit_complex (Complex &node, void *retval)=0 |
Internal visitor function for Complex nodes. More... | |
virtual void | raw_visit_complex_matrix (ComplexMatrix &node, void *retval)=0 |
Internal visitor function for ComplexMatrix nodes. More... | |
virtual void | raw_visit_int (Int &node, void *retval)=0 |
Internal visitor function for Int nodes. More... | |
virtual void | raw_visit_json (Json &node, void *retval)=0 |
Internal visitor function for Json nodes. More... | |
virtual void | raw_visit_qubit (Qubit &node, void *retval)=0 |
Internal visitor function for Qubit nodes. More... | |
virtual void | raw_visit_real (Real &node, void *retval)=0 |
Internal visitor function for Real nodes. More... | |
virtual void | raw_visit_real_matrix (RealMatrix &node, void *retval)=0 |
Internal visitor function for RealMatrix nodes. More... | |
virtual void | raw_visit_string (String &node, void *retval)=0 |
Internal visitor function for String nodes. More... | |
virtual void | raw_visit_type_base (TypeBase &node, void *retval)=0 |
Internal visitor function for TypeBase nodes. More... | |
Friends | |
class | Node |
class | Axis |
Axis primitive used within the semantic trees. More... | |
class | Bool |
Boolean primitive used within the semantic trees. More... | |
class | Complex |
Complex number primitive used within the semantic trees. More... | |
class | ComplexMatrix |
class | Int |
Integer primitive used within the AST and semantic trees. More... | |
class | Json |
class | Qubit |
class | Real |
Real number primitive used within the AST and semantic trees. More... | |
class | RealMatrix |
class | String |
class | TypeBase |
Internal class for implementing the visitor pattern.
Definition at line 1204 of file cqasm-v1-types-gen.hpp.
#include <cqasm-v1-types-gen.hpp>
|
virtualdefault |
Virtual destructor for proper cleanup.
|
protectedpure virtual |
Internal visitor function for nodes of any type.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< T >.
|
protectedpure virtual |
Internal visitor function for Axis
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for Bool
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for Complex
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for ComplexMatrix
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for Int
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for Json
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for Qubit
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for Real
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for RealMatrix
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for String
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
protectedpure virtual |
Internal visitor function for TypeBase
nodes.
Implemented in cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, cqasm::v1::types::Visitor< void >, cqasm::v1::types::Visitor< T >, and cqasm::v1::types::Visitor< void >.
|
friend |
Definition at line 1214 of file cqasm-v1-types-gen.hpp.
|
friend |
Axis primitive used within the semantic trees.
Defaults to X.
Definition at line 1215 of file cqasm-v1-types-gen.hpp.
|
friend |
Boolean primitive used within the semantic trees.
Defaults to false.
Definition at line 1216 of file cqasm-v1-types-gen.hpp.
|
friend |
Complex number primitive used within the semantic trees.
Definition at line 1217 of file cqasm-v1-types-gen.hpp.
|
friend |
Definition at line 1218 of file cqasm-v1-types-gen.hpp.
|
friend |
Integer primitive used within the AST and semantic trees.
Definition at line 1219 of file cqasm-v1-types-gen.hpp.
|
friend |
Definition at line 1220 of file cqasm-v1-types-gen.hpp.
|
friend |
Definition at line 1221 of file cqasm-v1-types-gen.hpp.
|
friend |
Real number primitive used within the AST and semantic trees.
Definition at line 1222 of file cqasm-v1-types-gen.hpp.
|
friend |
Definition at line 1223 of file cqasm-v1-types-gen.hpp.
|
friend |
Definition at line 1224 of file cqasm-v1-types-gen.hpp.
|
friend |
Definition at line 1225 of file cqasm-v1-types-gen.hpp.