mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
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:
parent
f09bd1f0ba
commit
e861bc9445
2 changed files with 16 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* Interface for NSSet for GNUStep
|
/* Interface for NSSet, NSMutableSet, NSCountedSet for GNUStep
|
||||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
|
@ -77,4 +77,19 @@
|
||||||
|
|
||||||
@end
|
@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
|
#endif
|
||||||
|
|
|
@ -36,11 +36,9 @@
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NSMutableSet (GNU)
|
@interface NSMutableSet (GNU)
|
||||||
#if 0
|
|
||||||
+ (unsigned) defaultCapacity;
|
+ (unsigned) defaultCapacity;
|
||||||
- initWithType: (const char *)contentEncoding
|
- initWithType: (const char *)contentEncoding
|
||||||
capacity: (unsigned)aCapacity;
|
capacity: (unsigned)aCapacity;
|
||||||
#endif
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NSCountedSet (GNU) <Collecting>
|
@interface NSCountedSet (GNU) <Collecting>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue