return owners;
}
-template<class T>
-set< shared_ptr<T> > TraceTreeItemOwner::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> > TraceTreeItemOwner::list_by_type();
-
pair<int, int> TraceTreeItemOwner::v_extents() const
{
pair<int, int> extents(INT_MAX, INT_MIN);
* Creates a list of decendant signals filtered by type.
*/
template<class T>
- std::set< std::shared_ptr<T> > list_by_type();
+ std::set< std::shared_ptr<T> > list_by_type() {
+ std::set< std::shared_ptr<T> > items;
+ for (const auto &r : *this) {
+ std::shared_ptr<T> p = std::dynamic_pointer_cast<T>(r);
+ if (p)
+ items.insert(p);
+ }
+
+ return items;
+ }
/**
* Computes the vertical extents of the contents of this row item owner.