home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-11-15 | 524 b | 30 lines | [TEXT/CWIE] |
- // OSQueueLink.h
-
- #ifndef OSQueueLink_h
- #define OSQueueLink_h
-
- #ifndef OSQueueLinkBase_h
- #include "OSQueueLinkBase.h"
- #endif
-
- template < class Target > class OSQueue;
-
- template < class Target >
- class OSQueueLink: public OSQueueLinkBase
- {
- friend class OSQueue< Target >;
-
- private:
- Target& target;
-
- public:
- OSQueueLink( Target& t ): target( t ) {}
-
- operator Target *() const { return ⌖ }
-
- Target& operator*() const { return target; }
- Target *operator->() const { return ⌖ }
- };
-
- #endif
-