Tesseract 0.28.4
Loading...
Searching...
No Matches
YAML::LinkIdPairMapConvert< V > Struct Template Reference

Shared encode/decode for the std::unordered_map<LinkIdPair, V> aliases below. More...

#include <yaml_extensions.h>

Static Public Member Functions

static Node encode (const std::unordered_map< tesseract::common::LinkIdPair, V > &rhs)
static bool decode (const Node &node, std::unordered_map< tesseract::common::LinkIdPair, V > &rhs)

Detailed Description

template<typename V>
struct YAML::LinkIdPairMapConvert< V >

Shared encode/decode for the std::unordered_map<LinkIdPair, V> aliases below.

Those aliases name the very specialization the generic std::unordered_map converter would otherwise supply, so they cannot delegate to it — an explicit specialization replaces it. Each alias still needs its own schema(), which is the reason the specializations exist. A key that is not a two-element sequence yields false here rather than throwing.