rvm 1.08
|
Basic types implementation. More...
Go to the source code of this file.
Functions | |
bool | is_signed_char (const char &a_arg) |
Return false for any variable that is not a char. | |
bool | is_unsigned_char (const unsigned char &a_arg) |
Return false for any variable that is not an unsigned char. | |
bool | is_signed_short (const short &a_arg) |
Return true for any variable that is either a signed or unsigned char. | |
bool | is_unsigned_short (const unsigned short &a_arg) |
Return false for any variable that is not an unsigned short. | |
bool | is_signed_int (const int &a_arg) |
Return true for any variable that is either a signed or unsigned short. | |
bool | is_unsigned_int (const unsigned int &a_arg) |
Return false for any variable that is not an unsigned int. | |
bool | is_signed_long (const long &a_arg) |
Return true for any variable that is either a signed or unsigned int. | |
bool | is_unsigned_long (const unsigned long &a_arg) |
Return false for any variable that is not an unsigned long. | |
bool | is_signed_long_long (const long long &a_arg) |
Return true for any variable that is either a signed or unsigned long. | |
bool | is_unsigned_long_long (const unsigned long long &a_arg) |
Return false for any variable that is not an unsigned long long. | |
bool | is_float (const float &a_arg) |
Return true for any variable that is either a signed or unsigned long long. | |
bool | is_double (const double &a_arg) |
Return false for any variable that is not a double. | |
bool | is_bool (const bool &a_arg) |
Return false for any variable that is not a bool. | |
const char * | type_name (const unsigned char &a_arg) |
Return true for any variable that is a signed type. | |
const char * | type_name (const char &a_arg) |
const char * | type_name (const unsigned short &a_arg) |
const char * | type_name (const short &a_arg) |
const char * | type_name (const unsigned int &a_arg) |
const char * | type_name (const int &a_arg) |
const char * | type_name (const unsigned long &a_arg) |
const char * | type_name (const long &a_arg) |
const char * | type_name (const unsigned long long &a_arg) |
const char * | type_name (const long long &a_arg) |
const char * | type_name (const float &a_arg) |
const char * | type_name (const double &a_arg) |
const char * | type_name (const bool &a_arg) |
Basic types implementation.
Definition in file types.cc.
bool is_bool | ( | const bool & | a_arg | ) |
Return false for any variable that is not a bool.
Return true for any variable that is a bool.
Return true for any variable that is a bool
Definition at line 175 of file types.cc.
Referenced by test_type().
bool is_double | ( | const double & | a_arg | ) |
Return false for any variable that is not a double.
Return true for any variable that is a double.
Return true for any variable that is a double
Definition at line 163 of file types.cc.
Referenced by is_signed(), and test_type().
bool is_float | ( | const float & | a_arg | ) |
Return true for any variable that is either a signed or unsigned long long.
Return true for any variable that is a float.
Return false for any variable that is not a float Return true for any variable that is a float
Definition at line 151 of file types.cc.
Referenced by is_signed(), and test_type().
bool is_signed_char | ( | const char & | a_arg | ) |
Return false for any variable that is not a char.
Return true for any variable that is a char.
Return true for any variable that is a char
Definition at line 16 of file types.cc.
Referenced by is_char(), is_signed(), and test_type().
bool is_signed_int | ( | const int & | a_arg | ) |
Return true for any variable that is either a signed or unsigned short.
Return true for any variable that is a int.
Return false for any variable that is not a int Return true for any variable that is a int
Definition at line 70 of file types.cc.
Referenced by is_int(), is_signed(), and test_type().
bool is_signed_long | ( | const long & | a_arg | ) |
Return true for any variable that is either a signed or unsigned int.
Return true for any variable that is a long.
Return false for any variable that is not a long Return true for any variable that is a long
Definition at line 97 of file types.cc.
Referenced by is_long(), is_signed(), and test_type().
bool is_signed_long_long | ( | const long long & | a_arg | ) |
Return true for any variable that is either a signed or unsigned long.
Return true for any variable that is a long long.
Return false for any variable that is not a long long Return true for any variable that is a long long
Definition at line 124 of file types.cc.
Referenced by is_long_long(), is_signed(), and test_type().
bool is_signed_short | ( | const short & | a_arg | ) |
Return true for any variable that is either a signed or unsigned char.
Return true for any variable that is a short.
Return false for any variable that is not a short Return true for any variable that is a short
Definition at line 43 of file types.cc.
Referenced by is_short(), is_signed(), and test_type().
bool is_unsigned_char | ( | const unsigned char & | a_arg | ) |
Return false for any variable that is not an unsigned char.
Return true for any variable that is an unsigned char.
Return true for any variable that is an unsigned char
Definition at line 26 of file types.cc.
Referenced by is_char(), is_unsigned(), and test_type().
bool is_unsigned_int | ( | const unsigned int & | a_arg | ) |
Return false for any variable that is not an unsigned int.
Return true for any variable that is an unsigned int.
Return true for any variable that is an unsigned int
Definition at line 80 of file types.cc.
Referenced by is_int(), is_unsigned(), and test_type().
bool is_unsigned_long | ( | const unsigned long & | a_arg | ) |
Return false for any variable that is not an unsigned long.
Return true for any variable that is an unsigned long.
Return true for any variable that is an unsigned long
Definition at line 107 of file types.cc.
Referenced by is_long(), is_unsigned(), and test_type().
bool is_unsigned_long_long | ( | const unsigned long long & | a_arg | ) |
Return false for any variable that is not an unsigned long long.
Return true for any variable that is an unsigned long long.
Return true for any variable that is an unsigned long long
Definition at line 134 of file types.cc.
Referenced by is_long_long(), is_unsigned(), and test_type().
bool is_unsigned_short | ( | const unsigned short & | a_arg | ) |
Return false for any variable that is not an unsigned short.
Return true for any variable that is an unsigned short.
Return true for any variable that is an unsigned short
Definition at line 53 of file types.cc.
Referenced by is_short(), is_unsigned(), and test_type().
const char* type_name | ( | const unsigned char & | a_arg | ) |
Return true for any variable that is a signed type.
Return true for any variable that is an unsigned type
Definition at line 215 of file types.cc.
Referenced by test_type().