libqasm
library for handling cQASM files
|
Main class for all nodes. More...
Public Member Functions | |
virtual NodeType | type () const =0 |
Returns the NodeType of this node. More... | |
virtual One< Node > | copy () const =0 |
Returns a shallow copy of this node. More... | |
virtual One< Node > | clone () const =0 |
Returns a deep copy of this node. More... | |
virtual bool | equals (const Node &rhs) const =0 |
Value-based equality operator. More... | |
virtual bool | operator== (const Node &rhs) const =0 |
Pointer-based equality operator. More... | |
bool | operator!= (const Node &rhs) const |
Pointer-based inequality operator. More... | |
template<typename T > | |
T | visit (Visitor< T > &visitor) |
Visit this object. More... | |
void | dump (std::ostream &out=std::cout, int indent=0) |
Writes a debug dump of this node to the given stream. More... | |
void | dump_seq (std::ostream &out=std::cout, int indent=0) |
Alternate debug dump that represents links and node uniqueness via sequence number tags. More... | |
virtual Annotated * | as_annotated () |
Interprets this node to a node of type Annotated. More... | |
virtual const Annotated * | as_annotated () const |
Interprets this node to a node of type Annotated. More... | |
virtual AnnotationData * | as_annotation_data () |
Interprets this node to a node of type AnnotationData. More... | |
virtual const AnnotationData * | as_annotation_data () const |
Interprets this node to a node of type AnnotationData. More... | |
virtual Block * | as_block () |
Interprets this node to a node of type Block. More... | |
virtual const Block * | as_block () const |
Interprets this node to a node of type Block. More... | |
virtual BreakStatement * | as_break_statement () |
Interprets this node to a node of type BreakStatement. More... | |
virtual const BreakStatement * | as_break_statement () const |
Interprets this node to a node of type BreakStatement. More... | |
virtual Bundle * | as_bundle () |
Interprets this node to a node of type Bundle. More... | |
virtual const Bundle * | as_bundle () const |
Interprets this node to a node of type Bundle. More... | |
virtual BundleExt * | as_bundle_ext () |
Interprets this node to a node of type BundleExt. More... | |
virtual const BundleExt * | as_bundle_ext () const |
Interprets this node to a node of type BundleExt. More... | |
virtual ContinueStatement * | as_continue_statement () |
Interprets this node to a node of type ContinueStatement. More... | |
virtual const ContinueStatement * | as_continue_statement () const |
Interprets this node to a node of type ContinueStatement. More... | |
virtual ErrorModel * | as_error_model () |
Interprets this node to a node of type ErrorModel. More... | |
virtual const ErrorModel * | as_error_model () const |
Interprets this node to a node of type ErrorModel. More... | |
virtual ForLoop * | as_for_loop () |
Interprets this node to a node of type ForLoop. More... | |
virtual const ForLoop * | as_for_loop () const |
Interprets this node to a node of type ForLoop. More... | |
virtual ForeachLoop * | as_foreach_loop () |
Interprets this node to a node of type ForeachLoop. More... | |
virtual const ForeachLoop * | as_foreach_loop () const |
Interprets this node to a node of type ForeachLoop. More... | |
virtual GotoInstruction * | as_goto_instruction () |
Interprets this node to a node of type GotoInstruction. More... | |
virtual const GotoInstruction * | as_goto_instruction () const |
Interprets this node to a node of type GotoInstruction. More... | |
virtual IfElse * | as_if_else () |
Interprets this node to a node of type IfElse. More... | |
virtual const IfElse * | as_if_else () const |
Interprets this node to a node of type IfElse. More... | |
virtual IfElseBranch * | as_if_else_branch () |
Interprets this node to a node of type IfElseBranch. More... | |
virtual const IfElseBranch * | as_if_else_branch () const |
Interprets this node to a node of type IfElseBranch. More... | |
virtual Instruction * | as_instruction () |
Interprets this node to a node of type Instruction. More... | |
virtual const Instruction * | as_instruction () const |
Interprets this node to a node of type Instruction. More... | |
virtual InstructionBase * | as_instruction_base () |
Interprets this node to a node of type InstructionBase. More... | |
virtual const InstructionBase * | as_instruction_base () const |
Interprets this node to a node of type InstructionBase. More... | |
virtual Mapping * | as_mapping () |
Interprets this node to a node of type Mapping. More... | |
virtual const Mapping * | as_mapping () const |
Interprets this node to a node of type Mapping. More... | |
virtual Program * | as_program () |
Interprets this node to a node of type Program. More... | |
virtual const Program * | as_program () const |
Interprets this node to a node of type Program. More... | |
virtual RepeatUntilLoop * | as_repeat_until_loop () |
Interprets this node to a node of type RepeatUntilLoop. More... | |
virtual const RepeatUntilLoop * | as_repeat_until_loop () const |
Interprets this node to a node of type RepeatUntilLoop. More... | |
virtual SetInstruction * | as_set_instruction () |
Interprets this node to a node of type SetInstruction. More... | |
virtual const SetInstruction * | as_set_instruction () const |
Interprets this node to a node of type SetInstruction. More... | |
virtual Statement * | as_statement () |
Interprets this node to a node of type Statement. More... | |
virtual const Statement * | as_statement () const |
Interprets this node to a node of type Statement. More... | |
virtual Structured * | as_structured () |
Interprets this node to a node of type Structured. More... | |
virtual const Structured * | as_structured () const |
Interprets this node to a node of type Structured. More... | |
virtual Subcircuit * | as_subcircuit () |
Interprets this node to a node of type Subcircuit. More... | |
virtual const Subcircuit * | as_subcircuit () const |
Interprets this node to a node of type Subcircuit. More... | |
virtual Variable * | as_variable () |
Interprets this node to a node of type Variable. More... | |
virtual const Variable * | as_variable () const |
Interprets this node to a node of type Variable. More... | |
virtual Version * | as_version () |
Interprets this node to a node of type Version. More... | |
virtual const Version * | as_version () const |
Interprets this node to a node of type Version. More... | |
virtual WhileLoop * | as_while_loop () |
Interprets this node to a node of type WhileLoop. More... | |
virtual const WhileLoop * | as_while_loop () const |
Interprets this node to a node of type WhileLoop. More... | |
virtual void | serialize (::tree::cbor::MapWriter &map, const ::tree::base::PointerMap &ids) const =0 |
Serializes this node to the given map. More... | |
Static Public Member Functions | |
static std::shared_ptr< Node > | deserialize (const ::tree::cbor::MapReader &map, ::tree::base::IdentifierMap &ids) |
Deserializes the given node. More... | |
Protected Member Functions | |
virtual void | visit_internal (VisitorBase &visitor, void *retval=nullptr)=0 |
Internal helper method for visiter pattern. More... | |
Main class for all nodes.
Definition at line 222 of file cqasm-v1-semantic-gen.hpp.
#include <cqasm-v1-semantic-gen.hpp>
|
pure virtual |
Returns the NodeType
of this node.
Implemented in cqasm::v1::semantic::WhileLoop, cqasm::v1::semantic::Version, cqasm::v1::semantic::Variable, cqasm::v1::semantic::Subcircuit, cqasm::v1::semantic::SetInstruction, cqasm::v1::semantic::RepeatUntilLoop, cqasm::v1::semantic::Program, cqasm::v1::semantic::Mapping, cqasm::v1::semantic::Instruction, cqasm::v1::semantic::IfElseBranch, cqasm::v1::semantic::IfElse, cqasm::v1::semantic::GotoInstruction, cqasm::v1::semantic::ForeachLoop, cqasm::v1::semantic::ForLoop, cqasm::v1::semantic::ErrorModel, cqasm::v1::semantic::ContinueStatement, cqasm::v1::semantic::BundleExt, cqasm::v1::semantic::Bundle, cqasm::v1::semantic::BreakStatement, cqasm::v1::semantic::Block, and cqasm::v1::semantic::AnnotationData.
Returns a shallow copy of this node.
Implemented in cqasm::v1::semantic::WhileLoop, cqasm::v1::semantic::Version, cqasm::v1::semantic::Variable, cqasm::v1::semantic::Subcircuit, cqasm::v1::semantic::SetInstruction, cqasm::v1::semantic::RepeatUntilLoop, cqasm::v1::semantic::Program, cqasm::v1::semantic::Mapping, cqasm::v1::semantic::Instruction, cqasm::v1::semantic::IfElseBranch, cqasm::v1::semantic::IfElse, cqasm::v1::semantic::GotoInstruction, cqasm::v1::semantic::ForeachLoop, cqasm::v1::semantic::ForLoop, cqasm::v1::semantic::ErrorModel, cqasm::v1::semantic::ContinueStatement, cqasm::v1::semantic::BundleExt, cqasm::v1::semantic::Bundle, cqasm::v1::semantic::BreakStatement, cqasm::v1::semantic::Block, and cqasm::v1::semantic::AnnotationData.
Returns a deep copy of this node.
Implemented in cqasm::v1::semantic::WhileLoop, cqasm::v1::semantic::Version, cqasm::v1::semantic::Variable, cqasm::v1::semantic::Subcircuit, cqasm::v1::semantic::SetInstruction, cqasm::v1::semantic::RepeatUntilLoop, cqasm::v1::semantic::Program, cqasm::v1::semantic::Mapping, cqasm::v1::semantic::Instruction, cqasm::v1::semantic::IfElseBranch, cqasm::v1::semantic::IfElse, cqasm::v1::semantic::GotoInstruction, cqasm::v1::semantic::ForeachLoop, cqasm::v1::semantic::ForLoop, cqasm::v1::semantic::ErrorModel, cqasm::v1::semantic::ContinueStatement, cqasm::v1::semantic::BundleExt, cqasm::v1::semantic::Bundle, cqasm::v1::semantic::BreakStatement, cqasm::v1::semantic::Block, and cqasm::v1::semantic::AnnotationData.
|
pure virtual |
Value-based equality operator.
Ignores annotations!
Implemented in cqasm::v1::semantic::WhileLoop, cqasm::v1::semantic::Version, cqasm::v1::semantic::Variable, cqasm::v1::semantic::Subcircuit, cqasm::v1::semantic::SetInstruction, cqasm::v1::semantic::RepeatUntilLoop, cqasm::v1::semantic::Program, cqasm::v1::semantic::Mapping, cqasm::v1::semantic::Instruction, cqasm::v1::semantic::IfElseBranch, cqasm::v1::semantic::IfElse, cqasm::v1::semantic::GotoInstruction, cqasm::v1::semantic::ForeachLoop, cqasm::v1::semantic::ForLoop, cqasm::v1::semantic::ErrorModel, cqasm::v1::semantic::ContinueStatement, cqasm::v1::semantic::BundleExt, cqasm::v1::semantic::Bundle, cqasm::v1::semantic::BreakStatement, cqasm::v1::semantic::Block, and cqasm::v1::semantic::AnnotationData.
|
pure virtual |
Pointer-based equality operator.
Implemented in cqasm::v1::semantic::WhileLoop, cqasm::v1::semantic::Version, cqasm::v1::semantic::Variable, cqasm::v1::semantic::Subcircuit, cqasm::v1::semantic::SetInstruction, cqasm::v1::semantic::RepeatUntilLoop, cqasm::v1::semantic::Program, cqasm::v1::semantic::Mapping, cqasm::v1::semantic::Instruction, cqasm::v1::semantic::IfElseBranch, cqasm::v1::semantic::IfElse, cqasm::v1::semantic::GotoInstruction, cqasm::v1::semantic::ForeachLoop, cqasm::v1::semantic::ForLoop, cqasm::v1::semantic::ErrorModel, cqasm::v1::semantic::ContinueStatement, cqasm::v1::semantic::BundleExt, cqasm::v1::semantic::Bundle, cqasm::v1::semantic::BreakStatement, cqasm::v1::semantic::Block, and cqasm::v1::semantic::AnnotationData.
|
inline |
Pointer-based inequality operator.
Definition at line 253 of file cqasm-v1-semantic-gen.hpp.
|
protectedpure virtual |
Internal helper method for visiter pattern.
Implemented in cqasm::v1::semantic::WhileLoop, cqasm::v1::semantic::Version, cqasm::v1::semantic::Variable, cqasm::v1::semantic::Subcircuit, cqasm::v1::semantic::SetInstruction, cqasm::v1::semantic::RepeatUntilLoop, cqasm::v1::semantic::Program, cqasm::v1::semantic::Mapping, cqasm::v1::semantic::Instruction, cqasm::v1::semantic::IfElseBranch, cqasm::v1::semantic::IfElse, cqasm::v1::semantic::GotoInstruction, cqasm::v1::semantic::ForeachLoop, cqasm::v1::semantic::ForLoop, cqasm::v1::semantic::ErrorModel, cqasm::v1::semantic::ContinueStatement, cqasm::v1::semantic::BundleExt, cqasm::v1::semantic::Bundle, cqasm::v1::semantic::BreakStatement, cqasm::v1::semantic::Block, and cqasm::v1::semantic::AnnotationData.
T cqasm::v1::semantic::Node::visit | ( | Visitor< T > & | visitor | ) |
Visit this object.
Definition at line 3983 of file cqasm-v1-semantic-gen.hpp.
void cqasm::v1::semantic::Node::dump | ( | std::ostream & | out = std::cout , |
int | indent = 0 |
||
) |
Writes a debug dump of this node to the given stream.
Definition at line 15 of file cqasm-v1-semantic-gen.cpp.
void cqasm::v1::semantic::Node::dump_seq | ( | std::ostream & | out = std::cout , |
int | indent = 0 |
||
) |
Alternate debug dump that represents links and node uniqueness via sequence number tags.
Definition at line 24 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Annotated.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Annotated.
Definition at line 37 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Annotated.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Annotated.
Definition at line 45 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type AnnotationData.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::AnnotationData.
Definition at line 53 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type AnnotationData.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::AnnotationData.
Definition at line 61 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Block.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Block.
Definition at line 69 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Block.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Block.
Definition at line 77 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type BreakStatement.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::BreakStatement.
Definition at line 85 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type BreakStatement.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::BreakStatement.
Definition at line 93 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Bundle.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Bundle.
Definition at line 101 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Bundle.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Bundle.
Definition at line 109 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type BundleExt.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::BundleExt.
Definition at line 117 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type BundleExt.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::BundleExt.
Definition at line 125 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type ContinueStatement.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::ContinueStatement.
Definition at line 133 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type ContinueStatement.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::ContinueStatement.
Definition at line 141 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type ErrorModel.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::ErrorModel.
Definition at line 149 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type ErrorModel.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::ErrorModel.
Definition at line 157 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type ForLoop.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::ForLoop.
Definition at line 165 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type ForLoop.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::ForLoop.
Definition at line 173 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type ForeachLoop.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::ForeachLoop.
Definition at line 181 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type ForeachLoop.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::ForeachLoop.
Definition at line 189 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type GotoInstruction.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::GotoInstruction.
Definition at line 197 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type GotoInstruction.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::GotoInstruction.
Definition at line 205 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type IfElse.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::IfElse.
Definition at line 213 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type IfElse.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::IfElse.
Definition at line 221 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type IfElseBranch.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::IfElseBranch.
Definition at line 229 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type IfElseBranch.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::IfElseBranch.
Definition at line 237 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Instruction.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Instruction.
Definition at line 245 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Instruction.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Instruction.
Definition at line 253 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type InstructionBase.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::InstructionBase.
Definition at line 261 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type InstructionBase.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::InstructionBase.
Definition at line 269 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Mapping.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Mapping.
Definition at line 277 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Mapping.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Mapping.
Definition at line 285 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Program.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Program.
Definition at line 293 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Program.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Program.
Definition at line 301 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type RepeatUntilLoop.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::RepeatUntilLoop.
Definition at line 309 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type RepeatUntilLoop.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::RepeatUntilLoop.
Definition at line 317 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type SetInstruction.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::SetInstruction.
Definition at line 325 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type SetInstruction.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::SetInstruction.
Definition at line 333 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Statement.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Statement.
Definition at line 341 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Statement.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Statement.
Definition at line 349 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Structured.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Structured.
Definition at line 357 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Structured.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Structured.
Definition at line 365 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Subcircuit.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Subcircuit.
Definition at line 373 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Subcircuit.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Subcircuit.
Definition at line 381 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Variable.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Variable.
Definition at line 389 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Variable.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Variable.
Definition at line 397 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Version.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Version.
Definition at line 405 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type Version.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::Version.
Definition at line 413 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type WhileLoop.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::WhileLoop.
Definition at line 421 of file cqasm-v1-semantic-gen.cpp.
|
virtual |
Interprets this node to a node of type WhileLoop.
Returns null if it has the wrong type.
Reimplemented in cqasm::v1::semantic::WhileLoop.
Definition at line 429 of file cqasm-v1-semantic-gen.cpp.
|
pure virtual |
Serializes this node to the given map.
Implemented in cqasm::v1::semantic::WhileLoop, cqasm::v1::semantic::Version, cqasm::v1::semantic::Variable, cqasm::v1::semantic::Subcircuit, cqasm::v1::semantic::SetInstruction, cqasm::v1::semantic::RepeatUntilLoop, cqasm::v1::semantic::Program, cqasm::v1::semantic::Mapping, cqasm::v1::semantic::Instruction, cqasm::v1::semantic::IfElseBranch, cqasm::v1::semantic::IfElse, cqasm::v1::semantic::GotoInstruction, cqasm::v1::semantic::ForeachLoop, cqasm::v1::semantic::ForLoop, cqasm::v1::semantic::ErrorModel, cqasm::v1::semantic::ContinueStatement, cqasm::v1::semantic::BundleExt, cqasm::v1::semantic::Bundle, cqasm::v1::semantic::BreakStatement, cqasm::v1::semantic::Block, and cqasm::v1::semantic::AnnotationData.
|
static |
Deserializes the given node.
Writes a debug dump of this node to the given stream.
Definition at line 436 of file cqasm-v1-semantic-gen.cpp.