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

Function deserialize

dlib/binary_search_tree/binary_search_tree_kernel_1.h:518–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516 typename compare
517 >
518 void deserialize (
519 binary_search_tree_kernel_1<domain,range,mem_manager,compare>& item,
520 std::istream& in
521 )
522 {
523 try
524 {
525 item.clear();
526 unsigned long size;
527 deserialize(size,in);
528 domain d;
529 range r;
530 for (unsigned long i = 0; i < size; ++i)
531 {
532 deserialize(d,in);
533 deserialize(r,in);
534 item.add(d,r);
535 }
536 }
537 catch (serialization_error& e)
538 {
539 item.clear();
540 throw serialization_error(e.info + "\n while deserializing object of type binary_search_tree_kernel_1");
541 }
542 }
543
544
545

Callers

nothing calls this directly

Calls 3

serialization_errorClass · 0.85
clearMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected