knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <Unifier.h>
Public Member Functions | |
Unifier (const TermPtr &t0, const TermPtr &t1) | |
bool | exists () const |
TermPtr | apply () |
Unifier (const TermPtr &t0, const TermPtr &t1) | |
bool | exists () const |
TermPtr | apply () |
Public Member Functions inherited from knowrob::Bindings | |
Bindings ()=default | |
Bindings (const std::map< std::shared_ptr< Variable >, TermPtr > &mapping) | |
~Bindings () override=default | |
bool | operator== (const Bindings &other) const |
void | operator+= (const Bindings &other) |
bool | empty () const |
auto | size () const |
auto | begin () const |
auto | end () const |
auto | find (std::string_view varName) const |
void | set (const std::shared_ptr< Variable > &var, const TermPtr &term) |
const TermPtr & | get (std::string_view varName) const |
std::shared_ptr< Atomic > | getAtomic (std::string_view varName) const |
bool | contains (std::string_view varName) const |
bool | unifyWith (const Bindings &other) |
bool | isConsistentWith (const Bindings &other) const |
size_t | hash () const |
void | write (std::ostream &os) const override |
Bindings ()=default | |
Bindings (const std::map< std::shared_ptr< Variable >, TermPtr > &mapping) | |
~Bindings () override=default | |
bool | operator== (const Bindings &other) const |
void | operator+= (const Bindings &other) |
bool | empty () const |
auto | size () const |
auto | begin () const |
auto | end () const |
auto | find (std::string_view varName) const |
void | set (const std::shared_ptr< Variable > &var, const TermPtr &term) |
const TermPtr & | get (std::string_view varName) const |
std::shared_ptr< Atomic > | getAtomic (std::string_view varName) const |
bool | contains (std::string_view varName) const |
bool | unifyWith (const Bindings &other) |
bool | isConsistentWith (const Bindings &other) const |
size_t | hash () const |
void | write (std::ostream &os) const override |
Public Member Functions inherited from knowrob::Printable | |
virtual | ~Printable ()=default |
virtual std::string | format () const |
virtual | ~Printable ()=default |
virtual std::string | format () const |
Protected Member Functions | |
bool | unify (const TermPtr &t0, const TermPtr &t1) |
bool | unify (const std::shared_ptr< Variable > &var, const TermPtr &t) |
bool | unify (const TermPtr &t0, const TermPtr &t1) |
bool | unify (const std::shared_ptr< Variable > &var, const TermPtr &t) |
Protected Attributes | |
TermPtr | t0_ |
TermPtr | t1_ |
bool | exists_ |
Protected Attributes inherited from knowrob::Bindings | |
Map | mapping_ |
Additional Inherited Members | |
Public Types inherited from knowrob::Bindings | |
using | Map = std::map< std::string_view, std::pair< std::shared_ptr< Variable >, TermPtr > > |
using | VarMap = std::map< std::shared_ptr< Variable >, TermPtr > |
using | Map = std::map< std::string_view, std::pair< std::shared_ptr< Variable >, TermPtr > > |
using | VarMap = std::map< std::shared_ptr< Variable >, TermPtr > |
Static Public Member Functions inherited from knowrob::Bindings | |
static std::shared_ptr< const Bindings > | emptyBindings () |
static std::shared_ptr< const Bindings > | emptyBindings () |
Compute a unifier of two terms.
t0 | a term. |
t1 | a term. |
Definition at line 16 of file Unifier.cpp.
Compute a unifier of two terms.
t0 | a term. |
t1 | a term. |
TermPtr Unifier::apply | ( | ) |
Applies the unifier to one of the unified terms.
Definition at line 74 of file Unifier.cpp.
TermPtr knowrob::Unifier::apply | ( | ) |
Applies the unifier to one of the unified terms.
|
inline |
|
inline |
Definition at line 60 of file Unifier.cpp.
|
protected |
Definition at line 23 of file Unifier.cpp.