Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 1 | |
| 2 | // (C) Copyright Tobias Schwinger |
| 3 | // |
| 4 | // Use modification and distribution are subject to the boost Software License, |
| 5 | // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt). |
| 6 | |
| 7 | //------------------------------------------------------------------------------ |
| 8 | |
| 9 | // no include guards, this file is intended for multiple inclusions |
| 10 | |
| 11 | #ifdef __WAVE__ |
| 12 | // this file has been generated from the master.hpp file in the same directory |
| 13 | # pragma wave option(preserve: 0) |
| 14 | #endif |
| 15 | |
| 16 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 17 | #if !NDNBOOST_PP_IS_ITERATING |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 18 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 19 | # ifndef NDNBOOST_FT_DETAIL_CC_LOOP_MASTER_HPP_INCLUDED |
| 20 | # define NDNBOOST_FT_DETAIL_CC_LOOP_MASTER_HPP_INCLUDED |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 21 | # include <ndnboost/function_types/config/cc_names.hpp> |
| 22 | |
| 23 | # include <ndnboost/preprocessor/cat.hpp> |
| 24 | # include <ndnboost/preprocessor/seq/size.hpp> |
| 25 | # include <ndnboost/preprocessor/seq/elem.hpp> |
| 26 | # include <ndnboost/preprocessor/tuple/elem.hpp> |
| 27 | # include <ndnboost/preprocessor/iteration/iterate.hpp> |
| 28 | # include <ndnboost/preprocessor/facilities/expand.hpp> |
| 29 | # include <ndnboost/preprocessor/arithmetic/inc.hpp> |
| 30 | # endif |
| 31 | |
| 32 | # include <ndnboost/function_types/detail/encoding/def.hpp> |
| 33 | # include <ndnboost/function_types/detail/encoding/aliases_def.hpp> |
| 34 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 35 | # define NDNBOOST_PP_FILENAME_1 \ |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 36 | <ndnboost/function_types/detail/pp_cc_loop/master.hpp> |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 37 | # define NDNBOOST_PP_ITERATION_LIMITS \ |
| 38 | (0,NDNBOOST_PP_SEQ_SIZE(NDNBOOST_FT_CC_NAMES_SEQ)-1) |
| 39 | # include NDNBOOST_PP_ITERATE() |
| 40 | # if !defined(NDNBOOST_FT_config_valid) && NDNBOOST_FT_CC_PREPROCESSING |
| 41 | # define NDNBOOST_FT_cc_id 1 |
| 42 | # define NDNBOOST_FT_cc_name implicit_cc |
| 43 | # define NDNBOOST_FT_cc NDNBOOST_PP_EMPTY |
| 44 | # define NDNBOOST_FT_cond callable_builtin |
| 45 | # include NDNBOOST_FT_cc_file |
| 46 | # undef NDNBOOST_FT_cond |
| 47 | # undef NDNBOOST_FT_cc_name |
| 48 | # undef NDNBOOST_FT_cc |
| 49 | # undef NDNBOOST_FT_cc_id |
| 50 | # elif !defined(NDNBOOST_FT_config_valid) // and generating preprocessed file |
| 51 | NDNBOOST_PP_EXPAND(#) ifndef NDNBOOST_FT_config_valid |
| 52 | NDNBOOST_PP_EXPAND(#) define NDNBOOST_FT_cc_id 1 |
| 53 | NDNBOOST_PP_EXPAND(#) define NDNBOOST_FT_cc_name implicit_cc |
| 54 | NDNBOOST_PP_EXPAND(#) define NDNBOOST_FT_cc NDNBOOST_PP_EMPTY |
| 55 | NDNBOOST_PP_EXPAND(#) define NDNBOOST_FT_cond callable_builtin |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 56 | #define _() |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 57 | NDNBOOST_PP_EXPAND(#) include NDNBOOST_FT_cc_file |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 58 | #undef _ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 59 | NDNBOOST_PP_EXPAND(#) undef NDNBOOST_FT_cond |
| 60 | NDNBOOST_PP_EXPAND(#) undef NDNBOOST_FT_cc_name |
| 61 | NDNBOOST_PP_EXPAND(#) undef NDNBOOST_FT_cc |
| 62 | NDNBOOST_PP_EXPAND(#) undef NDNBOOST_FT_cc_id |
| 63 | NDNBOOST_PP_EXPAND(#) else |
| 64 | NDNBOOST_PP_EXPAND(#) undef NDNBOOST_FT_config_valid |
| 65 | NDNBOOST_PP_EXPAND(#) endif |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 66 | |
| 67 | # else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 68 | # undef NDNBOOST_FT_config_valid |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 69 | # endif |
| 70 | |
| 71 | # include <ndnboost/function_types/detail/encoding/aliases_undef.hpp> |
| 72 | # include <ndnboost/function_types/detail/encoding/undef.hpp> |
| 73 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 74 | #elif NDNBOOST_FT_CC_PREPROCESSING |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 75 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 76 | # define NDNBOOST_FT_cc_id NDNBOOST_PP_INC(NDNBOOST_PP_FRAME_ITERATION(1)) |
| 77 | # define NDNBOOST_FT_cc_inf \ |
| 78 | NDNBOOST_PP_SEQ_ELEM(NDNBOOST_PP_FRAME_ITERATION(1),NDNBOOST_FT_CC_NAMES_SEQ) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 79 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 80 | # define NDNBOOST_FT_cc_pp_name NDNBOOST_PP_TUPLE_ELEM(3,0,NDNBOOST_FT_cc_inf) |
| 81 | # define NDNBOOST_FT_cc_name NDNBOOST_PP_TUPLE_ELEM(3,1,NDNBOOST_FT_cc_inf) |
| 82 | # define NDNBOOST_FT_cc NDNBOOST_PP_TUPLE_ELEM(3,2,NDNBOOST_FT_cc_inf) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 83 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 84 | # define NDNBOOST_FT_cond NDNBOOST_PP_CAT(NDNBOOST_FT_CC_,NDNBOOST_FT_cc_pp_name) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 85 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 86 | # if NDNBOOST_FT_cond |
| 87 | # define NDNBOOST_FT_config_valid 1 |
| 88 | # include NDNBOOST_FT_cc_file |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 89 | # endif |
| 90 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 91 | # undef NDNBOOST_FT_cond |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 92 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 93 | # undef NDNBOOST_FT_cc_pp_name |
| 94 | # undef NDNBOOST_FT_cc_name |
| 95 | # undef NDNBOOST_FT_cc |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 96 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 97 | # undef NDNBOOST_FT_cc_id |
| 98 | # undef NDNBOOST_FT_cc_inf |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 99 | |
| 100 | #else // if generating preprocessed file |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 101 | NDNBOOST_PP_EXPAND(#) define NDNBOOST_FT_cc_id NDNBOOST_PP_INC(NDNBOOST_PP_ITERATION()) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 102 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 103 | # define NDNBOOST_FT_cc_inf \ |
| 104 | NDNBOOST_PP_SEQ_ELEM(NDNBOOST_PP_ITERATION(),NDNBOOST_FT_CC_NAMES_SEQ) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 105 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 106 | # define NDNBOOST_FT_cc_pp_name NDNBOOST_PP_TUPLE_ELEM(3,0,NDNBOOST_FT_cc_inf) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 107 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 108 | # define NDNBOOST_FT_CC_DEF(name,index) \ |
| 109 | name NDNBOOST_PP_TUPLE_ELEM(3,index,NDNBOOST_FT_cc_inf) |
| 110 | NDNBOOST_PP_EXPAND(#) define NDNBOOST_FT_CC_DEF(NDNBOOST_FT_cc_name,1) |
| 111 | NDNBOOST_PP_EXPAND(#) define NDNBOOST_FT_CC_DEF(NDNBOOST_FT_cc,2) |
| 112 | # undef NDNBOOST_FT_CC_DEF |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 113 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 114 | # define NDNBOOST_FT_cc_cond_v NDNBOOST_PP_CAT(NDNBOOST_FT_CC_,NDNBOOST_FT_cc_pp_name) |
| 115 | NDNBOOST_PP_EXPAND(#) define NDNBOOST_FT_cond NDNBOOST_FT_cc_cond_v |
| 116 | # undef NDNBOOST_FT_cc_cond_v |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 117 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 118 | # undef NDNBOOST_FT_cc_pp_name |
| 119 | # undef NDNBOOST_FT_cc_inf |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 120 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 121 | NDNBOOST_PP_EXPAND(#) if NDNBOOST_FT_cond |
| 122 | NDNBOOST_PP_EXPAND(#) define NDNBOOST_FT_config_valid 1 |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 123 | #define _() |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 124 | NDNBOOST_PP_EXPAND(#) include NDNBOOST_FT_cc_file |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 125 | #undef _ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 126 | NDNBOOST_PP_EXPAND(#) endif |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 127 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 128 | NDNBOOST_PP_EXPAND(#) undef NDNBOOST_FT_cond |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 129 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 130 | NDNBOOST_PP_EXPAND(#) undef NDNBOOST_FT_cc_name |
| 131 | NDNBOOST_PP_EXPAND(#) undef NDNBOOST_FT_cc |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 132 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 133 | NDNBOOST_PP_EXPAND(#) undef NDNBOOST_FT_cc_id |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 134 | |
| 135 | #endif |
| 136 | |