Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
Classes | Macros
list.h File Reference

Declaration of the IlList class. More...

#include <ilog/alloc.h>

Classes

class  IlList
 A predefined list class that stores IlAny pointers. More...
 
class  IlList
 A predefined list class that stores IlAny pointers. More...
 
class  IlListIterator
 A predefined list iterator class that iterates on IlList objects. More...
 
class  IlListIterator
 A predefined list iterator class that iterates on IlList objects. More...
 
class  IlListIteratorOf(NAME)
 An unsafe iterator of lists. More...
 
class  IlListOf(NAME)
 A generic class that handles lists. More...
 
class  IlSafeListIterator
 A predefined safe list iterator class that iterates on IlList objects. More...
 
class  IlSafeListIterator
 A predefined safe list iterator class that iterates on IlList objects. More...
 
class  IlSafeListIteratorOf(NAME)
 A safe iterator of lists. More...
 

Macros

#define IlDefineListOf(NAME, TYPE)
 Defines a new list. More...
 
#define IlMapList(list, type, variable, expression)
 Enumerates a new list. More...
 

Detailed Description

Declaration of the IlList class.

Library: ilog

Macro Definition Documentation

#define IlDefineListOf (   NAME,
  TYPE 
)

Defines a new list.

This macro defines a new class, called IlListOf(NAME), that is a list of elements of the type TYPE.

Parameters
NAMEThe identifier of the new list, as it appears in IlListOf(NAME).
TYPEThe type of the elements stored in this list. Note that this type must be able to be cast to and from a void*.
#define IlMapList (   list,
  type,
  variable,
  expression 
)

Enumerates a new list.

This macro calls the expression expression for each element of the list list. Each element is stored in the variable variable before expression is called. You must have defined variable as a variable of the type type before you call IlMapList().

Parameters
listThe list that is enumerated. This must be a pointer to a list that stores elements of the type type.
typeThe type of the elements of this list.
variableThe name of the variable to be set.
expressionThe expression that is called for each element. Use the contents of variable in the expression to get the elements.

© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.