Add a new HashSet template
* Intended to replace RBSet in most cases. * Optimized for iteration speed
This commit is contained in:
parent
410893ad0f
commit
45af29da80
243 changed files with 1400 additions and 662 deletions
|
|
@ -1637,7 +1637,7 @@ Node *Node::find_common_parent_with(const Node *p_node) const {
|
|||
return const_cast<Node *>(p_node);
|
||||
}
|
||||
|
||||
RBSet<const Node *> visited;
|
||||
HashSet<const Node *> visited;
|
||||
|
||||
const Node *n = this;
|
||||
|
||||
|
|
@ -1669,7 +1669,7 @@ NodePath Node::get_path_to(const Node *p_node) const {
|
|||
return NodePath(".");
|
||||
}
|
||||
|
||||
RBSet<const Node *> visited;
|
||||
HashSet<const Node *> visited;
|
||||
|
||||
const Node *n = this;
|
||||
|
||||
|
|
@ -2042,7 +2042,7 @@ StringName Node::get_property_store_alias(const StringName &p_property) const {
|
|||
}
|
||||
#endif
|
||||
|
||||
void Node::get_storable_properties(RBSet<StringName> &r_storable_properties) const {
|
||||
void Node::get_storable_properties(HashSet<StringName> &r_storable_properties) const {
|
||||
List<PropertyInfo> pi;
|
||||
get_property_list(&pi);
|
||||
for (List<PropertyInfo>::Element *E = pi.front(); E; E = E->next()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue