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

Function deserialize

dlib/graph_utils/sample_pair.h:153–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 }
152
153 inline void deserialize (
154 sample_pair& item,
155 std::istream& in
156 )
157 {
158 try
159 {
160 unsigned long idx1, idx2;
161 double dist;
162
163 deserialize(idx1,in);
164 deserialize(idx2,in);
165 deserialize(dist,in);
166 item = sample_pair(idx1, idx2, dist);
167 }
168 catch (serialization_error& e)
169 {
170 throw serialization_error(e.info + "\n while deserializing object of type sample_pair");
171 }
172 }
173
174// ----------------------------------------------------------------------------------------
175

Callers

nothing calls this directly

Calls 2

serialization_errorClass · 0.85
sample_pairClass · 0.70

Tested by

no test coverage detected