return const_iterator(this);
}
-set< TraceTreeItemOwner* > TraceTreeItemOwner::list_row_item_owners()
-{
- set< TraceTreeItemOwner* > owners;
- for (const auto &r : *this)
- owners.insert(r->owner());
- return owners;
-}
-
pair<int, int> TraceTreeItemOwner::v_extents() const
{
pair<int, int> extents(INT_MAX, INT_MIN);
*/
const_iterator end() const;
- /**
- * Makes a list of row item owners of all the row items that are
- * decendants of this item.
- */
- std::set< TraceTreeItemOwner* > list_row_item_owners();
-
/**
* Creates a list of decendant signals filtered by type.
*/
void View::restack_all_trace_tree_items()
{
// Make a list of owners that is sorted from deepest first
- const auto owners = list_row_item_owners();
+ set< TraceTreeItemOwner* > owners;
+ for (const auto &r : *this)
+ owners.insert(r->owner());
vector< TraceTreeItemOwner* > sorted_owners(owners.begin(), owners.end());
sort(sorted_owners.begin(), sorted_owners.end(),
[](const TraceTreeItemOwner* a, const TraceTreeItemOwner *b) {