summaryrefslogtreecommitdiff
path: root/src/expr/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/node.h')
-rw-r--r--src/expr/node.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/expr/node.h b/src/expr/node.h
index 5456f3285..f0ee7a56c 100644
--- a/src/expr/node.h
+++ b/src/expr/node.h
@@ -19,8 +19,8 @@
// circular dependency
#include "expr/node_value.h"
-#ifndef __CVC4__NODE_H
-#define __CVC4__NODE_H
+#ifndef CVC4__NODE_H
+#define CVC4__NODE_H
#include <stdint.h>
@@ -52,12 +52,6 @@ namespace CVC4 {
class TypeNode;
class NodeManager;
-namespace expr {
- namespace pickle {
- class PicklerPrivate;
- }/* CVC4::expr::pickle namespace */
-}/* CVC4::expr namespace */
-
template <bool ref_count>
class NodeTemplate;
@@ -182,7 +176,6 @@ class NodeTemplate {
*/
friend class expr::NodeValue;
- friend class expr::pickle::PicklerPrivate;
friend class expr::ExportPrivate;
/** A convenient null-valued encapsulated pointer */
@@ -468,6 +461,10 @@ public:
return getMetaKind() == kind::metakind::NULLARY_OPERATOR;
}
+ /**
+ * Returns true if this node represents a closure, that is an expression
+ * that binds variables.
+ */
inline bool isClosure() const {
assertTNodeNotExpired();
return getKind() == kind::LAMBDA || getKind() == kind::FORALL
@@ -485,7 +482,7 @@ public:
/**
* Returns a node representing the operator of this expression.
- * If this is an APPLY, then the operator will be a functional term.
+ * If this is an APPLY_UF, then the operator will be a functional term.
* Otherwise, it will be a node with kind BUILTIN.
*/
NodeTemplate<true> getOperator() const;
@@ -1269,7 +1266,7 @@ NodeTemplate<ref_count>::printAst(std::ostream& out, int indent) const {
/**
* Returns a node representing the operator of this expression.
- * If this is an APPLY, then the operator will be a functional term.
+ * If this is an APPLY_UF, then the operator will be a functional term.
* Otherwise, it will be a node with kind BUILTIN.
*/
template <bool ref_count>
@@ -1566,4 +1563,4 @@ static void __attribute__((used)) debugPrintRawTNode(const NodeTemplate<false>&
}/* CVC4 namespace */
-#endif /* __CVC4__NODE_H */
+#endif /* CVC4__NODE_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback