SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Useful as a base class for classes that use integers as keys in dictionaries, and so forth. More...
#include <rw/rwint.h>
Public Member Functions | |
RWInteger (int i=0) | |
RWspace | binaryStoreSize () const |
operator int () const | |
int | value () const |
int | value (int newval) |
Friends | |
std::istream & | operator>> (std::istream &i, RWInteger &x) |
Related Symbols | |
(Note that these are not member symbols.) | |
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) |
Integer class. This class is useful as a base class for classes that use integers as keys in dictionaries, and so forth.
|
inline |
Constructs an RWInteger with value i. Serves as a type conversion from int
.
|
inline |
Returns the number of bytes necessary to store the object using the global function:
|
inline |
Type conversion to int
.
|
inline |
Returns the value of the RWInteger.
|
inline |
Changes the value of the RWInteger to newval and returns the old value.
|
related |
Saves the RWInteger x to a virtual stream.
|
related |
Outputs x to std::ostream o.
|
related |
Restores an RWInteger into x from a virtual stream, replacing the previous contents of x.
|
friend |
Inputs x from std::istream i.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |