libs-gsweb/GSWeb/GSWMultiKeyDictionary.h
Dave Wetzel bd96878757 rename all *.framework top level directories to their basename.
* GSWDatabase/WODisplayGroup.m
remove local NSAutoreleasePool
adjust makefiles



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30698 72102866-910b-0410-8b05-ffd578937521
2010-06-14 04:19:25 +00:00

123 lines
3.4 KiB
Objective-C

/** GSWMultiKeyDictionary.h - <title>GSWeb: Class GSWMultiKeyDictionary</title>
Copyright (C) 1999-2004 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Mar 1999
$Revision$
$Date$
This file is part of the GNUstep Web Library.
<license>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
</license>
**/
// $Id$
#ifndef _GSWMultiKeyDictionary_h__
#define _GSWMultiKeyDictionary_h__
//==============================================================================
@interface GSWMultiKeyDictionary : NSObject
{
void* _mapBase;
};
+(id)dictionary;
-(id)initWithCapacity:(NSUInteger)capacity;
-(void)setObject:(id)object
forKeys:(id)keys,...;
-(void)setObject:(id)object
forKeysArray:(NSArray*)keys;
-(void)setObject:(id)object
forKeys:(id*)keys
count:(unsigned)count;
-(id)objectForKeys:(id)keys,...;
-(id)objectForKeysArray:(NSArray*)keys;
-(id)objectForKeys:(id*)keys
count:(unsigned)count;
-(void)removeAllObjects;
-(void)removeObjectForKeys:(id)keys,...;
-(void)removeObjectForKeysArray:(NSArray*)keys;
-(void)removeObjectForKeys:(id*)keys
count:(unsigned)count;
-(void)removeAllSubObjectsForKeys:(id)key,...;
-(void)removeAllSubObjectsForKeys:(id*)keys
count:(unsigned)count;
-(void)removeAllSubObjectsForKeysArray:(NSArray*)keysArray;
-(void)makeObjectsPerformSelector:(SEL)selector;
-(void)makeObjectsPerformSelector:(SEL)selector
withObject:(id)object;
-(void)makeObjectsPerformSelector:(SEL)selector
withObject:(id)object1
withObject:(id)object2;
-(NSEnumerator*)objectEnumerator;
-(NSArray*)allValues;
-(NSArray*)allSubValuesForKeys:(id)keys,...;
-(NSArray*)allSubValuesForKeysArray:(NSArray*)keys;
-(NSArray*)allSubValuesForKeys:(id*)keys
count:(unsigned)count;
@end
#define GSWCacheFlags_expiresOnFirstAccess 0x00000001
@interface GSWCache : GSWMultiKeyDictionary
{
NSTimeInterval _defaultDuration;
unsigned int _defaultFlags;
}
+(GSWCache*)cacheWithDefaultDuration:(NSTimeInterval)defaultDuration
defaultFlags:(unsigned int)defaultFlags;
+(GSWCache*)cache;
-(id)initWithDefaultDuration:(NSTimeInterval)defaultDuration
defaultFlags:(unsigned int)defaultFlags;
-(void)deleteExpiredEntries;
-(void)setObject:(id)object
withDuration:(NSTimeInterval)duration
forKey:(id)key;
-(void)setObject:(id)object
withDuration:(NSTimeInterval)duration
forKeys:(id)key,...;
-(void)setObject:(id)object
withDuration:(NSTimeInterval)duration
forKeys:(id*)keys
count:(unsigned)count;
@end
#endif // _GSWMultiKeyDictionary_h__