#include <stdio.h>#include "setup.h"#include "drive.h"#include "engine.h"#include "envrnmnt.h"#include "incrrset.h"#include "match.h"#include "memalloc.h"#include "moduldef.h"#include "pattern.h"#include "retract.h"#include "router.h"#include "reteutil.h"

Go to the source code of this file.
Defines | |
| #define | _RETEUTIL_SOURCE_ |
| #define | _STDIO_INCLUDED_ |
Functions | |
| globle void | PrintPartialMatch (void *theEnv, char *logicalName, struct partialMatch *list) |
| globle struct partialMatch * | CopyPartialMatch (void *theEnv, struct partialMatch *list) |
| globle struct partialMatch * | CreateEmptyPartialMatch (void *theEnv) |
| globle void | UpdateBetaPMLinks (void *theEnv, struct partialMatch *thePM, struct partialMatch *lhsBinds, struct partialMatch *rhsBinds, struct joinNode *join, unsigned long hashValue, int side) |
| globle void | AddBlockedLink (struct partialMatch *thePM, struct partialMatch *rhsBinds) |
| globle void | RemoveBlockedLink (struct partialMatch *thePM) |
| globle void | UnlinkBetaPMFromNodeAndLineage (void *theEnv, struct joinNode *join, struct partialMatch *thePM, int side) |
| globle void | UnlinkNonLeftLineage (void *theEnv, struct joinNode *join, struct partialMatch *thePM, int side) |
| globle struct partialMatch * | MergePartialMatches (void *theEnv, struct partialMatch *lhsBind, struct partialMatch *rhsBind) |
| globle void | InitializePatternHeader (void *theEnv, struct patternNodeHeader *theHeader) |
| globle struct partialMatch * | CreateAlphaMatch (void *theEnv, void *theEntity, struct multifieldMarker *markers, struct patternNodeHeader *theHeader, unsigned long hashOffset) |
| struct multifieldMarker * | CopyMultifieldMarkers (void *theEnv, struct multifieldMarker *theMarkers) |
| globle void | FlushAlphaBetaMemory (void *theEnv, struct partialMatch *pfl) |
| globle void | DestroyAlphaBetaMemory (void *theEnv, struct partialMatch *pfl) |
| globle int | FindEntityInPartialMatch (struct patternEntity *theEntity, struct partialMatch *thePartialMatch) |
| globle int | GetPatternNumberFromJoin (struct joinNode *joinPtr) |
| globle void | TraceErrorToRule (void *theEnv, struct joinNode *joinPtr, char *indentSpaces) |
| globle void | MarkRuleNetwork (void *theEnv, int value) |
| globle void | MarkRuleJoins (struct joinNode *joinPtr, int value) |
| globle struct partialMatch * | GetAlphaMemory (void *theEnv, struct patternNodeHeader *theHeader, unsigned long hashOffset) |
| globle struct partialMatch * | GetLeftBetaMemory (struct joinNode *theJoin, unsigned long hashValue) |
| globle struct partialMatch * | GetRightBetaMemory (struct joinNode *theJoin, unsigned long hashValue) |
| globle void | ReturnLeftMemory (void *theEnv, struct joinNode *theJoin) |
| globle void | ReturnRightMemory (void *theEnv, struct joinNode *theJoin) |
| globle void | DestroyBetaMemory (void *theEnv, struct joinNode *theJoin, int side) |
| globle void | FlushBetaMemory (void *theEnv, struct joinNode *theJoin, int side) |
| globle intBool | BetaMemoryNotEmpty (struct joinNode *theJoin) |
| globle void | RemoveAlphaMemoryMatches (void *theEnv, struct patternNodeHeader *theHeader, struct partialMatch *theMatch, struct alphaMatch *theAlphaMatch) |
| globle void | DestroyAlphaMemory (void *theEnv, struct patternNodeHeader *theHeader, int unlink) |
| globle void | FlushAlphaMemory (void *theEnv, struct patternNodeHeader *theHeader) |
| unsigned long | ComputeRightHashValue (void *theEnv, struct patternNodeHeader *theHeader) |
| globle void | TagRuleNetwork (void *theEnv, long int *moduleCount, long int *ruleCount, long int *joinCount, long int *linkCount) |
| #define _RETEUTIL_SOURCE_ |
Definition at line 31 of file reteutil.c.
| #define _STDIO_INCLUDED_ |
Definition at line 34 of file reteutil.c.
| globle void AddBlockedLink | ( | struct partialMatch * | thePM, | |
| struct partialMatch * | rhsBinds | |||
| ) |
Definition at line 267 of file reteutil.c.
| globle intBool BetaMemoryNotEmpty | ( | struct joinNode * | theJoin | ) |
Definition at line 1142 of file reteutil.c.
| unsigned long ComputeRightHashValue | ( | void * | theEnv, | |
| struct patternNodeHeader * | theHeader | |||
| ) |
Definition at line 1350 of file reteutil.c.
| struct multifieldMarker* CopyMultifieldMarkers | ( | void * | theEnv, | |
| struct multifieldMarker * | theMarkers | |||
| ) | [read] |
Definition at line 725 of file reteutil.c.
| globle struct partialMatch* CopyPartialMatch | ( | void * | theEnv, | |
| struct partialMatch * | list | |||
| ) | [read] |
Definition at line 102 of file reteutil.c.
| globle struct partialMatch* CreateAlphaMatch | ( | void * | theEnv, | |
| void * | theEntity, | |||
| struct multifieldMarker * | markers, | |||
| struct patternNodeHeader * | theHeader, | |||
| unsigned long | hashOffset | |||
| ) | [read] |
Definition at line 621 of file reteutil.c.
| globle struct partialMatch* CreateEmptyPartialMatch | ( | void * | theEnv | ) | [read] |
Definition at line 127 of file reteutil.c.
| globle void DestroyAlphaBetaMemory | ( | void * | theEnv, | |
| struct partialMatch * | pfl | |||
| ) |
Definition at line 780 of file reteutil.c.
| globle void DestroyAlphaMemory | ( | void * | theEnv, | |
| struct patternNodeHeader * | theHeader, | |||
| int | unlink | |||
| ) |
Definition at line 1203 of file reteutil.c.
| globle void DestroyBetaMemory | ( | void * | theEnv, | |
| struct joinNode * | theJoin, | |||
| int | side | |||
| ) |
Definition at line 1086 of file reteutil.c.
| globle int FindEntityInPartialMatch | ( | struct patternEntity * | theEntity, | |
| struct partialMatch * | thePartialMatch | |||
| ) |
Definition at line 798 of file reteutil.c.
| globle void FlushAlphaBetaMemory | ( | void * | theEnv, | |
| struct partialMatch * | pfl | |||
| ) |
Definition at line 759 of file reteutil.c.
| globle void FlushAlphaMemory | ( | void * | theEnv, | |
| struct patternNodeHeader * | theHeader | |||
| ) |
Definition at line 1229 of file reteutil.c.
| globle void FlushBetaMemory | ( | void * | theEnv, | |
| struct joinNode * | theJoin, | |||
| int | side | |||
| ) |
Definition at line 1116 of file reteutil.c.
| globle struct partialMatch* GetAlphaMemory | ( | void * | theEnv, | |
| struct patternNodeHeader * | theHeader, | |||
| unsigned long | hashOffset | |||
| ) | [read] |
Definition at line 1002 of file reteutil.c.
| globle struct partialMatch* GetLeftBetaMemory | ( | struct joinNode * | theJoin, | |
| unsigned long | hashValue | |||
| ) | [read] |
Definition at line 1023 of file reteutil.c.
| globle int GetPatternNumberFromJoin | ( | struct joinNode * | joinPtr | ) |
Definition at line 819 of file reteutil.c.
| globle struct partialMatch* GetRightBetaMemory | ( | struct joinNode * | theJoin, | |
| unsigned long | hashValue | |||
| ) | [read] |
Definition at line 1038 of file reteutil.c.
| globle void InitializePatternHeader | ( | void * | theEnv, | |
| struct patternNodeHeader * | theHeader | |||
| ) |
Definition at line 588 of file reteutil.c.
| globle void MarkRuleJoins | ( | struct joinNode * | joinPtr, | |
| int | value | |||
| ) |
Definition at line 984 of file reteutil.c.
| globle void MarkRuleNetwork | ( | void * | theEnv, | |
| int | value | |||
| ) |
Definition at line 933 of file reteutil.c.
| globle struct partialMatch* MergePartialMatches | ( | void * | theEnv, | |
| struct partialMatch * | lhsBind, | |||
| struct partialMatch * | rhsBind | |||
| ) | [read] |
Definition at line 544 of file reteutil.c.
| globle void PrintPartialMatch | ( | void * | theEnv, | |
| char * | logicalName, | |||
| struct partialMatch * | list | |||
| ) |
Definition at line 76 of file reteutil.c.
| globle void RemoveAlphaMemoryMatches | ( | void * | theEnv, | |
| struct patternNodeHeader * | theHeader, | |||
| struct partialMatch * | theMatch, | |||
| struct alphaMatch * | theAlphaMatch | |||
| ) |
Definition at line 1164 of file reteutil.c.
| globle void RemoveBlockedLink | ( | struct partialMatch * | thePM | ) |
Definition at line 285 of file reteutil.c.
| globle void ReturnLeftMemory | ( | void * | theEnv, | |
| struct joinNode * | theJoin | |||
| ) |
Definition at line 1053 of file reteutil.c.
| globle void ReturnRightMemory | ( | void * | theEnv, | |
| struct joinNode * | theJoin | |||
| ) |
Definition at line 1067 of file reteutil.c.
| globle void TagRuleNetwork | ( | void * | theEnv, | |
| long int * | moduleCount, | |||
| long int * | ruleCount, | |||
| long int * | joinCount, | |||
| long int * | linkCount | |||
| ) |
Definition at line 1487 of file reteutil.c.
| globle void TraceErrorToRule | ( | void * | theEnv, | |
| struct joinNode * | joinPtr, | |||
| char * | indentSpaces | |||
| ) |
Definition at line 843 of file reteutil.c.
| globle void UnlinkBetaPMFromNodeAndLineage | ( | void * | theEnv, | |
| struct joinNode * | join, | |||
| struct partialMatch * | thePM, | |||
| int | side | |||
| ) |
Definition at line 309 of file reteutil.c.
| globle void UnlinkNonLeftLineage | ( | void * | theEnv, | |
| struct joinNode * | join, | |||
| struct partialMatch * | thePM, | |||
| int | side | |||
| ) |
Definition at line 362 of file reteutil.c.
| globle void UpdateBetaPMLinks | ( | void * | theEnv, | |
| struct partialMatch * | thePM, | |||
| struct partialMatch * | lhsBinds, | |||
| struct partialMatch * | rhsBinds, | |||
| struct joinNode * | join, | |||
| unsigned long | hashValue, | |||
| int | side | |||
| ) |
Definition at line 170 of file reteutil.c.
1.5.6