OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PatternMatchEngine.cc File Reference
#include <opencog/util/oc_assert.h>
#include <opencog/util/Logger.h>
#include <opencog/atomutils/FindUtils.h>
#include <opencog/atoms/bind/PatternUtils.h>
#include <opencog/atomspace/AtomSpace.h>
#include <opencog/atomspace/Link.h>
#include <opencog/atomspace/Node.h>
#include "PatternMatchEngine.h"
+ Include dependency graph for PatternMatchEngine.cc:

Go to the source code of this file.

Macros

#define dbgprt(f, varargs...)
 
#define NO_SELF_GROUNDING   1
 
#define POPSTK(stack, soln)
 

Functions

static bool prt (const Handle &h)
 
static void prtmsg (const char *msg, const Handle &h)
 

Macro Definition Documentation

#define dbgprt (   f,
  varargs... 
)

Pattern Match Engine Overview

The explanation of how this code actually qorks has been moved to README-Algorithm. That README provies the "big-picture" explanation of the rather complex interwoven code below. Read it first, and refert to it when examining the main methods below.

Definition at line 64 of file PatternMatchEngine.cc.

#define NO_SELF_GROUNDING   1

Definition at line 93 of file PatternMatchEngine.cc.

#define POPSTK (   stack,
  soln 
)
Value:
{ \
soln = stack.top(); \
stack.pop(); \
}

Definition at line 105 of file PatternMatchEngine.cc.

Function Documentation

static bool prt ( const Handle h)
inlinestatic

Definition at line 68 of file PatternMatchEngine.cc.

References opencog::Atom::toShortString().

+ Here is the caller graph for this function:

static void prtmsg ( const char *  msg,
const Handle h 
)
inlinestatic

Definition at line 75 of file PatternMatchEngine.cc.

References opencog::Atom::toShortString(), and opencog::Handle::UNDEFINED.

+ Here is the caller graph for this function: