Dynamic allocation of model equality engine (#4911)
[cvc5.git] / src / theory / ee_manager.cpp
1 /********************* */
2 /*! \file ee_manager.cpp
3 ** \verbatim
4 ** Top contributors (to current version):
5 ** Andrew Reynolds
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2020 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 Utilities for management of equality engines.
13 **/
14
15 #include "theory/ee_manager.h"
16
17 namespace CVC4 {
18 namespace theory {
19
20 const EeTheoryInfo* EqEngineManager::getEeTheoryInfo(TheoryId tid) const
21 {
22 std::map<TheoryId, EeTheoryInfo>::const_iterator it = d_einfo.find(tid);
23 if (it != d_einfo.end())
24 {
25 return &it->second;
26 }
27 return nullptr;
28 }
29
30 } // namespace theory
31 } // namespace CVC4