OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
VarGroundingPMCB.h
Go to the documentation of this file.
1 /*
2  * VarGroundingPMCB.h
3  *
4  * Copyright (C) 2015 Misgana Bayetta
5  *
6  * Author: Misgana Bayetta <misgana.bayetta@gmail.com>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Affero General Public License v3 as
10  * published by the Free Software Foundation and including the exceptions
11  * at http://opencog.org/wiki/Licenses
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU Affero General Public License
19  * along with this program; if not, write to:
20  * Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23 
24 #ifndef VARGROUNDINGPMCB_H_
25 #define VARGROUNDINGPMCB_H_
26 
28 
29 namespace opencog
30 {
35 class VarGroundingPMCB: public virtual DefaultImplicator {
36 public:
40 
41  {
42  }
43  virtual ~VarGroundingPMCB(){}
44 
45  virtual bool grounding(const std::map<Handle, Handle> &var_soln,
46  const std::map<Handle, Handle> &term_soln)
47  {
48 
49  var_groundings.push_back(var_soln);
50  term_groundings.push_back(term_soln);
51 
52  return false;
53  }
54 
55  std::vector<std::map<Handle, Handle>> var_groundings;
56  std::vector<std::map<Handle, Handle>> term_groundings;
57 };
58 
59 } /* namespace opencog */
60 
61 #endif /* VARGROUNDINGPMCB_H_ */
VarGroundingPMCB(AtomSpace *as)
virtual bool grounding(const std::map< Handle, Handle > &var_soln, const std::map< Handle, Handle > &term_soln)
std::vector< std::map< Handle, Handle > > var_groundings
std::vector< std::map< Handle, Handle > > term_groundings