Merge pull request #73 from kbansal/parser-dont-tokenize
[cvc5.git] / src / theory / theory_registrar.h
1 /********************* */
2 /*! \file theory_registrar.h
3 ** \verbatim
4 ** Original author: Liana Hadarean
5 ** Major contributors: Morgan Deters, Tim King
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 project.
8 ** Copyright (c) 2009-2014 New York University and The University of Iowa
9 ** See the file COPYING in the top-level source directory for licensing
10 ** information.\endverbatim
11 **
12 ** \brief Class to encapsulate preregistration duties
13 **
14 ** Class to encapsulate preregistration duties. This class permits the
15 ** CNF stream implementation to reach into the theory engine to
16 ** preregister only those terms with an associated SAT literal (at the
17 ** point when they get the SAT literal), without having to refer to the
18 ** TheoryEngine class directly.
19 **/
20
21 #include "cvc4_private.h"
22
23 #ifndef __CVC4__THEORY__THEORY_REGISTRAR_H
24 #define __CVC4__THEORY__THEORY_REGISTRAR_H
25
26 #include "prop/registrar.h"
27 #include "theory/theory_engine.h"
28
29 namespace CVC4 {
30 namespace theory {
31
32 class TheoryRegistrar : public prop::Registrar {
33 private:
34 TheoryEngine* d_theoryEngine;
35
36 public:
37
38 TheoryRegistrar(TheoryEngine* te) : d_theoryEngine(te) { }
39
40 void preRegister(Node n) {
41 d_theoryEngine->preRegister(n);
42 }
43
44 };/* class TheoryRegistrar */
45
46 }/* CVC4::theory namespace */
47 }/* CVC4 namespace */
48
49 #endif /* __CVC4__THEORY__THEORY_REGISTRAR_H */