passenger 4.0.60 → 5.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- checksums.yaml +8 -8
- checksums.yaml.gz.asc +7 -7
- data.tar.gz.asc +7 -7
- data/.editorconfig +5 -0
- data/.travis.yml +3 -2
- data/CHANGELOG +31 -53
- data/CONTRIBUTING.md +4 -4
- data/CONTRIBUTORS +0 -1
- data/Gemfile +18 -0
- data/Gemfile.lock +41 -0
- data/Rakefile +16 -0
- data/bin/passenger +2 -2
- data/bin/passenger-install-apache2-module +12 -12
- data/bin/passenger-install-nginx-module +9 -14
- data/bin/passenger-status +125 -87
- data/build/agents.rb +112 -140
- data/build/apache2.rb +4 -9
- data/build/basics.rb +5 -3
- data/build/common_library.rb +1 -0
- data/build/cxx_tests.rb +69 -47
- data/build/debian.rb +4 -2
- data/build/documentation.rb +1 -0
- data/build/integration_tests.rb +28 -43
- data/build/misc.rb +0 -18
- data/build/nginx.rb +2 -6
- data/build/packaging.rb +33 -22
- data/build/preprocessor.rb +2 -4
- data/build/ruby_tests.rb +7 -26
- data/build/test_basics.rb +24 -25
- data/debian.template/control.template +2 -2
- data/debian.template/locations.ini.template +2 -3
- data/debian.template/passenger.install.template +2 -2
- data/debian.template/rules.template +1 -1
- data/dev/ci/run_jenkins.sh +0 -1
- data/dev/ci/run_rpm_tests.sh +3 -0
- data/dev/ci/run_travis.sh +63 -17
- data/dev/copy_boost_headers +22 -6
- data/dev/ruby_server.rb +244 -0
- data/dev/vagrant/provision.sh +3 -1
- data/doc/DebuggingAndStressTesting.md +3 -3
- data/doc/Design and Architecture.txt +5 -6
- data/doc/Packaging.txt.md +35 -6
- data/doc/ServerOptimizationGuide.txt.md +339 -0
- data/doc/Users guide Apache.idmap.txt +177 -187
- data/doc/Users guide Apache.txt +143 -219
- data/doc/Users guide Nginx.idmap.txt +166 -166
- data/doc/Users guide Nginx.txt +265 -223
- data/doc/Users guide Standalone.txt +3 -3
- data/doc/templates/markdown.html.erb +37 -6
- data/doc/users_guide_snippets/environment_variables.txt +1 -1
- data/doc/users_guide_snippets/support_information.txt +1 -1
- data/doc/users_guide_snippets/tips.txt +2 -2
- data/ext/apache2/Configuration.cpp +23 -81
- data/ext/apache2/Configuration.hpp +18 -92
- data/ext/apache2/ConfigurationCommands.cpp +64 -15
- data/ext/apache2/ConfigurationCommands.cpp.erb +8 -4
- data/ext/apache2/ConfigurationFields.hpp +12 -0
- data/ext/apache2/ConfigurationSetters.cpp +73 -1
- data/ext/apache2/ConfigurationSetters.cpp.erb +3 -2
- data/ext/apache2/CreateDirConfig.cpp +6 -0
- data/ext/apache2/DirectoryMapper.h +11 -6
- data/ext/apache2/Hooks.cpp +291 -408
- data/ext/apache2/MergeDirConfig.cpp +42 -0
- data/ext/apache2/SetHeaders.cpp +61 -16
- data/ext/apache2/SetHeaders.cpp.erb +9 -7
- data/ext/boost/container/allocator_traits.hpp +400 -0
- data/ext/boost/container/deque.hpp +2012 -0
- data/ext/boost/container/detail/adaptive_node_pool_impl.hpp +874 -0
- data/ext/boost/container/detail/advanced_insert_int.hpp +369 -0
- data/ext/boost/container/detail/algorithms.hpp +84 -0
- data/ext/boost/container/detail/allocation_type.hpp +54 -0
- data/ext/boost/container/detail/allocator_version_traits.hpp +163 -0
- data/ext/boost/container/detail/config_begin.hpp +49 -0
- data/ext/boost/container/detail/config_end.hpp +17 -0
- data/ext/boost/container/detail/destroyers.hpp +365 -0
- data/ext/boost/container/detail/flat_tree.hpp +1055 -0
- data/ext/boost/container/detail/function_detector.hpp +88 -0
- data/ext/boost/container/detail/iterators.hpp +611 -0
- data/ext/boost/container/detail/math_functions.hpp +113 -0
- data/ext/boost/container/detail/memory_util.hpp +83 -0
- data/ext/boost/container/detail/mpl.hpp +160 -0
- data/ext/boost/container/detail/multiallocation_chain.hpp +286 -0
- data/ext/boost/container/detail/node_alloc_holder.hpp +386 -0
- data/ext/boost/container/detail/node_pool_impl.hpp +365 -0
- data/ext/boost/container/detail/pair.hpp +354 -0
- data/ext/boost/container/detail/pool_common.hpp +52 -0
- data/ext/boost/container/detail/preprocessor.hpp +232 -0
- data/ext/boost/container/detail/transform_iterator.hpp +176 -0
- data/ext/boost/container/detail/tree.hpp +1134 -0
- data/ext/boost/container/detail/type_traits.hpp +210 -0
- data/ext/boost/container/detail/utilities.hpp +1141 -0
- data/ext/boost/container/detail/value_init.hpp +45 -0
- data/ext/boost/container/detail/variadic_templates_tools.hpp +153 -0
- data/ext/boost/container/detail/version_type.hpp +92 -0
- data/ext/boost/container/detail/workaround.hpp +44 -0
- data/ext/boost/container/flat_map.hpp +1674 -0
- data/ext/boost/container/flat_set.hpp +1408 -0
- data/ext/boost/container/list.hpp +1475 -0
- data/ext/boost/container/map.hpp +1508 -0
- data/ext/boost/container/scoped_allocator.hpp +1503 -0
- data/ext/boost/container/scoped_allocator_fwd.hpp +83 -0
- data/ext/boost/container/set.hpp +1280 -0
- data/ext/boost/container/slist.hpp +1706 -0
- data/ext/boost/container/stable_vector.hpp +1869 -0
- data/ext/boost/container/static_vector.hpp +1053 -0
- data/ext/boost/container/string.hpp +2856 -0
- data/ext/boost/container/throw_exception.hpp +110 -0
- data/ext/boost/container/vector.hpp +2671 -0
- data/ext/boost/detail/is_xxx.hpp +61 -0
- data/ext/boost/intrusive/any_hook.hpp +344 -0
- data/ext/boost/intrusive/avl_set.hpp +2528 -0
- data/ext/boost/intrusive/avl_set_hook.hpp +297 -0
- data/ext/boost/intrusive/avltree.hpp +1786 -0
- data/ext/boost/intrusive/avltree_algorithms.hpp +968 -0
- data/ext/boost/intrusive/bs_set_hook.hpp +296 -0
- data/ext/boost/intrusive/circular_list_algorithms.hpp +413 -0
- data/ext/boost/intrusive/circular_slist_algorithms.hpp +404 -0
- data/ext/boost/intrusive/derivation_value_traits.hpp +70 -0
- data/ext/boost/intrusive/detail/any_node_and_algorithms.hpp +297 -0
- data/ext/boost/intrusive/detail/assert.hpp +41 -0
- data/ext/boost/intrusive/detail/avltree_node.hpp +197 -0
- data/ext/boost/intrusive/detail/clear_on_destructor_base.hpp +36 -0
- data/ext/boost/intrusive/detail/common_slist_algorithms.hpp +102 -0
- data/ext/boost/intrusive/detail/config_begin.hpp +52 -0
- data/ext/boost/intrusive/detail/config_end.hpp +15 -0
- data/ext/boost/intrusive/detail/ebo_functor_holder.hpp +95 -0
- data/ext/boost/intrusive/detail/function_detector.hpp +88 -0
- data/ext/boost/intrusive/detail/generic_hook.hpp +209 -0
- data/ext/boost/intrusive/detail/has_member_function_callable_with.hpp +357 -0
- data/ext/boost/intrusive/detail/hashtable_node.hpp +249 -0
- data/ext/boost/intrusive/detail/is_stateful_value_traits.hpp +77 -0
- data/ext/boost/intrusive/detail/list_node.hpp +196 -0
- data/ext/boost/intrusive/detail/memory_util.hpp +288 -0
- data/ext/boost/intrusive/detail/mpl.hpp +383 -0
- data/ext/boost/intrusive/detail/parent_from_member.hpp +97 -0
- data/ext/boost/intrusive/detail/preprocessor.hpp +52 -0
- data/ext/boost/intrusive/detail/rbtree_node.hpp +201 -0
- data/ext/boost/intrusive/detail/slist_node.hpp +166 -0
- data/ext/boost/intrusive/detail/transform_iterator.hpp +173 -0
- data/ext/boost/intrusive/detail/tree_algorithms.hpp +1742 -0
- data/ext/boost/intrusive/detail/tree_node.hpp +199 -0
- data/ext/boost/intrusive/detail/utilities.hpp +858 -0
- data/ext/boost/intrusive/detail/workaround.hpp +22 -0
- data/ext/boost/intrusive/hashtable.hpp +3110 -0
- data/ext/boost/intrusive/intrusive_fwd.hpp +542 -0
- data/ext/boost/intrusive/linear_slist_algorithms.hpp +327 -0
- data/ext/boost/intrusive/link_mode.hpp +46 -0
- data/ext/boost/intrusive/list.hpp +1525 -0
- data/ext/boost/intrusive/list_hook.hpp +290 -0
- data/ext/boost/intrusive/member_value_traits.hpp +70 -0
- data/ext/boost/intrusive/options.hpp +810 -0
- data/ext/boost/intrusive/parent_from_member.hpp +42 -0
- data/ext/boost/intrusive/pointer_plus_bits.hpp +86 -0
- data/ext/boost/intrusive/pointer_traits.hpp +265 -0
- data/ext/boost/intrusive/priority_compare.hpp +39 -0
- data/ext/boost/intrusive/rbtree.hpp +1785 -0
- data/ext/boost/intrusive/rbtree_algorithms.hpp +934 -0
- data/ext/boost/intrusive/set.hpp +2554 -0
- data/ext/boost/intrusive/set_hook.hpp +300 -0
- data/ext/boost/intrusive/sg_set.hpp +2601 -0
- data/ext/boost/intrusive/sgtree.hpp +2009 -0
- data/ext/boost/intrusive/sgtree_algorithms.hpp +807 -0
- data/ext/boost/intrusive/slist.hpp +2219 -0
- data/ext/boost/intrusive/slist_hook.hpp +294 -0
- data/ext/boost/intrusive/splay_set.hpp +2575 -0
- data/ext/boost/intrusive/splay_set_hook.hpp +292 -0
- data/ext/boost/intrusive/splaytree.hpp +1784 -0
- data/ext/boost/intrusive/splaytree_algorithms.hpp +1008 -0
- data/ext/boost/intrusive/treap.hpp +1882 -0
- data/ext/boost/intrusive/treap_algorithms.hpp +919 -0
- data/ext/boost/intrusive/treap_set.hpp +2751 -0
- data/ext/boost/intrusive/trivial_value_traits.hpp +46 -0
- data/ext/boost/intrusive/unordered_set.hpp +2115 -0
- data/ext/boost/intrusive/unordered_set_hook.hpp +434 -0
- data/ext/boost/intrusive_ptr.hpp +18 -0
- data/ext/boost/math/common_factor_ct.hpp +180 -0
- data/ext/boost/math_fwd.hpp +108 -0
- data/ext/boost/move/detail/move_helpers.hpp +175 -0
- data/ext/boost/parameter.hpp +21 -0
- data/ext/boost/parameter/aux_/arg_list.hpp +459 -0
- data/ext/boost/parameter/aux_/cast.hpp +143 -0
- data/ext/boost/parameter/aux_/default.hpp +69 -0
- data/ext/boost/parameter/aux_/is_maybe.hpp +26 -0
- data/ext/boost/parameter/aux_/maybe.hpp +120 -0
- data/ext/boost/parameter/aux_/overloads.hpp +88 -0
- data/ext/boost/parameter/aux_/parameter_requirements.hpp +25 -0
- data/ext/boost/parameter/aux_/parenthesized_type.hpp +119 -0
- data/ext/boost/parameter/aux_/preprocessor/flatten.hpp +115 -0
- data/ext/boost/parameter/aux_/preprocessor/for_each.hpp +103 -0
- data/ext/boost/parameter/aux_/python/invoker.hpp +132 -0
- data/ext/boost/parameter/aux_/python/invoker_iterate.hpp +93 -0
- data/ext/boost/parameter/aux_/result_of0.hpp +36 -0
- data/ext/boost/parameter/aux_/set.hpp +67 -0
- data/ext/boost/parameter/aux_/tag.hpp +38 -0
- data/ext/boost/parameter/aux_/tagged_argument.hpp +188 -0
- data/ext/boost/parameter/aux_/template_keyword.hpp +47 -0
- data/ext/boost/parameter/aux_/unwrap_cv_reference.hpp +97 -0
- data/ext/boost/parameter/aux_/void.hpp +29 -0
- data/ext/boost/parameter/aux_/yesno.hpp +26 -0
- data/ext/boost/parameter/binding.hpp +106 -0
- data/ext/boost/parameter/config.hpp +14 -0
- data/ext/boost/parameter/keyword.hpp +152 -0
- data/ext/boost/parameter/macros.hpp +99 -0
- data/ext/boost/parameter/match.hpp +55 -0
- data/ext/boost/parameter/name.hpp +156 -0
- data/ext/boost/parameter/parameters.hpp +931 -0
- data/ext/boost/parameter/preprocessor.hpp +1178 -0
- data/ext/boost/parameter/python.hpp +735 -0
- data/ext/boost/parameter/value_type.hpp +108 -0
- data/ext/boost/pool/detail/for.m4 +107 -0
- data/ext/boost/pool/detail/guard.hpp +69 -0
- data/ext/boost/pool/detail/mutex.hpp +42 -0
- data/ext/boost/pool/detail/pool_construct.bat +24 -0
- data/ext/boost/pool/detail/pool_construct.ipp +852 -0
- data/ext/boost/pool/detail/pool_construct.m4 +84 -0
- data/ext/boost/pool/detail/pool_construct.sh +12 -0
- data/ext/boost/pool/detail/pool_construct_simple.bat +25 -0
- data/ext/boost/pool/detail/pool_construct_simple.ipp +43 -0
- data/ext/boost/pool/detail/pool_construct_simple.m4 +72 -0
- data/ext/boost/pool/detail/pool_construct_simple.sh +12 -0
- data/ext/boost/pool/object_pool.hpp +287 -0
- data/ext/boost/pool/pool.hpp +1024 -0
- data/ext/boost/pool/pool_alloc.hpp +488 -0
- data/ext/boost/pool/poolfwd.hpp +82 -0
- data/ext/boost/pool/simple_segregated_storage.hpp +377 -0
- data/ext/boost/pool/singleton_pool.hpp +251 -0
- data/ext/boost/preprocessor/arithmetic.hpp +25 -0
- data/ext/boost/preprocessor/arithmetic/detail/div_base.hpp +61 -0
- data/ext/boost/preprocessor/arithmetic/div.hpp +39 -0
- data/ext/boost/preprocessor/arithmetic/mod.hpp +39 -0
- data/ext/boost/preprocessor/arithmetic/mul.hpp +53 -0
- data/ext/boost/preprocessor/array.hpp +32 -0
- data/ext/boost/preprocessor/array/enum.hpp +33 -0
- data/ext/boost/preprocessor/array/insert.hpp +55 -0
- data/ext/boost/preprocessor/array/pop_back.hpp +37 -0
- data/ext/boost/preprocessor/array/pop_front.hpp +38 -0
- data/ext/boost/preprocessor/array/push_back.hpp +33 -0
- data/ext/boost/preprocessor/array/push_front.hpp +33 -0
- data/ext/boost/preprocessor/array/remove.hpp +54 -0
- data/ext/boost/preprocessor/array/replace.hpp +49 -0
- data/ext/boost/preprocessor/array/reverse.hpp +29 -0
- data/ext/boost/preprocessor/array/to_list.hpp +33 -0
- data/ext/boost/preprocessor/array/to_seq.hpp +33 -0
- data/ext/boost/preprocessor/array/to_tuple.hpp +22 -0
- data/ext/boost/preprocessor/assert_msg.hpp +17 -0
- data/ext/boost/preprocessor/comma.hpp +17 -0
- data/ext/boost/preprocessor/comparison.hpp +24 -0
- data/ext/boost/preprocessor/comparison/equal.hpp +34 -0
- data/ext/boost/preprocessor/comparison/greater.hpp +38 -0
- data/ext/boost/preprocessor/comparison/greater_equal.hpp +38 -0
- data/ext/boost/preprocessor/comparison/less.hpp +46 -0
- data/ext/boost/preprocessor/comparison/less_equal.hpp +39 -0
- data/ext/boost/preprocessor/comparison/not_equal.hpp +814 -0
- data/ext/boost/preprocessor/config/limits.hpp +30 -0
- data/ext/boost/preprocessor/control.hpp +22 -0
- data/ext/boost/preprocessor/control/deduce_d.hpp +22 -0
- data/ext/boost/preprocessor/control/detail/dmc/while.hpp +536 -0
- data/ext/boost/preprocessor/control/detail/edg/while.hpp +534 -0
- data/ext/boost/preprocessor/control/detail/msvc/while.hpp +277 -0
- data/ext/boost/preprocessor/control/expr_if.hpp +30 -0
- data/ext/boost/preprocessor/debug.hpp +18 -0
- data/ext/boost/preprocessor/debug/assert.hpp +44 -0
- data/ext/boost/preprocessor/debug/line.hpp +35 -0
- data/ext/boost/preprocessor/detail/dmc/auto_rec.hpp +286 -0
- data/ext/boost/preprocessor/detail/is_nullary.hpp +30 -0
- data/ext/boost/preprocessor/detail/is_unary.hpp +30 -0
- data/ext/boost/preprocessor/detail/null.hpp +17 -0
- data/ext/boost/preprocessor/detail/split.hpp +35 -0
- data/ext/boost/preprocessor/enum_params_with_defaults.hpp +17 -0
- data/ext/boost/preprocessor/enum_shifted.hpp +17 -0
- data/ext/boost/preprocessor/expand.hpp +17 -0
- data/ext/boost/preprocessor/expr_if.hpp +17 -0
- data/ext/boost/preprocessor/facilities.hpp +23 -0
- data/ext/boost/preprocessor/facilities/apply.hpp +34 -0
- data/ext/boost/preprocessor/facilities/expand.hpp +28 -0
- data/ext/boost/preprocessor/facilities/is_1.hpp +23 -0
- data/ext/boost/preprocessor/facilities/is_empty.hpp +43 -0
- data/ext/boost/preprocessor/facilities/is_empty_or_1.hpp +30 -0
- data/ext/boost/preprocessor/for.hpp +17 -0
- data/ext/boost/preprocessor/if.hpp +17 -0
- data/ext/boost/preprocessor/iteration.hpp +19 -0
- data/ext/boost/preprocessor/iteration/detail/bounds/lower3.hpp +99 -0
- data/ext/boost/preprocessor/iteration/detail/bounds/lower4.hpp +99 -0
- data/ext/boost/preprocessor/iteration/detail/bounds/lower5.hpp +99 -0
- data/ext/boost/preprocessor/iteration/detail/bounds/upper3.hpp +99 -0
- data/ext/boost/preprocessor/iteration/detail/bounds/upper4.hpp +99 -0
- data/ext/boost/preprocessor/iteration/detail/bounds/upper5.hpp +99 -0
- data/ext/boost/preprocessor/iteration/detail/finish.hpp +99 -0
- data/ext/boost/preprocessor/iteration/detail/iter/forward3.hpp +1338 -0
- data/ext/boost/preprocessor/iteration/detail/iter/forward4.hpp +1338 -0
- data/ext/boost/preprocessor/iteration/detail/iter/forward5.hpp +1338 -0
- data/ext/boost/preprocessor/iteration/detail/iter/reverse2.hpp +1296 -0
- data/ext/boost/preprocessor/iteration/detail/iter/reverse3.hpp +1296 -0
- data/ext/boost/preprocessor/iteration/detail/iter/reverse4.hpp +1296 -0
- data/ext/boost/preprocessor/iteration/detail/iter/reverse5.hpp +1296 -0
- data/ext/boost/preprocessor/iteration/detail/local.hpp +812 -0
- data/ext/boost/preprocessor/iteration/detail/rlocal.hpp +782 -0
- data/ext/boost/preprocessor/iteration/detail/self.hpp +21 -0
- data/ext/boost/preprocessor/iteration/detail/start.hpp +99 -0
- data/ext/boost/preprocessor/iteration/local.hpp +26 -0
- data/ext/boost/preprocessor/iteration/self.hpp +19 -0
- data/ext/boost/preprocessor/library.hpp +36 -0
- data/ext/boost/preprocessor/limits.hpp +17 -0
- data/ext/boost/preprocessor/list.hpp +37 -0
- data/ext/boost/preprocessor/list/at.hpp +39 -0
- data/ext/boost/preprocessor/list/cat.hpp +42 -0
- data/ext/boost/preprocessor/list/detail/dmc/fold_left.hpp +279 -0
- data/ext/boost/preprocessor/list/detail/edg/fold_left.hpp +536 -0
- data/ext/boost/preprocessor/list/detail/edg/fold_right.hpp +794 -0
- data/ext/boost/preprocessor/list/enum.hpp +41 -0
- data/ext/boost/preprocessor/list/filter.hpp +54 -0
- data/ext/boost/preprocessor/list/first_n.hpp +58 -0
- data/ext/boost/preprocessor/list/for_each.hpp +49 -0
- data/ext/boost/preprocessor/list/for_each_product.hpp +141 -0
- data/ext/boost/preprocessor/list/rest_n.hpp +55 -0
- data/ext/boost/preprocessor/list/size.hpp +58 -0
- data/ext/boost/preprocessor/list/to_array.hpp +123 -0
- data/ext/boost/preprocessor/list/to_seq.hpp +32 -0
- data/ext/boost/preprocessor/list/to_tuple.hpp +38 -0
- data/ext/boost/preprocessor/logical.hpp +29 -0
- data/ext/boost/preprocessor/logical/bitnor.hpp +38 -0
- data/ext/boost/preprocessor/logical/bitor.hpp +38 -0
- data/ext/boost/preprocessor/logical/bitxor.hpp +38 -0
- data/ext/boost/preprocessor/logical/nor.hpp +30 -0
- data/ext/boost/preprocessor/logical/not.hpp +30 -0
- data/ext/boost/preprocessor/logical/or.hpp +30 -0
- data/ext/boost/preprocessor/logical/xor.hpp +30 -0
- data/ext/boost/preprocessor/max.hpp +17 -0
- data/ext/boost/preprocessor/min.hpp +17 -0
- data/ext/boost/preprocessor/punctuation.hpp +20 -0
- data/ext/boost/preprocessor/punctuation/paren_if.hpp +38 -0
- data/ext/boost/preprocessor/repeat_3rd.hpp +17 -0
- data/ext/boost/preprocessor/repeat_from_to.hpp +17 -0
- data/ext/boost/preprocessor/repeat_from_to_2nd.hpp +17 -0
- data/ext/boost/preprocessor/repeat_from_to_3rd.hpp +17 -0
- data/ext/boost/preprocessor/repetition.hpp +32 -0
- data/ext/boost/preprocessor/repetition/deduce_r.hpp +22 -0
- data/ext/boost/preprocessor/repetition/deduce_z.hpp +22 -0
- data/ext/boost/preprocessor/repetition/detail/dmc/for.hpp +536 -0
- data/ext/boost/preprocessor/repetition/detail/edg/for.hpp +534 -0
- data/ext/boost/preprocessor/repetition/detail/msvc/for.hpp +277 -0
- data/ext/boost/preprocessor/repetition/enum_params_with_defaults.hpp +24 -0
- data/ext/boost/preprocessor/repetition/enum_shifted.hpp +68 -0
- data/ext/boost/preprocessor/repetition/enum_shifted_binary_params.hpp +51 -0
- data/ext/boost/preprocessor/repetition/enum_trailing.hpp +63 -0
- data/ext/boost/preprocessor/repetition/enum_trailing_binary_params.hpp +53 -0
- data/ext/boost/preprocessor/selection.hpp +18 -0
- data/ext/boost/preprocessor/selection/max.hpp +39 -0
- data/ext/boost/preprocessor/selection/min.hpp +39 -0
- data/ext/boost/preprocessor/seq.hpp +43 -0
- data/ext/boost/preprocessor/seq/cat.hpp +49 -0
- data/ext/boost/preprocessor/seq/detail/binary_transform.hpp +40 -0
- data/ext/boost/preprocessor/seq/detail/split.hpp +284 -0
- data/ext/boost/preprocessor/seq/filter.hpp +54 -0
- data/ext/boost/preprocessor/seq/first_n.hpp +30 -0
- data/ext/boost/preprocessor/seq/fold_left.hpp +1070 -0
- data/ext/boost/preprocessor/seq/fold_right.hpp +288 -0
- data/ext/boost/preprocessor/seq/for_each.hpp +60 -0
- data/ext/boost/preprocessor/seq/for_each_product.hpp +126 -0
- data/ext/boost/preprocessor/seq/insert.hpp +28 -0
- data/ext/boost/preprocessor/seq/pop_back.hpp +29 -0
- data/ext/boost/preprocessor/seq/pop_front.hpp +27 -0
- data/ext/boost/preprocessor/seq/push_back.hpp +19 -0
- data/ext/boost/preprocessor/seq/push_front.hpp +19 -0
- data/ext/boost/preprocessor/seq/remove.hpp +29 -0
- data/ext/boost/preprocessor/seq/replace.hpp +29 -0
- data/ext/boost/preprocessor/seq/rest_n.hpp +30 -0
- data/ext/boost/preprocessor/seq/reverse.hpp +39 -0
- data/ext/boost/preprocessor/seq/subseq.hpp +28 -0
- data/ext/boost/preprocessor/seq/to_array.hpp +28 -0
- data/ext/boost/preprocessor/seq/to_list.hpp +29 -0
- data/ext/boost/preprocessor/seq/to_tuple.hpp +27 -0
- data/ext/boost/preprocessor/seq/transform.hpp +48 -0
- data/ext/boost/preprocessor/slot.hpp +17 -0
- data/ext/boost/preprocessor/slot/counter.hpp +25 -0
- data/ext/boost/preprocessor/slot/detail/counter.hpp +269 -0
- data/ext/boost/preprocessor/slot/detail/slot1.hpp +267 -0
- data/ext/boost/preprocessor/slot/detail/slot2.hpp +267 -0
- data/ext/boost/preprocessor/slot/detail/slot3.hpp +267 -0
- data/ext/boost/preprocessor/slot/detail/slot4.hpp +267 -0
- data/ext/boost/preprocessor/slot/detail/slot5.hpp +267 -0
- data/ext/boost/preprocessor/tuple.hpp +28 -0
- data/ext/boost/preprocessor/tuple/enum.hpp +22 -0
- data/ext/boost/preprocessor/tuple/reverse.hpp +114 -0
- data/ext/boost/preprocessor/tuple/size.hpp +28 -0
- data/ext/boost/preprocessor/tuple/to_array.hpp +37 -0
- data/ext/boost/preprocessor/tuple/to_seq.hpp +114 -0
- data/ext/boost/preprocessor/variadic.hpp +23 -0
- data/ext/boost/preprocessor/variadic/to_array.hpp +32 -0
- data/ext/boost/preprocessor/variadic/to_list.hpp +25 -0
- data/ext/boost/preprocessor/variadic/to_seq.hpp +25 -0
- data/ext/boost/preprocessor/variadic/to_tuple.hpp +24 -0
- data/ext/boost/preprocessor/while.hpp +17 -0
- data/ext/boost/preprocessor/wstringize.hpp +29 -0
- data/ext/boost/smart_ptr/intrusive_ptr.hpp +324 -0
- data/ext/common/AccountsDatabase.h +3 -4
- data/ext/common/AgentsStarter.cpp +12 -15
- data/ext/common/AgentsStarter.h +54 -120
- data/ext/common/ApplicationPool2/AppTypes.cpp +12 -5
- data/ext/common/ApplicationPool2/AppTypes.h +21 -14
- data/ext/common/ApplicationPool2/Common.h +36 -19
- data/ext/common/ApplicationPool2/DirectSpawner.h +15 -16
- data/ext/common/ApplicationPool2/DummySpawner.h +9 -8
- data/ext/common/ApplicationPool2/ErrorRenderer.h +1 -1
- data/ext/common/ApplicationPool2/Group.h +304 -171
- data/ext/common/ApplicationPool2/Implementation.cpp +234 -125
- data/ext/common/ApplicationPool2/Options.h +50 -62
- data/ext/common/ApplicationPool2/Pool.h +285 -189
- data/ext/common/ApplicationPool2/Process.h +126 -115
- data/ext/common/ApplicationPool2/Session.h +70 -30
- data/ext/common/ApplicationPool2/SmartSpawner.h +19 -18
- data/ext/common/ApplicationPool2/Socket.h +57 -43
- data/ext/common/ApplicationPool2/SpawnObject.h +83 -0
- data/ext/common/ApplicationPool2/Spawner.h +59 -38
- data/ext/common/ApplicationPool2/SpawnerFactory.h +8 -14
- data/ext/common/ApplicationPool2/SuperGroup.h +69 -40
- data/ext/common/BackgroundEventLoop.cpp +48 -1
- data/ext/common/BackgroundEventLoop.h +3 -1
- data/ext/common/Constants.h +30 -8
- data/ext/common/DataStructures/HashedStaticString.h +103 -0
- data/ext/common/DataStructures/LString.h +396 -0
- data/ext/common/DataStructures/StringKeyTable.h +588 -0
- data/ext/common/EventedMessageServer.h +1 -0
- data/ext/common/FileDescriptor.h +5 -0
- data/ext/common/InstanceDirectory.h +240 -0
- data/ext/common/Logging.cpp +38 -13
- data/ext/common/Logging.h +53 -22
- data/ext/common/MemoryKit/mbuf.cpp +413 -0
- data/ext/common/MemoryKit/mbuf.h +266 -0
- data/ext/common/MemoryKit/palloc.cpp +337 -0
- data/ext/common/MemoryKit/palloc.h +121 -0
- data/ext/common/ResourceLocator.h +62 -6
- data/ext/common/SafeLibev.h +4 -4
- data/ext/common/ServerKit/AcceptLoadBalancer.h +275 -0
- data/ext/common/ServerKit/Channel.h +747 -0
- data/ext/common/ServerKit/Client.h +166 -0
- data/ext/common/ServerKit/ClientRef.h +130 -0
- data/ext/common/ServerKit/Context.h +129 -0
- data/ext/common/ServerKit/Errors.h +103 -0
- data/ext/common/ServerKit/FdSinkChannel.h +206 -0
- data/ext/common/ServerKit/FdSourceChannel.h +230 -0
- data/ext/common/ServerKit/FileBufferedChannel.h +1399 -0
- data/ext/common/ServerKit/FileBufferedFdSinkChannel.h +228 -0
- data/ext/common/ServerKit/HeaderTable.h +472 -0
- data/ext/common/ServerKit/Hooks.h +79 -0
- data/ext/common/ServerKit/HttpChunkedBodyParser.h +289 -0
- data/ext/common/ServerKit/HttpChunkedBodyParserState.h +70 -0
- data/ext/common/ServerKit/HttpClient.h +94 -0
- data/ext/common/ServerKit/HttpHeaderParser.h +477 -0
- data/ext/common/ServerKit/HttpHeaderParserState.h +60 -0
- data/ext/common/ServerKit/HttpRequest.h +276 -0
- data/ext/common/ServerKit/HttpRequestRef.h +130 -0
- data/ext/common/ServerKit/HttpServer.h +1152 -0
- data/ext/common/ServerKit/Implementation.cpp +47 -0
- data/ext/common/ServerKit/Server.h +1040 -0
- data/ext/common/ServerKit/http_parser.cpp +2259 -0
- data/ext/common/ServerKit/http_parser.h +330 -0
- data/ext/common/StaticString.h +8 -0
- data/ext/common/Utils.cpp +14 -12
- data/ext/common/Utils.h +9 -103
- data/ext/common/Utils/BufferedIO.h +1 -0
- data/ext/common/Utils/CachedFileStat.hpp +1 -7
- data/ext/common/Utils/DateParsing.h +379 -0
- data/ext/common/Utils/FileChangeChecker.h +3 -9
- data/ext/common/Utils/Hasher.cpp +52 -0
- data/ext/common/Utils/Hasher.h +58 -0
- data/ext/common/Utils/IOUtils.cpp +62 -62
- data/ext/common/Utils/JsonUtils.h +21 -0
- data/ext/common/Utils/OptionParsing.h +75 -0
- data/ext/common/Utils/StrIntUtils.cpp +112 -19
- data/ext/common/Utils/StrIntUtils.h +52 -12
- data/ext/common/Utils/StrIntUtilsNoStrictAliasing.cpp +174 -0
- data/ext/common/Utils/VariantMap.h +18 -7
- data/ext/common/Utils/modp_b64.cpp +290 -0
- data/ext/common/Utils/modp_b64.h +241 -0
- data/ext/common/Utils/modp_b64_data.h +479 -0
- data/ext/common/Utils/sysqueue.h +811 -0
- data/ext/common/agents/Base.cpp +71 -98
- data/ext/common/agents/Base.h +11 -3
- data/ext/common/agents/HelperAgent/AdminServer.h +690 -0
- data/ext/common/agents/HelperAgent/Main.cpp +899 -487
- data/ext/common/agents/HelperAgent/OptionParser.h +311 -0
- data/ext/common/agents/HelperAgent/RequestHandler.h +315 -2548
- data/ext/common/agents/HelperAgent/RequestHandler/AppResponse.h +225 -0
- data/ext/common/agents/HelperAgent/RequestHandler/BufferBody.cpp +93 -0
- data/ext/common/agents/HelperAgent/RequestHandler/CheckoutSession.cpp +346 -0
- data/ext/common/agents/HelperAgent/RequestHandler/Client.h +54 -0
- data/ext/common/agents/HelperAgent/RequestHandler/ForwardResponse.cpp +846 -0
- data/ext/common/agents/HelperAgent/RequestHandler/Hooks.cpp +231 -0
- data/ext/common/agents/HelperAgent/RequestHandler/InitRequest.cpp +434 -0
- data/ext/common/agents/HelperAgent/RequestHandler/Request.h +149 -0
- data/ext/common/agents/HelperAgent/RequestHandler/SendRequest.cpp +887 -0
- data/ext/common/agents/HelperAgent/RequestHandler/TurboCaching.h +293 -0
- data/ext/common/agents/HelperAgent/RequestHandler/Utils.cpp +301 -0
- data/ext/common/agents/HelperAgent/ResponseCache.h +624 -0
- data/ext/common/agents/HelperAgent/SystemMetricsTool.cpp +21 -23
- data/ext/common/agents/LoggingAgent/AdminServer.h +369 -0
- data/ext/common/agents/LoggingAgent/LoggingServer.h +1 -0
- data/ext/common/agents/LoggingAgent/Main.cpp +422 -215
- data/ext/common/agents/LoggingAgent/OptionParser.h +167 -0
- data/ext/common/agents/LoggingAgent/RemoteSender.h +3 -3
- data/ext/common/agents/Main.cpp +107 -0
- data/ext/common/agents/SpawnPreparer/Main.cpp +207 -0
- data/ext/common/agents/TempDirToucher/Main.cpp +429 -0
- data/ext/common/agents/Watchdog/AdminServer.h +390 -0
- data/ext/common/agents/Watchdog/AgentWatcher.cpp +7 -5
- data/ext/common/agents/Watchdog/HelperAgentWatcher.cpp +18 -39
- data/ext/common/agents/Watchdog/InstanceDirToucher.cpp +116 -0
- data/ext/common/agents/Watchdog/LoggingAgentWatcher.cpp +13 -17
- data/ext/common/agents/Watchdog/Main.cpp +743 -202
- data/ext/libeio/eio.c +17 -0
- data/ext/libeio/eio.h +2 -0
- data/ext/nginx/CacheLocationConfig.c +177 -198
- data/ext/nginx/CacheLocationConfig.c.erb +35 -22
- data/ext/nginx/Configuration.c +402 -236
- data/ext/nginx/Configuration.h +12 -5
- data/ext/nginx/ConfigurationCommands.c +35 -15
- data/ext/nginx/ConfigurationCommands.c.erb +4 -4
- data/ext/nginx/ConfigurationFields.h +9 -5
- data/ext/nginx/ConfigurationFields.h.erb +3 -1
- data/ext/nginx/ContentHandler.c +393 -362
- data/ext/nginx/CreateLocationConfig.c +8 -4
- data/ext/nginx/CreateLocationConfig.c.erb +8 -3
- data/ext/nginx/MergeLocationConfig.c +36 -6
- data/ext/nginx/MergeLocationConfig.c.erb +42 -1
- data/ext/nginx/ngx_http_passenger_module.c +28 -15
- data/ext/oxt/detail/backtrace_disabled.hpp +2 -1
- data/ext/oxt/detail/backtrace_enabled.hpp +15 -2
- data/ext/oxt/implementation.cpp +92 -20
- data/ext/oxt/thread.hpp +5 -0
- data/ext/ruby/extconf.rb +3 -6
- data/ext/ruby/passenger_native_support.c +13 -40
- data/helper-scripts/download_binaries/extconf.rb +4 -4
- data/helper-scripts/meteor-loader.rb +12 -112
- data/helper-scripts/node-loader.js +3 -91
- data/helper-scripts/rack-loader.rb +13 -14
- data/helper-scripts/rack-preloader.rb +16 -17
- data/helper-scripts/wsgi-loader.py +11 -7
- data/lib/phusion_passenger.rb +100 -79
- data/lib/phusion_passenger/abstract_installer.rb +28 -3
- data/lib/phusion_passenger/admin_tools.rb +3 -3
- data/lib/phusion_passenger/admin_tools/instance.rb +207 -0
- data/lib/phusion_passenger/admin_tools/instance_registry.rb +98 -0
- data/lib/phusion_passenger/apache2/config_options.rb +72 -22
- data/lib/phusion_passenger/common_library.rb +79 -14
- data/lib/phusion_passenger/config/about_command.rb +17 -23
- data/lib/phusion_passenger/config/admin_command_command.rb +175 -0
- data/lib/phusion_passenger/config/agent_compiler.rb +170 -0
- data/lib/phusion_passenger/config/command.rb +1 -4
- data/lib/phusion_passenger/config/compile_agent_command.rb +102 -0
- data/lib/phusion_passenger/config/compile_nginx_engine_command.rb +112 -0
- data/lib/phusion_passenger/config/detach_process_command.rb +32 -10
- data/lib/phusion_passenger/config/download_agent_command.rb +285 -0
- data/lib/phusion_passenger/config/download_nginx_engine_command.rb +281 -0
- data/lib/phusion_passenger/config/install_agent_command.rb +174 -0
- data/lib/phusion_passenger/config/install_standalone_runtime_command.rb +231 -0
- data/lib/phusion_passenger/config/installation_utils.rb +241 -0
- data/lib/phusion_passenger/config/list_instances_command.rb +13 -25
- data/lib/phusion_passenger/config/main.rb +43 -14
- data/lib/phusion_passenger/config/nginx_engine_compiler.rb +337 -0
- data/lib/phusion_passenger/config/reopen_logs_command.rb +110 -0
- data/lib/phusion_passenger/config/restart_app_command.rb +61 -14
- data/lib/phusion_passenger/config/system_metrics_command.rb +2 -1
- data/lib/phusion_passenger/config/utils.rb +64 -39
- data/lib/phusion_passenger/config/validate_install_command.rb +2 -2
- data/lib/phusion_passenger/constants.rb +27 -6
- data/lib/phusion_passenger/debug_logging.rb +32 -15
- data/lib/phusion_passenger/loader_shared_helpers.rb +2 -5
- data/lib/phusion_passenger/message_client.rb +21 -22
- data/lib/phusion_passenger/native_support.rb +26 -31
- data/lib/phusion_passenger/nginx/config_options.rb +32 -19
- data/lib/phusion_passenger/packaging.rb +7 -3
- data/lib/phusion_passenger/platform_info/cxx_portability.rb +1 -2
- data/lib/phusion_passenger/platform_info/depcheck_specs/libs.rb +3 -4
- data/lib/phusion_passenger/platform_info/operating_system.rb +6 -6
- data/lib/phusion_passenger/preloader_shared_helpers.rb +2 -2
- data/lib/phusion_passenger/rack/out_of_band_gc.rb +2 -2
- data/lib/phusion_passenger/rack/thread_handler_extension.rb +168 -65
- data/lib/phusion_passenger/request_handler.rb +47 -82
- data/lib/phusion_passenger/request_handler/thread_handler.rb +46 -10
- data/lib/phusion_passenger/ruby_core_enhancements.rb +25 -77
- data/lib/phusion_passenger/ruby_core_io_enhancements.rb +108 -0
- data/lib/phusion_passenger/standalone/app_finder.rb +39 -59
- data/lib/phusion_passenger/standalone/command.rb +27 -275
- data/lib/phusion_passenger/standalone/command2.rb +292 -0
- data/lib/phusion_passenger/standalone/config_utils.rb +87 -0
- data/lib/phusion_passenger/standalone/control_utils.rb +88 -0
- data/lib/phusion_passenger/standalone/main.rb +69 -71
- data/lib/phusion_passenger/standalone/start2_command.rb +799 -0
- data/lib/phusion_passenger/standalone/start_command.rb +406 -467
- data/lib/phusion_passenger/standalone/start_command/builtin_engine.rb +167 -0
- data/lib/phusion_passenger/standalone/start_command/nginx_engine.rb +165 -0
- data/lib/phusion_passenger/standalone/status_command.rb +64 -23
- data/lib/phusion_passenger/standalone/stop_command.rb +69 -32
- data/lib/phusion_passenger/standalone/version_command.rb +1 -5
- data/lib/phusion_passenger/utils.rb +0 -4
- data/lib/phusion_passenger/utils/json.rb +70 -4
- data/lib/phusion_passenger/utils/progress_bar.rb +56 -0
- data/lib/phusion_passenger/utils/tee_input.rb +3 -3
- data/lib/phusion_passenger/utils/unseekable_socket.rb +30 -0
- data/packaging/rpm/nginx_spec/nginx.spec.template +4 -3
- data/packaging/rpm/passenger_spec/passenger.spec.template +6 -10
- data/packaging/rpm/setup-system +2 -1
- data/resources/oss-binaries.phusionpassenger.com.crt +208 -0
- data/resources/templates/config/agent_compiler/confirm_enable_optimizations.txt.erb +5 -0
- data/resources/templates/config/installation_utils/cannot_create_user_support_binaries_dir.txt.erb +15 -0
- data/resources/templates/config/installation_utils/download_tool_missing.txt.erb +7 -0
- data/resources/templates/config/installation_utils/passenger_not_installed_as_root.txt.erb +12 -0
- data/resources/templates/config/installation_utils/support_binaries_dir_not_writable_despite_running_as_root.txt.erb +13 -0
- data/resources/templates/config/installation_utils/unexpected_filesystem_problem.txt.erb +16 -0
- data/{packaging/debian/debian_specs/passenger/patches/series → resources/templates/config/installation_utils/user_support_binaries_dir_not_writable.txt.erb} +0 -0
- data/resources/templates/nginx/nginx_module_sources_not_available.txt.erb +2 -2
- data/resources/templates/standalone/config.erb +14 -16
- data/resources/templates/standalone/possible_solutions_for_download_and_extraction_problems.txt.erb +1 -1
- data/test/.rspec +1 -0
- data/test/cxx/ApplicationPool2/DirectSpawnerTest.cpp +20 -17
- data/test/cxx/ApplicationPool2/OptionsTest.cpp +0 -14
- data/test/cxx/ApplicationPool2/PoolTest.cpp +113 -90
- data/test/cxx/ApplicationPool2/ProcessTest.cpp +18 -27
- data/test/cxx/ApplicationPool2/SmartSpawnerTest.cpp +51 -53
- data/test/cxx/ApplicationPool2/SpawnerTestCases.cpp +55 -57
- data/test/cxx/BufferedIOTest.cpp +40 -40
- data/test/cxx/CxxTestMain.cpp +4 -22
- data/test/cxx/DataStructures/LStringTest.cpp +275 -0
- data/test/cxx/DataStructures/StringKeyTableTest.cpp +199 -0
- data/test/cxx/MemoryKit/MbufTest.cpp +213 -0
- data/test/cxx/MessageServerTest.cpp +62 -55
- data/test/cxx/RequestHandlerTest.cpp +26 -27
- data/test/cxx/ServerKit/ChannelTest.cpp +1467 -0
- data/test/cxx/ServerKit/FileBufferedChannelTest.cpp +817 -0
- data/test/cxx/ServerKit/HeaderTableTest.cpp +171 -0
- data/test/cxx/ServerKit/HttpServerTest.cpp +1503 -0
- data/test/cxx/ServerKit/ServerTest.cpp +408 -0
- data/test/cxx/TestSupport.cpp +51 -15
- data/test/cxx/TestSupport.h +31 -21
- data/test/cxx/UnionStationTest.cpp +121 -122
- data/test/cxx/UtilsTest.cpp +9 -33
- data/test/integration_tests/apache2_tests.rb +65 -27
- data/test/integration_tests/downloaded_binaries_tests.rb +30 -6
- data/test/integration_tests/native_packaging_spec.rb +32 -17
- data/test/integration_tests/nginx_tests.rb +28 -10
- data/test/integration_tests/shared/example_webapp_tests.rb +40 -27
- data/test/integration_tests/standalone_tests.rb +232 -169
- data/test/ruby/debug_logging_spec.rb +44 -40
- data/test/ruby/rails3.0/preloader_spec.rb +1 -1
- data/test/ruby/rails3.1/preloader_spec.rb +1 -1
- data/test/ruby/rails3.2/preloader_spec.rb +1 -1
- data/test/ruby/rails4.0/preloader_spec.rb +1 -1
- data/test/ruby/rails4.1/preloader_spec.rb +1 -1
- data/test/ruby/request_handler_spec.rb +62 -24
- data/test/ruby/shared/loader_sharedspec.rb +10 -9
- data/test/ruby/shared/rails/union_station_extensions_sharedspec.rb +23 -22
- data/test/ruby/spec_helper.rb +2 -11
- data/test/ruby/standalone/runtime_installer_spec.rb +15 -13
- data/test/ruby/union_station_spec.rb +45 -40
- data/test/ruby/utils/tee_input_spec.rb +5 -5
- data/test/ruby/utils_spec.rb +3 -39
- data/test/stub/apache2/httpd.conf.erb +5 -2
- data/test/stub/nginx/nginx.conf.erb +3 -1
- data/test/support/apache2_controller.rb +25 -25
- data/test/support/nginx_controller.rb +14 -14
- data/test/support/test_helper.rb +74 -75
- metadata +439 -643
- metadata.gz.asc +7 -7
- data/ext/common/MultiLibeio.cpp +0 -204
- data/ext/common/MultiLibeio.h +0 -67
- data/ext/common/ServerInstanceDir.h +0 -402
- data/ext/common/Utils/Base64.cpp +0 -143
- data/ext/common/Utils/Base64.h +0 -83
- data/ext/common/Utils/HttpHeaderBufferer.h +0 -184
- data/ext/common/Utils/PriorityQueue.h +0 -54
- data/ext/common/Utils/StreamBoyerMooreHorspool.h +0 -512
- data/ext/common/Utils/fib.c +0 -699
- data/ext/common/Utils/fib.h +0 -101
- data/ext/common/Utils/fibpriv.h +0 -67
- data/ext/common/agents/EnvPrinter.c +0 -16
- data/ext/common/agents/HelperAgent/AgentOptions.h +0 -109
- data/ext/common/agents/HelperAgent/FileBackedPipe.h +0 -732
- data/ext/common/agents/HelperAgent/RequestHandler.cpp +0 -294
- data/ext/common/agents/HelperAgent/ScgiRequestParser.h +0 -457
- data/ext/common/agents/LoggingAgent/AdminController.h +0 -96
- data/ext/common/agents/SpawnPreparer.cpp +0 -206
- data/ext/common/agents/TempDirToucher.c +0 -383
- data/ext/common/agents/Watchdog/ServerInstanceDirToucher.cpp +0 -116
- data/helper-scripts/classic-rails-loader.rb +0 -166
- data/helper-scripts/classic-rails-preloader.rb +0 -193
- data/lib/phusion_passenger/admin_tools/server_instance.rb +0 -339
- data/lib/phusion_passenger/classic_rails/cgi_fixed.rb +0 -68
- data/lib/phusion_passenger/classic_rails/thread_handler_extension.rb +0 -40
- data/lib/phusion_passenger/platform_info/openssl.rb +0 -61
- data/lib/phusion_passenger/standalone/config_file.rb +0 -119
- data/lib/phusion_passenger/standalone/help_command.rb +0 -57
- data/lib/phusion_passenger/standalone/runtime_installer.rb +0 -712
- data/lib/phusion_passenger/standalone/runtime_locator.rb +0 -170
- data/lib/phusion_passenger/standalone/utils.rb +0 -58
- data/lib/phusion_passenger/utils/tmpdir.rb +0 -69
- data/packaging/debian/LICENSE.md +0 -19
- data/packaging/debian/README.md +0 -320
- data/packaging/debian/Vagrantfile +0 -25
- data/packaging/debian/build +0 -210
- data/packaging/debian/debian_specs/nginx/changelog +0 -1989
- data/packaging/debian/debian_specs/nginx/compat.erb +0 -5
- data/packaging/debian/debian_specs/nginx/conf/fastcgi.conf +0 -25
- data/packaging/debian/debian_specs/nginx/conf/fastcgi_params +0 -24
- data/packaging/debian/debian_specs/nginx/conf/koi-utf +0 -109
- data/packaging/debian/debian_specs/nginx/conf/koi-win +0 -103
- data/packaging/debian/debian_specs/nginx/conf/mime.types +0 -89
- data/packaging/debian/debian_specs/nginx/conf/nginx.conf.erb +0 -97
- data/packaging/debian/debian_specs/nginx/conf/proxy_params +0 -4
- data/packaging/debian/debian_specs/nginx/conf/scgi_params +0 -16
- data/packaging/debian/debian_specs/nginx/conf/sites-available/default.erb +0 -93
- data/packaging/debian/debian_specs/nginx/conf/snippets/fastcgi-php.conf +0 -13
- data/packaging/debian/debian_specs/nginx/conf/snippets/snakeoil.conf +0 -5
- data/packaging/debian/debian_specs/nginx/conf/uwsgi_params +0 -16
- data/packaging/debian/debian_specs/nginx/conf/win-utf +0 -125
- data/packaging/debian/debian_specs/nginx/control.erb +0 -226
- data/packaging/debian/debian_specs/nginx/copyright +0 -196
- data/packaging/debian/debian_specs/nginx/debian-full.lintian-overrides +0 -1
- data/packaging/debian/debian_specs/nginx/gbp.conf +0 -2
- data/packaging/debian/debian_specs/nginx/help/docs/fcgiwrap +0 -14
- data/packaging/debian/debian_specs/nginx/help/docs/php +0 -119
- data/packaging/debian/debian_specs/nginx/help/docs/support-irc +0 -28
- data/packaging/debian/debian_specs/nginx/help/docs/upstream +0 -51
- data/packaging/debian/debian_specs/nginx/help/examples/drupal +0 -114
- data/packaging/debian/debian_specs/nginx/help/examples/http +0 -59
- data/packaging/debian/debian_specs/nginx/help/examples/mail +0 -30
- data/packaging/debian/debian_specs/nginx/help/examples/mailman +0 -59
- data/packaging/debian/debian_specs/nginx/help/examples/nginx.conf +0 -34
- data/packaging/debian/debian_specs/nginx/help/examples/nginx_modsite +0 -162
- data/packaging/debian/debian_specs/nginx/help/examples/virtual_hosts +0 -155
- data/packaging/debian/debian_specs/nginx/help/examples/wordpress +0 -74
- data/packaging/debian/debian_specs/nginx/helpers.rb +0 -41
- data/packaging/debian/debian_specs/nginx/index-debian.html.in +0 -32
- data/packaging/debian/debian_specs/nginx/index-ubuntu.html.in +0 -32
- data/packaging/debian/debian_specs/nginx/index.html.erb +0 -10
- data/packaging/debian/debian_specs/nginx/modules/README.Modules-versions +0 -65
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/README.markdown +0 -510
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/config +0 -5
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/doc/HttpHeadersMoreModule.wiki +0 -395
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ddebug.h +0 -119
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_filter_module.c +0 -348
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_filter_module.h +0 -80
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_headers_in.c +0 -826
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_headers_in.h +0 -26
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_headers_out.c +0 -716
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_headers_out.h +0 -26
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_util.c +0 -380
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/src/ngx_http_headers_more_util.h +0 -52
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/util/build.sh +0 -32
- data/packaging/debian/debian_specs/nginx/modules/headers-more-nginx-module/valgrind.suppress +0 -215
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/ChangeLog +0 -35
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/LICENSE +0 -25
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/README.md +0 -93
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/config +0 -4
- data/packaging/debian/debian_specs/nginx/modules/nginx-auth-pam/ngx_http_auth_pam_module.c +0 -462
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/CHANGES +0 -66
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/LICENSE +0 -26
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/README.md +0 -171
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/TODO.md +0 -7
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/config +0 -21
- data/packaging/debian/debian_specs/nginx/modules/nginx-cache-purge/ngx_cache_purge_module.c +0 -1803
- data/packaging/debian/debian_specs/nginx/modules/nginx-dav-ext-module/README +0 -29
- data/packaging/debian/debian_specs/nginx/modules/nginx-dav-ext-module/config +0 -9
- data/packaging/debian/debian_specs/nginx/modules/nginx-dav-ext-module/ngx_http_dav_ext_module.c +0 -824
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/README +0 -139
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/README_AUTO_LIB +0 -395
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/TODO +0 -1
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/actions/array +0 -10
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/actions/palloc +0 -8
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/build +0 -597
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/action_replacements +0 -5
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/action_types +0 -12
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/conf_args +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/conf_locs +0 -25
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/conf_macros +0 -35
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/contexts +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/header_files +0 -3
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/headers +0 -4
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/module_dependencies +0 -5
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/modules_optional +0 -15
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/data/prefixes +0 -2
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/src/array.h +0 -7
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/src/conf_cmd_basic.h +0 -43
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/src/conf_merge.h +0 -78
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/src/palloc.h +0 -6
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/auto/text/autogen +0 -12
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/config +0 -49
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/core/action_macros +0 -63
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/core/conf_cmds +0 -62
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/modules/set_var +0 -124
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/patches/more_logging_info +0 -48
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/docs/upstream/list +0 -45
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/examples/README +0 -12
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/examples/http/set_var/config +0 -4
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/examples/http/set_var/ngx_http_set_var_examples_module.c +0 -136
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/ngx_auto_lib_core +0 -797
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/notes/CHANGES +0 -17
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/notes/LICENSE +0 -24
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_array.h +0 -113
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_conf_cmd_basic.h +0 -2203
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_conf_cmd_extra.h +0 -5423
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_conf_merge.h +0 -227
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_config.c +0 -72
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_config.h +0 -98
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_includes.h +0 -66
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/objs/ndk_palloc.h +0 -112
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/patches/auto_config +0 -16
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/patches/expose_rewrite_functions +0 -291
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/patches/rewrite_phase_handler +0 -19
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/hash/md5.h +0 -117
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/hash/murmurhash2.c +0 -77
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/hash/sha.h +0 -200
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk.c +0 -155
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk.h +0 -58
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_buf.c +0 -43
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_buf.h +0 -5
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_complex_path.c +0 -129
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_complex_path.h +0 -30
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_complex_value.c +0 -192
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_complex_value.h +0 -21
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_conf_file.c +0 -396
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_conf_file.h +0 -44
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_debug.c +0 -72
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_debug.h +0 -171
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_encoding.c +0 -57
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_encoding.h +0 -12
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_hash.c +0 -82
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_hash.h +0 -45
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_http.c +0 -138
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_http.h +0 -3
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_http_headers.h +0 -35
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_log.c +0 -3
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_log.h +0 -165
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_parse.h +0 -67
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_path.c +0 -583
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_path.h +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_process.c +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_process.h +0 -12
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_regex.c +0 -215
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_regex.h +0 -7
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_rewrite.c +0 -103
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_rewrite.h +0 -26
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_set_var.c +0 -602
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_set_var.h +0 -44
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_string.c +0 -434
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_string.h +0 -37
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_string_util.h +0 -14
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_upstream_list.c +0 -205
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_upstream_list.h +0 -27
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_uri.c +0 -45
- data/packaging/debian/debian_specs/nginx/modules/nginx-development-kit/src/ndk_uri.h +0 -6
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/LICENSE +0 -25
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/README.markdown +0 -1850
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/config +0 -5
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/doc/HttpEchoModule.wiki +0 -1558
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ddebug.h +0 -109
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_echo.c +0 -344
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_echo.h +0 -25
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_filter.c +0 -282
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_filter.h +0 -15
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_foreach.c +0 -183
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_foreach.h +0 -16
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_handler.c +0 -429
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_handler.h +0 -18
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_location.c +0 -178
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_location.h +0 -13
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_module.c +0 -667
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_module.h +0 -137
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_request_info.c +0 -452
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_request_info.h +0 -31
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_sleep.c +0 -208
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_sleep.h +0 -16
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_subrequest.c +0 -788
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_subrequest.h +0 -19
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_timer.c +0 -96
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_timer.h +0 -13
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_util.c +0 -298
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_util.h +0 -58
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_var.c +0 -110
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/src/ngx_http_echo_var.h +0 -9
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/util/build.sh +0 -45
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/util/releng +0 -8
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/util/wiki2pod.pl +0 -131
- data/packaging/debian/debian_specs/nginx/modules/nginx-echo/valgrind.suppress +0 -38
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/LICENCE +0 -24
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/README +0 -206
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/changelog.txt +0 -54
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/config +0 -26
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/protocol.txt +0 -191
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_defs.c +0 -59
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_defs.h +0 -73
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_module.c +0 -783
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_module.h +0 -31
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_module_setup.c +0 -361
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/ngx_http_push_types.h +0 -120
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/memory/store.c +0 -1180
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/memory/store.h +0 -1
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_http_push_module_ipc.c +0 -146
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_http_push_module_ipc.h +0 -5
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_http_push_store.h +0 -51
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_rwlock.c +0 -178
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/ngx_rwlock.h +0 -5
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/rbtree_util.c +0 -246
- data/packaging/debian/debian_specs/nginx/modules/nginx-http-push/src/store/rbtree_util.h +0 -9
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/Changes +0 -51
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/README.markdown +0 -6954
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/config +0 -363
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/doc/HttpLuaModule.wiki +0 -5898
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/dtrace/ngx_lua_provider.d +0 -61
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/misc/recv-until-pm/Makefile +0 -3
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/misc/recv-until-pm/lib/RecvUntil.pm +0 -138
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/misc/recv-until-pm/t/sanity.t +0 -140
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/api/ngx_http_lua_api.h +0 -52
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ddebug.h +0 -82
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_accessby.c +0 -377
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_accessby.h +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_api.c +0 -77
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_args.c +0 -537
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_args.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_bodyfilterby.c +0 -632
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_bodyfilterby.h +0 -31
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_cache.c +0 -296
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_cache.h +0 -24
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_capturefilter.c +0 -175
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_capturefilter.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_clfactory.c +0 -887
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_clfactory.h +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_common.h +0 -478
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_config.c +0 -67
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_config.h +0 -19
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_consts.c +0 -148
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_consts.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_contentby.c +0 -369
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_contentby.h +0 -26
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_control.c +0 -483
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_control.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_coroutine.c +0 -379
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_coroutine.h +0 -23
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_ctx.c +0 -216
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_ctx.h +0 -23
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_directive.c +0 -1081
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_directive.h +0 -56
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_exception.c +0 -58
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_exception.h +0 -33
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headerfilterby.c +0 -302
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headerfilterby.h +0 -29
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers.c +0 -1370
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers.h +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers_in.c +0 -782
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers_in.h +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers_out.c +0 -625
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_headers_out.h +0 -23
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_initby.c +0 -42
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_initby.h +0 -23
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_initworkerby.c +0 -320
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_initworkerby.h +0 -25
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_log.c +0 -300
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_log.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_logby.c +0 -227
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_logby.h +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_misc.c +0 -252
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_misc.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_module.c +0 -924
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_ndk.c +0 -184
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_ndk.h +0 -21
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_output.c +0 -794
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_output.h +0 -28
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_pcrefix.c +0 -106
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_pcrefix.h +0 -23
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_phase.c +0 -94
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_phase.h +0 -13
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_probe.h +0 -85
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_regex.c +0 -2468
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_regex.h +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_req_body.c +0 -1169
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_req_body.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_req_method.c +0 -252
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_req_method.h +0 -19
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_rewriteby.c +0 -351
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_rewriteby.h +0 -22
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_script.c +0 -538
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_script.h +0 -86
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_setby.c +0 -216
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_setby.h +0 -15
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_shdict.c +0 -1844
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_shdict.h +0 -52
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_sleep.c +0 -191
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_sleep.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_socket_tcp.c +0 -5314
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_socket_tcp.h +0 -156
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_socket_udp.c +0 -1624
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_socket_udp.h +0 -56
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_string.c +0 -704
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_string.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_subrequest.c +0 -1741
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_subrequest.h +0 -46
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_time.c +0 -278
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_time.h +0 -21
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_timer.c +0 -661
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_timer.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_uri.c +0 -110
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_uri.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_uthread.c +0 -283
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_uthread.h +0 -36
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_util.c +0 -3972
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_util.h +0 -423
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_variable.c +0 -499
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_variable.h +0 -20
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_worker.c +0 -64
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/src/ngx_http_lua_worker.h +0 -17
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/tapset/ngx_lua.stp +0 -5
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/build.sh +0 -39
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/build2.sh +0 -55
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/fix-comments +0 -27
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/gdbinit +0 -415
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/ngx-links +0 -62
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/reindex +0 -64
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/releng +0 -8
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/retab +0 -8
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/revim +0 -102
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/run_test.sh +0 -10
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/util/update-readme.sh +0 -4
- data/packaging/debian/debian_specs/nginx/modules/nginx-lua/valgrind.suppress +0 -144
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/CHANGES +0 -107
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/LICENSE +0 -25
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/Makefile +0 -8
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/README +0 -329
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/config +0 -3
- data/packaging/debian/debian_specs/nginx/modules/nginx-upload-progress/ngx_http_uploadprogress_module.c +0 -1774
- data/packaging/debian/debian_specs/nginx/modules/nginx-upstream-fair/README +0 -53
- data/packaging/debian/debian_specs/nginx/modules/nginx-upstream-fair/config +0 -3
- data/packaging/debian/debian_specs/nginx/modules/nginx-upstream-fair/ngx_http_upstream_fair_module.c +0 -1356
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/CHANGELOG.md +0 -37
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/HACKING.md +0 -24
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/LICENSE +0 -20
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/README.rst +0 -182
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/config +0 -8
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/nginx-0.6-support.patch +0 -23
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/ngx_http_fancyindex_module.c +0 -1305
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/template.awk +0 -52
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/template.h +0 -103
- data/packaging/debian/debian_specs/nginx/modules/ngx-fancyindex/template.html +0 -102
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/CHANGES +0 -37
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/README +0 -141
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/config +0 -3
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/doc/README.google_code_home_page.wiki +0 -120
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/doc/README.html +0 -199
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/doc/README.wiki +0 -123
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/ngx_http_subs_filter_module.c +0 -1298
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/README +0 -275
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/AutoInstall.pm +0 -820
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install.pm +0 -470
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/AutoInstall.pm +0 -82
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Base.pm +0 -83
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Can.pm +0 -81
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Fetch.pm +0 -93
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Include.pm +0 -34
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Makefile.pm +0 -415
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Metadata.pm +0 -716
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/TestBase.pm +0 -29
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/Win32.pm +0 -64
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Module/Install/WriteAll.pm +0 -63
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Spiffy.pm +0 -539
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/Base.pm +0 -682
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/Base/Filter.pm +0 -341
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/Builder.pm +0 -1413
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/Builder/Module.pm +0 -81
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/inc/Test/More.pm +0 -735
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/lib/Test/Nginx.pm +0 -315
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/lib/Test/Nginx/LWP.pm +0 -524
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/lib/Test/Nginx/Socket.pm +0 -1749
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/lib/Test/Nginx/Util.pm +0 -874
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs.t +0 -136
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs_capture.t +0 -32
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs_fix_string.t +0 -32
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs_regex.t +0 -108
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/t/subs_types.t +0 -59
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/test/test.sh +0 -5
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/util/update-readme.sh +0 -7
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/util/wiki2google_code_homepage.pl +0 -29
- data/packaging/debian/debian_specs/nginx/modules/ngx_http_substitutions_filter_module/util/wiki2pod.pl +0 -129
- data/packaging/debian/debian_specs/nginx/nginx-common.NEWS +0 -135
- data/packaging/debian/debian_specs/nginx/nginx-common.README.Debian +0 -45
- data/packaging/debian/debian_specs/nginx/nginx-common.dirs.erb +0 -32
- data/packaging/debian/debian_specs/nginx/nginx-common.install +0 -3
- data/packaging/debian/debian_specs/nginx/nginx-common.lintian-overrides +0 -2
- data/packaging/debian/debian_specs/nginx/nginx-common.manpages +0 -1
- data/packaging/debian/debian_specs/nginx/nginx-common.nginx.default +0 -10
- data/packaging/debian/debian_specs/nginx/nginx-common.nginx.init.erb +0 -214
- data/packaging/debian/debian_specs/nginx/nginx-common.nginx.logrotate +0 -18
- data/packaging/debian/debian_specs/nginx/nginx-common.nginx.service.erb +0 -37
- data/packaging/debian/debian_specs/nginx/nginx-common.postinst.erb +0 -66
- data/packaging/debian/debian_specs/nginx/nginx-common.postrm.erb +0 -46
- data/packaging/debian/debian_specs/nginx/nginx-common.preinst +0 -47
- data/packaging/debian/debian_specs/nginx/nginx-common.prerm.erb +0 -28
- data/packaging/debian/debian_specs/nginx/nginx-doc.docs +0 -2
- data/packaging/debian/debian_specs/nginx/nginx-doc.examples +0 -1
- data/packaging/debian/debian_specs/nginx/nginx-extras.install.erb +0 -17
- data/packaging/debian/debian_specs/nginx/nginx-extras.lintian-overrides +0 -1
- data/packaging/debian/debian_specs/nginx/nginx-extras.postinst.erb +0 -44
- data/packaging/debian/debian_specs/nginx/nginx-extras.prerm +0 -22
- data/packaging/debian/debian_specs/nginx/nginx.1 +0 -47
- data/packaging/debian/debian_specs/nginx/patches/perl-use-dpkg-buildflags.patch +0 -23
- data/packaging/debian/debian_specs/nginx/patches/series +0 -1
- data/packaging/debian/debian_specs/nginx/rules.erb +0 -185
- data/packaging/debian/debian_specs/nginx/source/format +0 -1
- data/packaging/debian/debian_specs/nginx/tests/control +0 -4
- data/packaging/debian/debian_specs/nginx/ufw/nginx +0 -14
- data/packaging/debian/debian_specs/nginx/upstream/signing-key.asc +0 -34
- data/packaging/debian/debian_specs/nginx/watch +0 -3
- data/packaging/debian/debian_specs/passenger/README.Debian +0 -12
- data/packaging/debian/debian_specs/passenger/changelog +0 -316
- data/packaging/debian/debian_specs/passenger/compat +0 -1
- data/packaging/debian/debian_specs/passenger/control.erb +0 -123
- data/packaging/debian/debian_specs/passenger/copyright +0 -385
- data/packaging/debian/debian_specs/passenger/helpers.rb +0 -24
- data/packaging/debian/debian_specs/passenger/libapache2-mod-passenger.install +0 -3
- data/packaging/debian/debian_specs/passenger/libapache2-mod-passenger.postinst +0 -36
- data/packaging/debian/debian_specs/passenger/libapache2-mod-passenger.prerm +0 -15
- data/packaging/debian/debian_specs/passenger/locations.ini.erb +0 -14
- data/packaging/debian/debian_specs/passenger/passenger-dev.install.erb +0 -3
- data/packaging/debian/debian_specs/passenger/passenger-doc.install.erb +0 -2
- data/packaging/debian/debian_specs/passenger/passenger.conf +0 -6
- data/packaging/debian/debian_specs/passenger/passenger.docs +0 -4
- data/packaging/debian/debian_specs/passenger/passenger.install.erb +0 -16
- data/packaging/debian/debian_specs/passenger/passenger.load +0 -3
- data/packaging/debian/debian_specs/passenger/passenger.manpages +0 -3
- data/packaging/debian/debian_specs/passenger/passenger_free_ruby.c +0 -29
- data/packaging/debian/debian_specs/passenger/passenger_ruby_utils.c +0 -54
- data/packaging/debian/debian_specs/passenger/passenger_system_ruby.c.erb +0 -37
- data/packaging/debian/debian_specs/passenger/rules.erb +0 -84
- data/packaging/debian/debian_specs/passenger/source/format +0 -1
- data/packaging/debian/debian_specs/passenger_enterprise/README.Debian +0 -12
- data/packaging/debian/debian_specs/passenger_enterprise/changelog +0 -316
- data/packaging/debian/debian_specs/passenger_enterprise/compat +0 -1
- data/packaging/debian/debian_specs/passenger_enterprise/control.erb +0 -123
- data/packaging/debian/debian_specs/passenger_enterprise/copyright +0 -385
- data/packaging/debian/debian_specs/passenger_enterprise/helpers.rb +0 -2
- data/packaging/debian/debian_specs/passenger_enterprise/libapache2-mod-passenger-enterprise.install +0 -3
- data/packaging/debian/debian_specs/passenger_enterprise/libapache2-mod-passenger-enterprise.postinst +0 -36
- data/packaging/debian/debian_specs/passenger_enterprise/libapache2-mod-passenger-enterprise.prerm +0 -15
- data/packaging/debian/debian_specs/passenger_enterprise/locations.ini.erb +0 -14
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise-dev.install.erb +0 -3
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise-doc.install.erb +0 -2
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise.docs +0 -4
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise.install.erb +0 -14
- data/packaging/debian/debian_specs/passenger_enterprise/passenger-enterprise.manpages +0 -3
- data/packaging/debian/debian_specs/passenger_enterprise/passenger.conf +0 -6
- data/packaging/debian/debian_specs/passenger_enterprise/passenger.load +0 -3
- data/packaging/debian/debian_specs/passenger_enterprise/passenger_free_ruby.c.erb +0 -1
- data/packaging/debian/debian_specs/passenger_enterprise/passenger_ruby_utils.c.erb +0 -1
- data/packaging/debian/debian_specs/passenger_enterprise/passenger_system_ruby.c.erb +0 -1
- data/packaging/debian/debian_specs/passenger_enterprise/patches/series +0 -0
- data/packaging/debian/debian_specs/passenger_enterprise/rules.erb +0 -84
- data/packaging/debian/debian_specs/passenger_enterprise/source/format +0 -1
- data/packaging/debian/docker_images/Makefile +0 -38
- data/packaging/debian/docker_images/buildbox/CONTAINER_VERSION.txt +0 -0
- data/packaging/debian/docker_images/buildbox/Dockerfile +0 -3
- data/packaging/debian/docker_images/buildbox/Gemfile +0 -9
- data/packaging/debian/docker_images/buildbox/Gemfile.lock +0 -42
- data/packaging/debian/docker_images/buildbox/install.sh +0 -85
- data/packaging/debian/docker_images/buildbox/pbuilderrc +0 -4
- data/packaging/debian/docker_images/buildbox/sudoers.conf +0 -6
- data/packaging/debian/docker_images/setup-buildbox-docker-image +0 -7
- data/packaging/debian/docker_images/setup-testbox-docker-image-debian-6 +0 -7
- data/packaging/debian/docker_images/setup-testbox-docker-image-debian-7 +0 -7
- data/packaging/debian/docker_images/setup-testbox-docker-image-debian-8 +0 -7
- data/packaging/debian/docker_images/setup-testbox-docker-image-ubuntu-12.04 +0 -7
- data/packaging/debian/docker_images/setup-testbox-docker-image-ubuntu-14.04 +0 -7
- data/packaging/debian/docker_images/setup-testbox-docker-image-ubuntu-15.04 +0 -7
- data/packaging/debian/docker_images/setup-testbox-docker-image-ubuntu-15.10 +0 -7
- data/packaging/debian/docker_images/testbox-debian-6/Dockerfile +0 -3
- data/packaging/debian/docker_images/testbox-debian-6/Gemfile +0 -2
- data/packaging/debian/docker_images/testbox-debian-6/Gemfile.lock +0 -23
- data/packaging/debian/docker_images/testbox-debian-6/argparse.py +0 -2374
- data/packaging/debian/docker_images/testbox-debian-6/install.sh +0 -78
- data/packaging/debian/docker_images/testbox-debian-7/Dockerfile +0 -3
- data/packaging/debian/docker_images/testbox-debian-7/Gemfile +0 -2
- data/packaging/debian/docker_images/testbox-debian-7/Gemfile.lock +0 -23
- data/packaging/debian/docker_images/testbox-debian-7/install.sh +0 -71
- data/packaging/debian/docker_images/testbox-debian-8/Dockerfile +0 -3
- data/packaging/debian/docker_images/testbox-debian-8/Gemfile +0 -2
- data/packaging/debian/docker_images/testbox-debian-8/Gemfile.lock +0 -23
- data/packaging/debian/docker_images/testbox-debian-8/install.sh +0 -70
- data/packaging/debian/docker_images/testbox-ubuntu-12.04/Dockerfile +0 -3
- data/packaging/debian/docker_images/testbox-ubuntu-12.04/Gemfile +0 -2
- data/packaging/debian/docker_images/testbox-ubuntu-12.04/Gemfile.lock +0 -23
- data/packaging/debian/docker_images/testbox-ubuntu-12.04/install.sh +0 -69
- data/packaging/debian/docker_images/testbox-ubuntu-14.04/Dockerfile +0 -3
- data/packaging/debian/docker_images/testbox-ubuntu-14.04/Gemfile +0 -2
- data/packaging/debian/docker_images/testbox-ubuntu-14.04/Gemfile.lock +0 -23
- data/packaging/debian/docker_images/testbox-ubuntu-14.04/install.sh +0 -69
- data/packaging/debian/docker_images/testbox-ubuntu-15.04/Dockerfile +0 -3
- data/packaging/debian/docker_images/testbox-ubuntu-15.04/Gemfile +0 -2
- data/packaging/debian/docker_images/testbox-ubuntu-15.04/Gemfile.lock +0 -23
- data/packaging/debian/docker_images/testbox-ubuntu-15.04/install.sh +0 -69
- data/packaging/debian/docker_images/testbox-ubuntu-15.10/Dockerfile +0 -3
- data/packaging/debian/docker_images/testbox-ubuntu-15.10/Gemfile +0 -2
- data/packaging/debian/docker_images/testbox-ubuntu-15.10/Gemfile.lock +0 -23
- data/packaging/debian/docker_images/testbox-ubuntu-15.10/install.sh +0 -69
- data/packaging/debian/internal/build/Rakefile +0 -235
- data/packaging/debian/internal/build/build-passenger-orig-tarball.sh +0 -76
- data/packaging/debian/internal/build/build-source-package.rb +0 -121
- data/packaging/debian/internal/build/download-nginx-orig-tarball.sh +0 -17
- data/packaging/debian/internal/build/rakefile_support.rb +0 -96
- data/packaging/debian/internal/build/setup-environment-essentials.sh +0 -15
- data/packaging/debian/internal/build/setup-environment.sh +0 -29
- data/packaging/debian/internal/lib/distro_info.rb +0 -82
- data/packaging/debian/internal/lib/distro_info.sh +0 -303
- data/packaging/debian/internal/lib/distro_info.sh.erb +0 -65
- data/packaging/debian/internal/lib/library.sh +0 -83
- data/packaging/debian/internal/lib/preprocessor.rb +0 -173
- data/packaging/debian/internal/lib/tracking.rb +0 -95
- data/packaging/debian/internal/lib/tracking_category.rb +0 -45
- data/packaging/debian/internal/lib/tracking_database.rb +0 -132
- data/packaging/debian/internal/lib/tracking_task.rb +0 -148
- data/packaging/debian/internal/lib/utils.rb +0 -78
- data/packaging/debian/internal/publish/Rakefile +0 -97
- data/packaging/debian/internal/publish/oss-binaries.phusionpassenger.com-fingerprint.txt +0 -1
- data/packaging/debian/internal/publish/packagecloud_fingerprint.txt +0 -1
- data/packaging/debian/internal/publish/passenger_website_fingerprint.txt +0 -1
- data/packaging/debian/internal/publish/preinit.sh +0 -7
- data/packaging/debian/internal/publish/rakefile_support.rb +0 -183
- data/packaging/debian/internal/scripts/gpg_noninteractive/gpg +0 -11
- data/packaging/debian/internal/scripts/initccache.sh +0 -35
- data/packaging/debian/internal/scripts/inituidgid.sh +0 -19
- data/packaging/debian/internal/scripts/my_init +0 -340
- data/packaging/debian/internal/scripts/pin_certificates +0 -34
- data/packaging/debian/internal/scripts/regen_distro_info_script.sh +0 -3
- data/packaging/debian/internal/scripts/setup-vagrant.sh +0 -12
- data/packaging/debian/internal/scripts/setuser +0 -31
- data/packaging/debian/internal/shell/initpbuilder.sh +0 -3
- data/packaging/debian/internal/shell/preinit.sh +0 -28
- data/packaging/debian/internal/shell/sudoers.conf +0 -1
- data/packaging/debian/internal/test/apache/apache-24.conf +0 -5
- data/packaging/debian/internal/test/apache/apache-pre-24.conf +0 -4
- data/packaging/debian/internal/test/apache/vhost.conf +0 -17
- data/packaging/debian/internal/test/misc/config.json +0 -15
- data/packaging/debian/internal/test/misc/hosts.conf +0 -4
- data/packaging/debian/internal/test/misc/init.sh +0 -25
- data/packaging/debian/internal/test/misc/nodejs_test_app.js +0 -6
- data/packaging/debian/internal/test/misc/python_test_app.py +0 -3
- data/packaging/debian/internal/test/misc/ruby_test_app.rb +0 -5
- data/packaging/debian/internal/test/misc/test_support.rb +0 -61
- data/packaging/debian/internal/test/nginx/vhost.conf +0 -23
- data/packaging/debian/internal/test/system_web_server_test.rb +0 -126
- data/packaging/debian/internal/test/test.sh +0 -141
- data/packaging/debian/jenkins/publish/clear_caches.rb +0 -48
- data/packaging/debian/jenkins/publish/publish.sh +0 -69
- data/packaging/debian/jenkins/test/test.sh +0 -63
- data/packaging/debian/passenger_apt_automation.sublime-project +0 -14
- data/packaging/debian/publish +0 -172
- data/packaging/debian/shell +0 -116
- data/packaging/debian/test +0 -142
- data/packaging/rpm/passenger_spec/rubygem-passenger-4.0.18-gcc47-include-sys_types.patch +0 -45
- data/test/cxx/Base64Test.cpp +0 -50
- data/test/cxx/FileBackedPipeTest.cpp +0 -626
- data/test/cxx/HttpHeaderBuffererTest.cpp +0 -257
- data/test/cxx/ScgiRequestParserTest.cpp +0 -423
- data/test/cxx/ServerInstanceDirTest.cpp +0 -175
- data/test/ruby/admin_tools_spec.rb +0 -360
- data/test/ruby/classic_rails/loader_spec.rb +0 -46
- data/test/ruby/classic_rails/preloader_spec.rb +0 -52
- data/test/ruby/standalone/runtime_locator_spec.rb +0 -214
- data/test/stub/rails2.3/Rakefile +0 -10
- data/test/stub/rails2.3/app/controllers/application_controller.rb +0 -10
- data/test/stub/rails2.3/app/controllers/bar_controller_1.rb +0 -5
- data/test/stub/rails2.3/app/controllers/bar_controller_2.rb +0 -5
- data/test/stub/rails2.3/app/controllers/foo_controller.rb +0 -21
- data/test/stub/rails2.3/app/helpers/application_helper.rb +0 -3
- data/test/stub/rails2.3/app/helpers/bar_helper.rb +0 -2
- data/test/stub/rails2.3/app/helpers/foo_helper.rb +0 -2
- data/test/stub/rails2.3/config/boot.rb +0 -110
- data/test/stub/rails2.3/config/database.yml +0 -19
- data/test/stub/rails2.3/config/environment.rb +0 -62
- data/test/stub/rails2.3/config/environments/development.rb +0 -17
- data/test/stub/rails2.3/config/environments/production.rb +0 -18
- data/test/stub/rails2.3/config/environments/staging.rb +0 -18
- data/test/stub/rails2.3/config/initializers/inflections.rb +0 -10
- data/test/stub/rails2.3/config/initializers/mime_types.rb +0 -5
- data/test/stub/rails2.3/config/routes.rb +0 -35
- data/test/stub/rails2.3/log/.gitignore +0 -1
- data/test/stub/rails2.3/public/.gitignore +0 -1
- data/test/stub/rails2.3/script/about +0 -3
- data/test/stub/rails2.3/script/console +0 -3
- data/test/stub/rails2.3/script/dbconsole +0 -3
- data/test/stub/rails2.3/script/destroy +0 -3
- data/test/stub/rails2.3/script/generate +0 -3
- data/test/stub/rails2.3/script/performance/benchmarker +0 -3
- data/test/stub/rails2.3/script/performance/profiler +0 -3
- data/test/stub/rails2.3/script/performance/request +0 -3
- data/test/stub/rails2.3/script/plugin +0 -3
- data/test/stub/rails2.3/script/process/inspector +0 -3
- data/test/stub/rails2.3/script/process/reaper +0 -3
- data/test/stub/rails2.3/script/process/spawner +0 -3
- data/test/stub/rails2.3/script/runner +0 -3
- data/test/stub/rails2.3/script/server +0 -3
- data/test/stub/rails2.3/tmp/cache/.gitignore +0 -1
- data/test/stub/rails2.3/tmp/pids/.gitignore +0 -1
- data/test/stub/rails2.3/tmp/sessions/.gitignore +0 -1
- data/test/stub/rails2.3/tmp/sockets/.gitignore +0 -1
@@ -0,0 +1,300 @@
|
|
1
|
+
/////////////////////////////////////////////////////////////////////////////
|
2
|
+
//
|
3
|
+
// (C) Copyright Olaf Krzikalla 2004-2006.
|
4
|
+
// (C) Copyright Ion Gaztanaga 2006-2012
|
5
|
+
//
|
6
|
+
// Distributed under the Boost Software License, Version 1.0.
|
7
|
+
// (See accompanying file LICENSE_1_0.txt or copy at
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
9
|
+
//
|
10
|
+
// See http://www.boost.org/libs/intrusive for documentation.
|
11
|
+
//
|
12
|
+
/////////////////////////////////////////////////////////////////////////////
|
13
|
+
|
14
|
+
#ifndef BOOST_INTRUSIVE_SET_HOOK_HPP
|
15
|
+
#define BOOST_INTRUSIVE_SET_HOOK_HPP
|
16
|
+
|
17
|
+
#include <boost/intrusive/detail/config_begin.hpp>
|
18
|
+
#include <boost/intrusive/intrusive_fwd.hpp>
|
19
|
+
#include <boost/intrusive/detail/utilities.hpp>
|
20
|
+
#include <boost/intrusive/detail/rbtree_node.hpp>
|
21
|
+
#include <boost/intrusive/rbtree_algorithms.hpp>
|
22
|
+
#include <boost/intrusive/options.hpp>
|
23
|
+
#include <boost/intrusive/detail/generic_hook.hpp>
|
24
|
+
|
25
|
+
namespace boost {
|
26
|
+
namespace intrusive {
|
27
|
+
|
28
|
+
/// @cond
|
29
|
+
template<class VoidPointer, bool OptimizeSize = false>
|
30
|
+
struct get_set_node_algo
|
31
|
+
{
|
32
|
+
typedef rbtree_algorithms<rbtree_node_traits<VoidPointer, OptimizeSize> > type;
|
33
|
+
};
|
34
|
+
/// @endcond
|
35
|
+
|
36
|
+
//! Helper metafunction to define a \c set_base_hook that yields to the same
|
37
|
+
//! type when the same options (either explicitly or implicitly) are used.
|
38
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) || defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
39
|
+
template<class ...Options>
|
40
|
+
#else
|
41
|
+
template<class O1 = none, class O2 = none, class O3 = none, class O4 = none>
|
42
|
+
#endif
|
43
|
+
struct make_set_base_hook
|
44
|
+
{
|
45
|
+
/// @cond
|
46
|
+
typedef typename pack_options
|
47
|
+
< hook_defaults,
|
48
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
49
|
+
O1, O2, O3, O4
|
50
|
+
#else
|
51
|
+
Options...
|
52
|
+
#endif
|
53
|
+
>::type packed_options;
|
54
|
+
|
55
|
+
typedef detail::generic_hook
|
56
|
+
< get_set_node_algo<typename packed_options::void_pointer
|
57
|
+
,packed_options::optimize_size>
|
58
|
+
, typename packed_options::tag
|
59
|
+
, packed_options::link_mode
|
60
|
+
, detail::SetBaseHook
|
61
|
+
> implementation_defined;
|
62
|
+
/// @endcond
|
63
|
+
typedef implementation_defined type;
|
64
|
+
};
|
65
|
+
|
66
|
+
//! Derive a class from set_base_hook in order to store objects in
|
67
|
+
//! in a set/multiset. set_base_hook holds the data necessary to maintain
|
68
|
+
//! the set/multiset and provides an appropriate value_traits class for set/multiset.
|
69
|
+
//!
|
70
|
+
//! The hook admits the following options: \c tag<>, \c void_pointer<>,
|
71
|
+
//! \c link_mode<> and \c optimize_size<>.
|
72
|
+
//!
|
73
|
+
//! \c tag<> defines a tag to identify the node.
|
74
|
+
//! The same tag value can be used in different classes, but if a class is
|
75
|
+
//! derived from more than one \c list_base_hook, then each \c list_base_hook needs its
|
76
|
+
//! unique tag.
|
77
|
+
//!
|
78
|
+
//! \c void_pointer<> is the pointer type that will be used internally in the hook
|
79
|
+
//! and the the container configured to use this hook.
|
80
|
+
//!
|
81
|
+
//! \c link_mode<> will specify the linking mode of the hook (\c normal_link,
|
82
|
+
//! \c auto_unlink or \c safe_link).
|
83
|
+
//!
|
84
|
+
//! \c optimize_size<> will tell the hook to optimize the hook for size instead
|
85
|
+
//! of speed.
|
86
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) || defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
87
|
+
template<class ...Options>
|
88
|
+
#else
|
89
|
+
template<class O1, class O2, class O3, class O4>
|
90
|
+
#endif
|
91
|
+
class set_base_hook
|
92
|
+
: public make_set_base_hook<
|
93
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
94
|
+
O1, O2, O3, O4
|
95
|
+
#else
|
96
|
+
Options...
|
97
|
+
#endif
|
98
|
+
>::type
|
99
|
+
{
|
100
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
101
|
+
public:
|
102
|
+
//! <b>Effects</b>: If link_mode is \c auto_unlink or \c safe_link
|
103
|
+
//! initializes the node to an unlinked state.
|
104
|
+
//!
|
105
|
+
//! <b>Throws</b>: Nothing.
|
106
|
+
set_base_hook();
|
107
|
+
|
108
|
+
//! <b>Effects</b>: If link_mode is \c auto_unlink or \c safe_link
|
109
|
+
//! initializes the node to an unlinked state. The argument is ignored.
|
110
|
+
//!
|
111
|
+
//! <b>Throws</b>: Nothing.
|
112
|
+
//!
|
113
|
+
//! <b>Rationale</b>: Providing a copy-constructor
|
114
|
+
//! makes classes using the hook STL-compliant without forcing the
|
115
|
+
//! user to do some additional work. \c swap can be used to emulate
|
116
|
+
//! move-semantics.
|
117
|
+
set_base_hook(const set_base_hook& );
|
118
|
+
|
119
|
+
//! <b>Effects</b>: Empty function. The argument is ignored.
|
120
|
+
//!
|
121
|
+
//! <b>Throws</b>: Nothing.
|
122
|
+
//!
|
123
|
+
//! <b>Rationale</b>: Providing an assignment operator
|
124
|
+
//! makes classes using the hook STL-compliant without forcing the
|
125
|
+
//! user to do some additional work. \c swap can be used to emulate
|
126
|
+
//! move-semantics.
|
127
|
+
set_base_hook& operator=(const set_base_hook& );
|
128
|
+
|
129
|
+
//! <b>Effects</b>: If link_mode is \c normal_link, the destructor does
|
130
|
+
//! nothing (ie. no code is generated). If link_mode is \c safe_link and the
|
131
|
+
//! object is stored in a set an assertion is raised. If link_mode is
|
132
|
+
//! \c auto_unlink and \c is_linked() is true, the node is unlinked.
|
133
|
+
//!
|
134
|
+
//! <b>Throws</b>: Nothing.
|
135
|
+
~set_base_hook();
|
136
|
+
|
137
|
+
//! <b>Effects</b>: Swapping two nodes swaps the position of the elements
|
138
|
+
//! related to those nodes in one or two containers. That is, if the node
|
139
|
+
//! this is part of the element e1, the node x is part of the element e2
|
140
|
+
//! and both elements are included in the containers s1 and s2, then after
|
141
|
+
//! the swap-operation e1 is in s2 at the position of e2 and e2 is in s1
|
142
|
+
//! at the position of e1. If one element is not in a container, then
|
143
|
+
//! after the swap-operation the other element is not in a container.
|
144
|
+
//! Iterators to e1 and e2 related to those nodes are invalidated.
|
145
|
+
//!
|
146
|
+
//! <b>Complexity</b>: Constant
|
147
|
+
//!
|
148
|
+
//! <b>Throws</b>: Nothing.
|
149
|
+
void swap_nodes(set_base_hook &other);
|
150
|
+
|
151
|
+
//! <b>Precondition</b>: link_mode must be \c safe_link or \c auto_unlink.
|
152
|
+
//!
|
153
|
+
//! <b>Returns</b>: true, if the node belongs to a container, false
|
154
|
+
//! otherwise. This function can be used to test whether \c set::iterator_to
|
155
|
+
//! will return a valid iterator.
|
156
|
+
//!
|
157
|
+
//! <b>Complexity</b>: Constant
|
158
|
+
bool is_linked() const;
|
159
|
+
|
160
|
+
//! <b>Effects</b>: Removes the node if it's inserted in a container.
|
161
|
+
//! This function is only allowed if link_mode is \c auto_unlink.
|
162
|
+
//!
|
163
|
+
//! <b>Throws</b>: Nothing.
|
164
|
+
void unlink();
|
165
|
+
#endif
|
166
|
+
};
|
167
|
+
|
168
|
+
//! Helper metafunction to define a \c set_member_hook that yields to the same
|
169
|
+
//! type when the same options (either explicitly or implicitly) are used.
|
170
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) || defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
171
|
+
template<class ...Options>
|
172
|
+
#else
|
173
|
+
template<class O1 = none, class O2 = none, class O3 = none, class O4 = none>
|
174
|
+
#endif
|
175
|
+
struct make_set_member_hook
|
176
|
+
{
|
177
|
+
/// @cond
|
178
|
+
typedef typename pack_options
|
179
|
+
< hook_defaults,
|
180
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
181
|
+
O1, O2, O3, O4
|
182
|
+
#else
|
183
|
+
Options...
|
184
|
+
#endif
|
185
|
+
>::type packed_options;
|
186
|
+
|
187
|
+
typedef detail::generic_hook
|
188
|
+
< get_set_node_algo<typename packed_options::void_pointer
|
189
|
+
,packed_options::optimize_size>
|
190
|
+
, member_tag
|
191
|
+
, packed_options::link_mode
|
192
|
+
, detail::NoBaseHook
|
193
|
+
> implementation_defined;
|
194
|
+
/// @endcond
|
195
|
+
typedef implementation_defined type;
|
196
|
+
};
|
197
|
+
|
198
|
+
//! Put a public data member set_member_hook in order to store objects of this class in
|
199
|
+
//! a set/multiset. set_member_hook holds the data necessary for maintaining the
|
200
|
+
//! set/multiset and provides an appropriate value_traits class for set/multiset.
|
201
|
+
//!
|
202
|
+
//! The hook admits the following options: \c void_pointer<>,
|
203
|
+
//! \c link_mode<> and \c optimize_size<>.
|
204
|
+
//!
|
205
|
+
//! \c void_pointer<> is the pointer type that will be used internally in the hook
|
206
|
+
//! and the the container configured to use this hook.
|
207
|
+
//!
|
208
|
+
//! \c link_mode<> will specify the linking mode of the hook (\c normal_link,
|
209
|
+
//! \c auto_unlink or \c safe_link).
|
210
|
+
//!
|
211
|
+
//! \c optimize_size<> will tell the hook to optimize the hook for size instead
|
212
|
+
//! of speed.
|
213
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) || defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
214
|
+
template<class ...Options>
|
215
|
+
#else
|
216
|
+
template<class O1, class O2, class O3, class O4>
|
217
|
+
#endif
|
218
|
+
class set_member_hook
|
219
|
+
: public make_set_member_hook<
|
220
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
221
|
+
O1, O2, O3, O4
|
222
|
+
#else
|
223
|
+
Options...
|
224
|
+
#endif
|
225
|
+
>::type
|
226
|
+
{
|
227
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
228
|
+
public:
|
229
|
+
//! <b>Effects</b>: If link_mode is \c auto_unlink or \c safe_link
|
230
|
+
//! initializes the node to an unlinked state.
|
231
|
+
//!
|
232
|
+
//! <b>Throws</b>: Nothing.
|
233
|
+
set_member_hook();
|
234
|
+
|
235
|
+
//! <b>Effects</b>: If link_mode is \c auto_unlink or \c safe_link
|
236
|
+
//! initializes the node to an unlinked state. The argument is ignored.
|
237
|
+
//!
|
238
|
+
//! <b>Throws</b>: Nothing.
|
239
|
+
//!
|
240
|
+
//! <b>Rationale</b>: Providing a copy-constructor
|
241
|
+
//! makes classes using the hook STL-compliant without forcing the
|
242
|
+
//! user to do some additional work. \c swap can be used to emulate
|
243
|
+
//! move-semantics.
|
244
|
+
set_member_hook(const set_member_hook& );
|
245
|
+
|
246
|
+
//! <b>Effects</b>: Empty function. The argument is ignored.
|
247
|
+
//!
|
248
|
+
//! <b>Throws</b>: Nothing.
|
249
|
+
//!
|
250
|
+
//! <b>Rationale</b>: Providing an assignment operator
|
251
|
+
//! makes classes using the hook STL-compliant without forcing the
|
252
|
+
//! user to do some additional work. \c swap can be used to emulate
|
253
|
+
//! move-semantics.
|
254
|
+
set_member_hook& operator=(const set_member_hook& );
|
255
|
+
|
256
|
+
//! <b>Effects</b>: If link_mode is \c normal_link, the destructor does
|
257
|
+
//! nothing (ie. no code is generated). If link_mode is \c safe_link and the
|
258
|
+
//! object is stored in a set an assertion is raised. If link_mode is
|
259
|
+
//! \c auto_unlink and \c is_linked() is true, the node is unlinked.
|
260
|
+
//!
|
261
|
+
//! <b>Throws</b>: Nothing.
|
262
|
+
~set_member_hook();
|
263
|
+
|
264
|
+
//! <b>Effects</b>: Swapping two nodes swaps the position of the elements
|
265
|
+
//! related to those nodes in one or two containers. That is, if the node
|
266
|
+
//! this is part of the element e1, the node x is part of the element e2
|
267
|
+
//! and both elements are included in the containers s1 and s2, then after
|
268
|
+
//! the swap-operation e1 is in s2 at the position of e2 and e2 is in s1
|
269
|
+
//! at the position of e1. If one element is not in a container, then
|
270
|
+
//! after the swap-operation the other element is not in a container.
|
271
|
+
//! Iterators to e1 and e2 related to those nodes are invalidated.
|
272
|
+
//!
|
273
|
+
//! <b>Complexity</b>: Constant
|
274
|
+
//!
|
275
|
+
//! <b>Throws</b>: Nothing.
|
276
|
+
void swap_nodes(set_member_hook &other);
|
277
|
+
|
278
|
+
//! <b>Precondition</b>: link_mode must be \c safe_link or \c auto_unlink.
|
279
|
+
//!
|
280
|
+
//! <b>Returns</b>: true, if the node belongs to a container, false
|
281
|
+
//! otherwise. This function can be used to test whether \c set::iterator_to
|
282
|
+
//! will return a valid iterator.
|
283
|
+
//!
|
284
|
+
//! <b>Complexity</b>: Constant
|
285
|
+
bool is_linked() const;
|
286
|
+
|
287
|
+
//! <b>Effects</b>: Removes the node if it's inserted in a container.
|
288
|
+
//! This function is only allowed if link_mode is \c auto_unlink.
|
289
|
+
//!
|
290
|
+
//! <b>Throws</b>: Nothing.
|
291
|
+
void unlink();
|
292
|
+
#endif
|
293
|
+
};
|
294
|
+
|
295
|
+
} //namespace intrusive
|
296
|
+
} //namespace boost
|
297
|
+
|
298
|
+
#include <boost/intrusive/detail/config_end.hpp>
|
299
|
+
|
300
|
+
#endif //BOOST_INTRUSIVE_SET_HOOK_HPP
|
@@ -0,0 +1,2601 @@
|
|
1
|
+
/////////////////////////////////////////////////////////////////////////////
|
2
|
+
//
|
3
|
+
// (C) Copyright Ion Gaztanaga 2007-2012
|
4
|
+
//
|
5
|
+
// Distributed under the Boost Software License, Version 1.0.
|
6
|
+
// (See accompanying file LICENSE_1_0.txt or copy at
|
7
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
8
|
+
//
|
9
|
+
// See http://www.boost.org/libs/intrusive for documentation.
|
10
|
+
//
|
11
|
+
/////////////////////////////////////////////////////////////////////////////
|
12
|
+
#ifndef BOOST_INTRUSIVE_SG_SET_HPP
|
13
|
+
#define BOOST_INTRUSIVE_SG_SET_HPP
|
14
|
+
|
15
|
+
#include <boost/intrusive/detail/config_begin.hpp>
|
16
|
+
#include <boost/intrusive/intrusive_fwd.hpp>
|
17
|
+
#include <boost/intrusive/sgtree.hpp>
|
18
|
+
#include <boost/intrusive/detail/mpl.hpp>
|
19
|
+
#include <boost/move/move.hpp>
|
20
|
+
#include <iterator>
|
21
|
+
|
22
|
+
namespace boost {
|
23
|
+
namespace intrusive {
|
24
|
+
|
25
|
+
//! The class template sg_set is an intrusive container, that mimics most of
|
26
|
+
//! the interface of std::set as described in the C++ standard.
|
27
|
+
//!
|
28
|
+
//! The template parameter \c T is the type to be managed by the container.
|
29
|
+
//! The user can specify additional options and if no options are provided
|
30
|
+
//! default options are used.
|
31
|
+
//!
|
32
|
+
//! The container supports the following options:
|
33
|
+
//! \c base_hook<>/member_hook<>/value_traits<>,
|
34
|
+
//! \c constant_time_size<>, \c size_type<> and
|
35
|
+
//! \c compare<>.
|
36
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
37
|
+
template<class T, class ...Options>
|
38
|
+
#else
|
39
|
+
template<class Config>
|
40
|
+
#endif
|
41
|
+
class sg_set_impl
|
42
|
+
{
|
43
|
+
/// @cond
|
44
|
+
typedef sgtree_impl<Config> tree_type;
|
45
|
+
//! This class is
|
46
|
+
//! movable
|
47
|
+
BOOST_MOVABLE_BUT_NOT_COPYABLE(sg_set_impl)
|
48
|
+
|
49
|
+
typedef tree_type implementation_defined;
|
50
|
+
/// @endcond
|
51
|
+
|
52
|
+
public:
|
53
|
+
typedef typename implementation_defined::value_type value_type;
|
54
|
+
typedef typename implementation_defined::value_traits value_traits;
|
55
|
+
typedef typename implementation_defined::pointer pointer;
|
56
|
+
typedef typename implementation_defined::const_pointer const_pointer;
|
57
|
+
typedef typename implementation_defined::reference reference;
|
58
|
+
typedef typename implementation_defined::const_reference const_reference;
|
59
|
+
typedef typename implementation_defined::difference_type difference_type;
|
60
|
+
typedef typename implementation_defined::size_type size_type;
|
61
|
+
typedef typename implementation_defined::value_compare value_compare;
|
62
|
+
typedef typename implementation_defined::key_compare key_compare;
|
63
|
+
typedef typename implementation_defined::iterator iterator;
|
64
|
+
typedef typename implementation_defined::const_iterator const_iterator;
|
65
|
+
typedef typename implementation_defined::reverse_iterator reverse_iterator;
|
66
|
+
typedef typename implementation_defined::const_reverse_iterator const_reverse_iterator;
|
67
|
+
typedef typename implementation_defined::insert_commit_data insert_commit_data;
|
68
|
+
typedef typename implementation_defined::node_traits node_traits;
|
69
|
+
typedef typename implementation_defined::node node;
|
70
|
+
typedef typename implementation_defined::node_ptr node_ptr;
|
71
|
+
typedef typename implementation_defined::const_node_ptr const_node_ptr;
|
72
|
+
typedef typename implementation_defined::node_algorithms node_algorithms;
|
73
|
+
|
74
|
+
/// @cond
|
75
|
+
private:
|
76
|
+
tree_type tree_;
|
77
|
+
/// @endcond
|
78
|
+
|
79
|
+
public:
|
80
|
+
//! <b>Effects</b>: Constructs an empty sg_set.
|
81
|
+
//!
|
82
|
+
//! <b>Complexity</b>: Constant.
|
83
|
+
//!
|
84
|
+
//! <b>Throws</b>: If value_traits::node_traits::node
|
85
|
+
//! constructor throws (this does not happen with predefined Boost.Intrusive hooks)
|
86
|
+
//! or the copy constructor of the value_compare object throws.
|
87
|
+
explicit sg_set_impl( const value_compare &cmp = value_compare()
|
88
|
+
, const value_traits &v_traits = value_traits())
|
89
|
+
: tree_(cmp, v_traits)
|
90
|
+
{}
|
91
|
+
|
92
|
+
//! <b>Requires</b>: Dereferencing iterator must yield an lvalue of type value_type.
|
93
|
+
//! cmp must be a comparison function that induces a strict weak ordering.
|
94
|
+
//!
|
95
|
+
//! <b>Effects</b>: Constructs an empty sg_set and inserts elements from
|
96
|
+
//! [b, e).
|
97
|
+
//!
|
98
|
+
//! <b>Complexity</b>: Linear in N if [b, e) is already sorted using
|
99
|
+
//! comp and otherwise N * log N, where N is std::distance(last, first).
|
100
|
+
//!
|
101
|
+
//! <b>Throws</b>: If value_traits::node_traits::node
|
102
|
+
//! constructor throws (this does not happen with predefined Boost.Intrusive hooks)
|
103
|
+
//! or the copy constructor/operator() of the value_compare object throws.
|
104
|
+
template<class Iterator>
|
105
|
+
sg_set_impl( Iterator b, Iterator e
|
106
|
+
, const value_compare &cmp = value_compare()
|
107
|
+
, const value_traits &v_traits = value_traits())
|
108
|
+
: tree_(true, b, e, cmp, v_traits)
|
109
|
+
{}
|
110
|
+
|
111
|
+
//! <b>Effects</b>: to-do
|
112
|
+
//!
|
113
|
+
sg_set_impl(BOOST_RV_REF(sg_set_impl) x)
|
114
|
+
: tree_(::boost::move(x.tree_))
|
115
|
+
{}
|
116
|
+
|
117
|
+
//! <b>Effects</b>: to-do
|
118
|
+
//!
|
119
|
+
sg_set_impl& operator=(BOOST_RV_REF(sg_set_impl) x)
|
120
|
+
{ tree_ = ::boost::move(x.tree_); return *this; }
|
121
|
+
|
122
|
+
//! <b>Effects</b>: Detaches all elements from this. The objects in the sg_set
|
123
|
+
//! are not deleted (i.e. no destructors are called).
|
124
|
+
//!
|
125
|
+
//! <b>Complexity</b>: Linear to the number of elements on the container.
|
126
|
+
//! if it's a safe-mode or auto-unlink value_type. Constant time otherwise.
|
127
|
+
//!
|
128
|
+
//! <b>Throws</b>: Nothing.
|
129
|
+
~sg_set_impl()
|
130
|
+
{}
|
131
|
+
|
132
|
+
//! <b>Effects</b>: Returns an iterator pointing to the beginning of the sg_set.
|
133
|
+
//!
|
134
|
+
//! <b>Complexity</b>: Constant.
|
135
|
+
//!
|
136
|
+
//! <b>Throws</b>: Nothing.
|
137
|
+
iterator begin()
|
138
|
+
{ return tree_.begin(); }
|
139
|
+
|
140
|
+
//! <b>Effects</b>: Returns a const_iterator pointing to the beginning of the sg_set.
|
141
|
+
//!
|
142
|
+
//! <b>Complexity</b>: Constant.
|
143
|
+
//!
|
144
|
+
//! <b>Throws</b>: Nothing.
|
145
|
+
const_iterator begin() const
|
146
|
+
{ return tree_.begin(); }
|
147
|
+
|
148
|
+
//! <b>Effects</b>: Returns a const_iterator pointing to the beginning of the sg_set.
|
149
|
+
//!
|
150
|
+
//! <b>Complexity</b>: Constant.
|
151
|
+
//!
|
152
|
+
//! <b>Throws</b>: Nothing.
|
153
|
+
const_iterator cbegin() const
|
154
|
+
{ return tree_.cbegin(); }
|
155
|
+
|
156
|
+
//! <b>Effects</b>: Returns an iterator pointing to the end of the sg_set.
|
157
|
+
//!
|
158
|
+
//! <b>Complexity</b>: Constant.
|
159
|
+
//!
|
160
|
+
//! <b>Throws</b>: Nothing.
|
161
|
+
iterator end()
|
162
|
+
{ return tree_.end(); }
|
163
|
+
|
164
|
+
//! <b>Effects</b>: Returns a const_iterator pointing to the end of the sg_set.
|
165
|
+
//!
|
166
|
+
//! <b>Complexity</b>: Constant.
|
167
|
+
//!
|
168
|
+
//! <b>Throws</b>: Nothing.
|
169
|
+
const_iterator end() const
|
170
|
+
{ return tree_.end(); }
|
171
|
+
|
172
|
+
//! <b>Effects</b>: Returns a const_iterator pointing to the end of the sg_set.
|
173
|
+
//!
|
174
|
+
//! <b>Complexity</b>: Constant.
|
175
|
+
//!
|
176
|
+
//! <b>Throws</b>: Nothing.
|
177
|
+
const_iterator cend() const
|
178
|
+
{ return tree_.cend(); }
|
179
|
+
|
180
|
+
//! <b>Effects</b>: Returns a reverse_iterator pointing to the beginning of the
|
181
|
+
//! reversed sg_set.
|
182
|
+
//!
|
183
|
+
//! <b>Complexity</b>: Constant.
|
184
|
+
//!
|
185
|
+
//! <b>Throws</b>: Nothing.
|
186
|
+
reverse_iterator rbegin()
|
187
|
+
{ return tree_.rbegin(); }
|
188
|
+
|
189
|
+
//! <b>Effects</b>: Returns a const_reverse_iterator pointing to the beginning
|
190
|
+
//! of the reversed sg_set.
|
191
|
+
//!
|
192
|
+
//! <b>Complexity</b>: Constant.
|
193
|
+
//!
|
194
|
+
//! <b>Throws</b>: Nothing.
|
195
|
+
const_reverse_iterator rbegin() const
|
196
|
+
{ return tree_.rbegin(); }
|
197
|
+
|
198
|
+
//! <b>Effects</b>: Returns a const_reverse_iterator pointing to the beginning
|
199
|
+
//! of the reversed sg_set.
|
200
|
+
//!
|
201
|
+
//! <b>Complexity</b>: Constant.
|
202
|
+
//!
|
203
|
+
//! <b>Throws</b>: Nothing.
|
204
|
+
const_reverse_iterator crbegin() const
|
205
|
+
{ return tree_.crbegin(); }
|
206
|
+
|
207
|
+
//! <b>Effects</b>: Returns a reverse_iterator pointing to the end
|
208
|
+
//! of the reversed sg_set.
|
209
|
+
//!
|
210
|
+
//! <b>Complexity</b>: Constant.
|
211
|
+
//!
|
212
|
+
//! <b>Throws</b>: Nothing.
|
213
|
+
reverse_iterator rend()
|
214
|
+
{ return tree_.rend(); }
|
215
|
+
|
216
|
+
//! <b>Effects</b>: Returns a const_reverse_iterator pointing to the end
|
217
|
+
//! of the reversed sg_set.
|
218
|
+
//!
|
219
|
+
//! <b>Complexity</b>: Constant.
|
220
|
+
//!
|
221
|
+
//! <b>Throws</b>: Nothing.
|
222
|
+
const_reverse_iterator rend() const
|
223
|
+
{ return tree_.rend(); }
|
224
|
+
|
225
|
+
//! <b>Effects</b>: Returns a const_reverse_iterator pointing to the end
|
226
|
+
//! of the reversed sg_set.
|
227
|
+
//!
|
228
|
+
//! <b>Complexity</b>: Constant.
|
229
|
+
//!
|
230
|
+
//! <b>Throws</b>: Nothing.
|
231
|
+
const_reverse_iterator crend() const
|
232
|
+
{ return tree_.crend(); }
|
233
|
+
|
234
|
+
//! <b>Precondition</b>: end_iterator must be a valid end iterator
|
235
|
+
//! of sg_set.
|
236
|
+
//!
|
237
|
+
//! <b>Effects</b>: Returns a const reference to the sg_set associated to the end iterator
|
238
|
+
//!
|
239
|
+
//! <b>Throws</b>: Nothing.
|
240
|
+
//!
|
241
|
+
//! <b>Complexity</b>: Constant.
|
242
|
+
static sg_set_impl &container_from_end_iterator(iterator end_iterator)
|
243
|
+
{
|
244
|
+
return *detail::parent_from_member<sg_set_impl, tree_type>
|
245
|
+
( &tree_type::container_from_end_iterator(end_iterator)
|
246
|
+
, &sg_set_impl::tree_);
|
247
|
+
}
|
248
|
+
|
249
|
+
//! <b>Precondition</b>: end_iterator must be a valid end const_iterator
|
250
|
+
//! of sg_set.
|
251
|
+
//!
|
252
|
+
//! <b>Effects</b>: Returns a const reference to the sg_set associated to the end iterator
|
253
|
+
//!
|
254
|
+
//! <b>Throws</b>: Nothing.
|
255
|
+
//!
|
256
|
+
//! <b>Complexity</b>: Constant.
|
257
|
+
static const sg_set_impl &container_from_end_iterator(const_iterator end_iterator)
|
258
|
+
{
|
259
|
+
return *detail::parent_from_member<sg_set_impl, tree_type>
|
260
|
+
( &tree_type::container_from_end_iterator(end_iterator)
|
261
|
+
, &sg_set_impl::tree_);
|
262
|
+
}
|
263
|
+
|
264
|
+
//! <b>Precondition</b>: it must be a valid iterator of set.
|
265
|
+
//!
|
266
|
+
//! <b>Effects</b>: Returns a reference to the set associated to the iterator
|
267
|
+
//!
|
268
|
+
//! <b>Throws</b>: Nothing.
|
269
|
+
//!
|
270
|
+
//! <b>Complexity</b>: Logarithmic.
|
271
|
+
static sg_set_impl &container_from_iterator(iterator it)
|
272
|
+
{
|
273
|
+
return *detail::parent_from_member<sg_set_impl, tree_type>
|
274
|
+
( &tree_type::container_from_iterator(it)
|
275
|
+
, &sg_set_impl::tree_);
|
276
|
+
}
|
277
|
+
|
278
|
+
//! <b>Precondition</b>: it must be a valid const_iterator of set.
|
279
|
+
//!
|
280
|
+
//! <b>Effects</b>: Returns a const reference to the set associated to the iterator
|
281
|
+
//!
|
282
|
+
//! <b>Throws</b>: Nothing.
|
283
|
+
//!
|
284
|
+
//! <b>Complexity</b>: Logarithmic.
|
285
|
+
static const sg_set_impl &container_from_iterator(const_iterator it)
|
286
|
+
{
|
287
|
+
return *detail::parent_from_member<sg_set_impl, tree_type>
|
288
|
+
( &tree_type::container_from_iterator(it)
|
289
|
+
, &sg_set_impl::tree_);
|
290
|
+
}
|
291
|
+
|
292
|
+
//! <b>Effects</b>: Returns the key_compare object used by the sg_set.
|
293
|
+
//!
|
294
|
+
//! <b>Complexity</b>: Constant.
|
295
|
+
//!
|
296
|
+
//! <b>Throws</b>: If key_compare copy-constructor throws.
|
297
|
+
key_compare key_comp() const
|
298
|
+
{ return tree_.value_comp(); }
|
299
|
+
|
300
|
+
//! <b>Effects</b>: Returns the value_compare object used by the sg_set.
|
301
|
+
//!
|
302
|
+
//! <b>Complexity</b>: Constant.
|
303
|
+
//!
|
304
|
+
//! <b>Throws</b>: If value_compare copy-constructor throws.
|
305
|
+
value_compare value_comp() const
|
306
|
+
{ return tree_.value_comp(); }
|
307
|
+
|
308
|
+
//! <b>Effects</b>: Returns true if the container is empty.
|
309
|
+
//!
|
310
|
+
//! <b>Complexity</b>: Constant.
|
311
|
+
//!
|
312
|
+
//! <b>Throws</b>: Nothing.
|
313
|
+
bool empty() const
|
314
|
+
{ return tree_.empty(); }
|
315
|
+
|
316
|
+
//! <b>Effects</b>: Returns the number of elements stored in the sg_set.
|
317
|
+
//!
|
318
|
+
//! <b>Complexity</b>: Linear to elements contained in *this if,
|
319
|
+
//! constant-time size option is enabled. Constant-time otherwise.
|
320
|
+
//!
|
321
|
+
//! <b>Throws</b>: Nothing.
|
322
|
+
size_type size() const
|
323
|
+
{ return tree_.size(); }
|
324
|
+
|
325
|
+
//! <b>Effects</b>: Swaps the contents of two sets.
|
326
|
+
//!
|
327
|
+
//! <b>Complexity</b>: Constant.
|
328
|
+
//!
|
329
|
+
//! <b>Throws</b>: If the swap() call for the comparison functor
|
330
|
+
//! found using ADL throws. Strong guarantee.
|
331
|
+
void swap(sg_set_impl& other)
|
332
|
+
{ tree_.swap(other.tree_); }
|
333
|
+
|
334
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
335
|
+
//! Cloner should yield to nodes equivalent to the original nodes.
|
336
|
+
//!
|
337
|
+
//! <b>Effects</b>: Erases all the elements from *this
|
338
|
+
//! calling Disposer::operator()(pointer), clones all the
|
339
|
+
//! elements from src calling Cloner::operator()(const_reference )
|
340
|
+
//! and inserts them on *this. Copies the predicate from the source container.
|
341
|
+
//!
|
342
|
+
//! If cloner throws, all cloned elements are unlinked and disposed
|
343
|
+
//! calling Disposer::operator()(pointer).
|
344
|
+
//!
|
345
|
+
//! <b>Complexity</b>: Linear to erased plus inserted elements.
|
346
|
+
//!
|
347
|
+
//! <b>Throws</b>: If cloner throws or predicate copy assignment throws. Basic guarantee.
|
348
|
+
template <class Cloner, class Disposer>
|
349
|
+
void clone_from(const sg_set_impl &src, Cloner cloner, Disposer disposer)
|
350
|
+
{ tree_.clone_from(src.tree_, cloner, disposer); }
|
351
|
+
|
352
|
+
//! <b>Requires</b>: value must be an lvalue
|
353
|
+
//!
|
354
|
+
//! <b>Effects</b>: Tries to inserts value into the sg_set.
|
355
|
+
//!
|
356
|
+
//! <b>Returns</b>: If the value
|
357
|
+
//! is not already present inserts it and returns a pair containing the
|
358
|
+
//! iterator to the new value and true. If there is an equivalent value
|
359
|
+
//! returns a pair containing an iterator to the already present value
|
360
|
+
//! and false.
|
361
|
+
//!
|
362
|
+
//! <b>Complexity</b>: Average complexity for insert element is at
|
363
|
+
//! most logarithmic.
|
364
|
+
//!
|
365
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws. Strong guarantee.
|
366
|
+
//!
|
367
|
+
//! <b>Note</b>: Does not affect the validity of iterators and references.
|
368
|
+
//! No copy-constructors are called.
|
369
|
+
std::pair<iterator, bool> insert(reference value)
|
370
|
+
{ return tree_.insert_unique(value); }
|
371
|
+
|
372
|
+
//! <b>Requires</b>: value must be an lvalue
|
373
|
+
//!
|
374
|
+
//! <b>Effects</b>: Tries to to insert x into the sg_set, using "hint"
|
375
|
+
//! as a hint to where it will be inserted.
|
376
|
+
//!
|
377
|
+
//! <b>Returns</b>: An iterator that points to the position where the
|
378
|
+
//! new element was inserted into the sg_set.
|
379
|
+
//!
|
380
|
+
//! <b>Complexity</b>: Logarithmic in general, but it's amortized
|
381
|
+
//! constant time if t is inserted immediately before hint.
|
382
|
+
//!
|
383
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws. Strong guarantee.
|
384
|
+
//!
|
385
|
+
//! <b>Note</b>: Does not affect the validity of iterators and references.
|
386
|
+
//! No copy-constructors are called.
|
387
|
+
iterator insert(const_iterator hint, reference value)
|
388
|
+
{ return tree_.insert_unique(hint, value); }
|
389
|
+
|
390
|
+
//! <b>Requires</b>: key_value_comp must be a comparison function that induces
|
391
|
+
//! the same strict weak ordering as value_compare. The difference is that
|
392
|
+
//! key_value_comp compares an arbitrary key with the contained values.
|
393
|
+
//!
|
394
|
+
//! <b>Effects</b>: Checks if a value can be inserted in the sg_set, using
|
395
|
+
//! a user provided key instead of the value itself.
|
396
|
+
//!
|
397
|
+
//! <b>Returns</b>: If there is an equivalent value
|
398
|
+
//! returns a pair containing an iterator to the already present value
|
399
|
+
//! and false. If the value can be inserted returns true in the returned
|
400
|
+
//! pair boolean and fills "commit_data" that is meant to be used with
|
401
|
+
//! the "insert_commit" function.
|
402
|
+
//!
|
403
|
+
//! <b>Complexity</b>: Average complexity is at most logarithmic.
|
404
|
+
//!
|
405
|
+
//! <b>Throws</b>: If the key_value_comp ordering function throws. Strong guarantee.
|
406
|
+
//!
|
407
|
+
//! <b>Notes</b>: This function is used to improve performance when constructing
|
408
|
+
//! a value_type is expensive: if there is an equivalent value
|
409
|
+
//! the constructed object must be discarded. Many times, the part of the
|
410
|
+
//! node that is used to impose the order is much cheaper to construct
|
411
|
+
//! than the value_type and this function offers the possibility to use that
|
412
|
+
//! part to check if the insertion will be successful.
|
413
|
+
//!
|
414
|
+
//! If the check is successful, the user can construct the value_type and use
|
415
|
+
//! "insert_commit" to insert the object in constant-time. This gives a total
|
416
|
+
//! logarithmic complexity to the insertion: check(O(log(N)) + commit(O(1)).
|
417
|
+
//!
|
418
|
+
//! "commit_data" remains valid for a subsequent "insert_commit" only if no more
|
419
|
+
//! objects are inserted or erased from the sg_set.
|
420
|
+
template<class KeyType, class KeyValueCompare>
|
421
|
+
std::pair<iterator, bool> insert_check
|
422
|
+
(const KeyType &key, KeyValueCompare key_value_comp, insert_commit_data &commit_data)
|
423
|
+
{ return tree_.insert_unique_check(key, key_value_comp, commit_data); }
|
424
|
+
|
425
|
+
//! <b>Requires</b>: key_value_comp must be a comparison function that induces
|
426
|
+
//! the same strict weak ordering as value_compare. The difference is that
|
427
|
+
//! key_value_comp compares an arbitrary key with the contained values.
|
428
|
+
//!
|
429
|
+
//! <b>Effects</b>: Checks if a value can be inserted in the sg_set, using
|
430
|
+
//! a user provided key instead of the value itself, using "hint"
|
431
|
+
//! as a hint to where it will be inserted.
|
432
|
+
//!
|
433
|
+
//! <b>Returns</b>: If there is an equivalent value
|
434
|
+
//! returns a pair containing an iterator to the already present value
|
435
|
+
//! and false. If the value can be inserted returns true in the returned
|
436
|
+
//! pair boolean and fills "commit_data" that is meant to be used with
|
437
|
+
//! the "insert_commit" function.
|
438
|
+
//!
|
439
|
+
//! <b>Complexity</b>: Logarithmic in general, but it's amortized
|
440
|
+
//! constant time if t is inserted immediately before hint.
|
441
|
+
//!
|
442
|
+
//! <b>Throws</b>: If the key_value_comp ordering function throws. Strong guarantee.
|
443
|
+
//!
|
444
|
+
//! <b>Notes</b>: This function is used to improve performance when constructing
|
445
|
+
//! a value_type is expensive: if there is an equivalent value
|
446
|
+
//! the constructed object must be discarded. Many times, the part of the
|
447
|
+
//! constructing that is used to impose the order is much cheaper to construct
|
448
|
+
//! than the value_type and this function offers the possibility to use that key
|
449
|
+
//! to check if the insertion will be successful.
|
450
|
+
//!
|
451
|
+
//! If the check is successful, the user can construct the value_type and use
|
452
|
+
//! "insert_commit" to insert the object in constant-time. This can give a total
|
453
|
+
//! constant-time complexity to the insertion: check(O(1)) + commit(O(1)).
|
454
|
+
//!
|
455
|
+
//! "commit_data" remains valid for a subsequent "insert_commit" only if no more
|
456
|
+
//! objects are inserted or erased from the sg_set.
|
457
|
+
template<class KeyType, class KeyValueCompare>
|
458
|
+
std::pair<iterator, bool> insert_check
|
459
|
+
(const_iterator hint, const KeyType &key
|
460
|
+
,KeyValueCompare key_value_comp, insert_commit_data &commit_data)
|
461
|
+
{ return tree_.insert_unique_check(hint, key, key_value_comp, commit_data); }
|
462
|
+
|
463
|
+
//! <b>Requires</b>: value must be an lvalue of type value_type. commit_data
|
464
|
+
//! must have been obtained from a previous call to "insert_check".
|
465
|
+
//! No objects should have been inserted or erased from the sg_set between
|
466
|
+
//! the "insert_check" that filled "commit_data" and the call to "insert_commit".
|
467
|
+
//!
|
468
|
+
//! <b>Effects</b>: Inserts the value in the sg_set using the information obtained
|
469
|
+
//! from the "commit_data" that a previous "insert_check" filled.
|
470
|
+
//!
|
471
|
+
//! <b>Returns</b>: An iterator to the newly inserted object.
|
472
|
+
//!
|
473
|
+
//! <b>Complexity</b>: Constant time.
|
474
|
+
//!
|
475
|
+
//! <b>Throws</b>: Nothing.
|
476
|
+
//!
|
477
|
+
//! <b>Notes</b>: This function has only sense if a "insert_check" has been
|
478
|
+
//! previously executed to fill "commit_data". No value should be inserted or
|
479
|
+
//! erased between the "insert_check" and "insert_commit" calls.
|
480
|
+
iterator insert_commit(reference value, const insert_commit_data &commit_data)
|
481
|
+
{ return tree_.insert_unique_commit(value, commit_data); }
|
482
|
+
|
483
|
+
//! <b>Requires</b>: Dereferencing iterator must yield an lvalue
|
484
|
+
//! of type value_type.
|
485
|
+
//!
|
486
|
+
//! <b>Effects</b>: Inserts a range into the sg_set.
|
487
|
+
//!
|
488
|
+
//! <b>Complexity</b>: Insert range is in general O(N * log(N)), where N is the
|
489
|
+
//! size of the range. However, it is linear in N if the range is already sorted
|
490
|
+
//! by value_comp().
|
491
|
+
//!
|
492
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws. Basic guarantee.
|
493
|
+
//!
|
494
|
+
//! <b>Note</b>: Does not affect the validity of iterators and references.
|
495
|
+
//! No copy-constructors are called.
|
496
|
+
template<class Iterator>
|
497
|
+
void insert(Iterator b, Iterator e)
|
498
|
+
{ tree_.insert_unique(b, e); }
|
499
|
+
|
500
|
+
//! <b>Requires</b>: value must be an lvalue, "pos" must be
|
501
|
+
//! a valid iterator (or end) and must be the succesor of value
|
502
|
+
//! once inserted according to the predicate. "value" must not be equal to any
|
503
|
+
//! inserted key according to the predicate.
|
504
|
+
//!
|
505
|
+
//! <b>Effects</b>: Inserts x into the tree before "pos".
|
506
|
+
//!
|
507
|
+
//! <b>Complexity</b>: Constant time.
|
508
|
+
//!
|
509
|
+
//! <b>Throws</b>: Nothing.
|
510
|
+
//!
|
511
|
+
//! <b>Note</b>: This function does not check preconditions so if "pos" is not
|
512
|
+
//! the successor of "value" or "value" is not unique tree ordering and uniqueness
|
513
|
+
//! invariants will be broken respectively.
|
514
|
+
//! This is a low-level function to be used only for performance reasons
|
515
|
+
//! by advanced users.
|
516
|
+
iterator insert_before(const_iterator pos, reference value)
|
517
|
+
{ return tree_.insert_before(pos, value); }
|
518
|
+
|
519
|
+
//! <b>Requires</b>: value must be an lvalue, and it must be greater than
|
520
|
+
//! any inserted key according to the predicate.
|
521
|
+
//!
|
522
|
+
//! <b>Effects</b>: Inserts x into the tree in the last position.
|
523
|
+
//!
|
524
|
+
//! <b>Complexity</b>: Constant time.
|
525
|
+
//!
|
526
|
+
//! <b>Throws</b>: Nothing.
|
527
|
+
//!
|
528
|
+
//! <b>Note</b>: This function does not check preconditions so if value is
|
529
|
+
//! less than or equal to the greatest inserted key tree ordering invariant will be broken.
|
530
|
+
//! This function is slightly more efficient than using "insert_before".
|
531
|
+
//! This is a low-level function to be used only for performance reasons
|
532
|
+
//! by advanced users.
|
533
|
+
void push_back(reference value)
|
534
|
+
{ tree_.push_back(value); }
|
535
|
+
|
536
|
+
//! <b>Requires</b>: value must be an lvalue, and it must be less
|
537
|
+
//! than any inserted key according to the predicate.
|
538
|
+
//!
|
539
|
+
//! <b>Effects</b>: Inserts x into the tree in the first position.
|
540
|
+
//!
|
541
|
+
//! <b>Complexity</b>: Constant time.
|
542
|
+
//!
|
543
|
+
//! <b>Throws</b>: Nothing.
|
544
|
+
//!
|
545
|
+
//! <b>Note</b>: This function does not check preconditions so if value is
|
546
|
+
//! greater than or equal to the the mimum inserted key tree ordering or uniqueness
|
547
|
+
//! invariants will be broken.
|
548
|
+
//! This function is slightly more efficient than using "insert_before".
|
549
|
+
//! This is a low-level function to be used only for performance reasons
|
550
|
+
//! by advanced users.
|
551
|
+
void push_front(reference value)
|
552
|
+
{ tree_.push_front(value); }
|
553
|
+
|
554
|
+
//! <b>Effects</b>: Erases the element pointed to by pos.
|
555
|
+
//!
|
556
|
+
//! <b>Complexity</b>: Average complexity is constant time.
|
557
|
+
//!
|
558
|
+
//! <b>Returns</b>: An iterator to the element after the erased element.
|
559
|
+
//!
|
560
|
+
//! <b>Throws</b>: Nothing.
|
561
|
+
//!
|
562
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
563
|
+
//! to the erased elements. No destructors are called.
|
564
|
+
iterator erase(const_iterator i)
|
565
|
+
{ return tree_.erase(i); }
|
566
|
+
|
567
|
+
//! <b>Effects</b>: Erases the range pointed to by b end e.
|
568
|
+
//!
|
569
|
+
//! <b>Complexity</b>: Average complexity for erase range is at most
|
570
|
+
//! O(log(size() + N)), where N is the number of elements in the range.
|
571
|
+
//!
|
572
|
+
//! <b>Returns</b>: An iterator to the element after the erased elements.
|
573
|
+
//!
|
574
|
+
//! <b>Throws</b>: Nothing.
|
575
|
+
//!
|
576
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
577
|
+
//! to the erased elements. No destructors are called.
|
578
|
+
iterator erase(const_iterator b, const_iterator e)
|
579
|
+
{ return tree_.erase(b, e); }
|
580
|
+
|
581
|
+
//! <b>Effects</b>: Erases all the elements with the given value.
|
582
|
+
//!
|
583
|
+
//! <b>Returns</b>: The number of erased elements.
|
584
|
+
//!
|
585
|
+
//! <b>Complexity</b>: O(log(size()) + this->count(value)).
|
586
|
+
//!
|
587
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws. Basic guarantee.
|
588
|
+
//!
|
589
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
590
|
+
//! to the erased elements. No destructors are called.
|
591
|
+
size_type erase(const_reference value)
|
592
|
+
{ return tree_.erase(value); }
|
593
|
+
|
594
|
+
//! <b>Effects</b>: Erases all the elements that compare equal with
|
595
|
+
//! the given key and the given comparison functor.
|
596
|
+
//!
|
597
|
+
//! <b>Returns</b>: The number of erased elements.
|
598
|
+
//!
|
599
|
+
//! <b>Complexity</b>: O(log(size() + this->count(key, comp)).
|
600
|
+
//!
|
601
|
+
//! <b>Throws</b>: If the comp ordering function throws. Basic guarantee.
|
602
|
+
//!
|
603
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
604
|
+
//! to the erased elements. No destructors are called.
|
605
|
+
template<class KeyType, class KeyValueCompare>
|
606
|
+
size_type erase(const KeyType& key, KeyValueCompare comp
|
607
|
+
/// @cond
|
608
|
+
, typename detail::enable_if_c<!detail::is_convertible<KeyValueCompare, const_iterator>::value >::type * = 0
|
609
|
+
/// @endcond
|
610
|
+
)
|
611
|
+
{ return tree_.erase(key, comp); }
|
612
|
+
|
613
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
614
|
+
//!
|
615
|
+
//! <b>Effects</b>: Erases the element pointed to by pos.
|
616
|
+
//! Disposer::operator()(pointer) is called for the removed element.
|
617
|
+
//!
|
618
|
+
//! <b>Complexity</b>: Average complexity for erase element is constant time.
|
619
|
+
//!
|
620
|
+
//! <b>Returns</b>: An iterator to the element after the erased element.
|
621
|
+
//!
|
622
|
+
//! <b>Throws</b>: Nothing.
|
623
|
+
//!
|
624
|
+
//! <b>Note</b>: Invalidates the iterators
|
625
|
+
//! to the erased elements.
|
626
|
+
template<class Disposer>
|
627
|
+
iterator erase_and_dispose(const_iterator i, Disposer disposer)
|
628
|
+
{ return tree_.erase_and_dispose(i, disposer); }
|
629
|
+
|
630
|
+
#if !defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
631
|
+
template<class Disposer>
|
632
|
+
iterator erase_and_dispose(iterator i, Disposer disposer)
|
633
|
+
{ return this->erase_and_dispose(const_iterator(i), disposer); }
|
634
|
+
#endif
|
635
|
+
|
636
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
637
|
+
//!
|
638
|
+
//! <b>Effects</b>: Erases the range pointed to by b end e.
|
639
|
+
//! Disposer::operator()(pointer) is called for the removed elements.
|
640
|
+
//!
|
641
|
+
//! <b>Complexity</b>: Average complexity for erase range is at most
|
642
|
+
//! O(log(size() + N)), where N is the number of elements in the range.
|
643
|
+
//!
|
644
|
+
//! <b>Returns</b>: An iterator to the element after the erased elements.
|
645
|
+
//!
|
646
|
+
//! <b>Throws</b>: Nothing.
|
647
|
+
//!
|
648
|
+
//! <b>Note</b>: Invalidates the iterators
|
649
|
+
//! to the erased elements.
|
650
|
+
template<class Disposer>
|
651
|
+
iterator erase_and_dispose(const_iterator b, const_iterator e, Disposer disposer)
|
652
|
+
{ return tree_.erase_and_dispose(b, e, disposer); }
|
653
|
+
|
654
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
655
|
+
//!
|
656
|
+
//! <b>Effects</b>: Erases all the elements with the given value.
|
657
|
+
//! Disposer::operator()(pointer) is called for the removed elements.
|
658
|
+
//!
|
659
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
660
|
+
//!
|
661
|
+
//! <b>Complexity</b>: O(log(size() + this->count(value)). Basic guarantee.
|
662
|
+
//!
|
663
|
+
//! <b>Throws</b>: Nothing.
|
664
|
+
//!
|
665
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
666
|
+
//! to the erased elements. No destructors are called.
|
667
|
+
template<class Disposer>
|
668
|
+
size_type erase_and_dispose(const_reference value, Disposer disposer)
|
669
|
+
{ return tree_.erase_and_dispose(value, disposer); }
|
670
|
+
|
671
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
672
|
+
//!
|
673
|
+
//! <b>Effects</b>: Erases all the elements with the given key.
|
674
|
+
//! according to the comparison functor "comp".
|
675
|
+
//! Disposer::operator()(pointer) is called for the removed elements.
|
676
|
+
//!
|
677
|
+
//! <b>Returns</b>: The number of erased elements.
|
678
|
+
//!
|
679
|
+
//! <b>Complexity</b>: O(log(size() + this->count(key, comp)).
|
680
|
+
//!
|
681
|
+
//! <b>Throws</b>: If comp ordering function throws. Basic guarantee.
|
682
|
+
//!
|
683
|
+
//! <b>Note</b>: Invalidates the iterators
|
684
|
+
//! to the erased elements.
|
685
|
+
template<class KeyType, class KeyValueCompare, class Disposer>
|
686
|
+
size_type erase_and_dispose(const KeyType& key, KeyValueCompare comp, Disposer disposer
|
687
|
+
/// @cond
|
688
|
+
, typename detail::enable_if_c<!detail::is_convertible<KeyValueCompare, const_iterator>::value >::type * = 0
|
689
|
+
/// @endcond
|
690
|
+
)
|
691
|
+
{ return tree_.erase_and_dispose(key, comp, disposer); }
|
692
|
+
|
693
|
+
//! <b>Effects</b>: Erases all the elements of the container.
|
694
|
+
//!
|
695
|
+
//! <b>Complexity</b>: Linear to the number of elements on the container.
|
696
|
+
//! if it's a safe-mode or auto-unlink value_type. Constant time otherwise.
|
697
|
+
//!
|
698
|
+
//! <b>Throws</b>: Nothing.
|
699
|
+
//!
|
700
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
701
|
+
//! to the erased elements. No destructors are called.
|
702
|
+
void clear()
|
703
|
+
{ return tree_.clear(); }
|
704
|
+
|
705
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
706
|
+
//!
|
707
|
+
//! <b>Effects</b>: Erases all the elements of the container.
|
708
|
+
//!
|
709
|
+
//! <b>Complexity</b>: Linear to the number of elements on the container.
|
710
|
+
//! Disposer::operator()(pointer) is called for the removed elements.
|
711
|
+
//!
|
712
|
+
//! <b>Throws</b>: Nothing.
|
713
|
+
//!
|
714
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
715
|
+
//! to the erased elements. No destructors are called.
|
716
|
+
template<class Disposer>
|
717
|
+
void clear_and_dispose(Disposer disposer)
|
718
|
+
{ return tree_.clear_and_dispose(disposer); }
|
719
|
+
|
720
|
+
//! <b>Effects</b>: Returns the number of contained elements with the given key
|
721
|
+
//!
|
722
|
+
//! <b>Complexity</b>: Logarithmic to the number of elements contained plus lineal
|
723
|
+
//! to number of objects with the given key.
|
724
|
+
//!
|
725
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
726
|
+
size_type count(const_reference value) const
|
727
|
+
{ return tree_.find(value) != end(); }
|
728
|
+
|
729
|
+
//! <b>Effects</b>: Returns the number of contained elements with the same key
|
730
|
+
//! compared with the given comparison functor.
|
731
|
+
//!
|
732
|
+
//! <b>Complexity</b>: Logarithmic to the number of elements contained plus lineal
|
733
|
+
//! to number of objects with the given key.
|
734
|
+
//!
|
735
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
736
|
+
template<class KeyType, class KeyValueCompare>
|
737
|
+
size_type count(const KeyType& key, KeyValueCompare comp) const
|
738
|
+
{ return tree_.find(key, comp) != end(); }
|
739
|
+
|
740
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
741
|
+
//! key is not less than k or end() if that element does not exist.
|
742
|
+
//!
|
743
|
+
//! <b>Complexity</b>: Logarithmic.
|
744
|
+
//!
|
745
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
746
|
+
iterator lower_bound(const_reference value)
|
747
|
+
{ return tree_.lower_bound(value); }
|
748
|
+
|
749
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
750
|
+
//! value_compare. Usually key is the part of the value_type
|
751
|
+
//! that is used in the ordering functor.
|
752
|
+
//!
|
753
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
754
|
+
//! key according to the comparison functor is not less than k or
|
755
|
+
//! end() if that element does not exist.
|
756
|
+
//!
|
757
|
+
//! <b>Complexity</b>: Logarithmic.
|
758
|
+
//!
|
759
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
760
|
+
//!
|
761
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
762
|
+
//! is expensive and the value_type can be compared with a cheaper
|
763
|
+
//! key type. Usually this key is part of the value_type.
|
764
|
+
template<class KeyType, class KeyValueCompare>
|
765
|
+
iterator lower_bound(const KeyType& key, KeyValueCompare comp)
|
766
|
+
{ return tree_.lower_bound(key, comp); }
|
767
|
+
|
768
|
+
//! <b>Effects</b>: Returns a const iterator to the first element whose
|
769
|
+
//! key is not less than k or end() if that element does not exist.
|
770
|
+
//!
|
771
|
+
//! <b>Complexity</b>: Logarithmic.
|
772
|
+
//!
|
773
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
774
|
+
const_iterator lower_bound(const_reference value) const
|
775
|
+
{ return tree_.lower_bound(value); }
|
776
|
+
|
777
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
778
|
+
//! value_compare. Usually key is the part of the value_type
|
779
|
+
//! that is used in the ordering functor.
|
780
|
+
//!
|
781
|
+
//! <b>Effects</b>: Returns a const_iterator to the first element whose
|
782
|
+
//! key according to the comparison functor is not less than k or
|
783
|
+
//! end() if that element does not exist.
|
784
|
+
//!
|
785
|
+
//! <b>Complexity</b>: Logarithmic.
|
786
|
+
//!
|
787
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
788
|
+
//!
|
789
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
790
|
+
//! is expensive and the value_type can be compared with a cheaper
|
791
|
+
//! key type. Usually this key is part of the value_type.
|
792
|
+
template<class KeyType, class KeyValueCompare>
|
793
|
+
const_iterator lower_bound(const KeyType& key, KeyValueCompare comp) const
|
794
|
+
{ return tree_.lower_bound(key, comp); }
|
795
|
+
|
796
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
797
|
+
//! key is greater than k or end() if that element does not exist.
|
798
|
+
//!
|
799
|
+
//! <b>Complexity</b>: Logarithmic.
|
800
|
+
//!
|
801
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
802
|
+
iterator upper_bound(const_reference value)
|
803
|
+
{ return tree_.upper_bound(value); }
|
804
|
+
|
805
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
806
|
+
//! value_compare. Usually key is the part of the value_type
|
807
|
+
//! that is used in the ordering functor.
|
808
|
+
//!
|
809
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
810
|
+
//! key according to the comparison functor is greater than key or
|
811
|
+
//! end() if that element does not exist.
|
812
|
+
//!
|
813
|
+
//! <b>Complexity</b>: Logarithmic.
|
814
|
+
//!
|
815
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
816
|
+
//!
|
817
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
818
|
+
//! is expensive and the value_type can be compared with a cheaper
|
819
|
+
//! key type. Usually this key is part of the value_type.
|
820
|
+
template<class KeyType, class KeyValueCompare>
|
821
|
+
iterator upper_bound(const KeyType& key, KeyValueCompare comp)
|
822
|
+
{ return tree_.upper_bound(key, comp); }
|
823
|
+
|
824
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
825
|
+
//! key is greater than k or end() if that element does not exist.
|
826
|
+
//!
|
827
|
+
//! <b>Complexity</b>: Logarithmic.
|
828
|
+
//!
|
829
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
830
|
+
const_iterator upper_bound(const_reference value) const
|
831
|
+
{ return tree_.upper_bound(value); }
|
832
|
+
|
833
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
834
|
+
//! value_compare. Usually key is the part of the value_type
|
835
|
+
//! that is used in the ordering functor.
|
836
|
+
//!
|
837
|
+
//! <b>Effects</b>: Returns a const_iterator to the first element whose
|
838
|
+
//! key according to the comparison functor is greater than key or
|
839
|
+
//! end() if that element does not exist.
|
840
|
+
//!
|
841
|
+
//! <b>Complexity</b>: Logarithmic.
|
842
|
+
//!
|
843
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
844
|
+
//!
|
845
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
846
|
+
//! is expensive and the value_type can be compared with a cheaper
|
847
|
+
//! key type. Usually this key is part of the value_type.
|
848
|
+
template<class KeyType, class KeyValueCompare>
|
849
|
+
const_iterator upper_bound(const KeyType& key, KeyValueCompare comp) const
|
850
|
+
{ return tree_.upper_bound(key, comp); }
|
851
|
+
|
852
|
+
//! <b>Effects</b>: Finds an iterator to the first element whose value is
|
853
|
+
//! "value" or end() if that element does not exist.
|
854
|
+
//!
|
855
|
+
//! <b>Complexity</b>: Logarithmic.
|
856
|
+
//!
|
857
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
858
|
+
iterator find(const_reference value)
|
859
|
+
{ return tree_.find(value); }
|
860
|
+
|
861
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
862
|
+
//! value_compare. Usually key is the part of the value_type
|
863
|
+
//! that is used in the ordering functor.
|
864
|
+
//!
|
865
|
+
//! <b>Effects</b>: Finds an iterator to the first element whose key is
|
866
|
+
//! "key" according to the comparison functor or end() if that element
|
867
|
+
//! does not exist.
|
868
|
+
//!
|
869
|
+
//! <b>Complexity</b>: Logarithmic.
|
870
|
+
//!
|
871
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
872
|
+
//!
|
873
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
874
|
+
//! is expensive and the value_type can be compared with a cheaper
|
875
|
+
//! key type. Usually this key is part of the value_type.
|
876
|
+
template<class KeyType, class KeyValueCompare>
|
877
|
+
iterator find(const KeyType& key, KeyValueCompare comp)
|
878
|
+
{ return tree_.find(key, comp); }
|
879
|
+
|
880
|
+
//! <b>Effects</b>: Finds a const_iterator to the first element whose value is
|
881
|
+
//! "value" or end() if that element does not exist.
|
882
|
+
//!
|
883
|
+
//! <b>Complexity</b>: Logarithmic.
|
884
|
+
//!
|
885
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
886
|
+
const_iterator find(const_reference value) const
|
887
|
+
{ return tree_.find(value); }
|
888
|
+
|
889
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
890
|
+
//! value_compare. Usually key is the part of the value_type
|
891
|
+
//! that is used in the ordering functor.
|
892
|
+
//!
|
893
|
+
//! <b>Effects</b>: Finds a const_iterator to the first element whose key is
|
894
|
+
//! "key" according to the comparison functor or end() if that element
|
895
|
+
//! does not exist.
|
896
|
+
//!
|
897
|
+
//! <b>Complexity</b>: Logarithmic.
|
898
|
+
//!
|
899
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
900
|
+
//!
|
901
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
902
|
+
//! is expensive and the value_type can be compared with a cheaper
|
903
|
+
//! key type. Usually this key is part of the value_type.
|
904
|
+
template<class KeyType, class KeyValueCompare>
|
905
|
+
const_iterator find(const KeyType& key, KeyValueCompare comp) const
|
906
|
+
{ return tree_.find(key, comp); }
|
907
|
+
|
908
|
+
//! <b>Effects</b>: Finds a range containing all elements whose key is k or
|
909
|
+
//! an empty range that indicates the position where those elements would be
|
910
|
+
//! if they there is no elements with key k.
|
911
|
+
//!
|
912
|
+
//! <b>Complexity</b>: Logarithmic.
|
913
|
+
//!
|
914
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
915
|
+
std::pair<iterator,iterator> equal_range(const_reference value)
|
916
|
+
{ return tree_.equal_range(value); }
|
917
|
+
|
918
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
919
|
+
//! value_compare. Usually key is the part of the value_type
|
920
|
+
//! that is used in the ordering functor.
|
921
|
+
//!
|
922
|
+
//! <b>Effects</b>: Finds a range containing all elements whose key is k
|
923
|
+
//! according to the comparison functor or an empty range
|
924
|
+
//! that indicates the position where those elements would be
|
925
|
+
//! if they there is no elements with key k.
|
926
|
+
//!
|
927
|
+
//! <b>Complexity</b>: Logarithmic.
|
928
|
+
//!
|
929
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
930
|
+
//!
|
931
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
932
|
+
//! is expensive and the value_type can be compared with a cheaper
|
933
|
+
//! key type. Usually this key is part of the value_type.
|
934
|
+
template<class KeyType, class KeyValueCompare>
|
935
|
+
std::pair<iterator,iterator> equal_range(const KeyType& key, KeyValueCompare comp)
|
936
|
+
{ return tree_.equal_range(key, comp); }
|
937
|
+
|
938
|
+
//! <b>Effects</b>: Finds a range containing all elements whose key is k or
|
939
|
+
//! an empty range that indicates the position where those elements would be
|
940
|
+
//! if they there is no elements with key k.
|
941
|
+
//!
|
942
|
+
//! <b>Complexity</b>: Logarithmic.
|
943
|
+
//!
|
944
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
945
|
+
std::pair<const_iterator, const_iterator>
|
946
|
+
equal_range(const_reference value) const
|
947
|
+
{ return tree_.equal_range(value); }
|
948
|
+
|
949
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
950
|
+
//! value_compare. Usually key is the part of the value_type
|
951
|
+
//! that is used in the ordering functor.
|
952
|
+
//!
|
953
|
+
//! <b>Effects</b>: Finds a range containing all elements whose key is k
|
954
|
+
//! according to the comparison functor or an empty range
|
955
|
+
//! that indicates the position where those elements would be
|
956
|
+
//! if they there is no elements with key k.
|
957
|
+
//!
|
958
|
+
//! <b>Complexity</b>: Logarithmic.
|
959
|
+
//!
|
960
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
961
|
+
//!
|
962
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
963
|
+
//! is expensive and the value_type can be compared with a cheaper
|
964
|
+
//! key type. Usually this key is part of the value_type.
|
965
|
+
template<class KeyType, class KeyValueCompare>
|
966
|
+
std::pair<const_iterator, const_iterator>
|
967
|
+
equal_range(const KeyType& key, KeyValueCompare comp) const
|
968
|
+
{ return tree_.equal_range(key, comp); }
|
969
|
+
|
970
|
+
//! <b>Requires</b>: 'lower_value' must not be greater than 'upper_value'. If
|
971
|
+
//! 'lower_value' == 'upper_value', ('left_closed' || 'right_closed') must be false.
|
972
|
+
//!
|
973
|
+
//! <b>Effects</b>: Returns an a pair with the following criteria:
|
974
|
+
//!
|
975
|
+
//! first = lower_bound(lower_key) if left_closed, upper_bound(lower_key) otherwise
|
976
|
+
//!
|
977
|
+
//! second = upper_bound(upper_key) if right_closed, lower_bound(upper_key) otherwise
|
978
|
+
//!
|
979
|
+
//! <b>Complexity</b>: Logarithmic.
|
980
|
+
//!
|
981
|
+
//! <b>Throws</b>: If the predicate throws.
|
982
|
+
//!
|
983
|
+
//! <b>Note</b>: This function can be more efficient than calling upper_bound
|
984
|
+
//! and lower_bound for lower_value and upper_value.
|
985
|
+
std::pair<iterator,iterator> bounded_range
|
986
|
+
(const_reference lower_value, const_reference upper_value, bool left_closed, bool right_closed)
|
987
|
+
{ return tree_.bounded_range(lower_value, upper_value, left_closed, right_closed); }
|
988
|
+
|
989
|
+
//! <b>Requires</b>: KeyValueCompare is a function object that induces a strict weak
|
990
|
+
//! ordering compatible with the strict weak ordering used to create the
|
991
|
+
//! the tree.
|
992
|
+
//! 'lower_key' must not be greater than 'upper_key' according to 'comp'. If
|
993
|
+
//! 'lower_key' == 'upper_key', ('left_closed' || 'right_closed') must be false.
|
994
|
+
//!
|
995
|
+
//! <b>Effects</b>: Returns an a pair with the following criteria:
|
996
|
+
//!
|
997
|
+
//! first = lower_bound(lower_key, comp) if left_closed, upper_bound(lower_key, comp) otherwise
|
998
|
+
//!
|
999
|
+
//! second = upper_bound(upper_key, comp) if right_closed, lower_bound(upper_key, comp) otherwise
|
1000
|
+
//!
|
1001
|
+
//! <b>Complexity</b>: Logarithmic.
|
1002
|
+
//!
|
1003
|
+
//! <b>Throws</b>: If "comp" throws.
|
1004
|
+
//!
|
1005
|
+
//! <b>Note</b>: This function can be more efficient than calling upper_bound
|
1006
|
+
//! and lower_bound for lower_key and upper_key.
|
1007
|
+
template<class KeyType, class KeyValueCompare>
|
1008
|
+
std::pair<iterator,iterator> bounded_range
|
1009
|
+
(const KeyType& lower_key, const KeyType& upper_key, KeyValueCompare comp, bool left_closed, bool right_closed)
|
1010
|
+
{ return tree_.bounded_range(lower_key, upper_key, comp, left_closed, right_closed); }
|
1011
|
+
|
1012
|
+
//! <b>Requires</b>: 'lower_value' must not be greater than 'upper_value'. If
|
1013
|
+
//! 'lower_value' == 'upper_value', ('left_closed' || 'right_closed') must be false.
|
1014
|
+
//!
|
1015
|
+
//! <b>Effects</b>: Returns an a pair with the following criteria:
|
1016
|
+
//!
|
1017
|
+
//! first = lower_bound(lower_key) if left_closed, upper_bound(lower_key) otherwise
|
1018
|
+
//!
|
1019
|
+
//! second = upper_bound(upper_key) if right_closed, lower_bound(upper_key) otherwise
|
1020
|
+
//!
|
1021
|
+
//! <b>Complexity</b>: Logarithmic.
|
1022
|
+
//!
|
1023
|
+
//! <b>Throws</b>: If the predicate throws.
|
1024
|
+
//!
|
1025
|
+
//! <b>Note</b>: This function can be more efficient than calling upper_bound
|
1026
|
+
//! and lower_bound for lower_value and upper_value.
|
1027
|
+
std::pair<const_iterator, const_iterator>
|
1028
|
+
bounded_range(const_reference lower_value, const_reference upper_value, bool left_closed, bool right_closed) const
|
1029
|
+
{ return tree_.bounded_range(lower_value, upper_value, left_closed, right_closed); }
|
1030
|
+
|
1031
|
+
//! <b>Requires</b>: KeyValueCompare is a function object that induces a strict weak
|
1032
|
+
//! ordering compatible with the strict weak ordering used to create the
|
1033
|
+
//! the tree.
|
1034
|
+
//! 'lower_key' must not be greater than 'upper_key' according to 'comp'. If
|
1035
|
+
//! 'lower_key' == 'upper_key', ('left_closed' || 'right_closed') must be false.
|
1036
|
+
//!
|
1037
|
+
//! <b>Effects</b>: Returns an a pair with the following criteria:
|
1038
|
+
//!
|
1039
|
+
//! first = lower_bound(lower_key, comp) if left_closed, upper_bound(lower_key, comp) otherwise
|
1040
|
+
//!
|
1041
|
+
//! second = upper_bound(upper_key, comp) if right_closed, lower_bound(upper_key, comp) otherwise
|
1042
|
+
//!
|
1043
|
+
//! <b>Complexity</b>: Logarithmic.
|
1044
|
+
//!
|
1045
|
+
//! <b>Throws</b>: If "comp" throws.
|
1046
|
+
//!
|
1047
|
+
//! <b>Note</b>: This function can be more efficient than calling upper_bound
|
1048
|
+
//! and lower_bound for lower_key and upper_key.
|
1049
|
+
template<class KeyType, class KeyValueCompare>
|
1050
|
+
std::pair<const_iterator, const_iterator>
|
1051
|
+
bounded_range
|
1052
|
+
(const KeyType& lower_key, const KeyType& upper_key, KeyValueCompare comp, bool left_closed, bool right_closed) const
|
1053
|
+
{ return tree_.bounded_range(lower_key, upper_key, comp, left_closed, right_closed); }
|
1054
|
+
|
1055
|
+
//! <b>Requires</b>: value must be an lvalue and shall be in a sg_set of
|
1056
|
+
//! appropriate type. Otherwise the behavior is undefined.
|
1057
|
+
//!
|
1058
|
+
//! <b>Effects</b>: Returns: a valid iterator i belonging to the sg_set
|
1059
|
+
//! that points to the value
|
1060
|
+
//!
|
1061
|
+
//! <b>Complexity</b>: Constant.
|
1062
|
+
//!
|
1063
|
+
//! <b>Throws</b>: Nothing.
|
1064
|
+
//!
|
1065
|
+
//! <b>Note</b>: This static function is available only if the <i>value traits</i>
|
1066
|
+
//! is stateless.
|
1067
|
+
static iterator s_iterator_to(reference value)
|
1068
|
+
{ return tree_type::s_iterator_to(value); }
|
1069
|
+
|
1070
|
+
//! <b>Requires</b>: value must be an lvalue and shall be in a sg_set of
|
1071
|
+
//! appropriate type. Otherwise the behavior is undefined.
|
1072
|
+
//!
|
1073
|
+
//! <b>Effects</b>: Returns: a valid const_iterator i belonging to the
|
1074
|
+
//! sg_set that points to the value
|
1075
|
+
//!
|
1076
|
+
//! <b>Complexity</b>: Constant.
|
1077
|
+
//!
|
1078
|
+
//! <b>Throws</b>: Nothing.
|
1079
|
+
//!
|
1080
|
+
//! <b>Note</b>: This static function is available only if the <i>value traits</i>
|
1081
|
+
//! is stateless.
|
1082
|
+
static const_iterator s_iterator_to(const_reference value)
|
1083
|
+
{ return tree_type::s_iterator_to(value); }
|
1084
|
+
|
1085
|
+
//! <b>Requires</b>: value must be an lvalue and shall be in a sg_set of
|
1086
|
+
//! appropriate type. Otherwise the behavior is undefined.
|
1087
|
+
//!
|
1088
|
+
//! <b>Effects</b>: Returns: a valid iterator i belonging to the sg_set
|
1089
|
+
//! that points to the value
|
1090
|
+
//!
|
1091
|
+
//! <b>Complexity</b>: Constant.
|
1092
|
+
//!
|
1093
|
+
//! <b>Throws</b>: Nothing.
|
1094
|
+
iterator iterator_to(reference value)
|
1095
|
+
{ return tree_.iterator_to(value); }
|
1096
|
+
|
1097
|
+
//! <b>Requires</b>: value must be an lvalue and shall be in a sg_set of
|
1098
|
+
//! appropriate type. Otherwise the behavior is undefined.
|
1099
|
+
//!
|
1100
|
+
//! <b>Effects</b>: Returns: a valid const_iterator i belonging to the
|
1101
|
+
//! sg_set that points to the value
|
1102
|
+
//!
|
1103
|
+
//! <b>Complexity</b>: Constant.
|
1104
|
+
//!
|
1105
|
+
//! <b>Throws</b>: Nothing.
|
1106
|
+
const_iterator iterator_to(const_reference value) const
|
1107
|
+
{ return tree_.iterator_to(value); }
|
1108
|
+
|
1109
|
+
//! <b>Requires</b>: value shall not be in a sg_set/sg_multiset.
|
1110
|
+
//!
|
1111
|
+
//! <b>Effects</b>: init_node puts the hook of a value in a well-known default
|
1112
|
+
//! state.
|
1113
|
+
//!
|
1114
|
+
//! <b>Throws</b>: Nothing.
|
1115
|
+
//!
|
1116
|
+
//! <b>Complexity</b>: Constant time.
|
1117
|
+
//!
|
1118
|
+
//! <b>Note</b>: This function puts the hook in the well-known default state
|
1119
|
+
//! used by auto_unlink and safe hooks.
|
1120
|
+
static void init_node(reference value)
|
1121
|
+
{ tree_type::init_node(value); }
|
1122
|
+
|
1123
|
+
//! <b>Effects</b>: Unlinks the leftmost node from the tree.
|
1124
|
+
//!
|
1125
|
+
//! <b>Complexity</b>: Average complexity is constant time.
|
1126
|
+
//!
|
1127
|
+
//! <b>Throws</b>: Nothing.
|
1128
|
+
//!
|
1129
|
+
//! <b>Notes</b>: This function breaks the tree and the tree can
|
1130
|
+
//! only be used for more unlink_leftmost_without_rebalance calls.
|
1131
|
+
//! This function is normally used to achieve a step by step
|
1132
|
+
//! controlled destruction of the tree.
|
1133
|
+
pointer unlink_leftmost_without_rebalance()
|
1134
|
+
{ return tree_.unlink_leftmost_without_rebalance(); }
|
1135
|
+
|
1136
|
+
//! <b>Requires</b>: replace_this must be a valid iterator of *this
|
1137
|
+
//! and with_this must not be inserted in any tree.
|
1138
|
+
//!
|
1139
|
+
//! <b>Effects</b>: Replaces replace_this in its position in the
|
1140
|
+
//! tree with with_this. The tree does not need to be rebalanced.
|
1141
|
+
//!
|
1142
|
+
//! <b>Complexity</b>: Constant.
|
1143
|
+
//!
|
1144
|
+
//! <b>Throws</b>: Nothing.
|
1145
|
+
//!
|
1146
|
+
//! <b>Note</b>: This function will break container ordering invariants if
|
1147
|
+
//! with_this is not equivalent to *replace_this according to the
|
1148
|
+
//! ordering rules. This function is faster than erasing and inserting
|
1149
|
+
//! the node, since no rebalancing or comparison is needed.
|
1150
|
+
void replace_node(iterator replace_this, reference with_this)
|
1151
|
+
{ tree_.replace_node(replace_this, with_this); }
|
1152
|
+
|
1153
|
+
//! <b>Effects</b>: Rebalances the tree.
|
1154
|
+
//!
|
1155
|
+
//! <b>Throws</b>: Nothing.
|
1156
|
+
//!
|
1157
|
+
//! <b>Complexity</b>: Linear.
|
1158
|
+
void rebalance()
|
1159
|
+
{ tree_.rebalance(); }
|
1160
|
+
|
1161
|
+
//! <b>Requires</b>: old_root is a node of a tree.
|
1162
|
+
//!
|
1163
|
+
//! <b>Effects</b>: Rebalances the subtree rooted at old_root.
|
1164
|
+
//!
|
1165
|
+
//! <b>Returns</b>: The new root of the subtree.
|
1166
|
+
//!
|
1167
|
+
//! <b>Throws</b>: Nothing.
|
1168
|
+
//!
|
1169
|
+
//! <b>Complexity</b>: Linear to the elements in the subtree.
|
1170
|
+
iterator rebalance_subtree(iterator root)
|
1171
|
+
{ return tree_.rebalance_subtree(root); }
|
1172
|
+
|
1173
|
+
//! <b>Returns</b>: The balance factor (alpha) used in this tree
|
1174
|
+
//!
|
1175
|
+
//! <b>Throws</b>: Nothing.
|
1176
|
+
//!
|
1177
|
+
//! <b>Complexity</b>: Constant.
|
1178
|
+
float balance_factor() const
|
1179
|
+
{ return tree_.balance_factor(); }
|
1180
|
+
|
1181
|
+
//! <b>Requires</b>: new_alpha must be a value between 0.5 and 1.0
|
1182
|
+
//!
|
1183
|
+
//! <b>Effects</b>: Establishes a new balance factor (alpha) and rebalances
|
1184
|
+
//! the tree if the new balance factor is stricter (less) than the old factor.
|
1185
|
+
//!
|
1186
|
+
//! <b>Throws</b>: Nothing.
|
1187
|
+
//!
|
1188
|
+
//! <b>Complexity</b>: Linear to the elements in the subtree.
|
1189
|
+
void balance_factor(float new_alpha)
|
1190
|
+
{ tree_.balance_factor(new_alpha); }
|
1191
|
+
|
1192
|
+
/// @cond
|
1193
|
+
friend bool operator==(const sg_set_impl &x, const sg_set_impl &y)
|
1194
|
+
{ return x.tree_ == y.tree_; }
|
1195
|
+
|
1196
|
+
friend bool operator<(const sg_set_impl &x, const sg_set_impl &y)
|
1197
|
+
{ return x.tree_ < y.tree_; }
|
1198
|
+
/// @endcond
|
1199
|
+
};
|
1200
|
+
|
1201
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1202
|
+
template<class T, class ...Options>
|
1203
|
+
#else
|
1204
|
+
template<class Config>
|
1205
|
+
#endif
|
1206
|
+
inline bool operator!=
|
1207
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1208
|
+
(const sg_set_impl<T, Options...> &x, const sg_set_impl<T, Options...> &y)
|
1209
|
+
#else
|
1210
|
+
(const sg_set_impl<Config> &x, const sg_set_impl<Config> &y)
|
1211
|
+
#endif
|
1212
|
+
{ return !(x == y); }
|
1213
|
+
|
1214
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1215
|
+
template<class T, class ...Options>
|
1216
|
+
#else
|
1217
|
+
template<class Config>
|
1218
|
+
#endif
|
1219
|
+
inline bool operator>
|
1220
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1221
|
+
(const sg_set_impl<T, Options...> &x, const sg_set_impl<T, Options...> &y)
|
1222
|
+
#else
|
1223
|
+
(const sg_set_impl<Config> &x, const sg_set_impl<Config> &y)
|
1224
|
+
#endif
|
1225
|
+
{ return y < x; }
|
1226
|
+
|
1227
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1228
|
+
template<class T, class ...Options>
|
1229
|
+
#else
|
1230
|
+
template<class Config>
|
1231
|
+
#endif
|
1232
|
+
inline bool operator<=
|
1233
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1234
|
+
(const sg_set_impl<T, Options...> &x, const sg_set_impl<T, Options...> &y)
|
1235
|
+
#else
|
1236
|
+
(const sg_set_impl<Config> &x, const sg_set_impl<Config> &y)
|
1237
|
+
#endif
|
1238
|
+
{ return !(y < x); }
|
1239
|
+
|
1240
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1241
|
+
template<class T, class ...Options>
|
1242
|
+
#else
|
1243
|
+
template<class Config>
|
1244
|
+
#endif
|
1245
|
+
inline bool operator>=
|
1246
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1247
|
+
(const sg_set_impl<T, Options...> &x, const sg_set_impl<T, Options...> &y)
|
1248
|
+
#else
|
1249
|
+
(const sg_set_impl<Config> &x, const sg_set_impl<Config> &y)
|
1250
|
+
#endif
|
1251
|
+
{ return !(x < y); }
|
1252
|
+
|
1253
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1254
|
+
template<class T, class ...Options>
|
1255
|
+
#else
|
1256
|
+
template<class Config>
|
1257
|
+
#endif
|
1258
|
+
inline void swap
|
1259
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1260
|
+
(sg_set_impl<T, Options...> &x, sg_set_impl<T, Options...> &y)
|
1261
|
+
#else
|
1262
|
+
(sg_set_impl<Config> &x, sg_set_impl<Config> &y)
|
1263
|
+
#endif
|
1264
|
+
{ x.swap(y); }
|
1265
|
+
|
1266
|
+
//! Helper metafunction to define a \c sg_set that yields to the same type when the
|
1267
|
+
//! same options (either explicitly or implicitly) are used.
|
1268
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) || defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
1269
|
+
template<class T, class ...Options>
|
1270
|
+
#else
|
1271
|
+
template<class T, class O1 = none, class O2 = none
|
1272
|
+
, class O3 = none, class O4 = none>
|
1273
|
+
#endif
|
1274
|
+
struct make_sg_set
|
1275
|
+
{
|
1276
|
+
/// @cond
|
1277
|
+
typedef sg_set_impl
|
1278
|
+
< typename make_sgtree_opt<T,
|
1279
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
1280
|
+
O1, O2, O3, O4
|
1281
|
+
#else
|
1282
|
+
Options...
|
1283
|
+
#endif
|
1284
|
+
>::type
|
1285
|
+
> implementation_defined;
|
1286
|
+
/// @endcond
|
1287
|
+
typedef implementation_defined type;
|
1288
|
+
};
|
1289
|
+
|
1290
|
+
#ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED
|
1291
|
+
|
1292
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
1293
|
+
template<class T, class O1, class O2, class O3, class O4>
|
1294
|
+
#else
|
1295
|
+
template<class T, class ...Options>
|
1296
|
+
#endif
|
1297
|
+
class sg_set
|
1298
|
+
: public make_sg_set<T,
|
1299
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
1300
|
+
O1, O2, O3, O4
|
1301
|
+
#else
|
1302
|
+
Options...
|
1303
|
+
#endif
|
1304
|
+
>::type
|
1305
|
+
{
|
1306
|
+
typedef typename make_sg_set
|
1307
|
+
<T,
|
1308
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
1309
|
+
O1, O2, O3, O4
|
1310
|
+
#else
|
1311
|
+
Options...
|
1312
|
+
#endif
|
1313
|
+
>::type Base;
|
1314
|
+
BOOST_MOVABLE_BUT_NOT_COPYABLE(sg_set)
|
1315
|
+
|
1316
|
+
public:
|
1317
|
+
typedef typename Base::value_compare value_compare;
|
1318
|
+
typedef typename Base::value_traits value_traits;
|
1319
|
+
typedef typename Base::iterator iterator;
|
1320
|
+
typedef typename Base::const_iterator const_iterator;
|
1321
|
+
|
1322
|
+
//Assert if passed value traits are compatible with the type
|
1323
|
+
BOOST_STATIC_ASSERT((detail::is_same<typename value_traits::value_type, T>::value));
|
1324
|
+
|
1325
|
+
sg_set( const value_compare &cmp = value_compare()
|
1326
|
+
, const value_traits &v_traits = value_traits())
|
1327
|
+
: Base(cmp, v_traits)
|
1328
|
+
{}
|
1329
|
+
|
1330
|
+
template<class Iterator>
|
1331
|
+
sg_set( Iterator b, Iterator e
|
1332
|
+
, const value_compare &cmp = value_compare()
|
1333
|
+
, const value_traits &v_traits = value_traits())
|
1334
|
+
: Base(b, e, cmp, v_traits)
|
1335
|
+
{}
|
1336
|
+
|
1337
|
+
sg_set(BOOST_RV_REF(sg_set) x)
|
1338
|
+
: Base(::boost::move(static_cast<Base&>(x)))
|
1339
|
+
{}
|
1340
|
+
|
1341
|
+
sg_set& operator=(BOOST_RV_REF(sg_set) x)
|
1342
|
+
{ this->Base::operator=(::boost::move(static_cast<Base&>(x))); return *this; }
|
1343
|
+
|
1344
|
+
static sg_set &container_from_end_iterator(iterator end_iterator)
|
1345
|
+
{ return static_cast<sg_set &>(Base::container_from_end_iterator(end_iterator)); }
|
1346
|
+
|
1347
|
+
static const sg_set &container_from_end_iterator(const_iterator end_iterator)
|
1348
|
+
{ return static_cast<const sg_set &>(Base::container_from_end_iterator(end_iterator)); }
|
1349
|
+
|
1350
|
+
static sg_set &container_from_iterator(iterator it)
|
1351
|
+
{ return static_cast<sg_set &>(Base::container_from_iterator(it)); }
|
1352
|
+
|
1353
|
+
static const sg_set &container_from_iterator(const_iterator it)
|
1354
|
+
{ return static_cast<const sg_set &>(Base::container_from_iterator(it)); }
|
1355
|
+
};
|
1356
|
+
|
1357
|
+
#endif
|
1358
|
+
|
1359
|
+
//! The class template sg_multiset is an intrusive container, that mimics most of
|
1360
|
+
//! the interface of std::sg_multiset as described in the C++ standard.
|
1361
|
+
//!
|
1362
|
+
//! The template parameter \c T is the type to be managed by the container.
|
1363
|
+
//! The user can specify additional options and if no options are provided
|
1364
|
+
//! default options are used.
|
1365
|
+
//!
|
1366
|
+
//! The container supports the following options:
|
1367
|
+
//! \c base_hook<>/member_hook<>/value_traits<>,
|
1368
|
+
//! \c constant_time_size<>, \c size_type<> and
|
1369
|
+
//! \c compare<>.
|
1370
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1371
|
+
template<class T, class ...Options>
|
1372
|
+
#else
|
1373
|
+
template<class Config>
|
1374
|
+
#endif
|
1375
|
+
class sg_multiset_impl
|
1376
|
+
{
|
1377
|
+
/// @cond
|
1378
|
+
typedef sgtree_impl<Config> tree_type;
|
1379
|
+
|
1380
|
+
//Non-copyable and non-assignable
|
1381
|
+
BOOST_MOVABLE_BUT_NOT_COPYABLE(sg_multiset_impl)
|
1382
|
+
typedef tree_type implementation_defined;
|
1383
|
+
/// @endcond
|
1384
|
+
|
1385
|
+
public:
|
1386
|
+
typedef typename implementation_defined::value_type value_type;
|
1387
|
+
typedef typename implementation_defined::value_traits value_traits;
|
1388
|
+
typedef typename implementation_defined::pointer pointer;
|
1389
|
+
typedef typename implementation_defined::const_pointer const_pointer;
|
1390
|
+
typedef typename implementation_defined::reference reference;
|
1391
|
+
typedef typename implementation_defined::const_reference const_reference;
|
1392
|
+
typedef typename implementation_defined::difference_type difference_type;
|
1393
|
+
typedef typename implementation_defined::size_type size_type;
|
1394
|
+
typedef typename implementation_defined::value_compare value_compare;
|
1395
|
+
typedef typename implementation_defined::key_compare key_compare;
|
1396
|
+
typedef typename implementation_defined::iterator iterator;
|
1397
|
+
typedef typename implementation_defined::const_iterator const_iterator;
|
1398
|
+
typedef typename implementation_defined::reverse_iterator reverse_iterator;
|
1399
|
+
typedef typename implementation_defined::const_reverse_iterator const_reverse_iterator;
|
1400
|
+
typedef typename implementation_defined::insert_commit_data insert_commit_data;
|
1401
|
+
typedef typename implementation_defined::node_traits node_traits;
|
1402
|
+
typedef typename implementation_defined::node node;
|
1403
|
+
typedef typename implementation_defined::node_ptr node_ptr;
|
1404
|
+
typedef typename implementation_defined::const_node_ptr const_node_ptr;
|
1405
|
+
typedef typename implementation_defined::node_algorithms node_algorithms;
|
1406
|
+
|
1407
|
+
/// @cond
|
1408
|
+
private:
|
1409
|
+
tree_type tree_;
|
1410
|
+
/// @endcond
|
1411
|
+
|
1412
|
+
public:
|
1413
|
+
//! <b>Effects</b>: Constructs an empty sg_multiset.
|
1414
|
+
//!
|
1415
|
+
//! <b>Complexity</b>: Constant.
|
1416
|
+
//!
|
1417
|
+
//! <b>Throws</b>: If value_traits::node_traits::node
|
1418
|
+
//! constructor throws (this does not happen with predefined Boost.Intrusive hooks)
|
1419
|
+
//! or the copy constructor/operator() of the value_compare object throws.
|
1420
|
+
explicit sg_multiset_impl( const value_compare &cmp = value_compare()
|
1421
|
+
, const value_traits &v_traits = value_traits())
|
1422
|
+
: tree_(cmp, v_traits)
|
1423
|
+
{}
|
1424
|
+
|
1425
|
+
//! <b>Requires</b>: Dereferencing iterator must yield an lvalue of type value_type.
|
1426
|
+
//! cmp must be a comparison function that induces a strict weak ordering.
|
1427
|
+
//!
|
1428
|
+
//! <b>Effects</b>: Constructs an empty sg_multiset and inserts elements from
|
1429
|
+
//! [b, e).
|
1430
|
+
//!
|
1431
|
+
//! <b>Complexity</b>: Linear in N if [b, e) is already sorted using
|
1432
|
+
//! comp and otherwise N * log N, where N is the distance between first and last
|
1433
|
+
//!
|
1434
|
+
//! <b>Throws</b>: If value_traits::node_traits::node
|
1435
|
+
//! constructor throws (this does not happen with predefined Boost.Intrusive hooks)
|
1436
|
+
//! or the copy constructor/operator() of the value_compare object throws.
|
1437
|
+
template<class Iterator>
|
1438
|
+
sg_multiset_impl( Iterator b, Iterator e
|
1439
|
+
, const value_compare &cmp = value_compare()
|
1440
|
+
, const value_traits &v_traits = value_traits())
|
1441
|
+
: tree_(false, b, e, cmp, v_traits)
|
1442
|
+
{}
|
1443
|
+
|
1444
|
+
//! <b>Effects</b>: to-do
|
1445
|
+
//!
|
1446
|
+
sg_multiset_impl(BOOST_RV_REF(sg_multiset_impl) x)
|
1447
|
+
: tree_(::boost::move(x.tree_))
|
1448
|
+
{}
|
1449
|
+
|
1450
|
+
//! <b>Effects</b>: to-do
|
1451
|
+
//!
|
1452
|
+
sg_multiset_impl& operator=(BOOST_RV_REF(sg_multiset_impl) x)
|
1453
|
+
{ tree_ = ::boost::move(x.tree_); return *this; }
|
1454
|
+
|
1455
|
+
//! <b>Effects</b>: Detaches all elements from this. The objects in the sg_multiset
|
1456
|
+
//! are not deleted (i.e. no destructors are called).
|
1457
|
+
//!
|
1458
|
+
//! <b>Complexity</b>: Linear to the number of elements on the container.
|
1459
|
+
//! if it's a safe-mode or auto-unlink value_type. Constant time otherwise.
|
1460
|
+
//!
|
1461
|
+
//! <b>Throws</b>: Nothing.
|
1462
|
+
~sg_multiset_impl()
|
1463
|
+
{}
|
1464
|
+
|
1465
|
+
//! <b>Effects</b>: Returns an iterator pointing to the beginning of the sg_multiset.
|
1466
|
+
//!
|
1467
|
+
//! <b>Complexity</b>: Constant.
|
1468
|
+
//!
|
1469
|
+
//! <b>Throws</b>: Nothing.
|
1470
|
+
iterator begin()
|
1471
|
+
{ return tree_.begin(); }
|
1472
|
+
|
1473
|
+
//! <b>Effects</b>: Returns a const_iterator pointing to the beginning of the sg_multiset.
|
1474
|
+
//!
|
1475
|
+
//! <b>Complexity</b>: Constant.
|
1476
|
+
//!
|
1477
|
+
//! <b>Throws</b>: Nothing.
|
1478
|
+
const_iterator begin() const
|
1479
|
+
{ return tree_.begin(); }
|
1480
|
+
|
1481
|
+
//! <b>Effects</b>: Returns a const_iterator pointing to the beginning of the sg_multiset.
|
1482
|
+
//!
|
1483
|
+
//! <b>Complexity</b>: Constant.
|
1484
|
+
//!
|
1485
|
+
//! <b>Throws</b>: Nothing.
|
1486
|
+
const_iterator cbegin() const
|
1487
|
+
{ return tree_.cbegin(); }
|
1488
|
+
|
1489
|
+
//! <b>Effects</b>: Returns an iterator pointing to the end of the sg_multiset.
|
1490
|
+
//!
|
1491
|
+
//! <b>Complexity</b>: Constant.
|
1492
|
+
//!
|
1493
|
+
//! <b>Throws</b>: Nothing.
|
1494
|
+
iterator end()
|
1495
|
+
{ return tree_.end(); }
|
1496
|
+
|
1497
|
+
//! <b>Effects</b>: Returns a const_iterator pointing to the end of the sg_multiset.
|
1498
|
+
//!
|
1499
|
+
//! <b>Complexity</b>: Constant.
|
1500
|
+
//!
|
1501
|
+
//! <b>Throws</b>: Nothing.
|
1502
|
+
const_iterator end() const
|
1503
|
+
{ return tree_.end(); }
|
1504
|
+
|
1505
|
+
//! <b>Effects</b>: Returns a const_iterator pointing to the end of the sg_multiset.
|
1506
|
+
//!
|
1507
|
+
//! <b>Complexity</b>: Constant.
|
1508
|
+
//!
|
1509
|
+
//! <b>Throws</b>: Nothing.
|
1510
|
+
const_iterator cend() const
|
1511
|
+
{ return tree_.cend(); }
|
1512
|
+
|
1513
|
+
//! <b>Effects</b>: Returns a reverse_iterator pointing to the beginning of the
|
1514
|
+
//! reversed sg_multiset.
|
1515
|
+
//!
|
1516
|
+
//! <b>Complexity</b>: Constant.
|
1517
|
+
//!
|
1518
|
+
//! <b>Throws</b>: Nothing.
|
1519
|
+
reverse_iterator rbegin()
|
1520
|
+
{ return tree_.rbegin(); }
|
1521
|
+
|
1522
|
+
//! <b>Effects</b>: Returns a const_reverse_iterator pointing to the beginning
|
1523
|
+
//! of the reversed sg_multiset.
|
1524
|
+
//!
|
1525
|
+
//! <b>Complexity</b>: Constant.
|
1526
|
+
//!
|
1527
|
+
//! <b>Throws</b>: Nothing.
|
1528
|
+
const_reverse_iterator rbegin() const
|
1529
|
+
{ return tree_.rbegin(); }
|
1530
|
+
|
1531
|
+
//! <b>Effects</b>: Returns a const_reverse_iterator pointing to the beginning
|
1532
|
+
//! of the reversed sg_multiset.
|
1533
|
+
//!
|
1534
|
+
//! <b>Complexity</b>: Constant.
|
1535
|
+
//!
|
1536
|
+
//! <b>Throws</b>: Nothing.
|
1537
|
+
const_reverse_iterator crbegin() const
|
1538
|
+
{ return tree_.crbegin(); }
|
1539
|
+
|
1540
|
+
//! <b>Effects</b>: Returns a reverse_iterator pointing to the end
|
1541
|
+
//! of the reversed sg_multiset.
|
1542
|
+
//!
|
1543
|
+
//! <b>Complexity</b>: Constant.
|
1544
|
+
//!
|
1545
|
+
//! <b>Throws</b>: Nothing.
|
1546
|
+
reverse_iterator rend()
|
1547
|
+
{ return tree_.rend(); }
|
1548
|
+
|
1549
|
+
//! <b>Effects</b>: Returns a const_reverse_iterator pointing to the end
|
1550
|
+
//! of the reversed sg_multiset.
|
1551
|
+
//!
|
1552
|
+
//! <b>Complexity</b>: Constant.
|
1553
|
+
//!
|
1554
|
+
//! <b>Throws</b>: Nothing.
|
1555
|
+
const_reverse_iterator rend() const
|
1556
|
+
{ return tree_.rend(); }
|
1557
|
+
|
1558
|
+
//! <b>Effects</b>: Returns a const_reverse_iterator pointing to the end
|
1559
|
+
//! of the reversed sg_multiset.
|
1560
|
+
//!
|
1561
|
+
//! <b>Complexity</b>: Constant.
|
1562
|
+
//!
|
1563
|
+
//! <b>Throws</b>: Nothing.
|
1564
|
+
const_reverse_iterator crend() const
|
1565
|
+
{ return tree_.crend(); }
|
1566
|
+
|
1567
|
+
//! <b>Precondition</b>: end_iterator must be a valid end iterator
|
1568
|
+
//! of sg_multiset.
|
1569
|
+
//!
|
1570
|
+
//! <b>Effects</b>: Returns a const reference to the sg_multiset associated to the end iterator
|
1571
|
+
//!
|
1572
|
+
//! <b>Throws</b>: Nothing.
|
1573
|
+
//!
|
1574
|
+
//! <b>Complexity</b>: Constant.
|
1575
|
+
static sg_multiset_impl &container_from_end_iterator(iterator end_iterator)
|
1576
|
+
{
|
1577
|
+
return *detail::parent_from_member<sg_multiset_impl, tree_type>
|
1578
|
+
( &tree_type::container_from_end_iterator(end_iterator)
|
1579
|
+
, &sg_multiset_impl::tree_);
|
1580
|
+
}
|
1581
|
+
|
1582
|
+
//! <b>Precondition</b>: end_iterator must be a valid end const_iterator
|
1583
|
+
//! of sg_multiset.
|
1584
|
+
//!
|
1585
|
+
//! <b>Effects</b>: Returns a const reference to the sg_multiset associated to the end iterator
|
1586
|
+
//!
|
1587
|
+
//! <b>Throws</b>: Nothing.
|
1588
|
+
//!
|
1589
|
+
//! <b>Complexity</b>: Constant.
|
1590
|
+
static const sg_multiset_impl &container_from_end_iterator(const_iterator end_iterator)
|
1591
|
+
{
|
1592
|
+
return *detail::parent_from_member<sg_multiset_impl, tree_type>
|
1593
|
+
( &tree_type::container_from_end_iterator(end_iterator)
|
1594
|
+
, &sg_multiset_impl::tree_);
|
1595
|
+
}
|
1596
|
+
|
1597
|
+
//! <b>Precondition</b>: it must be a valid iterator of multiset.
|
1598
|
+
//!
|
1599
|
+
//! <b>Effects</b>: Returns a const reference to the multiset associated to the iterator
|
1600
|
+
//!
|
1601
|
+
//! <b>Throws</b>: Nothing.
|
1602
|
+
//!
|
1603
|
+
//! <b>Complexity</b>: Constant.
|
1604
|
+
static sg_multiset_impl &container_from_iterator(iterator it)
|
1605
|
+
{
|
1606
|
+
return *detail::parent_from_member<sg_multiset_impl, tree_type>
|
1607
|
+
( &tree_type::container_from_iterator(it)
|
1608
|
+
, &sg_multiset_impl::tree_);
|
1609
|
+
}
|
1610
|
+
|
1611
|
+
//! <b>Precondition</b>: it must be a valid const_iterator of multiset.
|
1612
|
+
//!
|
1613
|
+
//! <b>Effects</b>: Returns a const reference to the multiset associated to the iterator
|
1614
|
+
//!
|
1615
|
+
//! <b>Throws</b>: Nothing.
|
1616
|
+
//!
|
1617
|
+
//! <b>Complexity</b>: Constant.
|
1618
|
+
static const sg_multiset_impl &container_from_iterator(const_iterator it)
|
1619
|
+
{
|
1620
|
+
return *detail::parent_from_member<sg_multiset_impl, tree_type>
|
1621
|
+
( &tree_type::container_from_iterator(it)
|
1622
|
+
, &sg_multiset_impl::tree_);
|
1623
|
+
}
|
1624
|
+
|
1625
|
+
//! <b>Effects</b>: Returns the key_compare object used by the sg_multiset.
|
1626
|
+
//!
|
1627
|
+
//! <b>Complexity</b>: Constant.
|
1628
|
+
//!
|
1629
|
+
//! <b>Throws</b>: If key_compare copy-constructor throws.
|
1630
|
+
key_compare key_comp() const
|
1631
|
+
{ return tree_.value_comp(); }
|
1632
|
+
|
1633
|
+
//! <b>Effects</b>: Returns the value_compare object used by the sg_multiset.
|
1634
|
+
//!
|
1635
|
+
//! <b>Complexity</b>: Constant.
|
1636
|
+
//!
|
1637
|
+
//! <b>Throws</b>: If value_compare copy-constructor throws.
|
1638
|
+
value_compare value_comp() const
|
1639
|
+
{ return tree_.value_comp(); }
|
1640
|
+
|
1641
|
+
//! <b>Effects</b>: Returns true if the container is empty.
|
1642
|
+
//!
|
1643
|
+
//! <b>Complexity</b>: Constant.
|
1644
|
+
//!
|
1645
|
+
//! <b>Throws</b>: Nothing.
|
1646
|
+
bool empty() const
|
1647
|
+
{ return tree_.empty(); }
|
1648
|
+
|
1649
|
+
//! <b>Effects</b>: Returns the number of elements stored in the sg_multiset.
|
1650
|
+
//!
|
1651
|
+
//! <b>Complexity</b>: Linear to elements contained in *this if,
|
1652
|
+
//! constant-time size option is enabled. Constant-time otherwise.
|
1653
|
+
//!
|
1654
|
+
//! <b>Throws</b>: Nothing.
|
1655
|
+
size_type size() const
|
1656
|
+
{ return tree_.size(); }
|
1657
|
+
|
1658
|
+
//! <b>Effects</b>: Swaps the contents of two sg_multisets.
|
1659
|
+
//!
|
1660
|
+
//! <b>Complexity</b>: Constant.
|
1661
|
+
//!
|
1662
|
+
//! <b>Throws</b>: If the swap() call for the comparison functor
|
1663
|
+
//! found using ADL throws. Strong guarantee.
|
1664
|
+
void swap(sg_multiset_impl& other)
|
1665
|
+
{ tree_.swap(other.tree_); }
|
1666
|
+
|
1667
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
1668
|
+
//! Cloner should yield to nodes equivalent to the original nodes.
|
1669
|
+
//!
|
1670
|
+
//! <b>Effects</b>: Erases all the elements from *this
|
1671
|
+
//! calling Disposer::operator()(pointer), clones all the
|
1672
|
+
//! elements from src calling Cloner::operator()(const_reference )
|
1673
|
+
//! and inserts them on *this. Copies the predicate from the source container.
|
1674
|
+
//!
|
1675
|
+
//! If cloner throws, all cloned elements are unlinked and disposed
|
1676
|
+
//! calling Disposer::operator()(pointer).
|
1677
|
+
//!
|
1678
|
+
//! <b>Complexity</b>: Linear to erased plus inserted elements.
|
1679
|
+
//!
|
1680
|
+
//! <b>Throws</b>: If cloner throws or predicate copy assignment throws. Basic guarantee.
|
1681
|
+
template <class Cloner, class Disposer>
|
1682
|
+
void clone_from(const sg_multiset_impl &src, Cloner cloner, Disposer disposer)
|
1683
|
+
{ tree_.clone_from(src.tree_, cloner, disposer); }
|
1684
|
+
|
1685
|
+
//! <b>Requires</b>: value must be an lvalue
|
1686
|
+
//!
|
1687
|
+
//! <b>Effects</b>: Inserts value into the sg_multiset.
|
1688
|
+
//!
|
1689
|
+
//! <b>Returns</b>: An iterator that points to the position where the new
|
1690
|
+
//! element was inserted.
|
1691
|
+
//!
|
1692
|
+
//! <b>Complexity</b>: Average complexity for insert element is at
|
1693
|
+
//! most logarithmic.
|
1694
|
+
//!
|
1695
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws. Strong guarantee.
|
1696
|
+
//!
|
1697
|
+
//! <b>Note</b>: Does not affect the validity of iterators and references.
|
1698
|
+
//! No copy-constructors are called.
|
1699
|
+
iterator insert(reference value)
|
1700
|
+
{ return tree_.insert_equal(value); }
|
1701
|
+
|
1702
|
+
//! <b>Requires</b>: value must be an lvalue
|
1703
|
+
//!
|
1704
|
+
//! <b>Effects</b>: Inserts x into the sg_multiset, using pos as a hint to
|
1705
|
+
//! where it will be inserted.
|
1706
|
+
//!
|
1707
|
+
//! <b>Returns</b>: An iterator that points to the position where the new
|
1708
|
+
//! element was inserted.
|
1709
|
+
//!
|
1710
|
+
//! <b>Complexity</b>: Logarithmic in general, but it is amortized
|
1711
|
+
//! constant time if t is inserted immediately before hint.
|
1712
|
+
//!
|
1713
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws. Strong guarantee.
|
1714
|
+
//!
|
1715
|
+
//! <b>Note</b>: Does not affect the validity of iterators and references.
|
1716
|
+
//! No copy-constructors are called.
|
1717
|
+
iterator insert(const_iterator hint, reference value)
|
1718
|
+
{ return tree_.insert_equal(hint, value); }
|
1719
|
+
|
1720
|
+
//! <b>Requires</b>: Dereferencing iterator must yield an lvalue
|
1721
|
+
//! of type value_type.
|
1722
|
+
//!
|
1723
|
+
//! <b>Effects</b>: Inserts a range into the sg_multiset.
|
1724
|
+
//!
|
1725
|
+
//! <b>Returns</b>: An iterator that points to the position where the new
|
1726
|
+
//! element was inserted.
|
1727
|
+
//!
|
1728
|
+
//! <b>Complexity</b>: Insert range is in general O(N * log(N)), where N is the
|
1729
|
+
//! size of the range. However, it is linear in N if the range is already sorted
|
1730
|
+
//! by value_comp().
|
1731
|
+
//!
|
1732
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws. Basic guarantee.
|
1733
|
+
//!
|
1734
|
+
//! <b>Note</b>: Does not affect the validity of iterators and references.
|
1735
|
+
//! No copy-constructors are called.
|
1736
|
+
template<class Iterator>
|
1737
|
+
void insert(Iterator b, Iterator e)
|
1738
|
+
{ tree_.insert_equal(b, e); }
|
1739
|
+
|
1740
|
+
//! <b>Requires</b>: value must be an lvalue, "pos" must be
|
1741
|
+
//! a valid iterator (or end) and must be the succesor of value
|
1742
|
+
//! once inserted according to the predicate
|
1743
|
+
//!
|
1744
|
+
//! <b>Effects</b>: Inserts x into the tree before "pos".
|
1745
|
+
//!
|
1746
|
+
//! <b>Complexity</b>: Constant time.
|
1747
|
+
//!
|
1748
|
+
//! <b>Throws</b>: Nothing.
|
1749
|
+
//!
|
1750
|
+
//! <b>Note</b>: This function does not check preconditions so if "pos" is not
|
1751
|
+
//! the successor of "value" tree ordering invariant will be broken.
|
1752
|
+
//! This is a low-level function to be used only for performance reasons
|
1753
|
+
//! by advanced users.
|
1754
|
+
iterator insert_before(const_iterator pos, reference value)
|
1755
|
+
{ return tree_.insert_before(pos, value); }
|
1756
|
+
|
1757
|
+
//! <b>Requires</b>: value must be an lvalue, and it must be no less
|
1758
|
+
//! than the greatest inserted key
|
1759
|
+
//!
|
1760
|
+
//! <b>Effects</b>: Inserts x into the tree in the last position.
|
1761
|
+
//!
|
1762
|
+
//! <b>Complexity</b>: Constant time.
|
1763
|
+
//!
|
1764
|
+
//! <b>Throws</b>: Nothing.
|
1765
|
+
//!
|
1766
|
+
//! <b>Note</b>: This function does not check preconditions so if value is
|
1767
|
+
//! less than the greatest inserted key tree ordering invariant will be broken.
|
1768
|
+
//! This function is slightly more efficient than using "insert_before".
|
1769
|
+
//! This is a low-level function to be used only for performance reasons
|
1770
|
+
//! by advanced users.
|
1771
|
+
void push_back(reference value)
|
1772
|
+
{ tree_.push_back(value); }
|
1773
|
+
|
1774
|
+
//! <b>Requires</b>: value must be an lvalue, and it must be no greater
|
1775
|
+
//! than the minimum inserted key
|
1776
|
+
//!
|
1777
|
+
//! <b>Effects</b>: Inserts x into the tree in the first position.
|
1778
|
+
//!
|
1779
|
+
//! <b>Complexity</b>: Constant time.
|
1780
|
+
//!
|
1781
|
+
//! <b>Throws</b>: Nothing.
|
1782
|
+
//!
|
1783
|
+
//! <b>Note</b>: This function does not check preconditions so if value is
|
1784
|
+
//! greater than the minimum inserted key tree ordering invariant will be broken.
|
1785
|
+
//! This function is slightly more efficient than using "insert_before".
|
1786
|
+
//! This is a low-level function to be used only for performance reasons
|
1787
|
+
//! by advanced users.
|
1788
|
+
void push_front(reference value)
|
1789
|
+
{ tree_.push_front(value); }
|
1790
|
+
|
1791
|
+
//! <b>Effects</b>: Erases the element pointed to by pos.
|
1792
|
+
//!
|
1793
|
+
//! <b>Complexity</b>: Average complexity is constant time.
|
1794
|
+
//!
|
1795
|
+
//! <b>Returns</b>: An iterator to the element after the erased element.
|
1796
|
+
//!
|
1797
|
+
//! <b>Throws</b>: Nothing.
|
1798
|
+
//!
|
1799
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
1800
|
+
//! to the erased elements. No destructors are called.
|
1801
|
+
iterator erase(const_iterator i)
|
1802
|
+
{ return tree_.erase(i); }
|
1803
|
+
|
1804
|
+
//! <b>Effects</b>: Erases the range pointed to by b end e.
|
1805
|
+
//!
|
1806
|
+
//! <b>Returns</b>: An iterator to the element after the erased elements.
|
1807
|
+
//!
|
1808
|
+
//! <b>Complexity</b>: Average complexity for erase range is at most
|
1809
|
+
//! O(log(size() + N)), where N is the number of elements in the range.
|
1810
|
+
//!
|
1811
|
+
//! <b>Throws</b>: Nothing.
|
1812
|
+
//!
|
1813
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
1814
|
+
//! to the erased elements. No destructors are called.
|
1815
|
+
iterator erase(const_iterator b, const_iterator e)
|
1816
|
+
{ return tree_.erase(b, e); }
|
1817
|
+
|
1818
|
+
//! <b>Effects</b>: Erases all the elements with the given value.
|
1819
|
+
//!
|
1820
|
+
//! <b>Returns</b>: The number of erased elements.
|
1821
|
+
//!
|
1822
|
+
//! <b>Complexity</b>: O(log(size() + this->count(value)).
|
1823
|
+
//!
|
1824
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws. Basic guarantee.
|
1825
|
+
//!
|
1826
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
1827
|
+
//! to the erased elements. No destructors are called.
|
1828
|
+
size_type erase(const_reference value)
|
1829
|
+
{ return tree_.erase(value); }
|
1830
|
+
|
1831
|
+
//! <b>Effects</b>: Erases all the elements that compare equal with
|
1832
|
+
//! the given key and the given comparison functor.
|
1833
|
+
//!
|
1834
|
+
//! <b>Returns</b>: The number of erased elements.
|
1835
|
+
//!
|
1836
|
+
//! <b>Complexity</b>: O(log(size() + this->count(key, comp)).
|
1837
|
+
//!
|
1838
|
+
//! <b>Throws</b>: If comp ordering function throws. Basic guarantee.
|
1839
|
+
//!
|
1840
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
1841
|
+
//! to the erased elements. No destructors are called.
|
1842
|
+
template<class KeyType, class KeyValueCompare>
|
1843
|
+
size_type erase(const KeyType& key, KeyValueCompare comp
|
1844
|
+
/// @cond
|
1845
|
+
, typename detail::enable_if_c<!detail::is_convertible<KeyValueCompare, const_iterator>::value >::type * = 0
|
1846
|
+
/// @endcond
|
1847
|
+
)
|
1848
|
+
{ return tree_.erase(key, comp); }
|
1849
|
+
|
1850
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
1851
|
+
//!
|
1852
|
+
//! <b>Returns</b>: An iterator to the element after the erased element.
|
1853
|
+
//!
|
1854
|
+
//! <b>Effects</b>: Erases the element pointed to by pos.
|
1855
|
+
//! Disposer::operator()(pointer) is called for the removed element.
|
1856
|
+
//!
|
1857
|
+
//! <b>Complexity</b>: Average complexity for erase element is constant time.
|
1858
|
+
//!
|
1859
|
+
//! <b>Throws</b>: Nothing.
|
1860
|
+
//!
|
1861
|
+
//! <b>Note</b>: Invalidates the iterators
|
1862
|
+
//! to the erased elements.
|
1863
|
+
template<class Disposer>
|
1864
|
+
iterator erase_and_dispose(const_iterator i, Disposer disposer)
|
1865
|
+
{ return tree_.erase_and_dispose(i, disposer); }
|
1866
|
+
|
1867
|
+
#if !defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
1868
|
+
template<class Disposer>
|
1869
|
+
iterator erase_and_dispose(iterator i, Disposer disposer)
|
1870
|
+
{ return this->erase_and_dispose(const_iterator(i), disposer); }
|
1871
|
+
#endif
|
1872
|
+
|
1873
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
1874
|
+
//!
|
1875
|
+
//! <b>Returns</b>: An iterator to the element after the erased elements.
|
1876
|
+
//!
|
1877
|
+
//! <b>Effects</b>: Erases the range pointed to by b end e.
|
1878
|
+
//! Disposer::operator()(pointer) is called for the removed elements.
|
1879
|
+
//!
|
1880
|
+
//! <b>Complexity</b>: Average complexity for erase range is at most
|
1881
|
+
//! O(log(size() + N)), where N is the number of elements in the range.
|
1882
|
+
//!
|
1883
|
+
//! <b>Throws</b>: Nothing.
|
1884
|
+
//!
|
1885
|
+
//! <b>Note</b>: Invalidates the iterators
|
1886
|
+
//! to the erased elements.
|
1887
|
+
template<class Disposer>
|
1888
|
+
iterator erase_and_dispose(const_iterator b, const_iterator e, Disposer disposer)
|
1889
|
+
{ return tree_.erase_and_dispose(b, e, disposer); }
|
1890
|
+
|
1891
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
1892
|
+
//!
|
1893
|
+
//! <b>Effects</b>: Erases all the elements with the given value.
|
1894
|
+
//! Disposer::operator()(pointer) is called for the removed elements.
|
1895
|
+
//!
|
1896
|
+
//! <b>Returns</b>: The number of erased elements.
|
1897
|
+
//!
|
1898
|
+
//! <b>Complexity</b>: O(log(size() + this->count(value)).
|
1899
|
+
//!
|
1900
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws. Basic guarantee.
|
1901
|
+
//!
|
1902
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
1903
|
+
//! to the erased elements. No destructors are called.
|
1904
|
+
template<class Disposer>
|
1905
|
+
size_type erase_and_dispose(const_reference value, Disposer disposer)
|
1906
|
+
{ return tree_.erase_and_dispose(value, disposer); }
|
1907
|
+
|
1908
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
1909
|
+
//!
|
1910
|
+
//! <b>Effects</b>: Erases all the elements with the given key.
|
1911
|
+
//! according to the comparison functor "comp".
|
1912
|
+
//! Disposer::operator()(pointer) is called for the removed elements.
|
1913
|
+
//!
|
1914
|
+
//! <b>Returns</b>: The number of erased elements.
|
1915
|
+
//!
|
1916
|
+
//! <b>Complexity</b>: O(log(size() + this->count(key, comp)).
|
1917
|
+
//!
|
1918
|
+
//! <b>Throws</b>: If comp ordering function throws. Basic guarantee.
|
1919
|
+
//!
|
1920
|
+
//! <b>Note</b>: Invalidates the iterators
|
1921
|
+
//! to the erased elements.
|
1922
|
+
template<class KeyType, class KeyValueCompare, class Disposer>
|
1923
|
+
size_type erase_and_dispose(const KeyType& key, KeyValueCompare comp, Disposer disposer
|
1924
|
+
/// @cond
|
1925
|
+
, typename detail::enable_if_c<!detail::is_convertible<KeyValueCompare, const_iterator>::value >::type * = 0
|
1926
|
+
/// @endcond
|
1927
|
+
)
|
1928
|
+
{ return tree_.erase_and_dispose(key, comp, disposer); }
|
1929
|
+
|
1930
|
+
//! <b>Effects</b>: Erases all the elements of the container.
|
1931
|
+
//!
|
1932
|
+
//! <b>Complexity</b>: Linear to the number of elements on the container.
|
1933
|
+
//! if it's a safe-mode or auto-unlink value_type. Constant time otherwise.
|
1934
|
+
//!
|
1935
|
+
//! <b>Throws</b>: Nothing.
|
1936
|
+
//!
|
1937
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
1938
|
+
//! to the erased elements. No destructors are called.
|
1939
|
+
void clear()
|
1940
|
+
{ return tree_.clear(); }
|
1941
|
+
|
1942
|
+
//! <b>Requires</b>: Disposer::operator()(pointer) shouldn't throw.
|
1943
|
+
//!
|
1944
|
+
//! <b>Effects</b>: Erases all the elements of the container.
|
1945
|
+
//!
|
1946
|
+
//! <b>Complexity</b>: Linear to the number of elements on the container.
|
1947
|
+
//! Disposer::operator()(pointer) is called for the removed elements.
|
1948
|
+
//!
|
1949
|
+
//! <b>Throws</b>: Nothing.
|
1950
|
+
//!
|
1951
|
+
//! <b>Note</b>: Invalidates the iterators (but not the references)
|
1952
|
+
//! to the erased elements. No destructors are called.
|
1953
|
+
template<class Disposer>
|
1954
|
+
void clear_and_dispose(Disposer disposer)
|
1955
|
+
{ return tree_.clear_and_dispose(disposer); }
|
1956
|
+
|
1957
|
+
//! <b>Effects</b>: Returns the number of contained elements with the given key
|
1958
|
+
//!
|
1959
|
+
//! <b>Complexity</b>: Logarithmic to the number of elements contained plus lineal
|
1960
|
+
//! to number of objects with the given key.
|
1961
|
+
//!
|
1962
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
1963
|
+
size_type count(const_reference value) const
|
1964
|
+
{ return tree_.count(value); }
|
1965
|
+
|
1966
|
+
//! <b>Effects</b>: Returns the number of contained elements with the same key
|
1967
|
+
//! compared with the given comparison functor.
|
1968
|
+
//!
|
1969
|
+
//! <b>Complexity</b>: Logarithmic to the number of elements contained plus lineal
|
1970
|
+
//! to number of objects with the given key.
|
1971
|
+
//!
|
1972
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
1973
|
+
template<class KeyType, class KeyValueCompare>
|
1974
|
+
size_type count(const KeyType& key, KeyValueCompare comp) const
|
1975
|
+
{ return tree_.count(key, comp); }
|
1976
|
+
|
1977
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
1978
|
+
//! key is not less than k or end() if that element does not exist.
|
1979
|
+
//!
|
1980
|
+
//! <b>Complexity</b>: Logarithmic.
|
1981
|
+
//!
|
1982
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
1983
|
+
iterator lower_bound(const_reference value)
|
1984
|
+
{ return tree_.lower_bound(value); }
|
1985
|
+
|
1986
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
1987
|
+
//! value_compare. Usually key is the part of the value_type
|
1988
|
+
//! that is used in the ordering functor.
|
1989
|
+
//!
|
1990
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
1991
|
+
//! key according to the comparison functor is not less than k or
|
1992
|
+
//! end() if that element does not exist.
|
1993
|
+
//!
|
1994
|
+
//! <b>Complexity</b>: Logarithmic.
|
1995
|
+
//!
|
1996
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
1997
|
+
//!
|
1998
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
1999
|
+
//! is expensive and the value_type can be compared with a cheaper
|
2000
|
+
//! key type. Usually this key is part of the value_type.
|
2001
|
+
template<class KeyType, class KeyValueCompare>
|
2002
|
+
iterator lower_bound(const KeyType& key, KeyValueCompare comp)
|
2003
|
+
{ return tree_.lower_bound(key, comp); }
|
2004
|
+
|
2005
|
+
//! <b>Effects</b>: Returns a const iterator to the first element whose
|
2006
|
+
//! key is not less than k or end() if that element does not exist.
|
2007
|
+
//!
|
2008
|
+
//! <b>Complexity</b>: Logarithmic.
|
2009
|
+
//!
|
2010
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
2011
|
+
const_iterator lower_bound(const_reference value) const
|
2012
|
+
{ return tree_.lower_bound(value); }
|
2013
|
+
|
2014
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
2015
|
+
//! value_compare. Usually key is the part of the value_type
|
2016
|
+
//! that is used in the ordering functor.
|
2017
|
+
//!
|
2018
|
+
//! <b>Effects</b>: Returns a const_iterator to the first element whose
|
2019
|
+
//! key according to the comparison functor is not less than k or
|
2020
|
+
//! end() if that element does not exist.
|
2021
|
+
//!
|
2022
|
+
//! <b>Complexity</b>: Logarithmic.
|
2023
|
+
//!
|
2024
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
2025
|
+
//!
|
2026
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
2027
|
+
//! is expensive and the value_type can be compared with a cheaper
|
2028
|
+
//! key type. Usually this key is part of the value_type.
|
2029
|
+
template<class KeyType, class KeyValueCompare>
|
2030
|
+
const_iterator lower_bound(const KeyType& key, KeyValueCompare comp) const
|
2031
|
+
{ return tree_.lower_bound(key, comp); }
|
2032
|
+
|
2033
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
2034
|
+
//! key is greater than k or end() if that element does not exist.
|
2035
|
+
//!
|
2036
|
+
//! <b>Complexity</b>: Logarithmic.
|
2037
|
+
//!
|
2038
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
2039
|
+
iterator upper_bound(const_reference value)
|
2040
|
+
{ return tree_.upper_bound(value); }
|
2041
|
+
|
2042
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
2043
|
+
//! value_compare. Usually key is the part of the value_type
|
2044
|
+
//! that is used in the ordering functor.
|
2045
|
+
//!
|
2046
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
2047
|
+
//! key according to the comparison functor is greater than key or
|
2048
|
+
//! end() if that element does not exist.
|
2049
|
+
//!
|
2050
|
+
//! <b>Complexity</b>: Logarithmic.
|
2051
|
+
//!
|
2052
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
2053
|
+
//!
|
2054
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
2055
|
+
//! is expensive and the value_type can be compared with a cheaper
|
2056
|
+
//! key type. Usually this key is part of the value_type.
|
2057
|
+
template<class KeyType, class KeyValueCompare>
|
2058
|
+
iterator upper_bound(const KeyType& key, KeyValueCompare comp)
|
2059
|
+
{ return tree_.upper_bound(key, comp); }
|
2060
|
+
|
2061
|
+
//! <b>Effects</b>: Returns an iterator to the first element whose
|
2062
|
+
//! key is greater than k or end() if that element does not exist.
|
2063
|
+
//!
|
2064
|
+
//! <b>Complexity</b>: Logarithmic.
|
2065
|
+
//!
|
2066
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
2067
|
+
const_iterator upper_bound(const_reference value) const
|
2068
|
+
{ return tree_.upper_bound(value); }
|
2069
|
+
|
2070
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
2071
|
+
//! value_compare. Usually key is the part of the value_type
|
2072
|
+
//! that is used in the ordering functor.
|
2073
|
+
//!
|
2074
|
+
//! <b>Effects</b>: Returns a const_iterator to the first element whose
|
2075
|
+
//! key according to the comparison functor is greater than key or
|
2076
|
+
//! end() if that element does not exist.
|
2077
|
+
//!
|
2078
|
+
//! <b>Complexity</b>: Logarithmic.
|
2079
|
+
//!
|
2080
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
2081
|
+
//!
|
2082
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
2083
|
+
//! is expensive and the value_type can be compared with a cheaper
|
2084
|
+
//! key type. Usually this key is part of the value_type.
|
2085
|
+
template<class KeyType, class KeyValueCompare>
|
2086
|
+
const_iterator upper_bound(const KeyType& key, KeyValueCompare comp) const
|
2087
|
+
{ return tree_.upper_bound(key, comp); }
|
2088
|
+
|
2089
|
+
//! <b>Effects</b>: Finds an iterator to the first element whose value is
|
2090
|
+
//! "value" or end() if that element does not exist.
|
2091
|
+
//!
|
2092
|
+
//! <b>Complexity</b>: Logarithmic.
|
2093
|
+
//!
|
2094
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
2095
|
+
iterator find(const_reference value)
|
2096
|
+
{ return tree_.find(value); }
|
2097
|
+
|
2098
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
2099
|
+
//! value_compare. Usually key is the part of the value_type
|
2100
|
+
//! that is used in the ordering functor.
|
2101
|
+
//!
|
2102
|
+
//! <b>Effects</b>: Finds an iterator to the first element whose key is
|
2103
|
+
//! "key" according to the comparison functor or end() if that element
|
2104
|
+
//! does not exist.
|
2105
|
+
//!
|
2106
|
+
//! <b>Complexity</b>: Logarithmic.
|
2107
|
+
//!
|
2108
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
2109
|
+
//!
|
2110
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
2111
|
+
//! is expensive and the value_type can be compared with a cheaper
|
2112
|
+
//! key type. Usually this key is part of the value_type.
|
2113
|
+
template<class KeyType, class KeyValueCompare>
|
2114
|
+
iterator find(const KeyType& key, KeyValueCompare comp)
|
2115
|
+
{ return tree_.find(key, comp); }
|
2116
|
+
|
2117
|
+
//! <b>Effects</b>: Finds a const_iterator to the first element whose value is
|
2118
|
+
//! "value" or end() if that element does not exist.
|
2119
|
+
//!
|
2120
|
+
//! <b>Complexity</b>: Logarithmic.
|
2121
|
+
//!
|
2122
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
2123
|
+
const_iterator find(const_reference value) const
|
2124
|
+
{ return tree_.find(value); }
|
2125
|
+
|
2126
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
2127
|
+
//! value_compare. Usually key is the part of the value_type
|
2128
|
+
//! that is used in the ordering functor.
|
2129
|
+
//!
|
2130
|
+
//! <b>Effects</b>: Finds a const_iterator to the first element whose key is
|
2131
|
+
//! "key" according to the comparison functor or end() if that element
|
2132
|
+
//! does not exist.
|
2133
|
+
//!
|
2134
|
+
//! <b>Complexity</b>: Logarithmic.
|
2135
|
+
//!
|
2136
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
2137
|
+
//!
|
2138
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
2139
|
+
//! is expensive and the value_type can be compared with a cheaper
|
2140
|
+
//! key type. Usually this key is part of the value_type.
|
2141
|
+
template<class KeyType, class KeyValueCompare>
|
2142
|
+
const_iterator find(const KeyType& key, KeyValueCompare comp) const
|
2143
|
+
{ return tree_.find(key, comp); }
|
2144
|
+
|
2145
|
+
//! <b>Effects</b>: Finds a range containing all elements whose key is k or
|
2146
|
+
//! an empty range that indicates the position where those elements would be
|
2147
|
+
//! if they there is no elements with key k.
|
2148
|
+
//!
|
2149
|
+
//! <b>Complexity</b>: Logarithmic.
|
2150
|
+
//!
|
2151
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
2152
|
+
std::pair<iterator,iterator> equal_range(const_reference value)
|
2153
|
+
{ return tree_.equal_range(value); }
|
2154
|
+
|
2155
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
2156
|
+
//! value_compare. Usually key is the part of the value_type
|
2157
|
+
//! that is used in the ordering functor.
|
2158
|
+
//!
|
2159
|
+
//! <b>Effects</b>: Finds a range containing all elements whose key is k
|
2160
|
+
//! according to the comparison functor or an empty range
|
2161
|
+
//! that indicates the position where those elements would be
|
2162
|
+
//! if they there is no elements with key k.
|
2163
|
+
//!
|
2164
|
+
//! <b>Complexity</b>: Logarithmic.
|
2165
|
+
//!
|
2166
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
2167
|
+
//!
|
2168
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
2169
|
+
//! is expensive and the value_type can be compared with a cheaper
|
2170
|
+
//! key type. Usually this key is part of the value_type.
|
2171
|
+
template<class KeyType, class KeyValueCompare>
|
2172
|
+
std::pair<iterator,iterator> equal_range(const KeyType& key, KeyValueCompare comp)
|
2173
|
+
{ return tree_.equal_range(key, comp); }
|
2174
|
+
|
2175
|
+
//! <b>Effects</b>: Finds a range containing all elements whose key is k or
|
2176
|
+
//! an empty range that indicates the position where those elements would be
|
2177
|
+
//! if they there is no elements with key k.
|
2178
|
+
//!
|
2179
|
+
//! <b>Complexity</b>: Logarithmic.
|
2180
|
+
//!
|
2181
|
+
//! <b>Throws</b>: If the internal value_compare ordering function throws.
|
2182
|
+
std::pair<const_iterator, const_iterator>
|
2183
|
+
equal_range(const_reference value) const
|
2184
|
+
{ return tree_.equal_range(value); }
|
2185
|
+
|
2186
|
+
//! <b>Requires</b>: comp must imply the same element order as
|
2187
|
+
//! value_compare. Usually key is the part of the value_type
|
2188
|
+
//! that is used in the ordering functor.
|
2189
|
+
//!
|
2190
|
+
//! <b>Effects</b>: Finds a range containing all elements whose key is k
|
2191
|
+
//! according to the comparison functor or an empty range
|
2192
|
+
//! that indicates the position where those elements would be
|
2193
|
+
//! if they there is no elements with key k.
|
2194
|
+
//!
|
2195
|
+
//! <b>Complexity</b>: Logarithmic.
|
2196
|
+
//!
|
2197
|
+
//! <b>Throws</b>: If comp ordering function throws.
|
2198
|
+
//!
|
2199
|
+
//! <b>Note</b>: This function is used when constructing a value_type
|
2200
|
+
//! is expensive and the value_type can be compared with a cheaper
|
2201
|
+
//! key type. Usually this key is part of the value_type.
|
2202
|
+
template<class KeyType, class KeyValueCompare>
|
2203
|
+
std::pair<const_iterator, const_iterator>
|
2204
|
+
equal_range(const KeyType& key, KeyValueCompare comp) const
|
2205
|
+
{ return tree_.equal_range(key, comp); }
|
2206
|
+
|
2207
|
+
//! <b>Requires</b>: 'lower_value' must not be greater than 'upper_value'. If
|
2208
|
+
//! 'lower_value' == 'upper_value', ('left_closed' || 'right_closed') must be false.
|
2209
|
+
//!
|
2210
|
+
//! <b>Effects</b>: Returns an a pair with the following criteria:
|
2211
|
+
//!
|
2212
|
+
//! first = lower_bound(lower_key) if left_closed, upper_bound(lower_key) otherwise
|
2213
|
+
//!
|
2214
|
+
//! second = upper_bound(upper_key) if right_closed, lower_bound(upper_key) otherwise
|
2215
|
+
//!
|
2216
|
+
//! <b>Complexity</b>: Logarithmic.
|
2217
|
+
//!
|
2218
|
+
//! <b>Throws</b>: If the predicate throws.
|
2219
|
+
//!
|
2220
|
+
//! <b>Note</b>: This function can be more efficient than calling upper_bound
|
2221
|
+
//! and lower_bound for lower_value and upper_value.
|
2222
|
+
std::pair<iterator,iterator> bounded_range
|
2223
|
+
(const_reference lower_value, const_reference upper_value, bool left_closed, bool right_closed)
|
2224
|
+
{ return tree_.bounded_range(lower_value, upper_value, left_closed, right_closed); }
|
2225
|
+
|
2226
|
+
//! <b>Requires</b>: KeyValueCompare is a function object that induces a strict weak
|
2227
|
+
//! ordering compatible with the strict weak ordering used to create the
|
2228
|
+
//! the tree.
|
2229
|
+
//! 'lower_key' must not be greater than 'upper_key' according to 'comp'. If
|
2230
|
+
//! 'lower_key' == 'upper_key', ('left_closed' || 'right_closed') must be false.
|
2231
|
+
//!
|
2232
|
+
//! <b>Effects</b>: Returns an a pair with the following criteria:
|
2233
|
+
//!
|
2234
|
+
//! first = lower_bound(lower_key, comp) if left_closed, upper_bound(lower_key, comp) otherwise
|
2235
|
+
//!
|
2236
|
+
//! second = upper_bound(upper_key, comp) if right_closed, lower_bound(upper_key, comp) otherwise
|
2237
|
+
//!
|
2238
|
+
//! <b>Complexity</b>: Logarithmic.
|
2239
|
+
//!
|
2240
|
+
//! <b>Throws</b>: If "comp" throws.
|
2241
|
+
//!
|
2242
|
+
//! <b>Note</b>: This function can be more efficient than calling upper_bound
|
2243
|
+
//! and lower_bound for lower_key and upper_key.
|
2244
|
+
template<class KeyType, class KeyValueCompare>
|
2245
|
+
std::pair<iterator,iterator> bounded_range
|
2246
|
+
(const KeyType& lower_key, const KeyType& upper_key, KeyValueCompare comp, bool left_closed, bool right_closed)
|
2247
|
+
{ return tree_.bounded_range(lower_key, upper_key, comp, left_closed, right_closed); }
|
2248
|
+
|
2249
|
+
//! <b>Requires</b>: 'lower_value' must not be greater than 'upper_value'. If
|
2250
|
+
//! 'lower_value' == 'upper_value', ('left_closed' || 'right_closed') must be false.
|
2251
|
+
//!
|
2252
|
+
//! <b>Effects</b>: Returns an a pair with the following criteria:
|
2253
|
+
//!
|
2254
|
+
//! first = lower_bound(lower_key) if left_closed, upper_bound(lower_key) otherwise
|
2255
|
+
//!
|
2256
|
+
//! second = upper_bound(upper_key) if right_closed, lower_bound(upper_key) otherwise
|
2257
|
+
//!
|
2258
|
+
//! <b>Complexity</b>: Logarithmic.
|
2259
|
+
//!
|
2260
|
+
//! <b>Throws</b>: If the predicate throws.
|
2261
|
+
//!
|
2262
|
+
//! <b>Note</b>: This function can be more efficient than calling upper_bound
|
2263
|
+
//! and lower_bound for lower_value and upper_value.
|
2264
|
+
std::pair<const_iterator, const_iterator>
|
2265
|
+
bounded_range(const_reference lower_value, const_reference upper_value, bool left_closed, bool right_closed) const
|
2266
|
+
{ return tree_.bounded_range(lower_value, upper_value, left_closed, right_closed); }
|
2267
|
+
|
2268
|
+
//! <b>Requires</b>: KeyValueCompare is a function object that induces a strict weak
|
2269
|
+
//! ordering compatible with the strict weak ordering used to create the
|
2270
|
+
//! the tree.
|
2271
|
+
//! 'lower_key' must not be greater than 'upper_key' according to 'comp'. If
|
2272
|
+
//! 'lower_key' == 'upper_key', ('left_closed' || 'right_closed') must be false.
|
2273
|
+
//!
|
2274
|
+
//! <b>Effects</b>: Returns an a pair with the following criteria:
|
2275
|
+
//!
|
2276
|
+
//! first = lower_bound(lower_key, comp) if left_closed, upper_bound(lower_key, comp) otherwise
|
2277
|
+
//!
|
2278
|
+
//! second = upper_bound(upper_key, comp) if right_closed, lower_bound(upper_key, comp) otherwise
|
2279
|
+
//!
|
2280
|
+
//! <b>Complexity</b>: Logarithmic.
|
2281
|
+
//!
|
2282
|
+
//! <b>Throws</b>: If "comp" throws.
|
2283
|
+
//!
|
2284
|
+
//! <b>Note</b>: This function can be more efficient than calling upper_bound
|
2285
|
+
//! and lower_bound for lower_key and upper_key.
|
2286
|
+
template<class KeyType, class KeyValueCompare>
|
2287
|
+
std::pair<const_iterator, const_iterator>
|
2288
|
+
bounded_range
|
2289
|
+
(const KeyType& lower_key, const KeyType& upper_key, KeyValueCompare comp, bool left_closed, bool right_closed) const
|
2290
|
+
{ return tree_.bounded_range(lower_key, upper_key, comp, left_closed, right_closed); }
|
2291
|
+
|
2292
|
+
//! <b>Requires</b>: value must be an lvalue and shall be in a sg_multiset of
|
2293
|
+
//! appropriate type. Otherwise the behavior is undefined.
|
2294
|
+
//!
|
2295
|
+
//! <b>Effects</b>: Returns: a valid iterator i belonging to the sg_multiset
|
2296
|
+
//! that points to the value
|
2297
|
+
//!
|
2298
|
+
//! <b>Complexity</b>: Constant.
|
2299
|
+
//!
|
2300
|
+
//! <b>Throws</b>: Nothing.
|
2301
|
+
//!
|
2302
|
+
//! <b>Note</b>: This static function is available only if the <i>value traits</i>
|
2303
|
+
//! is stateless.
|
2304
|
+
static iterator s_iterator_to(reference value)
|
2305
|
+
{ return tree_type::s_iterator_to(value); }
|
2306
|
+
|
2307
|
+
//! <b>Requires</b>: value must be an lvalue and shall be in a sg_multiset of
|
2308
|
+
//! appropriate type. Otherwise the behavior is undefined.
|
2309
|
+
//!
|
2310
|
+
//! <b>Effects</b>: Returns: a valid const_iterator i belonging to the
|
2311
|
+
//! sg_multiset that points to the value
|
2312
|
+
//!
|
2313
|
+
//! <b>Complexity</b>: Constant.
|
2314
|
+
//!
|
2315
|
+
//! <b>Throws</b>: Nothing.
|
2316
|
+
//!
|
2317
|
+
//! <b>Note</b>: This static function is available only if the <i>value traits</i>
|
2318
|
+
//! is stateless.
|
2319
|
+
static const_iterator s_iterator_to(const_reference value)
|
2320
|
+
{ return tree_type::s_iterator_to(value); }
|
2321
|
+
|
2322
|
+
//! <b>Requires</b>: value must be an lvalue and shall be in a sg_multiset of
|
2323
|
+
//! appropriate type. Otherwise the behavior is undefined.
|
2324
|
+
//!
|
2325
|
+
//! <b>Effects</b>: Returns: a valid iterator i belonging to the sg_multiset
|
2326
|
+
//! that points to the value
|
2327
|
+
//!
|
2328
|
+
//! <b>Complexity</b>: Constant.
|
2329
|
+
//!
|
2330
|
+
//! <b>Throws</b>: Nothing.
|
2331
|
+
iterator iterator_to(reference value)
|
2332
|
+
{ return tree_.iterator_to(value); }
|
2333
|
+
|
2334
|
+
//! <b>Requires</b>: value must be an lvalue and shall be in a sg_multiset of
|
2335
|
+
//! appropriate type. Otherwise the behavior is undefined.
|
2336
|
+
//!
|
2337
|
+
//! <b>Effects</b>: Returns: a valid const_iterator i belonging to the
|
2338
|
+
//! sg_multiset that points to the value
|
2339
|
+
//!
|
2340
|
+
//! <b>Complexity</b>: Constant.
|
2341
|
+
//!
|
2342
|
+
//! <b>Throws</b>: Nothing.
|
2343
|
+
const_iterator iterator_to(const_reference value) const
|
2344
|
+
{ return tree_.iterator_to(value); }
|
2345
|
+
|
2346
|
+
//! <b>Requires</b>: value shall not be in a sg_multiset/sg_multiset.
|
2347
|
+
//!
|
2348
|
+
//! <b>Effects</b>: init_node puts the hook of a value in a well-known default
|
2349
|
+
//! state.
|
2350
|
+
//!
|
2351
|
+
//! <b>Throws</b>: Nothing.
|
2352
|
+
//!
|
2353
|
+
//! <b>Complexity</b>: Constant time.
|
2354
|
+
//!
|
2355
|
+
//! <b>Note</b>: This function puts the hook in the well-known default state
|
2356
|
+
//! used by auto_unlink and safe hooks.
|
2357
|
+
static void init_node(reference value)
|
2358
|
+
{ tree_type::init_node(value); }
|
2359
|
+
|
2360
|
+
//! <b>Effects</b>: Unlinks the leftmost node from the tree.
|
2361
|
+
//!
|
2362
|
+
//! <b>Complexity</b>: Average complexity is constant time.
|
2363
|
+
//!
|
2364
|
+
//! <b>Throws</b>: Nothing.
|
2365
|
+
//!
|
2366
|
+
//! <b>Notes</b>: This function breaks the tree and the tree can
|
2367
|
+
//! only be used for more unlink_leftmost_without_rebalance calls.
|
2368
|
+
//! This function is normally used to achieve a step by step
|
2369
|
+
//! controlled destruction of the tree.
|
2370
|
+
pointer unlink_leftmost_without_rebalance()
|
2371
|
+
{ return tree_.unlink_leftmost_without_rebalance(); }
|
2372
|
+
|
2373
|
+
//! <b>Requires</b>: replace_this must be a valid iterator of *this
|
2374
|
+
//! and with_this must not be inserted in any tree.
|
2375
|
+
//!
|
2376
|
+
//! <b>Effects</b>: Replaces replace_this in its position in the
|
2377
|
+
//! tree with with_this. The tree does not need to be rebalanced.
|
2378
|
+
//!
|
2379
|
+
//! <b>Complexity</b>: Constant.
|
2380
|
+
//!
|
2381
|
+
//! <b>Throws</b>: Nothing.
|
2382
|
+
//!
|
2383
|
+
//! <b>Note</b>: This function will break container ordering invariants if
|
2384
|
+
//! with_this is not equivalent to *replace_this according to the
|
2385
|
+
//! ordering rules. This function is faster than erasing and inserting
|
2386
|
+
//! the node, since no rebalancing or comparison is needed.
|
2387
|
+
void replace_node(iterator replace_this, reference with_this)
|
2388
|
+
{ tree_.replace_node(replace_this, with_this); }
|
2389
|
+
|
2390
|
+
//! <b>Effects</b>: Rebalances the tree.
|
2391
|
+
//!
|
2392
|
+
//! <b>Throws</b>: Nothing.
|
2393
|
+
//!
|
2394
|
+
//! <b>Complexity</b>: Linear.
|
2395
|
+
void rebalance()
|
2396
|
+
{ tree_.rebalance(); }
|
2397
|
+
|
2398
|
+
//! <b>Requires</b>: old_root is a node of a tree.
|
2399
|
+
//!
|
2400
|
+
//! <b>Effects</b>: Rebalances the subtree rooted at old_root.
|
2401
|
+
//!
|
2402
|
+
//! <b>Returns</b>: The new root of the subtree.
|
2403
|
+
//!
|
2404
|
+
//! <b>Throws</b>: Nothing.
|
2405
|
+
//!
|
2406
|
+
//! <b>Complexity</b>: Linear to the elements in the subtree.
|
2407
|
+
iterator rebalance_subtree(iterator root)
|
2408
|
+
{ return tree_.rebalance_subtree(root); }
|
2409
|
+
|
2410
|
+
//! <b>Returns</b>: The balance factor (alpha) used in this tree
|
2411
|
+
//!
|
2412
|
+
//! <b>Throws</b>: Nothing.
|
2413
|
+
//!
|
2414
|
+
//! <b>Complexity</b>: Constant.
|
2415
|
+
float balance_factor() const
|
2416
|
+
{ return tree_.balance_factor(); }
|
2417
|
+
|
2418
|
+
//! <b>Requires</b>: new_alpha must be a value between 0.5 and 1.0
|
2419
|
+
//!
|
2420
|
+
//! <b>Effects</b>: Establishes a new balance factor (alpha) and rebalances
|
2421
|
+
//! the tree if the new balance factor is stricter (less) than the old factor.
|
2422
|
+
//!
|
2423
|
+
//! <b>Throws</b>: Nothing.
|
2424
|
+
//!
|
2425
|
+
//! <b>Complexity</b>: Linear to the elements in the subtree.
|
2426
|
+
void balance_factor(float new_alpha)
|
2427
|
+
{ tree_.balance_factor(new_alpha); }
|
2428
|
+
|
2429
|
+
/// @cond
|
2430
|
+
friend bool operator==(const sg_multiset_impl &x, const sg_multiset_impl &y)
|
2431
|
+
{ return x.tree_ == y.tree_; }
|
2432
|
+
|
2433
|
+
friend bool operator<(const sg_multiset_impl &x, const sg_multiset_impl &y)
|
2434
|
+
{ return x.tree_ < y.tree_; }
|
2435
|
+
/// @endcond
|
2436
|
+
};
|
2437
|
+
|
2438
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2439
|
+
template<class T, class ...Options>
|
2440
|
+
#else
|
2441
|
+
template<class Config>
|
2442
|
+
#endif
|
2443
|
+
inline bool operator!=
|
2444
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2445
|
+
(const sg_multiset_impl<T, Options...> &x, const sg_multiset_impl<T, Options...> &y)
|
2446
|
+
#else
|
2447
|
+
(const sg_multiset_impl<Config> &x, const sg_multiset_impl<Config> &y)
|
2448
|
+
#endif
|
2449
|
+
{ return !(x == y); }
|
2450
|
+
|
2451
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2452
|
+
template<class T, class ...Options>
|
2453
|
+
#else
|
2454
|
+
template<class Config>
|
2455
|
+
#endif
|
2456
|
+
inline bool operator>
|
2457
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2458
|
+
(const sg_multiset_impl<T, Options...> &x, const sg_multiset_impl<T, Options...> &y)
|
2459
|
+
#else
|
2460
|
+
(const sg_multiset_impl<Config> &x, const sg_multiset_impl<Config> &y)
|
2461
|
+
#endif
|
2462
|
+
{ return y < x; }
|
2463
|
+
|
2464
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2465
|
+
template<class T, class ...Options>
|
2466
|
+
#else
|
2467
|
+
template<class Config>
|
2468
|
+
#endif
|
2469
|
+
inline bool operator<=
|
2470
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2471
|
+
(const sg_multiset_impl<T, Options...> &x, const sg_multiset_impl<T, Options...> &y)
|
2472
|
+
#else
|
2473
|
+
(const sg_multiset_impl<Config> &x, const sg_multiset_impl<Config> &y)
|
2474
|
+
#endif
|
2475
|
+
{ return !(y < x); }
|
2476
|
+
|
2477
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2478
|
+
template<class T, class ...Options>
|
2479
|
+
#else
|
2480
|
+
template<class Config>
|
2481
|
+
#endif
|
2482
|
+
inline bool operator>=
|
2483
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2484
|
+
(const sg_multiset_impl<T, Options...> &x, const sg_multiset_impl<T, Options...> &y)
|
2485
|
+
#else
|
2486
|
+
(const sg_multiset_impl<Config> &x, const sg_multiset_impl<Config> &y)
|
2487
|
+
#endif
|
2488
|
+
{ return !(x < y); }
|
2489
|
+
|
2490
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2491
|
+
template<class T, class ...Options>
|
2492
|
+
#else
|
2493
|
+
template<class Config>
|
2494
|
+
#endif
|
2495
|
+
inline void swap
|
2496
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED)
|
2497
|
+
(sg_multiset_impl<T, Options...> &x, sg_multiset_impl<T, Options...> &y)
|
2498
|
+
#else
|
2499
|
+
(sg_multiset_impl<Config> &x, sg_multiset_impl<Config> &y)
|
2500
|
+
#endif
|
2501
|
+
{ x.swap(y); }
|
2502
|
+
|
2503
|
+
//! Helper metafunction to define a \c sg_multiset that yields to the same type when the
|
2504
|
+
//! same options (either explicitly or implicitly) are used.
|
2505
|
+
#if defined(BOOST_INTRUSIVE_DOXYGEN_INVOKED) || defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
2506
|
+
template<class T, class ...Options>
|
2507
|
+
#else
|
2508
|
+
template<class T, class O1 = none, class O2 = none
|
2509
|
+
, class O3 = none, class O4 = none>
|
2510
|
+
#endif
|
2511
|
+
struct make_sg_multiset
|
2512
|
+
{
|
2513
|
+
/// @cond
|
2514
|
+
typedef sg_multiset_impl
|
2515
|
+
< typename make_sgtree_opt<T,
|
2516
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
2517
|
+
O1, O2, O3, O4
|
2518
|
+
#else
|
2519
|
+
Options...
|
2520
|
+
#endif
|
2521
|
+
>::type
|
2522
|
+
> implementation_defined;
|
2523
|
+
/// @endcond
|
2524
|
+
typedef implementation_defined type;
|
2525
|
+
};
|
2526
|
+
|
2527
|
+
#ifndef BOOST_INTRUSIVE_DOXYGEN_INVOKED
|
2528
|
+
|
2529
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
2530
|
+
template<class T, class O1, class O2, class O3, class O4>
|
2531
|
+
#else
|
2532
|
+
template<class T, class ...Options>
|
2533
|
+
#endif
|
2534
|
+
class sg_multiset
|
2535
|
+
: public make_sg_multiset<T,
|
2536
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
2537
|
+
O1, O2, O3, O4
|
2538
|
+
#else
|
2539
|
+
Options...
|
2540
|
+
#endif
|
2541
|
+
>::type
|
2542
|
+
{
|
2543
|
+
typedef typename make_sg_multiset
|
2544
|
+
<T,
|
2545
|
+
#if !defined(BOOST_INTRUSIVE_VARIADIC_TEMPLATES)
|
2546
|
+
O1, O2, O3, O4
|
2547
|
+
#else
|
2548
|
+
Options...
|
2549
|
+
#endif
|
2550
|
+
>::type Base;
|
2551
|
+
BOOST_MOVABLE_BUT_NOT_COPYABLE(sg_multiset)
|
2552
|
+
|
2553
|
+
public:
|
2554
|
+
typedef typename Base::value_compare value_compare;
|
2555
|
+
typedef typename Base::value_traits value_traits;
|
2556
|
+
typedef typename Base::iterator iterator;
|
2557
|
+
typedef typename Base::const_iterator const_iterator;
|
2558
|
+
|
2559
|
+
//Assert if passed value traits are compatible with the type
|
2560
|
+
BOOST_STATIC_ASSERT((detail::is_same<typename value_traits::value_type, T>::value));
|
2561
|
+
|
2562
|
+
sg_multiset( const value_compare &cmp = value_compare()
|
2563
|
+
, const value_traits &v_traits = value_traits())
|
2564
|
+
: Base(cmp, v_traits)
|
2565
|
+
{}
|
2566
|
+
|
2567
|
+
template<class Iterator>
|
2568
|
+
sg_multiset( Iterator b, Iterator e
|
2569
|
+
, const value_compare &cmp = value_compare()
|
2570
|
+
, const value_traits &v_traits = value_traits())
|
2571
|
+
: Base(b, e, cmp, v_traits)
|
2572
|
+
{}
|
2573
|
+
|
2574
|
+
sg_multiset(BOOST_RV_REF(sg_multiset) x)
|
2575
|
+
: Base(::boost::move(static_cast<Base&>(x)))
|
2576
|
+
{}
|
2577
|
+
|
2578
|
+
sg_multiset& operator=(BOOST_RV_REF(sg_multiset) x)
|
2579
|
+
{ this->Base::operator=(::boost::move(static_cast<Base&>(x))); return *this; }
|
2580
|
+
|
2581
|
+
static sg_multiset &container_from_end_iterator(iterator end_iterator)
|
2582
|
+
{ return static_cast<sg_multiset &>(Base::container_from_end_iterator(end_iterator)); }
|
2583
|
+
|
2584
|
+
static const sg_multiset &container_from_end_iterator(const_iterator end_iterator)
|
2585
|
+
{ return static_cast<const sg_multiset &>(Base::container_from_end_iterator(end_iterator)); }
|
2586
|
+
|
2587
|
+
static sg_multiset &container_from_iterator(iterator it)
|
2588
|
+
{ return static_cast<sg_multiset &>(Base::container_from_iterator(it)); }
|
2589
|
+
|
2590
|
+
static const sg_multiset &container_from_iterator(const_iterator it)
|
2591
|
+
{ return static_cast<const sg_multiset &>(Base::container_from_iterator(it)); }
|
2592
|
+
};
|
2593
|
+
|
2594
|
+
#endif
|
2595
|
+
|
2596
|
+
} //namespace intrusive
|
2597
|
+
} //namespace boost
|
2598
|
+
|
2599
|
+
#include <boost/intrusive/detail/config_end.hpp>
|
2600
|
+
|
2601
|
+
#endif //BOOST_INTRUSIVE_SG_SET_HPP
|