|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66846 - in sandbox/statistics/support/boost/assign/v2: . put/generic
From: erwann.rogard_at_[hidden]
Date: 2010-11-29 13:40:13
Author: e_r
Date: 2010-11-29 13:40:12 EST (Mon, 29 Nov 2010)
New Revision: 66846
URL: http://svn.boost.org/trac/boost/changeset/66846
Log:
small reorganization to boost/assign/v2
Added:
sandbox/statistics/support/boost/assign/v2/put/generic/concept_modifier.hpp (contents, props changed)
sandbox/statistics/support/boost/assign/v2/put/generic/concept_sub.hpp (contents, props changed)
sandbox/statistics/support/boost/assign/v2/put/generic/parameter.hpp (contents, props changed)
Text files modified:
sandbox/statistics/support/boost/assign/v2/put.hpp | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
Modified: sandbox/statistics/support/boost/assign/v2/put.hpp
==============================================================================
--- sandbox/statistics/support/boost/assign/v2/put.hpp (original)
+++ sandbox/statistics/support/boost/assign/v2/put.hpp 2010-11-29 13:40:12 EST (Mon, 29 Nov 2010)
@@ -10,7 +10,6 @@
#ifndef BOOST_ASSIGN_V2_PUT_ER_2010_HPP
#define BOOST_ASSIGN_V2_PUT_ER_2010_HPP
-//#include <boost/assign/v2/put/concept.hpp>
#include <boost/assign/v2/put/compose.hpp>
#include <boost/assign/v2/put/generic.hpp>
#include <boost/assign/v2/put/modifier.hpp>
Added: sandbox/statistics/support/boost/assign/v2/put/generic/concept_modifier.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/put/generic/concept_modifier.hpp 2010-11-29 13:40:12 EST (Mon, 29 Nov 2010)
@@ -0,0 +1,43 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_PUT_CONCEPT_MODIFIER_ER_2010_HPP
+#define BOOST_ASSIGN_V2_PUT_CONCEPT_MODIFIER_ER_2010_HPP
+#include <boost/concept_check.hpp>
+#include <boost/assign/v2/detail/type_traits/container/value.hpp>
+#include <boost/assign/v2/put/modifier/def.hpp>
+
+namespace boost{
+namespace assign{
+namespace v2{
+namespace put_concept{
+
+ // M models ModifierImpl with respect to container V and reference
+ // (or pointer) type R
+ template<typename M, typename V, typename R>
+ struct ModifierImpl
+ {
+
+ BOOST_CONCEPT_USAGE(ModifierImpl)
+ {
+ m.impl( v, t );
+ }
+
+ private:
+ static M& m;
+ static V& v;
+ static R t;
+ };
+
+}// put_concept
+}// v2
+}// assign
+}// boost
+
+#endif
Added: sandbox/statistics/support/boost/assign/v2/put/generic/concept_sub.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/put/generic/concept_sub.hpp 2010-11-29 13:40:12 EST (Mon, 29 Nov 2010)
@@ -0,0 +1,94 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_PUT_GENERIC_CONCEPT_SUB_ER_2010_HPP
+#define BOOST_ASSIGN_V2_PUT_GENERIC_CONCEPT_SUB_ER_2010_HPP
+#include <boost/concept_check.hpp>
+#include <boost/assign/v2/put/modifier/def.hpp>
+
+namespace boost{
+namespace assign{
+namespace v2{
+namespace put_concept{
+namespace sub{
+
+ // X models Pre1 wrt to V
+ template<typename V, typename X>
+ struct Pre1{
+
+ BOOST_CONCEPT_USAGE(Pre1)
+ {
+ X x( v );
+ V& ref = x.unwrap();
+ }
+
+ private:
+ static V& v;
+
+ };
+
+ template<typename V, typename F,typename X>
+ struct Pre2 : Pre1<V, X>{
+
+ BOOST_CONCEPT_USAGE(Pre2)
+ {
+ X x( v, f );
+ }
+
+ private:
+ static V& v;
+ static F const &f;
+
+ };
+
+ template<typename V, typename F, typename Tag,typename X>
+ struct Pre3 : Pre2<V, F, X>{
+
+ typedef put_aux::modifier<Tag> modifier_;
+
+ BOOST_CONCEPT_USAGE(Pre3)
+ {
+ X x( v, f, m );
+ }
+
+ private:
+ static V& v;
+ static F const &f;
+ static modifier_ m;
+
+ };
+
+ template<typename V, typename F, typename Tag,typename X>
+ class Post : Pre3<V, F, Tag, X>
+ {
+
+ typedef Pre3<V, F, Tag, X> super_t;
+ typedef typename super_t::modifier_ modifier_;
+
+ BOOST_CONCEPT_USAGE(Post)
+ {
+ F const& f = x.fun;
+ modifier_ const& m = x.modifier;
+ }
+
+ private:
+ static X const& x;
+ static V& v;
+ static F const &f;
+ static modifier_ m;
+
+ };
+
+}// sub
+}// put_concept
+}// v2
+}// assign
+}// boost
+
+#endif
Added: sandbox/statistics/support/boost/assign/v2/put/generic/parameter.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/put/generic/parameter.hpp 2010-11-29 13:40:12 EST (Mon, 29 Nov 2010)
@@ -0,0 +1,30 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_PUT_GENERIC_PARAMETER_ER_2010_HPP
+#define BOOST_ASSIGN_V2_PUT_GENERIC_PARAMETER_ER_2010_HPP
+
+namespace boost{
+namespace assign{
+namespace v2{
+namespace put_parameter{
+
+ template<typename F,typename Tag>
+ struct helper{
+ typedef F fun_type;
+ typedef Tag modifier_tag;
+ typedef helper<F, Tag> type;
+ };
+
+}// put_parameter
+}// v2
+}// assign
+}// boost
+
+#endif
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