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

Function deserialize

dlib/graph_utils/ordered_sample_pair.h:99–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 inline void deserialize (
100 ordered_sample_pair& item,
101 std::istream& in
102 )
103 {
104 try
105 {
106 unsigned long idx1, idx2;
107 double dist;
108
109 deserialize(idx1,in);
110 deserialize(idx2,in);
111 deserialize(dist,in);
112 item = ordered_sample_pair(idx1, idx2, dist);
113 }
114 catch (serialization_error& e)
115 {
116 throw serialization_error(e.info + "\n while deserializing object of type ordered_sample_pair");
117 }
118 }
119
120// ----------------------------------------------------------------------------------------
121

Callers

nothing calls this directly

Calls 2

serialization_errorClass · 0.85
ordered_sample_pairClass · 0.70

Tested by

no test coverage detected