Added NSCountedSet interface.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@644 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-10-30 00:59:20 +00:00
parent 4a6c1baac6
commit 18e23a6101
2 changed files with 16 additions and 3 deletions

View file

@ -1,4 +1,4 @@
/* Interface for NSSet for GNUStep
/* Interface for NSSet, NSMutableSet, NSCountedSet for GNUStep
Copyright (C) 1995 Free Software Foundation, Inc.
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
@ -77,4 +77,19 @@
@end
@interface NSCountedSet : NSMutableSet <NSCoding, NSCopying>
+ allocWithZone: (NSZone*)zone;
- initWithCapacity: (unsigned)numItems;
- initWithArray: (NSArray*)array;
- initWithSet: (NSSet*)otherSet;
- (void) addObject: anObject;
- (void) removeObject: anObject;
- (unsigned int) countForObject: anObject;
- (NSEnumerator*) objectEnumerator;
@end
#endif

View file

@ -36,11 +36,9 @@
@end
@interface NSMutableSet (GNU)
#if 0
+ (unsigned) defaultCapacity;
- initWithType: (const char *)contentEncoding
capacity: (unsigned)aCapacity;
#endif
@end
@interface NSCountedSet (GNU) <Collecting>