*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ifl/iflListItem (3)              
Title
Content
Arch
Section
 

Contents


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


NAME    [Toc]    [Back]

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

INHERITS FROM    [Toc]    [Back]

     This is a base class.

HEADER FILE    [Toc]    [Back]

     #include <ifl/iflList.h>

CLASS DESCRIPTION    [Toc]    [Back]

     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.

SEE ALSO    [Toc]    [Back]

      
      
     iflList, iflMutliList, iflListIter, iflListIterRev


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
iflListIter IRIX iterators for iflList and iflMultiList
remque FreeBSD doubly-linked list management
insque FreeBSD doubly-linked list management
iflList IRIX simple doubly-linked list
queue OpenBSD lists, doubly-linked lists, simple queues, tail queues, and circular queues
lsearch IRIX See if a list contains a particular element
glcgetlisti IRIX return element from list
glcgetlistc IRIX return element from list
lindex IRIX Retrieve an element from a list
tt_session_propname HP-UX returns an element of the list of property names for a session
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service