|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
IAPS - Image analysis program system - include file
File name : ListLink.hh
Description: double-linked circular list handling - pure list element
Last change: 22.12.92
Author : Radek Marik (ees1rm@)
Libraries : iaps
----------------------------------------------------------------------
Modifications:
----------------------------------------------------------------------
================= ListLinkC ==========================================
----------------------------------------------------------------------
Derived Classes:
Variables:
- ListLinkC * succ;
-
the next element
- ListLinkC * pred;
-
the previous element
- ListLinkC * head;
-
the head of the list, if it is NULL the element
is not in any list
Methods:
- ListLinkC()
-
empty item of the double-linked list
- ListLinkC(ListLinkC & list)
-
copy constructor
- ListLinkC(ListLinkC & s,ListLinkC & p,ListLinkC & list)
-
constructor from specific items: successor s, predecessor p,
and a head of the list
- ListLinkC & Next()
-
return the next element in a list
- ListLinkC & Prev()
-
return the previous element in a list
- ListLinkC * NextPtr()
-
return the pointer to the next element
- ListLinkC * PrevPtr()
-
return the pointer to the previous element
------------ Predicates -----------------------
- BooleanT IsHead()
-
is the element a head of a list
- BooleanT IsFirst()
-
is an element the first one in a list?
- BooleanT IsLast()
-
is an element the last one in a list?
----------- Insert / Unlink --------------------------
- ListLinkC & InsBef(ListLinkC & elm)
-
insert 'elm' before the element
- ListLinkC & InsAft(ListLinkC & elm)
-
insert 'elm' after the element
- ListLinkC & UnLink()
-
unlink the list element from the list, return the next list element
- ostream & operator<<(ostream & s,ListLinkC & elm)
-
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|