]> sigrok.org Git - pulseview.git/blobdiff - pv/view/tracetreeitemowner.hpp
Reduce include bloat by including boost/thread/{locks,shared_mutex}.hpp directly
[pulseview.git] / pv / view / tracetreeitemowner.hpp
index 905746d6c5f956ab2787886efcb4b14ccfeea5a1..b26b1e7e46d3e81846f96fb5b2682e19c48f857a 100644 (file)
@@ -118,17 +118,20 @@ public:
         */
        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.
         */
        template<class T>
-       std::set< std::shared_ptr<T> > list_by_type();
+       std::vector< std::shared_ptr<T> > list_by_type() {
+               std::vector< std::shared_ptr<T> > items;
+               for (const auto &r : *this) {
+                       std::shared_ptr<T> p = std::dynamic_pointer_cast<T>(r);
+                       if (p)
+                               items.push_back(p);
+               }
+
+               return items;
+       }
 
        /**
         * Computes the vertical extents of the contents of this row item owner.