| 116 | { |
| 117 | public: |
| 118 | explicit Tree(uint32_t max_concurrent_streams) : _max_depth(MIN(max_concurrent_streams, HTTP2_DEPENDENCY_TREE_MAX_DEPTH)) |
| 119 | { |
| 120 | _ancestors.resize(_max_ancestors); |
| 121 | } |
| 122 | ~Tree() { delete _root; } |
| 123 | Node *find(uint32_t id, bool *is_max_leaf = nullptr); |
| 124 | Node *find_shadow(uint32_t id, bool *is_max_leaf = nullptr); |