SourcePro® 2025.1 |
SourcePro® API Reference Guide |
Provides a polymorphically persistable RWInteger. More...
#include <rw/collint.h>
Public Member Functions | |
RWCollectableInt () | |
RWCollectableInt (int j) | |
virtual | ~RWCollectableInt () |
virtual RWspace | binaryStoreSize () const |
virtual int | compareTo (const RWCollectable *c) const |
virtual RWCollectable * | copy () const |
virtual unsigned | hash () const |
virtual RWClassID | isA () const |
virtual bool | isEqual (const RWCollectable *c) const |
virtual RWCollectable * | newSpecies () const |
virtual void | restoreGuts (RWFile &) |
virtual void | restoreGuts (RWvistream &) |
virtual void | saveGuts (RWFile &) const |
virtual void | saveGuts (RWvostream &) const |
![]() | |
virtual | ~RWCollectable () |
RWspace | recursiveStoreSize () const |
RWStringID | stringID () const |
![]() | |
RWInteger () | |
RWInteger (int i) | |
RWspace | binaryStoreSize () const |
operator int () const | |
int | value () const |
int | value (int newval) |
Static Public Member Functions | |
static RWClassID | classIsA () |
![]() | |
static RWClassID | classID (const RWStringID &name) |
static RWClassID | classIsA () |
static bool | isAtom (RWClassID id) |
static RWspace | nilStoreSize () |
Related Symbols | |
(Note that these are not member symbols.) | |
bool | operator!= (const RWCollectableInt &lhs, const RWCollectableInt &rhs) |
bool | operator!= (const RWCollectableInt &lhs, const RWInteger &rhs) |
bool | operator!= (const RWInteger &lhs, const RWCollectableInt &rhs) |
bool | operator== (const RWCollectableInt &lhs, const RWCollectableInt &rhs) |
bool | operator== (const RWCollectableInt &lhs, const RWInteger &rhs) |
bool | operator== (const RWInteger &lhs, const RWCollectableInt &rhs) |
![]() | |
bool | operator!= (const RWCollectable &lhs, const RWCollectable &rhs) |
bool | operator== (const RWCollectable &lhs, const RWCollectable &rhs) |
![]() | |
RWFile & | operator<< (RWFile &file, const RWInteger &x) |
RWvostream & | operator<< (RWvostream &str, const RWInteger &x) |
std::ostream & | operator<< (std::ostream &o, const RWInteger &x) |
RWFile & | operator>> (RWFile &file, RWInteger &x) |
RWvistream & | operator>> (RWvistream &str, RWInteger &x) |
Collectable integers. Inherits from classes RWInteger and RWCollectable. This class is useful when integers are used as keys in the "dictionary" collection classes, or if integers are stored and retrieved as RWCollectable instances.
The virtual functions of the base class RWCollectable have been redefined.
RWCollectableInt::RWCollectableInt | ( | ) |
Calls the appropriate base class constructor. See RWInteger::RWInteger().
|
inlineexplicit |
Calls the appropriate base class constructor. See RWInteger::RWInteger(int).
|
virtual |
Empty destructor.
|
inlinevirtual |
Returns the number of bytes used by the virtual function saveGuts(RWFile&) to store an object. Typically, this involves adding up the space required to store all primitives, plus the results of calling recursiveStoreSize() for all objects inheriting from RWCollectable. See the Essential Tools Module User's Guide for details.
Reimplemented from RWCollectable.
|
virtual |
If c is an RWCollectableInt, returns the difference between self and c. Otherwise, returns a nonzero value based on the type of c.
Reimplemented from RWCollectable.
|
virtual |
Returns a new, copy-constructed object of the same type as self. The caller is responsible for deleting the object.
Reimplemented from RWCollectable.
|
virtual |
Returns the value of RWCollectableInt as an unsigned
, to be used as a hash value.
Reimplemented from RWCollectable.
|
virtual |
Returns the unique ID for RWCollectableInt.
Reimplemented from RWCollectable.
|
virtual |
Behaves as if compareTo(t) was invoked. Returns true
if the result equals 0. Otherwise, returns false
.
Reimplemented from RWCollectable.
|
virtual |
Returns a new, default-constructed object of the same type as self. The caller is responsible for deleting the object.
Reimplemented from RWCollectable.
|
virtual |
Reads an object's state from a binary file, using class RWFile, replacing the previous state.
Reimplemented from RWCollectable.
|
virtual |
Reads an object's state from an input stream, replacing the previous state.
Reimplemented from RWCollectable.
|
virtual |
Writes an object's state to a binary file, using class RWFile.
Reimplemented from RWCollectable.
|
virtual |
Writes an object's state to an output stream.
Reimplemented from RWCollectable.
|
related |
Returns the negation of operator==(const RWCollectableInt&, const RWCollectableInt&).
|
related |
Returns the negation of operator==(const RWCollectableInt&, const RWInteger&).
|
related |
Returns the negation of operator==(const RWInteger&, const RWCollectableInt&).
|
related |
Returns the result of invoking lhs.isEqual(&rhs).
|
related |
Returns true
if lhs represents the same value as rhs.
|
related |
Returns true
if lhs represents the same value as rhs.
Copyright © 2025 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |