types.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_COMMON_TYPES_H
27 #define TESSERACT_COMMON_TYPES_H
28 
31 #include <string>
32 #include <utility>
34 
35 namespace tesseract_common
36 {
37 using LinkNamesPair = std::pair<std::string, std::string>;
38 
39 struct PairHash
40 {
41  std::size_t operator()(const LinkNamesPair& pair) const;
42 };
43 
52 LinkNamesPair makeOrderedLinkPair(const std::string& link_name1, const std::string& link_name2);
53 
65 void makeOrderedLinkPair(LinkNamesPair& pair, const std::string& link_name1, const std::string& link_name2);
66 
67 } // namespace tesseract_common
68 
69 #endif // TESSERACT_COMMON_TYPES_H
tesseract_common
Definition: allowed_collision_matrix.h:19
macros.h
Common Tesseract Macros.
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
tesseract_common::LinkNamesPair
std::pair< std::string, std::string > LinkNamesPair
Definition: types.h:37
tesseract_common::PairHash
Definition: types.h:39
tesseract_common::PairHash::operator()
std::size_t operator()(const LinkNamesPair &pair) const
Definition: types.cpp:36
TESSERACT_COMMON_IGNORE_WARNINGS_POP
#define TESSERACT_COMMON_IGNORE_WARNINGS_POP
Definition: macros.h:72
tesseract_common::makeOrderedLinkPair
LinkNamesPair makeOrderedLinkPair(const std::string &link_name1, const std::string &link_name2)
Create a pair of strings, where the pair.first is always <= pair.second.
Definition: types.cpp:44


tesseract_common
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:40