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

Function serialize

dlib/geometry/rectangle.h:285–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283// ----------------------------------------------------------------------------------------
284
285 inline void serialize (
286 const rectangle& item,
287 std::ostream& out
288 )
289 {
290 try
291 {
292 serialize(item.left(),out);
293 serialize(item.top(),out);
294 serialize(item.right(),out);
295 serialize(item.bottom(),out);
296 }
297 catch (serialization_error& e)
298 {
299 throw serialization_error(e.info + "\n while serializing an object of type rectangle");
300 }
301 }
302
303 inline void deserialize (
304 rectangle& item,

Callers

nothing calls this directly

Calls 5

serialization_errorClass · 0.85
leftMethod · 0.45
topMethod · 0.45
rightMethod · 0.45
bottomMethod · 0.45

Tested by

no test coverage detected