Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74412 - in trunk/boost/fusion/container: list list/detail vector/detail vector/detail/preprocessed
From: joel_at_[hidden]
Date: 2011-09-16 02:44:59


Author: djowel
Date: 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
New Revision: 74412
URL: http://svn.boost.org/trac/boost/changeset/74412

Log:
Added preprocessed files to speed compilation
Text files modified:
   trunk/boost/fusion/container/list/detail/list_to_cons.hpp | 34 ++++++++++++++++++++++++++++++----
   trunk/boost/fusion/container/list/limits.hpp | 4 +++-
   trunk/boost/fusion/container/list/list.hpp | 32 +++++++++++++++++++++++++++++---
   trunk/boost/fusion/container/list/list_fwd.hpp | 29 ++++++++++++++++++++++++++++-
   trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser10.hpp | 10 ++++++++++
   trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser20.hpp | 10 ++++++++++
   trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser30.hpp | 10 ++++++++++
   trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser40.hpp | 10 ++++++++++
   trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser50.hpp | 10 ++++++++++
   trunk/boost/fusion/container/vector/detail/vector_n_chooser.hpp | 24 ++++++++++++------------
   10 files changed, 152 insertions(+), 21 deletions(-)

Modified: trunk/boost/fusion/container/list/detail/list_to_cons.hpp
==============================================================================
--- trunk/boost/fusion/container/list/detail/list_to_cons.hpp (original)
+++ trunk/boost/fusion/container/list/detail/list_to_cons.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -1,7 +1,7 @@
 /*=============================================================================
     Copyright (c) 2001-2011 Joel de Guzman
 
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under 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)
 ==============================================================================*/
 #if !defined(FUSION_LIST_TO_CONS_07172005_1041)
@@ -22,6 +22,26 @@
     struct void_;
 }}
 
+#if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
+#include <boost/fusion/container/list/detail/preprocessed/list_to_cons.hpp>
+#else
+#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
+#pragma wave option(preserve: 2, line: 0, output: "preprocessed/list_to_cons" FUSION_MAX_LIST_SIZE_STR ".hpp")
+#endif
+
+/*=============================================================================
+ Copyright (c) 2001-2011 Joel de Guzman
+
+ Distributed under 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)
+
+ This is an auto-generated file. Do not edit!
+==============================================================================*/
+
+#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
+#pragma wave option(preserve: 1)
+#endif
+
 namespace boost { namespace fusion { namespace detail
 {
     template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, typename T)>
@@ -32,9 +52,9 @@
             BOOST_PP_ENUM_SHIFTED_PARAMS(FUSION_MAX_LIST_SIZE, T), void_>
         tail_list_to_cons;
         typedef typename tail_list_to_cons::type tail_type;
-
+
         typedef cons<head_type, tail_type> type;
-
+
         #include <boost/fusion/container/list/detail/list_to_cons_call.hpp>
     };
 
@@ -42,8 +62,14 @@
     struct list_to_cons<BOOST_PP_ENUM(FUSION_MAX_LIST_SIZE, FUSION_VOID, _)>
     {
         typedef nil type;
- };
+ };
 }}}
 
+#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
+#pragma wave option(output: null)
+#endif
+
+#endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
+
 #undef FUSION_VOID
 #endif

Modified: trunk/boost/fusion/container/list/limits.hpp
==============================================================================
--- trunk/boost/fusion/container/list/limits.hpp (original)
+++ trunk/boost/fusion/container/list/limits.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -1,7 +1,7 @@
 /*=============================================================================
     Copyright (c) 2001-2011 Joel de Guzman
 
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under 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)
 ==============================================================================*/
 #if !defined(FUSION_LIST_LIMITS_07172005_0112)
@@ -16,4 +16,6 @@
 # endif
 #endif
 
+#define FUSION_MAX_LIST_SIZE_STR BOOST_PP_STRINGIZE(BOOST_PHOENIX_PP_ROUND_UP(FUSION_MAX_LIST_SIZE))
+
 #endif

Modified: trunk/boost/fusion/container/list/list.hpp
==============================================================================
--- trunk/boost/fusion/container/list/list.hpp (original)
+++ trunk/boost/fusion/container/list/list.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -1,7 +1,7 @@
 /*=============================================================================
     Copyright (c) 2001-2011 Joel de Guzman
 
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under 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)
 ==============================================================================*/
 #if !defined(FUSION_LIST_07172005_1153)
