Function move

Summary

#include <src/c4/yml/tree.hpp>

(1) void move(size_t node, size_t after)

(2) void move(size_t node, size_t new_parent, size_t after)

(3) size_t move(Tree *src, size_t node, size_t new_parent, size_t after)

Function overload

Synopsis

#include <src/c4/yml/tree.hpp>

void move(size_t node, size_t after)

Description

change the node's position in the parent

Source

Line 816 in src/c4/yml/tree.hpp.

Synopsis

#include <src/c4/yml/tree.hpp>

void move(size_t node, size_t new_parent, size_t after)

Description

change the node's parent and position

Source

Line 819 in src/c4/yml/tree.hpp.

Synopsis

#include <src/c4/yml/tree.hpp>

size_t move(Tree *src, size_t node, size_t new_parent, size_t after)

Description

change the node's parent and position to a different tree

Returns
the index of the new node in the destination tree

Source

Line 823 in src/c4/yml/tree.hpp.






Add Discussion as Guest

Log in