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

Method add_node

dlib/graph/graph_kernel_1.h:569–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567 bool is_checked
568 >
569 unsigned long graph_kernel_1<T,E,mem_manager,is_checked>::
570 add_node (
571 )
572 {
573 try
574 {
575 std::shared_ptr<node_type> n(new node_type);
576 n->idx = nodes.size();
577 nodes.push_back(n);
578 return n->idx;
579 }
580 catch (...)
581 {
582 clear();
583 throw;
584 }
585 }
586
587// ----------------------------------------------------------------------------------------
588

Callers

nothing calls this directly

Calls 3

clearFunction · 0.50
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected