#include "rowitem.hpp"
#include "rowitemowner.hpp"
+#include "trace.hpp"
+using std::dynamic_pointer_cast;
using std::max;
using std::make_pair;
using std::min;
return owners;
}
+template<class T>
+set< shared_ptr<T> > RowItemOwner::list_by_type()
+{
+ set< shared_ptr<T> > items;
+ for (const auto &r : *this) {
+ shared_ptr<T> p = dynamic_pointer_cast<T>(r);
+ if (p)
+ items.insert(p);
+ }
+
+ return items;
+}
+
+template set< shared_ptr<Trace> > RowItemOwner::list_by_type();
+
pair<int, int> RowItemOwner::v_extents() const
{
pair<int, int> extents(INT_MAX, INT_MIN);
*/
std::set< RowItemOwner* > 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();
+
/**
* Computes the vertical extents of the contents of this row item owner.
* @return A pair containing the minimum and maximum y-values.