MCPcopy Create free account
hub / github.com/davisking/dlib / serialize

Function serialize

dlib/graph_utils/ordered_sample_pair.h:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80// ----------------------------------------------------------------------------------------
81
82 inline void serialize (
83 const ordered_sample_pair& item,
84 std::ostream& out
85 )
86 {
87 try
88 {
89 serialize(item.index1(),out);
90 serialize(item.index2(),out);
91 serialize(item.distance(),out);
92 }
93 catch (serialization_error& e)
94 {
95 throw serialization_error(e.info + "\n while serializing object of type ordered_sample_pair");
96 }
97 }
98
99 inline void deserialize (
100 ordered_sample_pair& item,

Callers

nothing calls this directly

Calls 2

serialization_errorClass · 0.85
distanceMethod · 0.45

Tested by

no test coverage detected