Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Declaration of the IlList class. More...
#include <ilog/alloc.h>
Classes | |
class | IlList |
A predefined list class that stores IlvAny s. More... | |
class | IlList |
A predefined list class that stores IlvAny s. More... | |
class | IlListIterator |
A predefined list iterator class that iterates on IlList s. More... | |
class | IlListIterator |
A predefined list iterator class that iterates on IlList s. 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 s. More... | |
class | IlSafeListIterator |
A predefined safe list iterator class that iterates on IlList s. More... | |
class | IlSafeListIteratorOf(NAME) |
A safe iterator of lists. More... | |
Defines | |
#define | IlDefineListOf(NAME, TYPE) |
Defines a new list. | |
#define | IlMapList(list, type, arg, exp) |
Enumerates a new list. | |
#define | IlMapList(LIST, TYPE, VARIABLE, EXPRESSION) |
Enumerates a new list. |
Declaration of the IlList class.
[library ilog ilog/list.h]
#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.
NAME | The identifier of the new list, as it appears in IlListOf(NAME) . | |
TYPE | The 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, | |||||
arg, | |||||
exp | ) |
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
.
LIST | The list that is enumerated. This must be a pointer to a list that stores elements of the type TYPE. | |
TYPE | The type of the elements of this list. | |
VARIABLE | The name of the variable to be set. | |
EXPRESSION | The expression that is called for each element. Use the contents of VARIABLE in the expression to get the elements. |
#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
.
LIST | The list that is enumerated. This must be a pointer to a list that stores elements of the type TYPE. | |
TYPE | The type of the elements of this list. | |
VARIABLE | The name of the variable to be set. | |
EXPRESSION | The expression that is called for each element. Use the contents of VARIABLE in the expression to get the elements. |
© Copyright 2012, 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.