diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2021-03-16 10:56:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 10:56:01 -0700 |
commit | d6890791897ddebf1212d3e3147bf7aeb2415b27 (patch) | |
tree | 51c69ba48a7550b6a7660e2488b4b39cbedba539 /src/util/abstract_value.h | |
parent | 0d3ea6f2dcaf80d386c7765ee8a708c18e3ed574 (diff) |
cmake: Generate cvc4_export.h and set visibility to hidden. (#6139)
The build system (cmake) will automatically generate an export header
cvc4_export.h, which makes sure that the correct export features are
defined depending on the compiler and target platform. The macro CVC4_EXPORT
replaces CVC4_PUBLIC and its usage is reduced by 2/3.
Co-authored-by: Gereon Kremer <nafur42@gmail.com>
Diffstat (limited to 'src/util/abstract_value.h')
-rw-r--r-- | src/util/abstract_value.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/util/abstract_value.h b/src/util/abstract_value.h index 44f2277fe..5d28d355a 100644 --- a/src/util/abstract_value.h +++ b/src/util/abstract_value.h @@ -24,7 +24,8 @@ namespace CVC4 { -class CVC4_PUBLIC AbstractValue { +class AbstractValue +{ const Integer d_index; public: @@ -46,17 +47,18 @@ class CVC4_PUBLIC AbstractValue { } bool operator>(const AbstractValue& val) const { return !(*this <= val); } bool operator>=(const AbstractValue& val) const { return !(*this < val); } -};/* class AbstractValue */ +}; /* class AbstractValue */ -std::ostream& operator<<(std::ostream& out, const AbstractValue& val) CVC4_PUBLIC; +std::ostream& operator<<(std::ostream& out, const AbstractValue& val); /** * Hash function for the BitVector constants. */ -struct CVC4_PUBLIC AbstractValueHashFunction { +struct AbstractValueHashFunction +{ inline size_t operator()(const AbstractValue& val) const { return IntegerHashFunction()(val.getIndex()); } -};/* struct AbstractValueHashFunction */ +}; /* struct AbstractValueHashFunction */ }/* CVC4 namespace */ |