Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Queues - HeapNodeC<class K,class D>
 

  PUBLIC
HeapNodeC::HeapNodeC(void)
HeapNodeC::HeapNodeC(Tuple2C &)
HeapNodeC::~HeapNodeC(void)
HeapNodeC::Data(void)
HeapNodeC::Data(void) const
HeapNodeC::Key(void)
HeapNodeC::Key(void) const
HeapNodeC::GetPair(void)
HeapNodeC::GetPair(void) const
HeapNodeC::SetPair(Tuple2C &)
HeapNodeC::SetPairNULL(void)
HeapNodeC::MvPair(HeapNodeC &)
HeapNodeC::GetBalance(void) const
HeapNodeC::SetBalance(int)
HeapNodeC::DeltaBalance(int)
HeapNodeC::Size(void) const
HeapNodeC::Child(int)

   HeapNodeC<class K,class D>   
 
Heap node in pointer based priority queue.
 
include "Ravl/HeapNode.hh"
Created:28/10/96 
Source file:Ravl/Core/Container/Queue/HeapNode.hh
User Level:Develop
Library:RavlCore
In Scope:RavlN

Variables:
Tuple2C * DataP;

HeapNodeC * ChildP[];

int Balance;

Methods:
HeapNodeC()
Default constructor.

HeapNodeC(Tuple2C<K,D> & DataP)
Construct from a keyed pair.

~HeapNodeC()
Destructor.

D & Data(void)
Access data.

const D & Data(void) const
Constant access to data.

K & Key(void)
Access key.

const K & Key(void) const
Constant access to key.

Tuple2C<K,D> & GetPair(void)
Access key pair.

const Tuple2C<K,D> & GetPair(void) const
Constant access to key pair.

void SetPair(Tuple2C<K,D> & Pair)
Set keyed pair.

void SetPairNULL(void)
Set keyed pair to NULL.

void MvPair(HeapNodeC<K,D> & Oth)
Move pair from another node.

int GetBalance(void) const
Get balance for node.

void SetBalance(int Val)
Set balance for node.

void DeltaBalance(int Delta)
Change balance for node.

int Size(void) const
Get number of nodes below this one.

HeapNodeC<K,D> *& Child(int n)
Access child ptrs.


Maintainer:Charles Galambos, Created: 28/10/96, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002