SourcePro® C++ 13.1 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
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 unsigned | hash () const |
virtual RWClassID | isA () const |
virtual bool | isEqual (const RWCollectable *c) const |
virtual RWCollectable * | newSpecies () const |
virtual void | restoreGuts (RWvistream &) |
virtual void | restoreGuts (RWFile &) |
virtual void | saveGuts (RWvostream &) const |
virtual void | saveGuts (RWFile &) const |
Public Member Functions inherited from RWCollectable | |
virtual | ~RWCollectable () |
RWspace | recursiveStoreSize () const |
RWStringID | stringID () const |
Public Member Functions inherited from RWInteger | |
RWInteger (int i=0) | |
RWspace | binaryStoreSize () const |
operator int () const | |
int | value () const |
int | value (int newval) |
Static Public Member Functions | |
static RWClassID | classIsA () |
Static Public Member Functions inherited from RWCollectable | |
static RWClassID | classID (const RWStringID &name) |
static RWClassID | classIsA () |
static bool | isAtom (RWClassID id) |
static RWspace | nilStoreSize () |
Additional Inherited Members | |
Related Functions inherited from RWInteger | |
std::ostream & | operator<< (std::ostream &o, const RWInteger &x) |
RWvostream & | operator<< (RWvostream &str, const RWInteger &x) |
RWFile & | operator<< (RWFile &file, const RWInteger &x) |
RWvistream & | operator>> (RWvistream &str, RWInteger &x) |
RWFile & | operator>> (RWFile &file, 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.
Polymorphic
RWCollectableInt::RWCollectableInt | ( | ) |
Calls the appropriate base class constructor. See RWInteger::RWInteger().
|
inline |
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 |
Returns the difference between self and the RWCollectableInt pointed to by c.
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 |
Returns true
if self has the same value as the RWCollectableInt at address c.
Reimplemented from RWCollectable.
|
virtual |
Allocates a new object off the heap of the same type as self and returns a pointer to it. You are responsible for deleting the object when done with it.
Reimplemented from RWCollectable.
|
virtual |
Reads an object's state from an input stream, replacing the previous state.
Reimplemented from RWCollectable.
|
virtual |
Reads an object's state from a binary file, using class RWFile, replacing the previous state.
Reimplemented from RWCollectable.
|
virtual |
Writes an object's state to an output stream.
Reimplemented from RWCollectable.
|
virtual |
Writes an object's state to a binary file, using class RWFile.
Reimplemented from RWCollectable.
Copyright © 2015 Rogue Wave Software, Inc. All Rights Reserved. |