namespace pv {
namespace view {
-vector< shared_ptr<ViewItem> >& TraceTreeItemOwner::child_items()
-{
- return items_;
-}
-
-const vector< shared_ptr<ViewItem> >& TraceTreeItemOwner::child_items() const
+const ViewItemOwner::item_list& TraceTreeItemOwner::child_items() const
{
return items_;
}
*/
virtual unsigned int depth() const = 0;
- /**
- * Returns a list of row items owned by this object.
- */
- virtual item_list& child_items();
-
/**
* Returns a list of row items owned by this object.
*/
template<class Owner, class Item> class ViewItemIterator
{
public:
- typedef typename std::conditional<std::is_const<Owner>::value,
- typename Owner::item_list::const_iterator,
- typename Owner::item_list::iterator>::type child_iterator;
-
+ typedef typename Owner::item_list::const_iterator child_iterator;
typedef std::shared_ptr<Item> value_type;
typedef ptrdiff_t difference_type;
typedef value_type pointer;
- typedef value_type& reference;
+ typedef const value_type& reference;
typedef std::forward_iterator_tag iterator_category;
public:
typedef ViewItemIterator<const ViewItemOwner, ViewItem> const_iterator;
public:
- /**
- * Returns a list of row items owned by this object.
- */
- virtual item_list& child_items() = 0;
-
/**
* Returns a list of row items owned by this object.
*/