From 18e23a6101aa18fb4c180c99ac07e95fe2905dac Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Mon, 30 Oct 1995 00:59:20 +0000 Subject: [PATCH] Added NSCountedSet interface. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@644 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/base/NSSet.h | 17 ++++++++++++++++- Source/objects/NSSet.h | 2 -- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Headers/gnustep/base/NSSet.h b/Headers/gnustep/base/NSSet.h index 747fbbb9f..e8026dc94 100644 --- a/Headers/gnustep/base/NSSet.h +++ b/Headers/gnustep/base/NSSet.h @@ -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 @@ -77,4 +77,19 @@ @end +@interface NSCountedSet : NSMutableSet + ++ 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 diff --git a/Source/objects/NSSet.h b/Source/objects/NSSet.h index bfbcb542b..767fcd184 100644 --- a/Source/objects/NSSet.h +++ b/Source/objects/NSSet.h @@ -36,11 +36,9 @@ @end @interface NSMutableSet (GNU) -#if 0 + (unsigned) defaultCapacity; - initWithType: (const char *)contentEncoding capacity: (unsigned)aCapacity; -#endif @end @interface NSCountedSet (GNU)