User Documentation
RAVL, Recognition And Vision Library
DEVELOP 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<class DataT>   
 
Branching MinTerm Index.
 
include "Ravl/Logic/BMinTermIndex.hh"
Created:14/05/1998 
User Level:Normal
Library:RavlLogic
In Scope:RavlLogicN

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

Derived Classes: Variables:
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.


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