Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Misc - BinTableC<class IT,class DIT,class BT>
 

  PUBLIC
BinTableC::BinTableC(const IT &)
BinTableC::operator [](const IT &)
BinTableC::operator [](const IT &) const
BinTableC::Bin(const IT &)
BinTableC::Bin(const DIT &)
BinTableC::Empty(void)
BinTableC::BinSize(void) const
BinTableC::Scale(const IT &) const
BinTableC::GetBin(const IT &)
BinTableC::BinCentre(const IT &) const
BinTableC::BinCentre(const DIT &) const
BinTableC::IsEmpty(void) const
BinTableC::SetBinSize(const IT &)
BinTableC::operator <<(ostream &,const BinTableC &)
BinTableC::operator >>(istream &,BinTableC &)

   BinTableC<class IT,class DIT,class BT>   
 
A table of bins. Hashing for real valued paramiters.
 
include "Ravl/BinTable.hh"
Created:27/11/1996 
Source file:Ravl/Core/Container/Misc/BinTable.hh
User Level:Normal
Library:RavlCore
In Scope:RavlN

Comments:
Note: This only works for multi-dementional tables. SMALL OBJECT

Template paramiter. Examples.

IT - Index Type. ( Vector2dC )

DIT - Descritised index type. ( Index2dC )

BT - Bin Type. ( x )

Variables:
IT binSize;
Scaling factor for bins.

HashC bins;
Table of bins.

Methods:
BinTableC(const IT & nBinSize)
Constructor.

BT & operator [](const IT & Pnt)
Access a bin.

const BT * operator [](const IT & Pnt) const
Constant access to a bin.
May return NULL !

BT & Bin(const IT & Pnt)
Access a bin.

BT & Bin(const DIT & Pnt)
Access a bin directly.
inline const BT *Bin(const IT &Pnt) const; Constant access to a bin. May return NULL !

void Empty(void)
Remove all items from table.

const IT & BinSize(void) const
Get size of bins.

DIT Scale(const IT & Ind) const
Scale and descritise an input point.

BT * GetBin(const IT & Pnt)
See if bins present.

IT BinCentre(const IT & at) const
Get centre of bin containing point at.

IT BinCentre(const DIT & at) const
Get centre of bin containing index at.

bool IsEmpty() const
Test if table is empty.

void SetBinSize(const IT & nBinSize)
Set the bin size.
NB. This can only be used with an empty table.

ostream & operator <<(ostream & s,const BinTableC<IT,DIT,BT> &)

istream & operator >>(istream & s,BinTableC<IT,DIT,BT> &)


Maintainer:Charles Galambos, Created: 27/11/1996, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002