Fix combinations of cegqi and non-standard triggers (#4271)
[cvc5.git] / src / theory / theory_registrar.h
1 /********************* */
2 /*! \file theory_registrar.h
3 ** \verbatim
4 ** Top contributors (to current version):
5 ** Liana Hadarean, Tim King, Mathias Preiner
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2019 by the authors listed in the file AUTHORS
8 ** in the top-level source directory) and their institutional affiliations.
9 ** All rights reserved. See the file COPYING in the top-level source
10 ** directory for licensing 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) override { d_theoryEngine->preRegister(n); }
41
42 };/* class TheoryRegistrar */
43
44 }/* CVC4::theory namespace */
45 }/* CVC4 namespace */
46
47 #endif /* CVC4__THEORY__THEORY_REGISTRAR_H */