#include <Soprano/Inference/RuleSet>
Public Member Functions | |
RuleSet () | |
RuleSet (const RuleSet &) | |
~RuleSet () | |
RuleSet & | operator= (const RuleSet &) |
void | clear () |
void | insert (const QString &name, const Rule &rule) |
int | count () const |
Rule | at (int index) const |
Rule | operator[] (int index) const |
Rule | rule (const QString &name) const |
Rule | operator[] (const QString &name) const |
QStringList | ruleNames () const |
QList< Rule > | allRules () const |
Static Public Member Functions | |
static RuleSet | standardRuleSet (StandardRuleSet) |
RuleSet represents a set of inference rules. Each Rule has a unique name.
Definition at line 54 of file inferenceruleset.h.
Soprano::Inference::RuleSet::RuleSet | ( | ) |
Create an empty RuleSet.
Soprano::Inference::RuleSet::RuleSet | ( | const RuleSet & | ) |
Copy constructor.
Soprano::Inference::RuleSet::~RuleSet | ( | ) |
Destructor.
void Soprano::Inference::RuleSet::clear | ( | ) |
Add a Rule to the set.
name | The name the new rule is supposed to be stored under. | |
rule | The new rule to store in the set. |
int Soprano::Inference::RuleSet::count | ( | ) | const |
Number of rules in the set.
Rule Soprano::Inference::RuleSet::at | ( | int | index | ) | const |
Rule Soprano::Inference::RuleSet::operator[] | ( | int | index | ) | const |
QStringList Soprano::Inference::RuleSet::ruleNames | ( | ) | const |
static RuleSet Soprano::Inference::RuleSet::standardRuleSet | ( | StandardRuleSet | ) | [static] |