Collection::RemovePtr
Section: ET++ method description (n)
Updated: automatically Fri Mar 1 10:57:30 1991
Index
Return to Main Contents
NAME
Collection::RemovePtr - instance method
TEMPLATE
removedObject = ObjPtr
RemovePtr(ObjPtr anObject)
SPECIFIERS
public
abstract
virtual
DESCRIPTION
Removes an element from the receiver which is identical to anObject
(in the sense of pointer equality). If the attempt to remove anObject is
succesful, RemovePtr returns the removed object, otherwise 0.
In SeqCollections, the element with the least index is removed if there is
more than one element identical to anObject.
A succesful RemovePtr operation sends the default change message.
See also method Remove and method RemoveAll.
Method is always overridden.
ARGUMENTS
- ObjPtr anObject
-
Object to be removed.
RETURN ARGUMENT
- ObjPtr removedObject
-
CATEGORIES
manipulation, client interface, overrider interface
FIRST DEFINITION
class Collection
FILES
- implementation:
-
Collection.C
KNOWN PROBLEMS
Some implementations of RemovePtr do send no change message at all.
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FIRST DEFINITION
-
- FILES
-
- KNOWN PROBLEMS
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:30 GMT, March 30, 2022