Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions  Download package

TestNode Class Reference

#include <nsRuleNetwork.h>

Inheritance diagram for TestNode:

ReteNode nsContentTestNode nsRDFTestNode nsRDFConInstanceTestNode nsRDFConMemberTestNode

List of all members.


Detailed Description

A node that applies a test condition to a set of instantiations.

This class provides implementations of Propagate() and Constrain() in terms of one simple operation, FilterInstantiations(). A node that is a "simple test node" in a rule network should derive from this class, and need only implement FilterInstantiations().

Definition at line 801 of file nsRuleNetwork.h.


Public Member Functions

nsresult AddChild (ReteNode *aNode)
virtual nsresult Constrain (InstantiationSet &aInstantiations)
virtual nsresult FilterInstantiations (InstantiationSet &aInstantiations, PRBool *aCantHandleYet) const =0
TestNodeGetParent () const
PRBool HasAncestor (const ReteNode *aNode) const
virtual nsresult Propagate (InstantiationSet &aInstantiations, PRBool aIsUpdate, PRBool &aTakenInstantiations)
nsresult RemoveAllChildren ()
 TestNode (TestNode *aParent)

Protected Attributes

ReteNodeSet mKids
TestNodemParent

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index