activemq-cpp-3.6.0
|
The abstract class Number is the superclass of classes Byte, Double, Float, Integer, Long, and Short. More...
#include <src/main/decaf/lang/Number.h>
Public Member Functions | |
virtual | ~Number () |
virtual unsigned char | byteValue () const |
Answers the byte value which the receiver represents. | |
virtual double | doubleValue () const =0 |
Answers the double value which the receiver represents. | |
virtual float | floatValue () const =0 |
Answers the float value which the receiver represents. | |
virtual int | intValue () const =0 |
Answers the int value which the receiver represents. | |
virtual long long | longValue () const =0 |
Answers the long value which the receiver represents. | |
virtual short | shortValue () const |
Answers the short value which the receiver represents. |
The abstract class Number is the superclass of classes Byte, Double, Float, Integer, Long, and Short.
Subclasses of Number must provide methods to convert the represented numeric value to byte, double, float, int, long, and short.
|
inlinevirtual |
|
inlinevirtual |
Answers the byte value which the receiver represents.
Reimplemented in decaf::lang::Double, decaf::lang::Float, decaf::lang::Integer, decaf::lang::Byte, decaf::lang::Long, decaf::lang::Short, and decaf::lang::Character.
|
pure virtual |
Answers the double value which the receiver represents.
Implemented in decaf::util::concurrent::atomic::AtomicInteger, decaf::lang::Double, decaf::lang::Float, decaf::lang::Integer, decaf::lang::Byte, decaf::lang::Long, decaf::lang::Short, and decaf::lang::Character.
|
pure virtual |
Answers the float value which the receiver represents.
Implemented in decaf::lang::Double, decaf::lang::Float, decaf::util::concurrent::atomic::AtomicInteger, decaf::lang::Integer, decaf::lang::Byte, decaf::lang::Long, decaf::lang::Short, and decaf::lang::Character.
|
pure virtual |
Answers the int value which the receiver represents.
Implemented in decaf::lang::Double, decaf::lang::Float, decaf::lang::Integer, decaf::lang::Byte, decaf::lang::Long, decaf::lang::Short, decaf::lang::Character, and decaf::util::concurrent::atomic::AtomicInteger.
|
pure virtual |
Answers the long value which the receiver represents.
Implemented in decaf::lang::Double, decaf::lang::Float, decaf::lang::Integer, decaf::lang::Byte, decaf::lang::Long, decaf::lang::Short, decaf::lang::Character, and decaf::util::concurrent::atomic::AtomicInteger.
|
inlinevirtual |
Answers the short value which the receiver represents.
Reimplemented in decaf::lang::Double, decaf::lang::Float, decaf::lang::Integer, decaf::lang::Byte, decaf::lang::Long, decaf::lang::Short, and decaf::lang::Character.