MCPcopy Create free account
hub / github.com/Clarionos/clarion / set_right

Method set_right

tests/clio/database.cpp:370–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 }
369
370 void set_right(node_cptr new_right) const
371 {
372 _right = new_right;
373
374 node_db_ptr new_right_id = _right ? _right->ptr() : node_db_ptr();
375 if (self->right != new_right_id)
376 {
377 const_cast<db_ref<node<T>>&>(self)->right = new_right_id;
378 }
379 if (_right)
380 _right->set_parent(this->shared_from_this());
381 }
382
383 void set_left(node_cptr new_left) const
384 {

Callers 4

insertMethod · 0.80
single_right_rotateMethod · 0.80
single_left_rotateMethod · 0.80
double_left_rotateMethod · 0.80

Calls 2

set_parentMethod · 0.80
ptrMethod · 0.45

Tested by

no test coverage detected