Main MRPT website > C++ reference for MRPT 1.5.7
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 <mrpt/utils/mrpt_stdint.h> // compiler-independent version of "stdint.h"
15 
16 namespace mrpt
17 {
18  /** \addtogroup mrpt_simpletypes Simple mrpt types (in #include <mrpt/utils/types_simple.h>)
19  * \ingroup mrpt_base_grp
20  * @{ */
21  typedef std::vector<int8_t> vector_signed_byte;
22  typedef std::vector<int16_t> vector_signed_word;
23  typedef std::vector<int32_t> vector_int;
24  typedef std::vector<int64_t> vector_long;
25  typedef std::vector<size_t> vector_size_t;
26  typedef std::vector<uint8_t> vector_byte;
27  typedef std::vector<uint16_t> vector_word;
28  typedef std::vector<uint32_t> vector_uint;
29  typedef std::vector<bool> vector_bool; //!< A type for passing a vector of bools.
30  typedef std::vector<std::string> vector_string; //!< A type for passing a vector of strings.
31  /** @} */
32 
33  namespace utils
34  {
35  /** \addtogroup mrpt_simpletypes
36  * @{ */
37  /** For performing type casting from a pointer to its numeric value.
38  */
39  #if defined(_MSC_VER) && (_MSC_VER>=1300)
40  typedef unsigned long long POINTER_TYPE;
41  #else
42  typedef unsigned long POINTER_TYPE;
43  #endif
44 
45  typedef uint64_t TNodeID; //!< The type for node IDs in graphs of different types.
46  typedef std::pair<TNodeID,TNodeID> TPairNodeIDs; //!< A pair of node IDs.
47  #define INVALID_NODEID static_cast<mrpt::utils::TNodeID>(-1)
48  /** @} */
49  } // end namespace
50 }
std::pair< TNodeID, TNodeID > TPairNodeIDs
A pair of node IDs.
Definition: types_simple.h:46
std::vector< uint32_t > vector_uint
Definition: types_simple.h:28
std::vector< uint8_t > vector_byte
Definition: types_simple.h:26
std::vector< int8_t > vector_signed_byte
Definition: types_simple.h:21
std::vector< bool > vector_bool
A type for passing a vector of bools.
Definition: types_simple.h:29
std::vector< int64_t > vector_long
Definition: types_simple.h:24
std::vector< std::string > vector_string
A type for passing a vector of strings.
Definition: types_simple.h:30
uint64_t TNodeID
The type for node IDs in graphs of different types.
Definition: types_simple.h:45
unsigned __int64 uint64_t
Definition: rptypes.h:52
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:42
std::vector< uint16_t > vector_word
Definition: types_simple.h:27
std::vector< int16_t > vector_signed_word
Definition: types_simple.h:22
std::vector< size_t > vector_size_t
Definition: types_simple.h:25
std::vector< int32_t > vector_int
Definition: types_simple.h:23



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019