ARGoS
3
A parallel, multi-engine simulator for swarm robotics
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
48
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
57
60
typedef
unsigned
char
UInt8
;
61
#ifdef __cplusplus
62
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
71
74
typedef
signed
short
SInt16
;
78
typedef
unsigned
short
UInt16
;
79
80
#ifdef __dsPIC30
81
84
typedef
signed
long
int
SInt32
;
88
typedef
unsigned
long
int
UInt32
;
89
#else
90
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
argos
The namespace containing all the ARGoS related code.
Definition:
ci_actuator.h:12
UInt16
unsigned short UInt16
16-bit unsigned integer.
Definition:
datatypes.h:78
SInt16
signed short SInt16
16-bit signed integer.
Definition:
datatypes.h:74
SInt64
signed long long SInt64
64-bit signed integer.
Definition:
datatypes.h:103
argos::operator<<
std::ostream & operator<<(std::ostream &c_os, const CByteArray &c_byte_array)
Definition:
byte_array.cpp:530
SInt32
signed int SInt32
32-bit signed integer.
Definition:
datatypes.h:93
UInt8
unsigned char UInt8
8-bit unsigned integer.
Definition:
datatypes.h:60
UInt32
unsigned int UInt32
32-bit unsigned integer.
Definition:
datatypes.h:97
Real
float Real
Collects all ARGoS code.
Definition:
datatypes.h:39
UInt64
unsigned long long UInt64
64-bit unsigned integer.
Definition:
datatypes.h:107
SInt8
signed char SInt8
8-bit signed integer.
Definition:
datatypes.h:45
core
utility
datatypes
datatypes.h
Generated on Wed Aug 4 2021 00:15:55 for ARGoS by
1.8.17