X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fviewitemowner.cpp;fp=pv%2Fview%2Fviewitemowner.cpp;h=8a704787e1727f0ff1b613f31a25727f622313d8;hb=c373f82810ad9c5376a7370118de9dd587ee0e43;hp=0000000000000000000000000000000000000000;hpb=21d5f19c7992046c7a1735096364138eb6de50cf;p=pulseview.git diff --git a/pv/view/viewitemowner.cpp b/pv/view/viewitemowner.cpp new file mode 100644 index 0000000..8a70478 --- /dev/null +++ b/pv/view/viewitemowner.cpp @@ -0,0 +1,60 @@ +/* + * This file is part of the PulseView project. + * + * Copyright (C) 2014 Joel Holdsworth + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include + +#include "tracetreeitem.hpp" +#include "tracetreeitemowner.hpp" +#include "trace.hpp" + +using std::dynamic_pointer_cast; +using std::max; +using std::make_pair; +using std::min; +using std::pair; +using std::set; +using std::shared_ptr; +using std::vector; + +namespace pv { +namespace view { + +ViewItemOwner::iterator ViewItemOwner::begin() +{ + return iterator(this, items_.begin()); +} + +ViewItemOwner::iterator ViewItemOwner::end() +{ + return iterator(this); +} + +ViewItemOwner::const_iterator ViewItemOwner::begin() const +{ + return const_iterator(this, items_.cbegin()); +} + +ViewItemOwner::const_iterator ViewItemOwner::end() const +{ + return const_iterator(this); +} + +} // view +} // pv