Quantum++  v1.2
A modern C++11 quantum computing library
qpp::IJSON Class Referenceabstract

Abstract class (interface) that mandates the definition of very basic JSON serialization support. More...

#include <classes/idisplay.h>

Inheritance diagram for qpp::IJSON:

Public Member Functions

 IJSON ()=default
 Default constructor. More...
 
 IJSON (const IJSON &)=default
 Default copy constructor. More...
 
 IJSON (IJSON &&)=default
 Default move constructor. More...
 
IJSONoperator= (const IJSON &)=default
 Default copy assignment operator. More...
 
IJSONoperator= (IJSON &&)=default
 Default move assignment operator. More...
 
virtual ~IJSON ()=default
 Default virtual destructor. More...
 
virtual std::string to_JSON (bool enclosed_in_curly_brackets=true) const =0
 JSON representation of the derived instance, must be overridden by all derived classes. More...
 

Detailed Description

Abstract class (interface) that mandates the definition of very basic JSON serialization support.

Constructor & Destructor Documentation

◆ IJSON() [1/3]

qpp::IJSON::IJSON ( )
default

Default constructor.

◆ IJSON() [2/3]

qpp::IJSON::IJSON ( const IJSON )
default

Default copy constructor.

◆ IJSON() [3/3]

qpp::IJSON::IJSON ( IJSON &&  )
default

Default move constructor.

◆ ~IJSON()

virtual qpp::IJSON::~IJSON ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ operator=() [1/2]

IJSON& qpp::IJSON::operator= ( const IJSON )
default

Default copy assignment operator.

◆ operator=() [2/2]

IJSON& qpp::IJSON::operator= ( IJSON &&  )
default

Default move assignment operator.

◆ to_JSON()

virtual std::string qpp::IJSON::to_JSON ( bool  enclosed_in_curly_brackets = true) const
pure virtual

JSON representation of the derived instance, must be overridden by all derived classes.

Parameters
enclosed_in_curly_bracketsIf true, encloses the result in curly brackets

Implemented in qpp::QEngine, and qpp::QCircuit.


The documentation for this class was generated from the following file: