projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MainWindow: Restructure add_view()
[pulseview.git]
/
pv
/
view
/
viewitemiterator.hpp
diff --git
a/pv/view/viewitemiterator.hpp
b/pv/view/viewitemiterator.hpp
index 179de383965218d2b31321b96b67686ab424f316..c4c6f2afd7923c60e0948a02af4a1128458a8d60 100644
(file)
--- a/
pv/view/viewitemiterator.hpp
+++ b/
pv/view/viewitemiterator.hpp
@@
-14,12
+14,11
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* 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
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
*/
-#ifndef PULSEVIEW_PV_VIEW_VIEWITEMITERATOR_HPP
-#define PULSEVIEW_PV_VIEW_VIEWITEMITERATOR_HPP
+#ifndef PULSEVIEW_PV_VIEW
S_TRACEVIEW
_VIEWITEMITERATOR_HPP
+#define PULSEVIEW_PV_VIEW
S_TRACEVIEW
_VIEWITEMITERATOR_HPP
#include <algorithm>
#include <cassert>
#include <algorithm>
#include <cassert>
@@
-32,19
+31,17
@@
#include <pv/session.hpp>
namespace pv {
#include <pv/session.hpp>
namespace pv {
-namespace view {
+namespace views {
+namespace TraceView {
template<class Owner, class Item> class ViewItemIterator
{
public:
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 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 std::forward_iterator_tag iterator_category;
public:
@@
-126,7
+123,8
@@
void swap(ViewItemIterator<Owner, Item>& a, ViewItemIterator<Owner, Item>& b)
a.swap(b);
}
a.swap(b);
}
-} // namespace view
+} // namespace TraceView
+} // namespace views
} // namespace pv
} // namespace pv
-#endif // PULSEVIEW_PV_VIEW_VIEWITEMITERATOR_HPP
+#endif // PULSEVIEW_PV_VIEW
S_TRACEVIEW
_VIEWITEMITERATOR_HPP