home *** CD-ROM | disk | FTP | other *** search
- #ifndef __RWCOLLINT_H__
- #define __RWCOLLINT_H__
- pragma push_align_members(64);
-
- /*
- * RWCollectableInt --- RWCollectable Integers.
- *
- * $Header: E:/vcs/rw/collint.h_v 1.2 18 Feb 1992 09:54:14 KEFFER $
- *
- ****************************************************************************
- *
- * Rogue Wave
- * P.O. Box 2328
- * Corvallis, OR 97339
- * Voice: (503) 754-3010 FAX: (503) 757-6650
- *
- * Copyright (C) 1989, 1990, 1991. This software is subject to copyright
- * protection under the laws of the United States and other countries.
- *
- ***************************************************************************
- *
- * $Log: E:/vcs/rw/collint.h_v $
- *
- * Rev 1.2 18 Feb 1992 09:54:14 KEFFER
- *
- * Rev 1.1 28 Oct 1991 09:08:10 keffer
- * Changed inclusions to <rw/xxx.h>
- *
- * Rev 1.0 28 Jul 1991 08:13:50 keffer
- * Tools.h++ V4.0.5 PVCS baseline version
- *
- */
-
- #include "rw/rwint.h"
- #include "rw/collect.h"
-
- class RWExport RWCollectableInt : public RWCollectable, public RWInteger {
- public:
- RWCollectableInt();
- RWCollectableInt(int j) : RWInteger(j) { }
- RWCollectableInt(const RWCollectableInt& ci) : RWInteger(ci.value()) { }
-
- RWBoolean operator==(const RWCollectableInt& c) const
- {return value()==c.value();}
-
- virtual unsigned binaryStoreSize() const {return RWInteger::binaryStoreSize();}
- virtual int compareTo(const RWCollectable*) const;
- virtual unsigned hash() const;
- virtual ClassID isA() const {return __RWCOLLECTABLEINT;}
- virtual RWBoolean isEqual(const RWCollectable*) const;
- virtual RWCollectable* newSpecies() const;
- virtual void restoreGuts(RWvistream&);
- virtual void restoreGuts(RWFile&);
- virtual void saveGuts(RWvostream&) const;
- virtual void saveGuts(RWFile&) const;
- };
-
- pragma pop_align_members();
- #endif /* __RWCOLLINT_H__ */
-