* @brief This is the implementation file for Integer class.
* @see Number
*/
-
#include <wchar.h>
#include <limits.h>
#include <errno.h>
bool
Integer::Equals(const Object& obj) const
{
- const Integer* pOther = dynamic_cast <const Integer*>(&obj);
+ const Integer* pOther = dynamic_cast< const Integer* >(&obj);
if (pOther == null)
{
return false;
char
Integer::ToChar(void) const
{
- return static_cast<char> (value);
+ return static_cast< char >(value);
}
short
Integer::ToShort(void) const
{
- return static_cast<short> (value);
+ return static_cast< short >(value);
}
int
long
Integer::ToLong(void) const
{
- return static_cast<long> (value);
+ return static_cast< long >(value);
}
long long
Integer::ToLongLong(void) const
{
- return static_cast<long long> (value);
+ return static_cast< long long >(value);
}
float
Integer::ToFloat(void) const
{
- return static_cast<float> (value);
+ return static_cast< float >(value);
}
double
Integer::ToDouble(void) const
{
- return static_cast<double> (value);
+ return static_cast< double >(value);
}
String