Main MRPT website > C++ reference for MRPT 1.4.0
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-2016, 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 }
mrpt::utils::TPairNodeIDs
std::pair< TNodeID, TNodeID > TPairNodeIDs
A pair of node IDs.
Definition: types_simple.h:46
mrpt::vector_uint
std::vector< uint32_t > vector_uint
Definition: types_simple.h:28
mrpt::vector_string
std::vector< std::string > vector_string
A type for passing a vector of strings.
Definition: types_simple.h:30
mrpt::vector_word
std::vector< uint16_t > vector_word
Definition: types_simple.h:27
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CParticleFilter.h:16
mrpt_stdint.h
mrpt::vector_byte
std::vector< uint8_t > vector_byte
Definition: types_simple.h:26
mrpt::utils::POINTER_TYPE
unsigned long POINTER_TYPE
For performing type casting from a pointer to its numeric value.
Definition: types_simple.h:42
mrpt::vector_signed_byte
std::vector< int8_t > vector_signed_byte
Definition: types_simple.h:21
mrpt::utils::TNodeID
uint64_t TNodeID
The type for node IDs in graphs of different types.
Definition: types_simple.h:45
mrpt::vector_signed_word
std::vector< int16_t > vector_signed_word
Definition: types_simple.h:22
mrpt::vector_int
std::vector< int32_t > vector_int
Definition: types_simple.h:23
mrpt::vector_bool
std::vector< bool > vector_bool
A type for passing a vector of bools.
Definition: types_simple.h:29
mrpt::vector_long
std::vector< int64_t > vector_long
Definition: types_simple.h:24
mrpt::vector_size_t
std::vector< size_t > vector_size_t
Definition: types_simple.h:25



Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Sat Jan 18 22:37:07 UTC 2020