@@ -10,17 +10,37 @@
 #include <boost/fusion/container/list/list_fwd.hpp>
 #include <boost/fusion/container/list/detail/list_to_cons.hpp>
 
+#if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
+#include <boost/fusion/container/list/detail/preprocessed/list.hpp>
+#else
+#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
+#pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/list" FUSION_MAX_LIST_SIZE_STR ".hpp")
+#endif
+
+/*=============================================================================
+ Copyright (c) 2001-2011 Joel de Guzman
+
+ Distributed under 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)
+
+ This is an auto-generated file. Do not edit!
+==============================================================================*/
+
+#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
+#pragma wave option(preserve: 1)
+#endif
+
 namespace boost { namespace fusion
 {
     struct nil;
     struct void_;
 
     template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, typename T)>
- struct list
+ struct list
         : detail::list_to_cons<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, T)>::type
     {
     private:
- typedef
+ typedef
             detail::list_to_cons<BOOST_PP_ENUM_PARAMS(FUSION_MAX_LIST_SIZE, T)>
         list_to_cons;
 
@@ -65,4 +85,10 @@
     };
 }}
 
+#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
+#pragma wave option(output: null)
+#endif
+
+#endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
+
 #endif

Modified: trunk/boost/fusion/container/list/list_fwd.hpp
==============================================================================
--- trunk/boost/fusion/container/list/list_fwd.hpp (original)
+++ trunk/boost/fusion/container/list/list_fwd.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -1,7 +1,7 @@
 /*=============================================================================
     Copyright (c) 2001-2011 Joel de Guzman
 
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ Distributed under 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)
 ==============================================================================*/
 #if !defined(FUSION_LIST_FORWARD_07172005_0224)
@@ -14,11 +14,38 @@
 {
     struct void_;
 
+#if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
+#include <boost/fusion/container/list/detail/preprocessed/list_fwd.hpp>
+#else
+#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
+#pragma wave option(preserve: 2, line: 0, output: "detail/preprocessed/list" FUSION_MAX_LIST_SIZE_STR "_fwd.hpp")
+#endif
+
+/*=============================================================================
+ Copyright (c) 2001-2011 Joel de Guzman
+
+ Distributed under 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)
+
+ This is an auto-generated file. Do not edit!
+==============================================================================*/
+
+#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
+#pragma wave option(preserve: 1)
+#endif
+
     template <
         BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
             FUSION_MAX_LIST_SIZE, typename T, void_)
>
     struct list;
+
+#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
+#pragma wave option(output: null)
+#endif
+
+#endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
+
 }}
 
 #endif

Modified: trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser10.hpp
==============================================================================
--- trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser10.hpp (original)
+++ trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser10.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -6,6 +6,16 @@
 
     This is an auto-generated file. Do not edit!
 ==============================================================================*/
+ template <typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9>
+ struct vector_n_chooser
+ {
+ typedef vector10<T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9> type;
+ };
+ template <>
+ struct vector_n_chooser<void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_>
+ {
+ typedef vector0<> type;
+ };
     template <typename T0>
     struct vector_n_chooser<
         T0

Modified: trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser20.hpp
==============================================================================
--- trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser20.hpp (original)
+++ trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser20.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -6,6 +6,16 @@
 
     This is an auto-generated file. Do not edit!
 ==============================================================================*/
+ template <typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 , typename T18 , typename T19>
+ struct vector_n_chooser
+ {
+ typedef vector20<T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19> type;
+ };
+ template <>
+ struct vector_n_chooser<void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_>
+ {
+ typedef vector0<> type;
+ };
     template <typename T0>
     struct vector_n_chooser<
         T0

Modified: trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser30.hpp
==============================================================================
--- trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser30.hpp (original)
+++ trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser30.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -6,6 +6,16 @@
 
     This is an auto-generated file. Do not edit!
 ==============================================================================*/
+ template <typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 , typename T18 , typename T19 , typename T20 , typename T21 , typename T22 , typename T23 , typename T24 , typename T25 , typename T26 , typename T27 , typename T28 , typename T29>
+ struct vector_n_chooser
+ {
+ typedef vector30<T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 , T23 , T24 , T25 , T26 , T27 , T28 , T29> type;
+ };
+ template <>
+ struct vector_n_chooser<void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_>
+ {
+ typedef vector0<> type;
+ };
     template <typename T0>
     struct vector_n_chooser<
         T0

