home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
tssitr.idl
< prev
next >
Wrap
Text File
|
1999-02-22
|
3KB
|
98 lines
//# @(#) 2.12 src/somuc/tssitr.idl, somuc, som2.1 12/26/95 15:41:54 [7/30/96 14:50:11]
//
// COMPONENT_NAME: somuc
//
// ORIGINS: 82, 81, 27
//
//
// 25H7912 (C) COPYRIGHT International Business Machines Corp. 1992,1996,1996
// All Rights Reserved
// Licensed Materials - Property of IBM
// US Government Users Restricted Rights - Use, duplication or
// disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//
// Copyright ⌐ 1988-92 Apple Computer, Inc. All rights reserved.
/*
* CLASS_NAME: somf_TSortedSequenceIterator
*
* DESCRIPTION: An iterator for TSortedSeqence that will iterate over all of
* the objects in a sorted sequence.
*
*/
#ifndef TSSItr_idl
#define TSSItr_idl
#include <tseqitr.idl>
#include <mcollect.idl>
interface somf_TSortedSequence;
interface somf_TSortedSequenceNode;
interface somf_MOrderableCollectible;
interface somf_TSortedSequenceIterator : somf_TSequenceIterator
{
somf_TSortedSequenceIterator somfTSortedSequenceIteratorInit(in somf_TSortedSequence h);
// Initializes the new sorted sequence iterator.
//# TSortedSequenceIterator(const TSortedSequence* h);
//# The following methods are overridden below:
//# virtual MCollectible* Next();
//# virtual MCollectible* Previous();
//# virtual MCollectible* First();
//# NOTE: I've overriding Remove to send the error message that it's not
//# implemented yet.
//# virtual void Remove();
//# virtual MCollectible* Last();
somf_MOrderableCollectible somfStartHere(in somf_MOrderableCollectible obj);
// Start Iterating through the TSroted Sequence, only don't start at the
// front of the collection, start at obj.
//# virtual MOrderableCollectible* StartHere(const MOrderableCollectible& obj);
#ifdef __SOMIDL__
implementation {
releaseorder: somfStartHere, somfTSortedSequenceIteratorInit;
//# Class Modifiers
majorversion = 2;
minorversion = 1;
filestem = tssitr;
dllname = "somuc.dll";
passthru C_xh = ""
"#include <tss.xh>"
"#include <morder.xh>";
passthru C_h = ""
"#include <tss.h>"
"#include <morder.h>";
//# Internal Instance Variables
unsigned long fSeed;
somf_TSortedSequence fTree;
somf_TSortedSequenceNode fCurrent;
somf_TSortedSequenceNode fNilNode;
boolean fDirection;
boolean fBreakEmInD16;
somf_TSortedSequenceNode fParent;
somf_TSortedSequenceNode fGrandParent;
//# Method Modifiers
somfFirst: override;
somfNext: override;
somfLast: override;
somfPrevious: override;
somfRemove: override;
somfTSortedSequenceIteratorInit : nooverride;
};
#endif /* __SOMIDL__ */
};
#endif /* TSSItr_idl */