datatypes.h
Go to the documentation of this file.
1 
15 #ifndef DATATYPES_H
16 #define DATATYPES_H
17 
18 #include <argos3/core/config.h>
19 
20 #ifdef __cplusplus
21 #include <iostream>
22 #endif
23 
27 #ifdef __cplusplus
28 namespace argos {
29 #endif
30 
36 #ifdef ARGOS_USE_DOUBLE
37  typedef double Real;
38 #else
39  typedef float Real;
40 #endif
41 
45  typedef signed char SInt8;
46 
47 #ifdef __cplusplus
52  inline std::ostream& operator<<(std::ostream& c_os, const SInt8 n_value) {
53  c_os << static_cast<signed int>(n_value);
54  return c_os;
55  }
56 #endif
60  typedef unsigned char UInt8;
61 #ifdef __cplusplus
66  inline std::ostream& operator<<(std::ostream& c_os, const UInt8 un_value) {
67  c_os << static_cast<unsigned int>(un_value);
68  return c_os;
69  }
70 #endif
74  typedef signed short SInt16;
78  typedef unsigned short UInt16;
79 
80 #ifdef __dsPIC30
84  typedef signed long int SInt32;
88  typedef unsigned long int UInt32;
89 #else
93  typedef signed int SInt32;
97  typedef unsigned int UInt32;
98 #endif
99 
103  typedef signed long long SInt64;
107  typedef unsigned long long UInt64;
108 
109 
110 #ifdef __cplusplus
111 }
112 #endif
113 
114 #endif
signed int SInt32
32-bit signed integer.
Definition: datatypes.h:93
unsigned int UInt32
32-bit unsigned integer.
Definition: datatypes.h:97
signed short SInt16
16-bit signed integer.
Definition: datatypes.h:74
unsigned char UInt8
8-bit unsigned integer.
Definition: datatypes.h:60
signed long long SInt64
64-bit signed integer.
Definition: datatypes.h:103
unsigned long long UInt64
64-bit unsigned integer.
Definition: datatypes.h:107
float Real
Collects all ARGoS code.
Definition: datatypes.h:39
unsigned short UInt16
16-bit unsigned integer.
Definition: datatypes.h:78
signed char SInt8
8-bit signed integer.
Definition: datatypes.h:45
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
std::ostream & operator<<(std::ostream &c_os, const CByteArray &c_byte_array)
Definition: byte_array.cpp:530