Modified: trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser40.hpp
==============================================================================
--- trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser40.hpp (original)
+++ trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser40.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -6,6 +6,16 @@
 
     This is an auto-generated file. Do not edit!
 ==============================================================================*/
+ template <typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 , typename T18 , typename T19 , typename T20 , typename T21 , typename T22 , typename T23 , typename T24 , typename T25 , typename T26 , typename T27 , typename T28 , typename T29 , typename T30 , typename T31 , typename T32 , typename T33 , typename T34 , typename T35 , typename T36 , typename T37 , typename T38 , typename T39>
+ struct vector_n_chooser
+ {
+ typedef vector40<T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 , T23 , T24 , T25 , T26 , T27 , T28 , T29 , T30 , T31 , T32 , T33 , T34 , T35 , T36 , T37 , T38 , T39> type;
+ };
+ template <>
+ struct vector_n_chooser<void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_>
+ {
+ typedef vector0<> type;
+ };
     template <typename T0>
     struct vector_n_chooser<
         T0

Modified: trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser50.hpp
==============================================================================
--- trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser50.hpp (original)
+++ trunk/boost/fusion/container/vector/detail/preprocessed/vector_chooser50.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -6,6 +6,16 @@
 
     This is an auto-generated file. Do not edit!
 ==============================================================================*/
+ template <typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 , typename T10 , typename T11 , typename T12 , typename T13 , typename T14 , typename T15 , typename T16 , typename T17 , typename T18 , typename T19 , typename T20 , typename T21 , typename T22 , typename T23 , typename T24 , typename T25 , typename T26 , typename T27 , typename T28 , typename T29 , typename T30 , typename T31 , typename T32 , typename T33 , typename T34 , typename T35 , typename T36 , typename T37 , typename T38 , typename T39 , typename T40 , typename T41 , typename T42 , typename T43 , typename T44 , typename T45 , typename T46 , typename T47 , typename T48 , typename T49>
+ struct vector_n_chooser
+ {
+ typedef vector50<T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 , T10 , T11 , T12 , T13 , T14 , T15 , T16 , T17 , T18 , T19 , T20 , T21 , T22 , T23 , T24 , T25 , T26 , T27 , T28 , T29 , T30 , T31 , T32 , T33 , T34 , T35 , T36 , T37 , T38 , T39 , T40 , T41 , T42 , T43 , T44 , T45 , T46 , T47 , T48 , T49> type;
+ };
+ template <>
+ struct vector_n_chooser<void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_ , void_>
+ {
+ typedef vector0<> type;
+ };
     template <typename T0>
     struct vector_n_chooser<
         T0

Modified: trunk/boost/fusion/container/vector/detail/vector_n_chooser.hpp
==============================================================================
--- trunk/boost/fusion/container/vector/detail/vector_n_chooser.hpp (original)
+++ trunk/boost/fusion/container/vector/detail/vector_n_chooser.hpp 2011-09-16 02:44:55 EDT (Fri, 16 Sep 2011)
@@ -39,18 +39,6 @@
 
 namespace boost { namespace fusion { namespace detail
 {
- template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, typename T)>
- struct vector_n_chooser
- {
- typedef BOOST_PP_CAT(vector, FUSION_MAX_VECTOR_SIZE)<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)> type;
- };
-
- template <>
- struct vector_n_chooser<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, void_ BOOST_PP_INTERCEPT)>
- {
- typedef vector0<> type;
- };
-
 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
 #include <boost/fusion/container/vector/detail/preprocessed/vector_chooser.hpp>
 #else
@@ -71,6 +59,18 @@
 #pragma wave option(preserve: 1)
 #endif
 
+ template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, typename T)>
+ struct vector_n_chooser
+ {
+ typedef BOOST_PP_CAT(vector, FUSION_MAX_VECTOR_SIZE)<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, T)> type;
+ };
+
+ template <>
+ struct vector_n_chooser<BOOST_PP_ENUM_PARAMS(FUSION_MAX_VECTOR_SIZE, void_ BOOST_PP_INTERCEPT)>
+ {
+ typedef vector0<> type;
+ };
+
 #define BOOST_PP_FILENAME_1 \
     <boost/fusion/container/vector/detail/vector_n_chooser.hpp>
 #define BOOST_PP_ITERATION_LIMITS (1, BOOST_PP_DEC(FUSION_MAX_VECTOR_SIZE))


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