summaryrefslogtreecommitdiff
path: root/src/expr/node_value.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2009-12-18 19:47:42 +0000
committerMorgan Deters <mdeters@gmail.com>2009-12-18 19:47:42 +0000
commite112de2be02760f66505a09e76269cca272dc988 (patch)
treee29cf33d44b05107966999fd2c3ef74efd5c6b67 /src/expr/node_value.h
parent9697aa0761e798c95294bcaf291c648da0f1ba46 (diff)
numerous fixes to nodes; more coming
Diffstat (limited to 'src/expr/node_value.h')
-rw-r--r--src/expr/node_value.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/expr/node_value.h b/src/expr/node_value.h
index 352be7d27..954fe0aaa 100644
--- a/src/expr/node_value.h
+++ b/src/expr/node_value.h
@@ -97,7 +97,8 @@ class NodeValue {
* @return the hash value
*/
template<typename const_iterator_type>
- static uint64_t computeHash(uint64_t hash, const_iterator_type begin, const_iterator_type end) {
+ static uint64_t computeHash(uint64_t hash, const_iterator_type begin,
+ const_iterator_type end) {
for(const_iterator_type i = begin; i != end; ++i) {
hash = computeHash(hash, *i);
}
@@ -105,7 +106,8 @@ class NodeValue {
}
static uint64_t computeHash(uint64_t hash, const NodeValue* ev) {
- return ( (hash << 3) | ((hash & 0xE000000000000000ull) >> 61) ) ^ ev->getId();
+ return
+ ( (hash << 3) | ((hash & 0xE000000000000000ull) >> 61) ) ^ ev->getId();
}
typedef NodeValue** ev_iterator;
@@ -120,7 +122,7 @@ class NodeValue {
class node_iterator {
const_ev_iterator d_i;
public:
- node_iterator(const_ev_iterator i) : d_i(i) {}
+ explicit node_iterator(const_ev_iterator i) : d_i(i) {}
inline Node operator*();
@@ -132,7 +134,7 @@ class NodeValue {
return d_i != i.d_i;
}
- node_iterator& operator++() {
+ node_iterator operator++() {
++d_i;
return *this;
}
@@ -175,7 +177,7 @@ namespace CVC4 {
namespace expr {
inline Node NodeValue::node_iterator::operator*() {
- return Node(*d_i);
+ return Node((NodeValue*) d_i);
}
}/* CVC4::expr namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback