Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ iflListItem(3) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



iflListItem(3)    Image Format Library C++ Reference Manual     iflListItem(3)



NAME
     iflListItem - an element of an doubly linked list (iflList or
     iflMultiList)

INHERITS FROM
     This is a base class.

HEADER FILE
     #include <ifl/iflList.h>

CLASS DESCRIPTION
     iflListItem is a base class from which to derive elements to be placed in
     either an iflList or an iflMultiList.

   Using iflListItem
     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
   Constructor
          iflListItem()


   Initialization
          void initLinks()


   Manipulation
          void unlink()


   Query










                                                                        Page 1





iflListItem(3)    Image Format Library C++ Reference Manual     iflListItem(3)



          int isLinked()


FUNCTION DESCRIPTIONS
     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.

SEE ALSO
     iflList, iflMutliList, iflListIter, iflListIterRev


















                                                                        Page 2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026