Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Logic - Index - BMinTermIndexC<class DataT>
 

  PUBLIC
BMinTermIndexC::BMinTermIndexC(void)
BMinTermIndexC::BMinTermIndexC(const LiteralIndexC &)
BMinTermIndexC::DeepCopy(void) const
BMinTermIndexC::Insert(bool,const LiteralC &,const DataT &)
BMinTermIndexC::Insert(const MinTermC &,const DataT &)
BMinTermIndexC::Access(bool,const LiteralC &)
BMinTermIndexC::Lookup(bool,const LiteralC &,DataT &)
BMinTermIndexC::Insert(bool,const LiteralC &,DataT &)
BMinTermIndexC::IsEmpty(void) const
BMinTermIndexC::IdIndex(void) const
BMinTermIndexC::BMinTermIndexC(const BLiteralIndexC &,const BLiteralIndexC &)

   BMinTermIndexC<class DataT>   
 
Branching MinTerm Index.
 
include "Ravl/Logic/BMinTermIndex.hh"
Created:14/05/1998 
Source file:Ravl/Logic/Index/BMinTermIndex.hh
User Level:Normal
Library:RavlLogic
In Scope:RavlLogicN

Comments:
This allows values to be mapped to both expressions and their negations.

Derived Classes: Variables:
BLiteralIndexC pos;
Index for positive terms.

BLiteralIndexC neg;
Index for negative terms.

Methods:
BMinTermIndexC()
Default constructor.

BMinTermIndexC(const LiteralIndexC<IntC> & ids)
Construct using a given id Index.
Otherwise creates a new index.

BMinTermIndexC<DataT> DeepCopy() const
Make a deep copy of this class.

void Insert(bool negate,const LiteralC & lit,const DataT & data)
Add data indexed on a single literal.

bool Insert(const MinTermC & mt,const DataT & data)
Add data indexed on a minterm.
Returns true if 'mt' is a new key.

const DataT & Access(bool negate,const LiteralC & lit)
Access data.
Lookup associated with 'lit'. If 'lit' does not exist within the index it is added. The returned value is created with the default constructor.

bool Lookup(bool negate,const LiteralC & lit,DataT & data)
Access data.
Lookup associated with 'lit'. If 'lit' does not exist it returns false.

void Insert(bool negate,const LiteralC & lit,DataT & data)
Lookup data associated with key.

bool IsEmpty() const
Is table empty ?

const LiteralIndexC<IntC> & IdIndex() const
Get ID index.

BMinTermIndexC(const BLiteralIndexC<DataT> & npos,const BLiteralIndexC<DataT> & nneg)
Make a new NPIndex from two other indexs.


Maintainer:Charles Galambos, Created: 14/05/1998, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002