Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70463 - in sandbox/assign_v2/boost/assign/v2/pipe: . put
From: erwann.rogard_at_[hidden]
Date: 2011-03-22 21:56:26


Author: e_r
Date: 2011-03-22 21:56:25 EDT (Tue, 22 Mar 2011)
New Revision: 70463
URL: http://svn.boost.org/trac/boost/changeset/70463

Log:
upd assign_v2
Added:
   sandbox/assign_v2/boost/assign/v2/pipe/csv_put.hpp
      - copied unchanged from r70462, /sandbox/assign_v2/boost/assign/v2/pipe/put/csv_put.hpp
   sandbox/assign_v2/boost/assign/v2/pipe/option_trais.hpp
      - copied unchanged from r70462, /sandbox/assign_v2/boost/assign/v2/pipe/put/option_traits.hpp
Removed:
   sandbox/assign_v2/boost/assign/v2/pipe/put/csv_put.hpp
   sandbox/assign_v2/boost/assign/v2/pipe/put/option_traits.hpp

Deleted: sandbox/assign_v2/boost/assign/v2/pipe/put/csv_put.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/pipe/put/csv_put.hpp 2011-03-22 21:56:25 EDT (Tue, 22 Mar 2011)
+++ (empty file)
@@ -1,234 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef BOOST_ASSIGN_V2_PIPE_PUT_CSV_PUT_HPP_ER_2010
-#define BOOST_ASSIGN_V2_PIPE_PUT_CSV_PUT_HPP_ER_2010
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#include <boost/assign/v2/ref/array/as_arg_list.hpp>
-#include <boost/assign/v2/ref/array/csv_array.hpp>
-#include <boost/assign/v2/ref/aux_/list/as_modulo_list.hpp>
-#include <boost/assign/v2/ref/wrapper/copy.hpp>
-#include <boost/assign/v2/pipe/put/option_traits.hpp>
-#include <boost/assign/v2/put.hpp>
-#include <boost/mpl/apply.hpp>
-#include <boost/mpl/vector/vector0.hpp>
-#include <boost/mpl/size.hpp>
-#if !BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <boost/assign/v2/detail/config/limit_csv_arity.hpp>
-#include <boost/mpl/aux_/na.hpp>
-#include <boost/preprocessor/arithmetic/inc.hpp>
-#include <boost/preprocessor/repetition.hpp>
-#endif
-
-
-namespace boost{
- struct use_default;
-namespace assign{
-namespace v2{
-//[syntax_put_pipe_csv_put
-namespace aux{
-
- typedef ref::array_aux::size_type arg_list_size_type;
-
- template<typename OptionList, arg_list_size_type N, typename U>
- struct arg_list/*<-*/
- {
- typedef boost::use_default tag2_;
- typedef option_traits<OptionList> option_traits;
- typedef typename option_traits::cont_ option_list_cont_type;
- typedef typename v2::ref::nth_result_of::csv_array<
- N,
- U
- >::type arg_list_cont_type; //notice it's arg, not args
-
- arg_list(){}
- arg_list(option_list_cont_type const& a, arg_list_cont_type const& b)
- : option_list_cont_( a ), arg_list_cont_( b ){}
-
- option_list_cont_type const& option_list_cont()const
- {
- return this->option_list_cont_;
- }
-
- arg_list_cont_type const& arg_list_cont() const
- {
- return this->arg_list_cont_;
- }
-
- protected:
- option_list_cont_type option_list_cont_;
- arg_list_cont_type arg_list_cont_;
-
- }/*->*/;
-
- template<typename OptionList/*<-*/ = ::boost::mpl::vector0<> /*->*/>
- class arg_list_generator/*<-*/
- {
-
- typedef ::boost::mpl::na na_;
- typedef option_traits<OptionList> option_traits_;
-
- public:
-
- typedef typename option_traits_::size option_list_size;
- typedef typename option_traits_::cont_ option_list_cont_type;
-
- arg_list_generator(){}
- explicit arg_list_generator(option_list_cont_type const& p)
- : option_list_cont_( p ){}
-
- template<typename P>
- struct option_result
- {
- typedef typename option_traits_:: template next_option_list<
- P
- >::type option_list_;
- typedef arg_list_generator<option_list_> type;
- };
-
- template<typename O>
- typename option_result<O>::type
- operator%(O const& option)const
- {
- typedef typename option_result<O>::type result_;
- return result_( this->option_list_cont()( option ) );
- }
-
- template<std::size_t N, typename U = na_> // size?
- struct result{
- typedef aux::arg_list<OptionList, N, U> type;
- };
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-
- protected:
- template<typename T, typename...Args>
- typename result<sizeof...(Args) + 1, T>::type
- impl(T& t, Args&...args)const
- {
- typedef typename result<sizeof...(Args)+1, T>::type result_;
- namespace ns = ref::assign_copy;
- return result_(
- this->option_list_cont(),
- ref::csv_array( t, args... )
- );
- }
-
- public:
-
- template<typename T, typename...Args>
- typename boost::lazy_disable_if<
- v2::type_traits::or_const<T, Args...>,
- result<sizeof...(Args)+1, T>
- >::type
- operator()(T& t, Args&...args)const
- {
- return this->impl(t, args...);
- }
-
- template<typename T, typename...Args>
- typename result<sizeof...(Args)+1, T const>::type
- operator()(T const& t, Args const&...args)const
- {
- return this->impl(t, args...);
- }
-
-#else
-
- typename result<0>::type
- operator()()const
- {
- typedef typename result<0>::type result_;
- return result_(
- *this,
- ref::csv_array<na_>( _nil )
- );
- }
-
-#define BOOST_ASSIGN_V2_MACRO1(N, U)\
- return result_( \
- this->option_list_cont(), \
- ref::csv_array<U>( BOOST_PP_ENUM_PARAMS(N, _) ) \
- );\
-/**/
-#define BOOST_ASSIGN_V2_MACRO2(z, N, data)\
- template<typename T>\
- typename result<N, T>::type\
- operator()( BOOST_PP_ENUM_PARAMS(N, T &_) )const \
- { \
- typedef typename result<N, T>::type result_;\
- BOOST_ASSIGN_V2_MACRO1( N, T )\
- } \
- template<typename T>\
- typename result<N, T const>::type\
- operator()( BOOST_PP_ENUM_PARAMS(N, T const &_) )const \
- { \
- typedef typename result<N, T const>::type result_;\
- BOOST_ASSIGN_V2_MACRO1( N, T const )\
- } \
-/**/
-
-BOOST_PP_REPEAT_FROM_TO(
- 1,
- BOOST_PP_INC(BOOST_ASSIGN_V2_LIMIT_CSV_ARITY),
- BOOST_ASSIGN_V2_MACRO2,
- ~
-)
-#undef BOOST_ASSIGN_V2_MACRO1
-#undef BOOST_ASSIGN_V2_MACRO2
-
-#endif // BOOST_ASSIGN_V2_ENABLE_CPP0X
-
- option_list_cont_type const& option_list_cont()const
- {
- return this->option_list_cont_;
- }
-
- protected:
- option_list_cont_type option_list_cont_;
-
- }/*->*/;
-
- template<typename C,
- typename ParList, arg_list_size_type N, typename U>
- C& operator|(C& cont, aux::arg_list<
- ParList, N, U
- > const& arg_list
- )/*<-*/
- {
-
- v2::ref::as_arg_list(
- v2::ref::as_modulo_list<ParList>(
- put( cont ),
- arg_list.option_list_cont()
- ),
- arg_list.arg_list_cont()
- );
- return cont;
-
- }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
-
-}// aux
-//<-
-namespace{
-//->
-
- aux::arg_list_generator<> const _csv_put/*<-*/
- = aux::arg_list_generator<>()/*->*/;
-
-//<-
-}
-//->
-//]
-}// v2
-}// assign
-}// boost
-
-#endif // BOOST_ASSIGN_V2_PIPE_PUT_CSV_PUT_HPP_ER_2010
-

