libqasm
library for handling cQASM files
Classes | Namespaces | Typedefs | Functions
cqasm-v1-error-model.hpp File Reference

This file contains the ErrorModel class and support types, each instance representing an error model supported by the user. More...

Go to the source code of this file.

Classes

class  cqasm::v1::error_model::ErrorModel
 Representation of an error model. More...
 

Namespaces

 cqasm
 Toplevel namespace with entry points for the new API.
 
 cqasm::v1
 Namespace for the "new" cQASM 1.x API.
 
 cqasm::v1::error_model
 Namespace for the ErrorModel class and helper types.
 
 cqasm::v1::primitives
 Namespace for the primitive types used in trees generated by tree-gen.
 

Typedefs

using cqasm::v1::error_model::ErrorModelRef = tree::Maybe< ErrorModel >
 Optional reference to an error model, used within the semantic tree. More...
 

Functions

std::ostream & cqasm::v1::error_model::operator<< (std::ostream &os, const ErrorModel &model)
 Stream << overload for error models. More...
 
std::ostream & cqasm::v1::error_model::operator<< (std::ostream &os, const ErrorModelRef &model)
 Stream << overload for error model references. More...
 
template<>
void cqasm::v1::primitives::serialize (const error_model::ErrorModelRef &obj, ::tree::cbor::MapWriter &map)
 
template<>
error_model::ErrorModelRef cqasm::v1::primitives::deserialize (const ::tree::cbor::MapReader &map)
 Deserializes the given primitive object from CBOR. More...
 

Detailed Description

This file contains the ErrorModel class and support types, each instance representing an error model supported by the user.

Definition in file cqasm-v1-error-model.hpp.

#include "cqasm-v1-types.hpp"
#include "cqasm-v1-values.hpp"
Include dependency graph for cqasm-v1-error-model.hpp:
This graph shows which files directly or indirectly include this file: