Main MRPT website > C++ reference
MRPT logo
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-2015, 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  typedef std::vector<int8_t> vector_signed_byte;
19  typedef std::vector<int16_t> vector_signed_word;
20  typedef std::vector<int32_t> vector_int;
21  typedef std::vector<int64_t> vector_long;
22  typedef std::vector<size_t> vector_size_t;
23  typedef std::vector<uint8_t> vector_byte;
24  typedef std::vector<uint16_t> vector_word;
25  typedef std::vector<uint32_t> vector_uint;
26  typedef std::vector<bool> vector_bool; //!< A type for passing a vector of bools.
27  typedef std::vector<std::string> vector_string; //!< A type for passing a vector of strings.
28 
29  namespace utils
30  {
31  /** For performing type casting from a pointer to its numeric value.
32  */
33  #if defined(_MSC_VER) && (_MSC_VER>=1300)
34  typedef unsigned long long POINTER_TYPE;
35  #else
36  typedef unsigned long POINTER_TYPE;
37  #endif
38 
39  typedef uint64_t TNodeID; //!< The type for node IDs in graphs of different types.
40  typedef std::pair<TNodeID,TNodeID> TPairNodeIDs; //!< A pair of node IDs.
41  #define INVALID_NODEID static_cast<mrpt::utils::TNodeID>(-1)
42  } // end namespace
43 }
std::vector< int32_t > vector_int
Definition: types_simple.h:20
unsigned long POINTER_TYPE
For performing type casting from a pointer to its numeric value.
Definition: types_simple.h:36
uint64_t TNodeID
The type for node IDs in graphs of different types.
Definition: types_simple.h:39
std::vector< bool > vector_bool
A type for passing a vector of bools.
Definition: types_simple.h:26
std::vector< int8_t > vector_signed_byte
Definition: types_simple.h:18
std::vector< int16_t > vector_signed_word
Definition: types_simple.h:19
std::vector< int64_t > vector_long
Definition: types_simple.h:21
std::vector< size_t > vector_size_t
Definition: types_simple.h:22
std::vector< uint8_t > vector_byte
Definition: types_simple.h:23
std::pair< TNodeID, TNodeID > TPairNodeIDs
A pair of node IDs.
Definition: types_simple.h:40
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::vector< uint16_t > vector_word
Definition: types_simple.h:24
std::vector< uint32_t > vector_uint
Definition: types_simple.h:25
std::vector< std::string > vector_string
A type for passing a vector of strings.
Definition: types_simple.h:27



Page generated by Doxygen 1.8.9.1 for MRPT 1.3.0 SVN: at Sun Sep 13 03:55:12 UTC 2015