Blender V5.3
tree_iterator.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_listBase.h"
12
13#include "BLI_function_ref.hh"
14
15namespace blender {
16
17struct SpaceOutliner;
18
19namespace ed::outliner {
20
21struct TreeElement;
22
23namespace tree_iterator {
24
26using ConstVisitorFn = FunctionRef<void(const TreeElement *)>;
27
32void all(const SpaceOutliner &space_outliner, ConstVisitorFn visitor);
33void all(const ListBaseT<TreeElement> &subtree, ConstVisitorFn visitor);
34void all(SpaceOutliner &space_outliner, VisitorFn visitor);
35void all(ListBaseT<TreeElement> &subtree, VisitorFn visitor);
36
42void all_open(const SpaceOutliner &, ConstVisitorFn visitor);
43void all_open(const SpaceOutliner &,
44 const ListBaseT<TreeElement> &subtree,
45 ConstVisitorFn visitor);
46void all_open(SpaceOutliner &, VisitorFn visitor);
47void all_open(SpaceOutliner &, ListBaseT<TreeElement> &subtree, VisitorFn visitor);
48
49} // namespace tree_iterator
50} // namespace ed::outliner
51} // namespace blender
These structs are the foundation for all linked lists in the library system.
FunctionRef< void(const TreeElement *)> ConstVisitorFn
void all_open(const SpaceOutliner &space_outliner, const ConstVisitorFn visitor)
FunctionRef< void(TreeElement *)> VisitorFn
void all(const SpaceOutliner &space_outliner, const ConstVisitorFn visitor)
BMesh Iterators.