summaryrefslogtreecommitdiff
path: root/src/theory/registrar.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-04-05 04:06:10 +0000
committerMorgan Deters <mdeters@gmail.com>2011-04-05 04:06:10 +0000
commitbc3269ad3680436ede31a70803ff5879c9e4bf6e (patch)
tree867ea6d43ba8bf9d6f0906cd74a563f62f2c39b0 /src/theory/registrar.h
parent41dddac33ba0332a2ab52983b94044cbdc9e762e (diff)
Minor adjustments to the Registrar commit in 1644, documentation.
Diffstat (limited to 'src/theory/registrar.h')
-rw-r--r--src/theory/registrar.h39
1 files changed, 29 insertions, 10 deletions
diff --git a/src/theory/registrar.h b/src/theory/registrar.h
index ce3a301d7..19315827e 100644
--- a/src/theory/registrar.h
+++ b/src/theory/registrar.h
@@ -1,7 +1,30 @@
+/********************* */
+/*! \file registrar.h
+ ** \verbatim
+ ** Original author: taking
+ ** Major contributors: mdeters
+ ** Minor contributors (to current version): none
+ ** This file is part of the CVC4 prototype.
+ ** Copyright (c) 2009, 2010, 2011 The Analysis of Computer Systems Group (ACSys)
+ ** Courant Institute of Mathematical Sciences
+ ** New York University
+ ** See the file COPYING in the top-level source directory for licensing
+ ** information.\endverbatim
+ **
+ ** \brief Class to encapsulate preregistration duties
+ **
+ ** Class to encapsulate preregistration duties. This class permits the
+ ** CNF stream implementation to reach into the theory engine to
+ ** preregister only those terms with an associated SAT literal (at the
+ ** point when they get the SAT literal), without having to refer to the
+ ** TheoryEngine class directly.
+ **/
+
#include "cvc4_private.h"
-#ifndef __CVC4__THEORY_REGISTRAR_H
-#define __CVC4__THEORY_REGISTRAR_H
+#ifndef __CVC4__THEORY__REGISTRAR_H
+#define __CVC4__THEORY__REGISTRAR_H
+
#include "theory/theory_engine.h"
namespace CVC4 {
@@ -12,20 +35,16 @@ private:
TheoryEngine* d_theoryEngine;
public:
- Registrar() : d_theoryEngine(NULL){ }
- Registrar(TheoryEngine* te) : d_theoryEngine(te){ }
+ Registrar(TheoryEngine* te) : d_theoryEngine(te) { }
- void preRegister(Node n){
- if(d_theoryEngine != NULL){
- d_theoryEngine->preRegister(n);
- }
+ void preRegister(Node n) {
+ d_theoryEngine->preRegister(n);
}
};/* class Registrar */
-
}/* CVC4::theory namespace */
}/* CVC4 namespace */
-#endif /* __CVC4__THEORY_REGISTRAR_H */
+#endif /* __CVC4__THEORY__REGISTRAR_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback