1 /********************* */
2 /*! \file theory_registrar.h
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
12 ** \brief Class to encapsulate preregistration duties
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.
21 #include "cvc4_private.h"
23 #ifndef __CVC4__THEORY__THEORY_REGISTRAR_H
24 #define __CVC4__THEORY__THEORY_REGISTRAR_H
26 #include "prop/registrar.h"
27 #include "theory/theory_engine.h"
32 class TheoryRegistrar
: public prop::Registrar
{
34 TheoryEngine
* d_theoryEngine
;
38 TheoryRegistrar(TheoryEngine
* te
) : d_theoryEngine(te
) { }
40 void preRegister(Node n
) {
41 d_theoryEngine
->preRegister(n
);
44 };/* class TheoryRegistrar */
46 }/* CVC4::theory namespace */
49 #endif /* __CVC4__THEORY__THEORY_REGISTRAR_H */