#include <tree_database.h>
|
| int | add_node (int parent_id, const std::string &child_name) |
| |
| int | add_node (const std::string &child_name) |
| |
| template<typename... Args> |
| int | add_node (const Args &...ancestors, const std::string &child_name) |
| |
| int | find_node (int parent_id, const std::string &name) |
| |
| int | find_node (int parent_id, int depth, const std::string &name) |
| |
| int | find_or_create_node (int parent_id, const std::string &name) |
| |
| template<typename... Args> |
| int | find_or_create_node (int parent_id, const Args &...ancestors) |
| |
| std::vector< int > | get_children_ids (int parent_id) |
| |
| std::vector< std::pair< int, std::string > > | get_children (int parent_id) |
| |
| std::vector< int > | get_children_ids (int parent_id, int depth) |
| |
| std::vector< std::pair< int, std::string > > | get_children (int parent_id, int depth) |
| |
| std::vector< int > | get_children_ids (int parent_id, int depth, std::vector< std::pair< int, std::string > > filters) |
| |
| std::vector< std::pair< int, std::string > > | get_children (int parent_id, int depth, std::vector< std::pair< int, std::string > > filters) |
| |
| std::vector< int > | get_name_ids (std::string name) |
| |
| std::pair< int, std::string > | get_id_name (int id) |
| |
| std::vector< std::pair< int, std::string > > | get_ids_name (std::vector< int > id_list) |
| |
| int | get_ancestor_id (int child_id, int depth) |
| |
| std::pair< int, std::string > | get_ancestor (int child_id, int depth) |
| |
| bool | is_name_unique (std::string name) |
| |
| void | print_tree (int node_id, int depth) |
| |
| void | print_tree () |
| |
◆ add_node() [1/3]
template<typename... Args>
| int tree_database::add_node |
( |
const Args &... |
ancestors, |
|
|
const std::string & |
child_name |
|
) |
| |
◆ add_node() [2/3]
| int tree_database::add_node |
( |
const std::string & |
child_name | ) |
|
|
inline |
◆ add_node() [3/3]
| int tree_database::add_node |
( |
int |
parent_id, |
|
|
const std::string & |
child_name |
|
) |
| |
◆ find_node() [1/2]
| int tree_database::find_node |
( |
int |
parent_id, |
|
|
const std::string & |
name |
|
) |
| |
◆ find_node() [2/2]
| int tree_database::find_node |
( |
int |
parent_id, |
|
|
int |
depth, |
|
|
const std::string & |
name |
|
) |
| |
◆ find_or_create_node() [1/2]
template<typename... Args>
| int tree_database::find_or_create_node |
( |
int |
parent_id, |
|
|
const Args &... |
ancestors |
|
) |
| |
◆ find_or_create_node() [2/2]
| int tree_database::find_or_create_node |
( |
int |
parent_id, |
|
|
const std::string & |
name |
|
) |
| |
◆ get_ancestor()
| std::pair< int, std::string > tree_database::get_ancestor |
( |
int |
child_id, |
|
|
int |
depth |
|
) |
| |
|
inline |
◆ get_ancestor_id()
| int tree_database::get_ancestor_id |
( |
int |
child_id, |
|
|
int |
depth |
|
) |
| |
◆ get_children() [1/3]
| std::vector< std::pair< int, std::string > > tree_database::get_children |
( |
int |
parent_id | ) |
|
|
inline |
◆ get_children() [2/3]
| std::vector< std::pair< int, std::string > > tree_database::get_children |
( |
int |
parent_id, |
|
|
int |
depth |
|
) |
| |
|
inline |
◆ get_children() [3/3]
| std::vector< std::pair< int, std::string > > tree_database::get_children |
( |
int |
parent_id, |
|
|
int |
depth, |
|
|
std::vector< std::pair< int, std::string > > |
filters |
|
) |
| |
|
inline |
◆ get_children_ids() [1/3]
| std::vector< int > tree_database::get_children_ids |
( |
int |
parent_id | ) |
|
◆ get_children_ids() [2/3]
| std::vector< int > tree_database::get_children_ids |
( |
int |
parent_id, |
|
|
int |
depth |
|
) |
| |
◆ get_children_ids() [3/3]
| std::vector< int > tree_database::get_children_ids |
( |
int |
parent_id, |
|
|
int |
depth, |
|
|
std::vector< std::pair< int, std::string > > |
filters |
|
) |
| |
◆ get_id_name()
| std::pair< int, std::string > tree_database::get_id_name |
( |
int |
id | ) |
|
|
inline |
◆ get_ids_name()
| std::vector< std::pair< int, std::string > > tree_database::get_ids_name |
( |
std::vector< int > |
id_list | ) |
|
◆ get_name_ids()
| std::vector< int > tree_database::get_name_ids |
( |
std::string |
name | ) |
|
|
inline |
◆ is_name_unique()
| bool tree_database::is_name_unique |
( |
std::string |
name | ) |
|
|
inline |
◆ print_tree() [1/2]
| void tree_database::print_tree |
( |
| ) |
|
|
inline |
◆ print_tree() [2/2]
| void tree_database::print_tree |
( |
int |
node_id, |
|
|
int |
depth |
|
) |
| |
The documentation for this class was generated from the following file: