Collection::Select
Section: ET++ method description (n)
Updated: automatically Fri Mar 1 10:57:30 1991
Index
Return to Main Contents
NAME
Collection::Select - instance method
TEMPLATE
aCollection = CollPtr
Select(BoolFun selectingFunction, void * anArgument)
SPECIFIERS
public
virtual
DESCRIPTION
Returns a collection of the same class as the receiver. The returned
collection has been added all elements of the receiver for which
selectionFunction has evaluated to TRUE.
The order of passing elements to selectionFunction is the same as the order
produced by the standard iterator returned by MakeIterator.
See also method Collect.
Method is rarely overridden.
ARGUMENTS
- BoolFun selectingFunction
-
The meaning of the arguments of selectingFunction is
(ObjPtr
theReceiver, ObjPtr anElementOfTheReceiver, void *anArgument)
- void * anArgument
-
Argument passed to selectingFunction on every evaluation. It
describes the context of the Select invocation. Type and semantics depend
on the actual function selectionFunction points to. Select itself does not
take care of anArgument.
RETURN ARGUMENT
- CollPtr aCollection
-
CATEGORIES
enumeration, client interface
FIRST DEFINITION
class Collection
FILES
- implementation:
-
Collection.C
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FIRST DEFINITION
-
- FILES
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:30 GMT, March 30, 2022