| 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 | { |
no test coverage detected