ftp.nice.ch/pub/next/developer/languages/c/gcc.2.7.2.2.I.b.tar.gz#/lib/gcc-lib/m68k-next-nextstep3/2.7.2.2.f.2/include/indexing/IXPostingList.h

This is IXPostingList.h in view mode; [Download] [Up]

/*
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.  when encoding for remote transport, this*/
/* class assumes that the objects it contains will free after encoding. it*/
/* also free its own instance after encoding, since it always goes by copy. */

@interface IXPostingList: List <NXTransport,IXPostingExchange>
{
@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;

- read:(NXTypedStream *)typedStream;
- write:(NXTypedStream *)typedStream;

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.