Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Lists - DLinkHeadC
 

  PUBLIC
DLinkHeadC::DLinkHeadC(void)
DLinkHeadC::IsEmpty(void) const
DLinkHeadC::Size(void) const
DLinkHeadC::Reverse(void)
DLinkHeadC::MergeSort(MergeSortInterCmpT,void *)
DLinkHeadC::Head(void)
DLinkHeadC::Head(void) const
DLinkHeadC::InsFirst(DLinkC &)
DLinkHeadC::InsLast(DLinkC &)
DLinkHeadC::MoveFirst(DLinkHeadC &)
DLinkHeadC::MoveLast(DLinkHeadC &)
DLinkHeadC::MoveFirst(DLinkC &)
DLinkHeadC::MoveLast(DLinkC &)
DLinkHeadC::MergeSortInternal(DLinkC **,UIntT,MergeSortInterCmpT,void *)

   DLinkHeadC   
 
Double-link list head.
 
include "Ravl/DLink.hh"
Source file:Ravl/Core/Container/DList/DLink.hh
User Level:Advanced
Library:RavlCore
In Scope:RavlN

Derived Classes: Typedefs:
typedef bool (*MergeSortInterCmpT)(DLinkC * l1,DLinkC * l2,void * dat) ;
Comparison function for merge sort.

Variables:
DLinkC head;
Head of list.

Methods:
DLinkHeadC()
Default constructor.
creates an empty list.

bool IsEmpty() const
Is list empty ?

UIntT Size() const
Count the number of elements in the list.
This is of order N, where N is the number of elements in the list.

void Reverse()
Reverse the order of the list.
This is of order N, where N is the number of elements in the list.

void MergeSort(MergeSortInterCmpT ms,void * pass = 0)
Merge sort the list using given comparison function.

DLinkC & Head()
Get head of list.

const DLinkC & Head() const
Get head of list.

void InsFirst(DLinkC & dat)
Push element onto the begining of the list.

void InsLast(DLinkC & dat)
Push element onto the begining of the list.

void MoveFirst(DLinkHeadC & lst)
Move the entire contents of 'lst' to the front of this one.
this leaves 'lst' empty.

void MoveLast(DLinkHeadC & lst)
Move the entire contents of 'lst' to the back of this one.
this leaves 'lst' empty.

void MoveFirst(DLinkC & at)
Move the item 'at' to the front of this list

void MoveLast(DLinkC & at)
Move the item 'at' to the back of this list

DLinkC ** MergeSortInternal(DLinkC ** chead,UIntT n,MergeSortInterCmpT ms,void * pass)
Merge sort the list using given comparison function.


Maintainer:Radek Marik, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002