Main MRPT website > C++ reference for MRPT 1.9.9
types_simple.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
12 #include <vector>
13 #include <string>
14 #include <cstdint>
15 
16 namespace mrpt
17 {
18 /** \addtogroup mrpt_simpletypes Simple mrpt types (in #include
19  * <mrpt/utils/types_simple.h>)
20  * \ingroup mrpt_base_grp
21  * @{ */
22 typedef std::vector<int8_t> vector_signed_byte;
23 typedef std::vector<int16_t> vector_signed_word;
24 typedef std::vector<int32_t> vector_int;
25 typedef std::vector<int64_t> vector_long;
26 typedef std::vector<size_t> vector_size_t;
27 typedef std::vector<uint8_t> vector_byte;
28 typedef std::vector<uint16_t> vector_word;
29 typedef std::vector<uint32_t> vector_uint;
30 /** A type for passing a vector of bools. */
31 typedef std::vector<bool> vector_bool;
32 /** A type for passing a vector of strings. */
33 typedef std::vector<std::string> vector_string;
34 /** @} */
35 
36 namespace utils
37 {
38 /** \addtogroup mrpt_simpletypes
39  * @{ */
40 /** For performing type casting from a pointer to its numeric value.
41 */
42 #if defined(_MSC_VER) && (_MSC_VER >= 1300)
43 typedef unsigned long long POINTER_TYPE;
44 #else
45 typedef unsigned long POINTER_TYPE;
46 #endif
47 
48 /** The type for node IDs in graphs of different types. */
49 typedef uint64_t TNodeID;
50 /** A pair of node IDs. */
51 typedef std::pair<TNodeID, TNodeID> TPairNodeIDs;
52 #define INVALID_NODEID static_cast<mrpt::utils::TNodeID>(-1)
53 /** @} */
54 } // end namespace
55 }
std::vector< uint32_t > vector_uint
Definition: types_simple.h:29
std::vector< uint8_t > vector_byte
Definition: types_simple.h:27
std::vector< int8_t > vector_signed_byte
Definition: types_simple.h:22
std::vector< bool > vector_bool
A type for passing a vector of bools.
Definition: types_simple.h:31
std::vector< int64_t > vector_long
Definition: types_simple.h:25
std::vector< std::string > vector_string
A type for passing a vector of strings.
Definition: types_simple.h:33
uint64_t TNodeID
The type for node IDs in graphs of different types.
Definition: types_simple.h:49
unsigned __int64 uint64_t
Definition: rptypes.h:50
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
unsigned long POINTER_TYPE
For performing type casting from a pointer to its numeric value.
Definition: types_simple.h:45
std::vector< uint16_t > vector_word
Definition: types_simple.h:28
std::pair< TNodeID, TNodeID > TPairNodeIDs
A pair of node IDs.
Definition: types_simple.h:51
std::vector< int16_t > vector_signed_word
Definition: types_simple.h:23
std::vector< size_t > vector_size_t
Definition: types_simple.h:26
std::vector< int32_t > vector_int
Definition: types_simple.h:24



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019