diff options
author | Tim King <taking@cs.nyu.edu> | 2017-11-28 09:07:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 09:07:14 -0800 |
commit | 45497438b85dfc408c974a788e28525f0b5717b9 (patch) | |
tree | 75929fcefcb17d5ba58bdffc136ba2ce49b2d622 /src/printer/ast/ast_printer.h | |
parent | d552ca179b8723a93c6e0dae61242ceb1ccaa717 (diff) |
Removing throw specifiers from internal Printer hierarchy. (#1393)
Diffstat (limited to 'src/printer/ast/ast_printer.h')
-rw-r--r-- | src/printer/ast/ast_printer.h | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/src/printer/ast/ast_printer.h b/src/printer/ast/ast_printer.h index 29c3981bf..1d790dd61 100644 --- a/src/printer/ast/ast_printer.h +++ b/src/printer/ast/ast_printer.h @@ -28,14 +28,26 @@ namespace printer { namespace ast { class AstPrinter : public CVC4::Printer { - void toStream(std::ostream& out, TNode n, int toDepth, bool types) const throw(); - void toStream(std::ostream& out, const Model& m, const Command* c) const throw(); -public: + public: using CVC4::Printer::toStream; - void toStream(std::ostream& out, TNode n, int toDepth, bool types, size_t dag) const throw(); - void toStream(std::ostream& out, const Command* c, int toDepth, bool types, size_t dag) const throw(); - void toStream(std::ostream& out, const CommandStatus* s) const throw(); - void toStream(std::ostream& out, const Model& m) const throw(); + void toStream(std::ostream& out, + TNode n, + int toDepth, + bool types, + size_t dag) const override; + void toStream(std::ostream& out, + const Command* c, + int toDepth, + bool types, + size_t dag) const override; + void toStream(std::ostream& out, const CommandStatus* s) const override; + void toStream(std::ostream& out, const Model& m) const override; + + private: + void toStream(std::ostream& out, TNode n, int toDepth, bool types) const; + void toStream(std::ostream& out, + const Model& m, + const Command* c) const override; };/* class AstPrinter */ }/* CVC4::printer::ast namespace */ @@ -43,4 +55,3 @@ public: }/* CVC4 namespace */ #endif /* __CVC4__PRINTER__AST_PRINTER_H */ - |