16 #ifndef SURGSIM_DATASTRUCTURES_DATASTRUCTURESCONVERT_H 17 #define SURGSIM_DATASTRUCTURES_DATASTRUCTURESCONVERT_H 21 #include <unordered_map> 22 #include <unordered_set> 23 #include <yaml-cpp/yaml.h> 42 template <
class Key,
class T>
45 static Node encode(
const std::unordered_map<Key, T>& rhs);
46 static bool decode(
const Node& node, std::unordered_map<Key, T>& rhs);
51 template <
class Value>
54 static Node encode(
const std::unordered_set<Value>& rhs);
55 static bool decode(
const Node& node, std::unordered_set<Value>& rhs);
62 #endif // SURGSIM_DATASTRUCTURES_DATASTRUCTURESCONVERT_H Definition: CompoundShapeToGraphics.cpp:29
Container class that can indicate whether the object has been assigned a value.
Definition: OptionalValue.h:29
SurgSim::Math::Matrix44f convert(boost::any val)
Specialization for convert<T>() to correctly cast Matrix44d to Matrix44f, will throw if the val is no...
Definition: Accessible.cpp:210
Definition: DataStructuresConvert.h:28
#define SURGSIM_DOUBLE_SPECIALIZATION
Definition: Macros.h:44