diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-10-09 20:22:01 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-10-09 20:22:01 +0000 |
commit | dba60e91f02ae9ca3c3126c76d79a09c95f95a45 (patch) | |
tree | 6fbc624797feec4e934ff3dca2c6038416d999f7 /src/util | |
parent | 24ef270bb13fc36de9bea4fb92449f5ad8d0770d (diff) |
* make Model class private (as discussed at meeting today)
* fix minor issue with s-expr parsing in CVC and SMT grammars
* other minor things
(this commit was certified error- and warning-free by the test-and-commit script.)
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/util_model.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/util/util_model.h b/src/util/util_model.h index 488563b54..bb40c9ba4 100644 --- a/src/util/util_model.h +++ b/src/util/util_model.h @@ -14,10 +14,10 @@ ** \brief Model class **/ -#include "cvc4_public.h" +#include "cvc4_private.h" -#ifndef __CVC4__MODEL_H -#define __CVC4__MODEL_H +#ifndef __CVC4__UTIL_MODEL_H +#define __CVC4__UTIL_MODEL_H #include <iostream> #include <vector> @@ -27,13 +27,13 @@ namespace CVC4 { -class CVC4_PUBLIC Command; -class CVC4_PUBLIC SmtEngine; -class CVC4_PUBLIC Model; +class Command; +class SmtEngine; +class Model; -std::ostream& operator<<(std::ostream&, Model&) CVC4_PUBLIC; +std::ostream& operator<<(std::ostream&, Model&); -class CVC4_PUBLIC Model { +class Model { friend std::ostream& operator<<(std::ostream&, Model&); protected: @@ -50,6 +50,7 @@ public: size_t getNumCommands() const; /** get command */ const Command* getCommand(size_t i) const; + public: /** get value for expression */ virtual Expr getValue(Expr expr) = 0; @@ -57,14 +58,13 @@ public: virtual Cardinality getCardinality(Type t) = 0; };/* class Model */ -class ModelBuilder -{ +class ModelBuilder { public: - ModelBuilder(){} - virtual ~ModelBuilder(){} - virtual void buildModel( Model* m, bool fullModel ) = 0; + ModelBuilder() { } + virtual ~ModelBuilder() { } + virtual void buildModel(Model* m, bool fullModel) = 0; };/* class ModelBuilder */ }/* CVC4 namespace */ -#endif /* __CVC4__MODEL_H */ +#endif /* __CVC4__UTIL_MODEL_H */ |