|
Blender V4.3
|
#include <BKE_outliner_treehash.hh>
#TreeHash | |
| ~TreeHash () | |
| void | rebuild_from_treestore (BLI_mempool &treestore) |
| void | clear_used () |
| void | add_element (TreeStoreElem &elem) |
| void | remove_element (TreeStoreElem &elem) |
| TreeStoreElem * | lookup_unused (short type, short nr, ID *id) const |
| TreeStoreElem * | lookup_any (short type, short nr, ID *id) const |
| static std::unique_ptr< TreeHash > | create_from_treestore (BLI_mempool &treestore) |
Definition at line 43 of file BKE_outliner_treehash.hh.
|
default |
| void blender::bke::outliner::treehash::TreeHash::add_element | ( | TreeStoreElem & | elem | ) |
Add hash-table element.
Definition at line 123 of file outliner_treehash.cc.
| void blender::bke::outliner::treehash::TreeHash::clear_used | ( | ) |
Clear element usage flags.
Definition at line 109 of file outliner_treehash.cc.
|
static |
Create and fill hash-table with treestore elements
Definition at line 89 of file outliner_treehash.cc.
| TreeStoreElem * blender::bke::outliner::treehash::TreeHash::lookup_any | ( | short | type, |
| short | nr, | ||
| ID * | id ) const |
Find user or unused element with specific type, nr and id.
Definition at line 200 of file outliner_treehash.cc.
| TreeStoreElem * blender::bke::outliner::treehash::TreeHash::lookup_unused | ( | short | type, |
| short | nr, | ||
| ID * | id ) const |
Find first unused element with specific type, nr and id.
Definition at line 167 of file outliner_treehash.cc.
References LIKELY, size(), and TSEGROUP_LASTUSED_RESET_VALUE.
| void blender::bke::outliner::treehash::TreeHash::rebuild_from_treestore | ( | BLI_mempool & | treestore | ) |
Full rebuild for already allocated hash-table.
Definition at line 117 of file outliner_treehash.cc.
| void blender::bke::outliner::treehash::TreeHash::remove_element | ( | TreeStoreElem & | elem | ) |
Remove hash-table element.
Definition at line 130 of file outliner_treehash.cc.
References BLI_assert.