home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.0
/
NeXTSTEP3.0.iso
/
NextDeveloper
/
Headers
/
indexing
/
IXPostingList.h
< prev
next >
Wrap
Text File
|
1992-05-18
|
1KB
|
43 lines
/*
IXPostingList.h
Copyright 1991,NeXT Computer,Inc.
*/
#import <objc/List.h>
#import <remote/transport.h>
#import "protocols.h"
// this class implements a lazy, weighted list of objects, accessible by reading from a record source.
@interface IXPostingList: List <IXPostingExchange, NXTransport>
{
@public
unsigned maxPointers;
id <IXRecordReading> recordSource;
struct IXPosting *postingList;
}
- (id <IXRecordReading>)source;
- initWithSource:(id <IXRecordReading>)aSource;
- initWithSource:(id <IXRecordReading>)aSource
andPostingsIn:(id <IXPostingExchange>)anObject;
- addObject:anObject withWeight:(unsigned)weight;
- insertObject:anObject withWeight:(unsigned)weight at:(unsigned)index;
- replaceObjectAt:(unsigned)index with:anObject weight:(unsigned)weight;
- (unsigned)indexForHandle:(unsigned)handle;
- (unsigned)handleOfObjectAt:(unsigned)index;
- (unsigned)weightOfObjectAt:(unsigned)index;
- addHandle:(unsigned)handle withWeight:(unsigned)weight;
- insertHandle:(unsigned)handle withWeight:(unsigned)weight at:(unsigned)index;
- replaceHandleAt:(unsigned)index
with:(unsigned)handle weight:(unsigned)weight;
- sortByWeightAscending:(BOOL)boolean;
- sortBySelector:(SEL)selector ascending:(BOOL)boolean;
@end