Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70590 - in sandbox/assign_v2/boost/assign/v2/option: . modifier
From: erwann.rogard_at_[hidden]
Date: 2011-03-26 16:21:12


Author: e_r
Date: 2011-03-26 16:21:11 EDT (Sat, 26 Mar 2011)
New Revision: 70590
URL: http://svn.boost.org/trac/boost/changeset/70590

Log:
upd assign_v2
Added:
   sandbox/assign_v2/boost/assign/v2/option/modifier/iterate.hpp
      - copied unchanged from r70589, /sandbox/assign_v2/boost/assign/v2/option/iterate.hpp
   sandbox/assign_v2/boost/assign/v2/option/modifier/mapped.hpp
      - copied unchanged from r70589, /sandbox/assign_v2/boost/assign/v2/option/mapped.hpp
   sandbox/assign_v2/boost/assign/v2/option/modifier/repeat.hpp
      - copied unchanged from r70589, /sandbox/assign_v2/boost/assign/v2/option/repeat.hpp
Removed:
   sandbox/assign_v2/boost/assign/v2/option/iterate.hpp
   sandbox/assign_v2/boost/assign/v2/option/mapped.hpp
   sandbox/assign_v2/boost/assign/v2/option/repeat.hpp

Deleted: sandbox/assign_v2/boost/assign/v2/option/iterate.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/option/iterate.hpp 2011-03-26 16:21:11 EDT (Sat, 26 Mar 2011)
+++ (empty file)
@@ -1,112 +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_OPTION_ITERATE_ER_2010_HPP
-#define BOOST_ASSIGN_V2_OPTION_ITERATE_ER_2010_HPP
-#include <cstddef>
-#include <boost/assign/v2/detail/keyword/ignore.hpp>
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#include <boost/assign/v2/detail/pp/ignore.hpp>
-#include <boost/assign/v2/interpreter/fwd.hpp>
-#include <boost/assign/v2/option/modifier.hpp>
-#include <boost/call_traits.hpp>
-#include <boost/shared_ptr.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-#include <boost/type_traits/is_reference.hpp>
-#include <boost/utility/enable_if.hpp>
-#endif
-
-namespace boost{
-namespace assign{
-namespace v2{
-//[syntax_option_iterate
-namespace modifier_tag{
-
- struct iterate_arg
- {
-
- typedef std::size_t result_type;
-
- iterate_arg():i( 0 ){}
- iterate_arg( result_type i_ ):i( i_ ){}
-
- result_type operator()()const{ return this->i++; }
-
- typedef iterate_arg type;
-
- private:
- mutable result_type i;
-
- };
-
- template<typename Arg/*<-*/= iterate_arg::type/*->*/> struct iterate{};
-
-}// modifier_tag
-namespace interpreter_aux{
-
- template<typename Arg>
- class interpreter_modifier< modifier_tag::iterate<Arg> >/*<-*/
- {
-
- typedef keyword_aux::ignore ignore_;
- typedef Arg arg_;
- // storing a copy of lambda::something has caused pbs, hence ptr
- typedef boost::shared_ptr<arg_> ptr_;
-
- public:
-
- interpreter_modifier(): ptr( new arg_() ){}
- explicit interpreter_modifier(
- ignore_,
- typename boost::call_traits<arg_>::param_type arg
- ) : ptr( new arg_( arg ) )
- {}
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-
- template<typename C, typename T>
- typename boost::disable_if<
- boost::is_reference<T>,
- void
- >::type
- impl(C& cont, T&& t )const
- {
- cont.at( (*this->ptr)() ) = std::move( t );
- }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
-
-#endif
-
- template<typename C, typename T>
- void impl(C& cont, T& t )const
- {
- cont.at( (*this->ptr)() ) = t;
- }
-
- template<typename C, typename T>
- void impl(C& cont, T* t)const
- {
- cont.replace( (*this->ptr)(), t);
- }
-
- protected:
- ptr_ ptr;
-
- }/*->*/;
-
-}// interpreter_aux
-BOOST_ASSIGN_V2_OPTION_MODIFIER_KEYWORD(iterate)
-BOOST_ASSIGN_V2_OPTION_MODIFIER_META_MODIFIER_TAG(iterate, modifier_tag::iterate<Arg>)
-//]
-}// v2
-}// assign
-}// boost
-
-
-#endif // BOOST_ASSIGN_V2_OPTION_ITERATE_ER_2010_HPP

