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