RWInteger(3C++)
RWInteger - Rogue Wave library class
As shipped in IRIX 6.5.7. Unchanged since IRIX 6.5.
Name RWInteger - Rogue Wave library class Synopsis #include <rw/rwint.h> RWInteger i; Description Integer class. This class is useful as a base class for classes that use integers as keys in dictionaries, etc. Persistence Isomorphic Public Constructors RWInteger(); Construct an RWInteger with value zero (0). RWInteger(int i); Construct an RWInteger with value i. Serves as a type conversion from int. Type Conversion operator int(); Type conversion to int. Public Member Functions 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. Related Global Operators 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.