annotate DEPENDENCIES/generic/include/boost/fusion/view/repetitive_view/repetitive_view.hpp @ 87:2a2c65a20a8b

Add Python libs and headers
author Chris Cannam
date Wed, 25 Feb 2015 14:05:22 +0000
parents 2665513ce2d3
children c530137014c0
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Copyright (c) 2007 Tobias Schwinger
Chris@16 3
Chris@16 4 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6 ==============================================================================*/
Chris@16 7
Chris@16 8 #if !defined(BOOST_FUSION_REPETITIVE_REPETITIVE_VIEW_VIEW_HPP_INCLUDED)
Chris@16 9 #define BOOST_FUSION_REPETITIVE_VIEW_REPETITIVE_VIEW_HPP_INCLUDED
Chris@16 10
Chris@16 11 #include <boost/type_traits/remove_reference.hpp>
Chris@16 12 #include <boost/mpl/if.hpp>
Chris@16 13
Chris@16 14 #include <boost/fusion/support/is_view.hpp>
Chris@16 15 #include <boost/fusion/support/category_of.hpp>
Chris@16 16
Chris@16 17 #include <boost/fusion/view/repetitive_view/detail/begin_impl.hpp>
Chris@16 18 #include <boost/fusion/view/repetitive_view/detail/end_impl.hpp>
Chris@16 19
Chris@16 20
Chris@16 21 namespace boost { namespace fusion
Chris@16 22 {
Chris@16 23 struct repetitive_view_tag;
Chris@16 24 struct fusion_sequence_tag;
Chris@16 25
Chris@16 26 template<typename Sequence> struct repetitive_view
Chris@16 27 : sequence_base< repetitive_view<Sequence> >
Chris@16 28 {
Chris@16 29 typedef repetitive_view_tag fusion_tag;
Chris@16 30 typedef fusion_sequence_tag tag; // this gets picked up by MPL
Chris@16 31 typedef mpl::true_ is_view;
Chris@16 32
Chris@16 33 typedef single_pass_traversal_tag category;
Chris@16 34
Chris@16 35 typedef typename boost::remove_reference<Sequence>::type sequence_type;
Chris@16 36 typedef typename
Chris@16 37 mpl::if_<traits::is_view<Sequence>, Sequence, sequence_type&>::type
Chris@16 38 stored_seq_type;
Chris@16 39
Chris@16 40 repetitive_view(Sequence& in_seq)
Chris@16 41 : seq(in_seq) {}
Chris@16 42
Chris@16 43 stored_seq_type seq;
Chris@16 44
Chris@16 45 private:
Chris@16 46 // silence MSVC warning C4512: assignment operator could not be generated
Chris@16 47 repetitive_view& operator= (repetitive_view const&);
Chris@16 48 };
Chris@16 49
Chris@16 50 }}
Chris@16 51
Chris@16 52 #endif