Deleted: sandbox/assign_v2/boost/assign/v2/pipe/put/option_traits.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/pipe/put/option_traits.hpp 2011-03-22 21:56:25 EDT (Tue, 22 Mar 2011)
+++ (empty file)
@@ -1,49 +0,0 @@
-PIPE_PUT//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef BOOST_ASSIGN_V2_PIPE_PUT_OPTION_TRAITS_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PIPE_PUT_OPTION_TRAITS_ER_2010_HPP
-#include <boost/assign/v2/ref/aux_/list/as_modulo_list.hpp>
-#include <boost/assign/v2/ref/aux_/list/list.hpp>
-#include <boost/mpl/apply.hpp>
-#include <boost/mpl/push_back.hpp>
-#include <boost/mpl/size.hpp>
-#include <boost/mpl/vector/vector0.hpp>
-
-namespace boost{
- struct use_default;
-namespace assign{
-namespace v2{
-namespace aux{
-
- typedef ::boost::mpl::vector0<> empty_option_list_;
-
- typedef ref::list_aux::size_type option_size_type;
-
- template<typename OptionList>
- struct option_traits
- {
- typedef ref::nth_result_of::list<use_default> meta_;
- typedef typename ::boost::mpl::apply1<meta_, OptionList>::type cont_;
- typedef typename ::boost::mpl::size<OptionList>::type size;
-
- template<typename O>
- struct next_option_list : ::boost::mpl::push_back<
- OptionList,
- O const&
- >{};
-
- };
-
-}// aux
-}// v2
-}// assign
-}// boost
-
-#endif // BOOST_ASSIGN_V2_PIPE_PUT_OPTION_TRAITS_ER_2010_HPP


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk