iflListItem(3) Image Format Library C++ Reference Manual iflListItem(3)
iflListItem - an element of an doubly linked list (iflList or
iflMultiList)
This is a base class.
#include <ifl/iflList.h>
iflListItem is a base class from which to derive elements to be placed in
either an iflList or an iflMultiList.
Using iflListItem [Toc] [Back]
To make a list of integers, for example, define a derivation of
iflListItem to hold the integer:
struct intItem : public iflListItem {
intItem(int val) { i = val; }
int i;
};
This class can then be used to build a list of integer values:
iflList<intItem> list;
for (int i = 0; i < 10; i++)
list.append(new intItem(i));
CLASS MEMBER FUNCTION SUMMARY [Toc] [Back] Constructor
iflListItem()
Initialization [Toc] [Back]
void initLinks()
Manipulation [Toc] [Back]
void unlink()
Query [Toc] [Back]
Page 1
iflListItem(3) Image Format Library C++ Reference Manual iflListItem(3)
int isLinked()
FUNCTION DESCRIPTIONS [Toc] [Back] iflListItem()
iflListItem()
Creates an iflListItem with NULL linkage (not part of any list).
initLinks()
void initLinks()
Reset the linkage of this item to NULL. This is mainly used is
special initialization cases (like allocation from a shared arena).
isLinked()
int isLinked()
Returns TRUE if this item is currently on a list, FALSE otherwise.
unlink()
void unlink()
Removes an item from whatever list it is currently linked on to. Bad
things will happen if you call this method on an item that is
already unlinked.
iflList, iflMutliList, iflListIter, iflListIterRev
PPPPaaaaggggeeee 2222 [ Back ]
|