Deleted: sandbox/assign_v2/boost/assign/v2/option/mapped.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/option/mapped.hpp 2011-03-26 16:21:11 EDT (Sat, 26 Mar 2011)
+++ (empty file)
@@ -1,80 +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_OPTION_MAPPED_ER_2010_HPP
-#define BOOST_ASSIGN_V2_OPTION_MAPPED_ER_2010_HPP
-#include <boost/assign/v2/detail/keyword/ignore.hpp>
-#include <boost/assign/v2/detail/pp/ignore.hpp>
-#include <boost/assign/v2/interpreter/fwd.hpp>
-#include <boost/assign/v2/option/modifier.hpp>
-#include <boost/call_traits.hpp>
-#include <boost/shared_ptr.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-//[syntax_option_mapped
-namespace modifier_tag{
-
- template<
- typename Arg // Mapping applied to mapped
- >
- struct mapped;
-
-}// modifier_tag
-namespace interpreter_aux{
-
- template<typename Arg>
- class interpreter_modifier<modifier_tag::mapped<Arg> >/*<-*/
- {
-
- typedef Arg arg_;
- // storing a copy of lambda::something has caused pbs, hence ptr
- typedef boost::shared_ptr<arg_> ptr_;
- typedef keyword_aux::ignore ignore_;
-
- public:
-
- interpreter_modifier() : ptr( new arg_() ){}
- explicit interpreter_modifier(
- ignore_,
- typename boost::call_traits<arg_>::param_type arg
- ) : ptr( new arg_( arg ) )
- {}
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- template<typename C, typename T>
- void impl(C& cont, T&& key )const
- {
- cont[ key ] = (*this->ptr)( cont[ std::forward<T>( key ) ] );
- }
-
-#else
-
- template<typename C, typename T>
- void impl(C& cont, T& key )const{
- cont[ key ] = (*this->ptr)( cont[ key ] );
- }
-
-#endif
-
- private:
- ptr_ ptr;
- }/*->*/;
-
-}// interpreter_aux
-BOOST_ASSIGN_V2_OPTION_MODIFIER_KEYWORD(mapped)
-BOOST_ASSIGN_V2_OPTION_MODIFIER_META_MODIFIER_TAG(mapped, modifier_tag::mapped<Arg>)
-//]
-}// v2
-}// assign
-}// boost
-
-
-#endif // BOOST_ASSIGN_V2_OPTION_MAPPED_ER_2010_HPP

Deleted: sandbox/assign_v2/boost/assign/v2/option/repeat.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/option/repeat.hpp 2011-03-26 16:21:11 EDT (Sat, 26 Mar 2011)
+++ (empty file)
@@ -1,91 +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_OPTION_REPEAT_ER_2010_HPP
-#define BOOST_ASSIGN_V2_OPTION_REPEAT_ER_2010_HPP
-#include <cstddef>
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#include <boost/assign/v2/detail/pp/ignore.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-#include <boost/utility/enable_if.hpp>
-#include <boost/type_traits/is_reference.hpp>
-#endif
-#include <boost/assign/v2/interpreter/fwd.hpp>
-#include <boost/assign/v2/option/modifier.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-//[syntax_option_repeat
-namespace modifier_tag{
-
- template<typename Tag> struct repeat/*<-*/{}/*->*/;
-
-}// modifier_tag
-namespace interpreter_aux{
-
- template<typename Arg>
- class interpreter_modifier<modifier_tag::repeat<Arg> >/*<-*/
- {
- typedef interpreter_modifier<Arg> inner_type;
-
- public:
-
- typedef std::size_t size_type;
-
- interpreter_modifier() : n_( 0 ){}
- explicit interpreter_modifier( inner_type inner, size_type n )
- : inner_( inner ), n_( n )
- {}
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- template<typename C, typename T>
- typename boost::disable_if<
- boost::is_reference<T>,
- void
- >::type
- impl(C& cont, T&& t )const
- {
- size_type m = this->size();\
- while(m--) this->inner_.impl( cont, std::forward<T>( t ) );
- }
-
-#endif
-
- template<typename C, typename T>
- void impl(C& cont, T& t )const
- {
- size_type m = this->size();
- while(m--) this->inner_.impl( cont, t );
- }
-
- template<typename C, typename T>
- void impl(C& cont, T* t)const
- {
- size_type m = this->size();
- while(m--) this->inner_.impl( cont, t );
- }
-
- size_type const& size()const{ return this->n_; }
-
- protected:
- inner_type inner_;
- size_type n_;
- }/*->*/;
-
-}// interpreter_aux
-BOOST_ASSIGN_V2_OPTION_MODIFIER_KEYWORD(repeat)
-BOOST_ASSIGN_V2_OPTION_MODIFIER_META_MODIFIER_TAG(repeat, modifier_tag::repeat<typename D::modifier_tag>)
-//]
-}// v2
-}// assign
-}// boost
-
-#endif // BOOST_ASSIGN_V2_OPTION_REPEAT_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