33 #ifndef CLASSES_IDISPLAY_H_ 34 #define CLASSES_IDISPLAY_H_ 57 virtual std::ostream&
display(std::ostream& os)
const = 0;
136 virtual ~IJSON() =
default;
146 to_JSON(
bool enclosed_in_curly_brackets =
true)
const = 0;
virtual std::ostream & display(std::ostream &os) const =0
Must be overridden by all derived classes.
Quantum++ main namespace.
Definition: circuits.h:35
friend std::ostream & operator<<(std::ostream &os, const IDisplay &rhs)
Overloads the extraction operator.
Definition: idisplay.h:95
IJSON()=default
Default constructor.
Abstract class (interface) that mandates the definition of very basic JSON serialization support...
Definition: idisplay.h:106
IDisplay & operator=(const IDisplay &)=default
Default copy assignment operator.
virtual ~IDisplay()=default
Default virtual destructor.
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.
Abstract class (interface) that mandates the definition of virtual std::ostream& display(std::ostream...
Definition: idisplay.h:47
IJSON & operator=(const IJSON &)=default
Default copy assignment operator.
virtual ~IJSON()=default
Default virtual destructor.
IDisplay()=default
Default constructor.