User Documentation
RAVL, Recognition And Vision Library
Ravl - Logic - Condition - MinTermC

MinTermC::MinTermC(const SArray1dC &,const SArray1dC &,bool)
MinTermC::MinTermC(const AndC &,const OrC &)
MinTermC::MinTermC(const LiteralC &,bool)
MinTermC::MinTermC(const LiteralC &)
MinTermC::Pos(void) const
MinTermC::Neg(void) const
MinTermC::PosTerm(void) const
MinTermC::NegTerm(void) const
MinTermC::Copy(void) const
MinTermC::AndNotAdd(const LiteralC &)
MinTermC::operator *=(const LiteralC &)
MinTermC::Covers(const MinTermC &,BindSetC &) const
AndC::Terms(void) const
AndC::Size(void) const
AndC::AndAdd(const LiteralC &)
AndC::AndAdd(const SArray1dC &)
AndC::operator *=(const LiteralC &)
AndC::operator *=(const SArray1dC &)
ConditionC::IsEqual(const ConditionC &) const
ConditionC::operator ==(const ConditionC &) const
TupleC::Arity(void) const
TupleC::Args(void) const
TupleC::SetArg(UIntT,const LiteralC &)
TupleC::operator [](UIntT) const
LiteralC::Name(void) const
LiteralC::IsVariable(void) const
LiteralC::IsGrounded(void) const
LiteralC::Unify(const LiteralC &,BindSetC &) const
LiteralC::Hash(void) const
LiteralC::IsEqual(const LiteralC &) const
LiteralC::operator ==(const LiteralC &) const
LiteralC::operator !=(const LiteralC &) const
LiteralC::Dump(ostream &)
LiteralC::Test(const StateC &,BindSetC &) const
LiteralC::Solutions(const StateC &,BindSetC &) const
LiteralC::SubLiterals(HSetC &) const
LiteralC::Substitute(const BindSetC &,LiteralC &) const
LiteralC::ReplaceVars(HashC &,LiteralC &) const
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

Logical Minterm.
include "Ravl/Logic/MinTerm.hh"
User Level:Normal
In Scope:RavlLogicN

This is a set of negative and positive conditions which are anded together.

Parent Classes: Methods:
Default constructor

Creates a valid but empty minterm.

MinTermC(const SArray1dC<LiteralC> & ts,const SArray1dC<LiteralC> & ns,bool useArrayDirectly = false)

MinTermC(const AndC & at,const OrC & ot)

MinTermC(const LiteralC & lit,bool negate)
Construct from a literal.
Effectively add NotC(lit) if negate is true.

MinTermC(const LiteralC & lit)
Base constructor

const SArray1dC<LiteralC> & Pos() const
Positive terms.

const SArray1dC<LiteralC> & Neg() const
Negated terms.

const AndC & PosTerm() const
Positive terms.

const OrC & NegTerm() const
Negated terms.

AndC & PosTerm()
Positive terms.

OrC & NegTerm()
Negated terms.

MinTermC Copy() const
Copy this min term.

bool AndNotAdd(const LiteralC & lit)
Add a negated term to the minterm.

const MinTermC & operator *=(const LiteralC & lit)

bool Covers(const MinTermC & mt,BindSetC & bs) const
Does this minterm cover all terms of mt ?

#include "Ravl/Logic/And.hh"
SArray1dC<LiteralC> & Terms()
Access set of terms.

const SArray1dC<LiteralC> & Terms() const
Access set of terms.

SizeT Size() const
Get the number of terms to be anded together.

void AndAdd(const LiteralC & lit)
Add literal.

void AndAdd(const SArray1dC<LiteralC> & lits)
Add literals.

const AndC & operator *=(const LiteralC & lit)
Add some terms.

const AndC & operator *=(const SArray1dC<LiteralC> & lits)
Add some terms.

#include "Ravl/Logic/Condition.hh"
bool IsEqual(const ConditionC & oth) const
Is this equal to another condition ?

bool operator ==(const ConditionC & oth) const
Is this equal to another condition ?

#include "Ravl/Logic/Tuple.hh"
UIntT Arity() const
Get the arity of the expression.

SArray1dC<LiteralC> & Args()
Access array of args.

const SArray1dC<LiteralC> & Args() const
Access array of args.

void SetArg(UIntT n,const LiteralC & s)
Set the value of an arg.

const LiteralC & operator [](UIntT n) const
Access an arg of the tuple.

#include "Ravl/Logic/Literal.hh"
StringC Name() const
Get the name of symbol.

bool IsVariable() const
Is this a variable ?

bool IsGrounded() const
Is this a simple expression with no variables ?

bool Unify(const LiteralC & val,BindSetC & bs) const
Unify this and 'val'.

UIntT Hash() const
Get hash value.

bool IsEqual(const LiteralC & oth) const
Is this equial to another LiteralC ?

bool operator ==(const LiteralC & oth) const
Equality test.

bool operator !=(const LiteralC & oth) const
Inequality test.

void Dump(ostream & out)
Dump info in human readable format to stream 'out'.

bool Test(const StateC & state,BindSetC & binds) const
Test if condition is true in 'state'.

LiteralIterC Solutions(const StateC & state,BindSetC & binds) const
Return iterator through possibile matches to this literal in 'state', if any.

void SubLiterals(HSetC<LiteralC> & lits) const
Get a set of all sub literals.

bool Substitute(const BindSetC & binds,LiteralC & result) const
Substitute variables in 'binds' for their bound values.
This builds a new literal with the substute values (if there are any). The new value is assigned to 'result'

Returns true if at least one substitution has been made, false if none.

bool ReplaceVars(HashC<LiteralC,LiteralC> & subs,LiteralC & result) const
Replace all vars in this literal with new ones.
The mapping between the replacements and the new values is returned in 'subs' If no new replacements where found, false is returned.

#include "Ravl/RefCounter.hh"
const RCHandleC<LiteralBodyC> & operator =(const RCHandleC<LiteralBodyC> & oth)
Assign handle.

RCHandleC<LiteralBodyC> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<LiteralBodyC> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<LiteralBodyC> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<LiteralBodyC> & obj)

istream & operator >>(istream & strm,RCHandleC<LiteralBodyC> & obj)

Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002