Module: Essential Tools Module Group: RWCollectable Classes
Does not inherit
#include <rw/rwint.h> RWInteger i;
Integer class. This class is useful as a base class for classes that use integers as keys in dictionaries, etc.
Isomorphic
RWInteger();
Construct an RWInteger with value zero (0).
RWInteger(int i);
Construct an RWInteger with value i. Serves as a type conversion from int.
operator int();
Type conversion to int.
RWspace binaryStoreSize() const;
Returns the number of bytes necessary to store the object using the global function:
RWFile& operator<<(RWFile&, const RWInteger&);
int value() const;
Returns the value of the RWInteger.
int value(int newval);
Changes the value of the RWInteger to newval and returns the old value.
ostream& operator<<(ostream& o, const RWInteger& x);
Output x to ostream o.
istream& operator>>(istream& i, RWInteger& x);
Input x from istream i.
RWvostream& operator<<(RWvostream&, const RWInteger& x); RWFile& operator<<(RWFile&, const RWInteger& x);
Saves the RWInteger x to a virtual stream or RWFile, respectively.
RWvistream& operator>>(RWvistream&, RWInteger& x); RWFile& operator>>(RWFile&, RWInteger& x);
Restores an RWInteger into x from a virtual stream or RWFile, respectively, replacing the previous contents of x.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.