Category : Alternate Operating Systems - Quarterdeck DesqView, CP/M, etc
Archive   : PCCAPP.ZIP
Filename : NVLIST.H

 
Output of file : NVLIST.H contained in archive : PCCAPP.ZIP
/*
* This file is part of the Choices Operating System
* Developed by: The TAPESTRY Parallel Computing Laboratory
* University of Illinois at Urbana-Champaign
* Department of Computer Science
* 1304 W. Springfield Ave.
* Urbana, IL 61801
*
* Copyright (c) 1987, 1988, 1989 The University of Illinois Board of Trustees.
* All Rights Reserved.
* CONFIDENTIAL INFORMATION. Distribution restricted under license agreement.
*
* Author: Aamod Sane ([email protected])
* Project Manager and Principal Investigator: Roy Campbell ([email protected])
*
* Funded by: NSF TAPESTRY Grant No. 1-5-30035, NASA ICLASS Grant
* No. 1-5-25469 and No. NSG1471 and AT&T Metronet Grant No. 1-5-37411.
*/
/*
* NVList.h - List varieties
*
* $Header: /home/srg/sane/workspace/tbl/RCS/List.h,v 1.2 91/01/23 18:06:48 sane Exp Locker: sane $
*/

#include "Link.h"
#include "LightList.h"

#ifndef NVList_h
#define NVList_h

//
// A doubly linked list without using virtual functions
// We can use most of the LightList, modify the basic
// add/remove to do the right thing to the second link
// and we are in business. See LightList for further comments
//

class NVListVirtualiser : public LightListVirtualiser {
public:
virtual void destroy( SLink * );
virtual void inspect( SLink * );
virtual void add( LightList * l,
SLink * newEntry, SLink * oldEntry, int head = 0 );
virtual SLink * remove( LightList * l,
SLink * oldEntry, int nth=0);
};

class NVList : public LightList {
public:
NVList();
NVList(NVLink * l);
~NVList();

// add which takes care of the second link
void add( SLink * newEntry, SLink * oldEntry, int head = 0 );
// remove which takes care of the second link
SLink * remove( SLink * oldEntry, int nth=0, NVListVirtualiser * v=0);
};

inline
NVList::NVList()
: LightList()
{
}

inline
NVList::NVList( NVLink * l )
: LightList(l)
{
}

inline
NVList::~NVList()
{
}

#endif /* NVList_h */


  3 Responses to “Category : Alternate Operating Systems - Quarterdeck DesqView, CP/M, etc
Archive   : PCCAPP.ZIP
Filename : NVLIST.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/