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

Function deserialize

dlib/binary_search_tree/binary_search_tree_kernel_2.h:466–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464 typename compare
465 >
466 void deserialize (
467 binary_search_tree_kernel_2<domain,range,mem_manager,compare>& item,
468 std::istream& in
469 )
470 {
471 try
472 {
473 item.clear();
474 unsigned long size;
475 deserialize(size,in);
476 domain d;
477 range r;
478 for (unsigned long i = 0; i < size; ++i)
479 {
480 deserialize(d,in);
481 deserialize(r,in);
482 item.add(d,r);
483 }
484 }
485 catch (serialization_error& e)
486 {
487 item.clear();
488 throw serialization_error(e.info + "\n while deserializing object of type binary_search_tree_kernel_2");
489 }
490 }
491
492
493

Callers

nothing calls this directly

Calls 3

serialization_errorClass · 0.85
clearMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected