home *** CD-ROM | disk | FTP | other *** search
- #ifndef __RWISLINK_H__
- #define __RWISLINK_H__
- pragma push_align_members(64);
-
- /*
- * RWIsvSlink: A link in a singly-linked list.
- *
- * $Header: E:/vcs/rw/islink.h_v 1.0 11 Mar 1992 14:10:44 KEFFER $
- *
- ****************************************************************************
- *
- * Rogue Wave Software, Inc.
- * P.O. Box 2328
- * Corvallis, OR 97339
- *
- * Copyright (C) 1992. This software is subject to copyright
- * protection under the laws of the United States and other countries.
- *
- ***************************************************************************
- *
- * $Log: E:/vcs/rw/islink.h_v $
- *
- * Rev 1.0 11 Mar 1992 14:10:44 KEFFER
- * Initial revision.
- */
-
- #include "rw/tooldefs.h"
- #include "rw/mempool.h"
-
- class RWExport RWIsvDlink;
- class RWExport RWIsvDlist;
-
- /****************************************************************
- * *
- * Declarations for RWIsvSlink *
- * *
- ****************************************************************/
-
- // Single link:
- class RWExport RWIsvSlink : public RWMemoryPool {
- friend class RWExport RWIsvSlist;
- friend class RWExport RWIsvDlist;
- friend class RWExport RWIsvSlistIterator;
- friend class RWExport RWIsvDlistIterator;
- friend class RWExport RWIsvDlink;
-
- union RWExport {
- RWIsvSlink* _nextSlink; // Pointer to next link.
- RWIsvDlink* _nextDlink;
- };
-
- public:
-
- RWIsvSlink() : _nextSlink(rwnil) { }
- RWIsvSlink(RWIsvSlink* nxt) : _nextSlink(nxt) { }
-
- RWIsvSlink* next() const {return _nextSlink;}
- };
-
-
- pragma pop_align_members();
- #endif /* __RWISLINK_H__ */
-