rroonga 1.3.1-x86-mingw32 → 2.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Rakefile +2 -7
- data/ext/groonga/rb-grn-column.c +34 -37
- data/ext/groonga/rb-grn-context.c +63 -2
- data/ext/groonga/rb-grn-expression.c +21 -13
- data/ext/groonga/rb-grn-object.c +2 -0
- data/ext/groonga/rb-grn-table.c +57 -51
- data/ext/groonga/rb-grn.h +10 -4
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/schema.rb +75 -46
- data/lib/groonga.rb +9 -6
- data/rroonga-build.rb +2 -2
- data/test/run-test.rb +1 -2
- data/test/test-table-select.rb +0 -5
- data/test/test-type.rb +2 -2
- data/test/test-version.rb +40 -10
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga/plugin.h +113 -0
- data/vendor/local/include/groonga/groonga/tokenizer.h +146 -0
- data/vendor/local/include/groonga/groonga.h +18 -18
- data/vendor/local/include/msgpack/object.h +98 -0
- data/vendor/local/include/msgpack/object.hpp +412 -0
- data/vendor/local/include/msgpack/pack.h +143 -0
- data/vendor/local/include/msgpack/pack.hpp +318 -0
- data/vendor/local/include/msgpack/pack_define.h +26 -0
- data/vendor/local/include/msgpack/pack_template.h +766 -0
- data/vendor/local/include/msgpack/sbuffer.h +111 -0
- data/vendor/local/include/msgpack/sbuffer.hpp +112 -0
- data/vendor/local/include/msgpack/sysdep.h +195 -0
- data/vendor/local/include/msgpack/type/bool.hpp +55 -0
- data/vendor/local/include/msgpack/type/define.hpp +3279 -0
- data/vendor/local/include/msgpack/type/deque.hpp +77 -0
- data/vendor/local/include/msgpack/type/fixint.hpp +172 -0
- data/vendor/local/include/msgpack/type/float.hpp +82 -0
- data/vendor/local/include/msgpack/type/int.hpp +211 -0
- data/vendor/local/include/msgpack/type/list.hpp +77 -0
- data/vendor/local/include/msgpack/type/map.hpp +205 -0
- data/vendor/local/include/msgpack/type/nil.hpp +65 -0
- data/vendor/local/include/msgpack/type/pair.hpp +61 -0
- data/vendor/local/include/msgpack/type/raw.hpp +94 -0
- data/vendor/local/include/msgpack/type/set.hpp +122 -0
- data/vendor/local/include/msgpack/type/string.hpp +62 -0
- data/vendor/local/include/msgpack/type/tr1/unordered_map.hpp +129 -0
- data/vendor/local/include/msgpack/type/tr1/unordered_set.hpp +122 -0
- data/vendor/local/include/msgpack/type/tuple.hpp +13691 -0
- data/vendor/local/include/msgpack/type/vector.hpp +81 -0
- data/vendor/local/include/msgpack/type.hpp +16 -0
- data/vendor/local/include/msgpack/unpack.h +260 -0
- data/vendor/local/include/msgpack/unpack.hpp +374 -0
- data/vendor/local/include/msgpack/unpack_define.h +93 -0
- data/vendor/local/include/msgpack/unpack_template.h +409 -0
- data/vendor/local/include/msgpack/version.h +40 -0
- data/vendor/local/include/msgpack/vrefbuffer.h +142 -0
- data/vendor/local/include/msgpack/vrefbuffer.hpp +97 -0
- data/vendor/local/include/msgpack/zbuffer.h +207 -0
- data/vendor/local/include/msgpack/zbuffer.hpp +100 -0
- data/vendor/local/include/msgpack/zone.h +147 -0
- data/vendor/local/include/msgpack/zone.hpp +455 -0
- data/vendor/local/include/msgpack.h +30 -0
- data/vendor/local/include/msgpack.hpp +24 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +41 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +41 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +4 -4
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/report.txt +6 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/indexing.txt +108 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +386 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +51 -385
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/search.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/functions.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +14 -8
- data/vendor/local/share/doc/groonga/en/html/indexing.html +237 -0
- data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/log.html +20 -20
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +566 -0
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +65 -464
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference.html +14 -8
- data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/report.txt +6 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/indexing.txt +108 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +386 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +51 -385
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/search.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/functions.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +14 -8
- data/vendor/local/share/doc/groonga/ja/html/indexing.html +215 -0
- data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/log.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +528 -0
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +62 -425
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference.html +14 -8
- data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/spec.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/type.html +5 -5
- data/vendor/local/share/doc/groonga/source/commands/suggest.txt +1 -1
- data/vendor/local/share/doc/groonga/source/contribution/report.txt +6 -7
- data/vendor/local/share/doc/groonga/source/indexing.txt +108 -0
- data/vendor/local/share/doc/groonga/source/news/1.2.x.txt +386 -0
- data/vendor/local/share/doc/groonga/source/news.txt +51 -385
- data/vendor/local/share/doc/groonga/source/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/source/spec/search.txt +4 -4
- data/vendor/local/share/license/groonga/COPYING +10 -12
- data/vendor/local/share/license/msgpack/AUTHORS +1 -0
- data/vendor/local/share/license/msgpack/COPYING +14 -0
- data/vendor/local/share/license/msgpack/LICENSE +202 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +113 -5
- data/vendor/local/share/man/man1/groonga.1 +142 -11
- metadata +66 -3
- data/vendor/local/share/doc/groonga/source/update_execution_example.py +0 -141
@@ -0,0 +1,77 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ static resolution routine
|
3
|
+
//
|
4
|
+
// Copyright (C) 2008-2009 FURUHASHI Sadayuki
|
5
|
+
//
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
// you may not use this file except in compliance with the License.
|
8
|
+
// You may obtain a copy of the License at
|
9
|
+
//
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
//
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
// See the License for the specific language governing permissions and
|
16
|
+
// limitations under the License.
|
17
|
+
//
|
18
|
+
#ifndef MSGPACK_TYPE_DEQUE_HPP__
|
19
|
+
#define MSGPACK_TYPE_DEQUE_HPP__
|
20
|
+
|
21
|
+
#include "msgpack/object.hpp"
|
22
|
+
#include <deque>
|
23
|
+
|
24
|
+
namespace msgpack {
|
25
|
+
|
26
|
+
|
27
|
+
template <typename T>
|
28
|
+
inline std::deque<T>& operator>> (object o, std::deque<T>& v)
|
29
|
+
{
|
30
|
+
if(o.type != type::ARRAY) { throw type_error(); }
|
31
|
+
v.resize(o.via.array.size);
|
32
|
+
object* p = o.via.array.ptr;
|
33
|
+
object* const pend = o.via.array.ptr + o.via.array.size;
|
34
|
+
typename std::deque<T>::iterator it = v.begin();
|
35
|
+
for(; p < pend; ++p, ++it) {
|
36
|
+
p->convert(&*it);
|
37
|
+
}
|
38
|
+
return v;
|
39
|
+
}
|
40
|
+
|
41
|
+
template <typename Stream, typename T>
|
42
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const std::deque<T>& v)
|
43
|
+
{
|
44
|
+
o.pack_array(v.size());
|
45
|
+
for(typename std::deque<T>::const_iterator it(v.begin()), it_end(v.end());
|
46
|
+
it != it_end; ++it) {
|
47
|
+
o.pack(*it);
|
48
|
+
}
|
49
|
+
return o;
|
50
|
+
}
|
51
|
+
|
52
|
+
template <typename T>
|
53
|
+
inline void operator<< (object::with_zone& o, const std::deque<T>& v)
|
54
|
+
{
|
55
|
+
o.type = type::ARRAY;
|
56
|
+
if(v.empty()) {
|
57
|
+
o.via.array.ptr = NULL;
|
58
|
+
o.via.array.size = 0;
|
59
|
+
} else {
|
60
|
+
object* p = (object*)o.zone->malloc(sizeof(object)*v.size());
|
61
|
+
object* const pend = p + v.size();
|
62
|
+
o.via.array.ptr = p;
|
63
|
+
o.via.array.size = v.size();
|
64
|
+
typename std::deque<T>::const_iterator it(v.begin());
|
65
|
+
do {
|
66
|
+
*p = object(*it, o.zone);
|
67
|
+
++p;
|
68
|
+
++it;
|
69
|
+
} while(p < pend);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
} // namespace msgpack
|
75
|
+
|
76
|
+
#endif /* msgpack/type/deque.hpp */
|
77
|
+
|
@@ -0,0 +1,172 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ static resolution routine
|
3
|
+
//
|
4
|
+
// Copyright (C) 2020 FURUHASHI Sadayuki
|
5
|
+
//
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
// you may not use this file except in compliance with the License.
|
8
|
+
// You may obtain a copy of the License at
|
9
|
+
//
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
//
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
// See the License for the specific language governing permissions and
|
16
|
+
// limitations under the License.
|
17
|
+
//
|
18
|
+
#ifndef MSGPACK_TYPE_FIXINT_HPP__
|
19
|
+
#define MSGPACK_TYPE_FIXINT_HPP__
|
20
|
+
|
21
|
+
#include "msgpack/object.hpp"
|
22
|
+
#include "msgpack/type/int.hpp"
|
23
|
+
|
24
|
+
namespace msgpack {
|
25
|
+
|
26
|
+
namespace type {
|
27
|
+
|
28
|
+
|
29
|
+
template <typename T>
|
30
|
+
struct fix_int {
|
31
|
+
fix_int() : value(0) { }
|
32
|
+
fix_int(T value) : value(value) { }
|
33
|
+
|
34
|
+
operator T() const { return value; }
|
35
|
+
|
36
|
+
T get() const { return value; }
|
37
|
+
|
38
|
+
private:
|
39
|
+
T value;
|
40
|
+
};
|
41
|
+
|
42
|
+
|
43
|
+
typedef fix_int<uint8_t> fix_uint8;
|
44
|
+
typedef fix_int<uint16_t> fix_uint16;
|
45
|
+
typedef fix_int<uint32_t> fix_uint32;
|
46
|
+
typedef fix_int<uint64_t> fix_uint64;
|
47
|
+
|
48
|
+
typedef fix_int<int8_t> fix_int8;
|
49
|
+
typedef fix_int<int16_t> fix_int16;
|
50
|
+
typedef fix_int<int32_t> fix_int32;
|
51
|
+
typedef fix_int<int64_t> fix_int64;
|
52
|
+
|
53
|
+
|
54
|
+
} // namespace type
|
55
|
+
|
56
|
+
|
57
|
+
inline type::fix_int8& operator>> (object o, type::fix_int8& v)
|
58
|
+
{ v = type::detail::convert_integer<int8_t>(o); return v; }
|
59
|
+
|
60
|
+
inline type::fix_int16& operator>> (object o, type::fix_int16& v)
|
61
|
+
{ v = type::detail::convert_integer<int16_t>(o); return v; }
|
62
|
+
|
63
|
+
inline type::fix_int32& operator>> (object o, type::fix_int32& v)
|
64
|
+
{ v = type::detail::convert_integer<int32_t>(o); return v; }
|
65
|
+
|
66
|
+
inline type::fix_int64& operator>> (object o, type::fix_int64& v)
|
67
|
+
{ v = type::detail::convert_integer<int64_t>(o); return v; }
|
68
|
+
|
69
|
+
|
70
|
+
inline type::fix_uint8& operator>> (object o, type::fix_uint8& v)
|
71
|
+
{ v = type::detail::convert_integer<uint8_t>(o); return v; }
|
72
|
+
|
73
|
+
inline type::fix_uint16& operator>> (object o, type::fix_uint16& v)
|
74
|
+
{ v = type::detail::convert_integer<uint16_t>(o); return v; }
|
75
|
+
|
76
|
+
inline type::fix_uint32& operator>> (object o, type::fix_uint32& v)
|
77
|
+
{ v = type::detail::convert_integer<uint32_t>(o); return v; }
|
78
|
+
|
79
|
+
inline type::fix_uint64& operator>> (object o, type::fix_uint64& v)
|
80
|
+
{ v = type::detail::convert_integer<uint64_t>(o); return v; }
|
81
|
+
|
82
|
+
|
83
|
+
template <typename Stream>
|
84
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const type::fix_int8& v)
|
85
|
+
{ o.pack_fix_int8(v); return o; }
|
86
|
+
|
87
|
+
template <typename Stream>
|
88
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const type::fix_int16& v)
|
89
|
+
{ o.pack_fix_int16(v); return o; }
|
90
|
+
|
91
|
+
template <typename Stream>
|
92
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const type::fix_int32& v)
|
93
|
+
{ o.pack_fix_int32(v); return o; }
|
94
|
+
|
95
|
+
template <typename Stream>
|
96
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const type::fix_int64& v)
|
97
|
+
{ o.pack_fix_int64(v); return o; }
|
98
|
+
|
99
|
+
|
100
|
+
template <typename Stream>
|
101
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const type::fix_uint8& v)
|
102
|
+
{ o.pack_fix_uint8(v); return o; }
|
103
|
+
|
104
|
+
template <typename Stream>
|
105
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const type::fix_uint16& v)
|
106
|
+
{ o.pack_fix_uint16(v); return o; }
|
107
|
+
|
108
|
+
template <typename Stream>
|
109
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const type::fix_uint32& v)
|
110
|
+
{ o.pack_fix_uint32(v); return o; }
|
111
|
+
|
112
|
+
template <typename Stream>
|
113
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const type::fix_uint64& v)
|
114
|
+
{ o.pack_fix_uint64(v); return o; }
|
115
|
+
|
116
|
+
|
117
|
+
inline void operator<< (object& o, type::fix_int8 v)
|
118
|
+
{ v.get() < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v.get() : o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
|
119
|
+
|
120
|
+
inline void operator<< (object& o, type::fix_int16 v)
|
121
|
+
{ v.get() < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v.get() : o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
|
122
|
+
|
123
|
+
inline void operator<< (object& o, type::fix_int32 v)
|
124
|
+
{ v.get() < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v.get() : o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
|
125
|
+
|
126
|
+
inline void operator<< (object& o, type::fix_int64 v)
|
127
|
+
{ v.get() < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v.get() : o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
|
128
|
+
|
129
|
+
|
130
|
+
inline void operator<< (object& o, type::fix_uint8 v)
|
131
|
+
{ o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
|
132
|
+
|
133
|
+
inline void operator<< (object& o, type::fix_uint16 v)
|
134
|
+
{ o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
|
135
|
+
|
136
|
+
inline void operator<< (object& o, type::fix_uint32 v)
|
137
|
+
{ o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
|
138
|
+
|
139
|
+
inline void operator<< (object& o, type::fix_uint64 v)
|
140
|
+
{ o.type = type::POSITIVE_INTEGER, o.via.u64 = v.get(); }
|
141
|
+
|
142
|
+
|
143
|
+
inline void operator<< (object::with_zone& o, type::fix_int8 v)
|
144
|
+
{ static_cast<object&>(o) << v; }
|
145
|
+
|
146
|
+
inline void operator<< (object::with_zone& o, type::fix_int16 v)
|
147
|
+
{ static_cast<object&>(o) << v; }
|
148
|
+
|
149
|
+
inline void operator<< (object::with_zone& o, type::fix_int32 v)
|
150
|
+
{ static_cast<object&>(o) << v; }
|
151
|
+
|
152
|
+
inline void operator<< (object::with_zone& o, type::fix_int64 v)
|
153
|
+
{ static_cast<object&>(o) << v; }
|
154
|
+
|
155
|
+
|
156
|
+
inline void operator<< (object::with_zone& o, type::fix_uint8 v)
|
157
|
+
{ static_cast<object&>(o) << v; }
|
158
|
+
|
159
|
+
inline void operator<< (object::with_zone& o, type::fix_uint16 v)
|
160
|
+
{ static_cast<object&>(o) << v; }
|
161
|
+
|
162
|
+
inline void operator<< (object::with_zone& o, type::fix_uint32 v)
|
163
|
+
{ static_cast<object&>(o) << v; }
|
164
|
+
|
165
|
+
inline void operator<< (object::with_zone& o, type::fix_uint64 v)
|
166
|
+
{ static_cast<object&>(o) << v; }
|
167
|
+
|
168
|
+
|
169
|
+
} // namespace msgpack
|
170
|
+
|
171
|
+
#endif /* msgpack/type/fixint.hpp */
|
172
|
+
|
@@ -0,0 +1,82 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ static resolution routine
|
3
|
+
//
|
4
|
+
// Copyright (C) 2008-2009 FURUHASHI Sadayuki
|
5
|
+
//
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
// you may not use this file except in compliance with the License.
|
8
|
+
// You may obtain a copy of the License at
|
9
|
+
//
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
//
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
// See the License for the specific language governing permissions and
|
16
|
+
// limitations under the License.
|
17
|
+
//
|
18
|
+
#ifndef MSGPACK_TYPE_FLOAT_HPP__
|
19
|
+
#define MSGPACK_TYPE_FLOAT_HPP__
|
20
|
+
|
21
|
+
#include "msgpack/object.hpp"
|
22
|
+
#include <vector>
|
23
|
+
|
24
|
+
namespace msgpack {
|
25
|
+
|
26
|
+
|
27
|
+
// FIXME check overflow, underflow
|
28
|
+
|
29
|
+
|
30
|
+
inline float& operator>> (object o, float& v)
|
31
|
+
{
|
32
|
+
if(o.type != type::DOUBLE) { throw type_error(); }
|
33
|
+
v = (float)o.via.dec;
|
34
|
+
return v;
|
35
|
+
}
|
36
|
+
|
37
|
+
template <typename Stream>
|
38
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const float& v)
|
39
|
+
{
|
40
|
+
o.pack_float(v);
|
41
|
+
return o;
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
inline double& operator>> (object o, double& v)
|
46
|
+
{
|
47
|
+
if(o.type != type::DOUBLE) { throw type_error(); }
|
48
|
+
v = o.via.dec;
|
49
|
+
return v;
|
50
|
+
}
|
51
|
+
|
52
|
+
template <typename Stream>
|
53
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const double& v)
|
54
|
+
{
|
55
|
+
o.pack_double(v);
|
56
|
+
return o;
|
57
|
+
}
|
58
|
+
|
59
|
+
|
60
|
+
inline void operator<< (object& o, float v)
|
61
|
+
{
|
62
|
+
o.type = type::DOUBLE;
|
63
|
+
o.via.dec = (double)v;
|
64
|
+
}
|
65
|
+
|
66
|
+
inline void operator<< (object& o, double v)
|
67
|
+
{
|
68
|
+
o.type = type::DOUBLE;
|
69
|
+
o.via.dec = v;
|
70
|
+
}
|
71
|
+
|
72
|
+
inline void operator<< (object::with_zone& o, float v)
|
73
|
+
{ static_cast<object&>(o) << v; }
|
74
|
+
|
75
|
+
inline void operator<< (object::with_zone& o, double v)
|
76
|
+
{ static_cast<object&>(o) << v; }
|
77
|
+
|
78
|
+
|
79
|
+
} // namespace msgpack
|
80
|
+
|
81
|
+
#endif /* msgpack/type/float.hpp */
|
82
|
+
|
@@ -0,0 +1,211 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ static resolution routine
|
3
|
+
//
|
4
|
+
// Copyright (C) 2008-2009 FURUHASHI Sadayuki
|
5
|
+
//
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
// you may not use this file except in compliance with the License.
|
8
|
+
// You may obtain a copy of the License at
|
9
|
+
//
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
//
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
// See the License for the specific language governing permissions and
|
16
|
+
// limitations under the License.
|
17
|
+
//
|
18
|
+
#ifndef MSGPACK_TYPE_INT_HPP__
|
19
|
+
#define MSGPACK_TYPE_INT_HPP__
|
20
|
+
|
21
|
+
#include "msgpack/object.hpp"
|
22
|
+
#include <limits>
|
23
|
+
|
24
|
+
namespace msgpack {
|
25
|
+
|
26
|
+
|
27
|
+
namespace type {
|
28
|
+
namespace detail {
|
29
|
+
template <typename T, bool Signed>
|
30
|
+
struct convert_integer_sign;
|
31
|
+
|
32
|
+
template <typename T>
|
33
|
+
struct convert_integer_sign<T, true> {
|
34
|
+
static inline T convert(object o) {
|
35
|
+
if(o.type == type::POSITIVE_INTEGER) {
|
36
|
+
if(o.via.u64 > (uint64_t)std::numeric_limits<T>::max())
|
37
|
+
{ throw type_error(); }
|
38
|
+
return (T)o.via.u64;
|
39
|
+
} else if(o.type == type::NEGATIVE_INTEGER) {
|
40
|
+
if(o.via.i64 < (int64_t)std::numeric_limits<T>::min())
|
41
|
+
{ throw type_error(); }
|
42
|
+
return (T)o.via.i64;
|
43
|
+
}
|
44
|
+
throw type_error();
|
45
|
+
}
|
46
|
+
};
|
47
|
+
|
48
|
+
template <typename T>
|
49
|
+
struct convert_integer_sign<T, false> {
|
50
|
+
static inline T convert(object o) {
|
51
|
+
if(o.type == type::POSITIVE_INTEGER) {
|
52
|
+
if(o.via.u64 > (uint64_t)std::numeric_limits<T>::max())
|
53
|
+
{ throw type_error(); }
|
54
|
+
return (T)o.via.u64;
|
55
|
+
}
|
56
|
+
throw type_error();
|
57
|
+
}
|
58
|
+
};
|
59
|
+
|
60
|
+
template <typename T>
|
61
|
+
static inline T convert_integer(object o)
|
62
|
+
{
|
63
|
+
return detail::convert_integer_sign<T, std::numeric_limits<T>::is_signed>::convert(o);
|
64
|
+
}
|
65
|
+
|
66
|
+
} // namespace detail
|
67
|
+
} // namespace type
|
68
|
+
|
69
|
+
|
70
|
+
inline signed char& operator>> (object o, signed char& v)
|
71
|
+
{ v = type::detail::convert_integer<signed char>(o); return v; }
|
72
|
+
|
73
|
+
inline signed short& operator>> (object o, signed short& v)
|
74
|
+
{ v = type::detail::convert_integer<signed short>(o); return v; }
|
75
|
+
|
76
|
+
inline signed int& operator>> (object o, signed int& v)
|
77
|
+
{ v = type::detail::convert_integer<signed int>(o); return v; }
|
78
|
+
|
79
|
+
inline signed long& operator>> (object o, signed long& v)
|
80
|
+
{ v = type::detail::convert_integer<signed long>(o); return v; }
|
81
|
+
|
82
|
+
inline signed long long& operator>> (object o, signed long long& v)
|
83
|
+
{ v = type::detail::convert_integer<signed long long>(o); return v; }
|
84
|
+
|
85
|
+
|
86
|
+
inline unsigned char& operator>> (object o, unsigned char& v)
|
87
|
+
{ v = type::detail::convert_integer<unsigned char>(o); return v; }
|
88
|
+
|
89
|
+
inline unsigned short& operator>> (object o, unsigned short& v)
|
90
|
+
{ v = type::detail::convert_integer<unsigned short>(o); return v; }
|
91
|
+
|
92
|
+
inline unsigned int& operator>> (object o, unsigned int& v)
|
93
|
+
{ v = type::detail::convert_integer<unsigned int>(o); return v; }
|
94
|
+
|
95
|
+
inline unsigned long& operator>> (object o, unsigned long& v)
|
96
|
+
{ v = type::detail::convert_integer<unsigned long>(o); return v; }
|
97
|
+
|
98
|
+
inline unsigned long long& operator>> (object o, unsigned long long& v)
|
99
|
+
{ v = type::detail::convert_integer<unsigned long long>(o); return v; }
|
100
|
+
|
101
|
+
|
102
|
+
template <typename Stream>
|
103
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const signed char& v)
|
104
|
+
{ o.pack_int8(v); return o; }
|
105
|
+
|
106
|
+
template <typename Stream>
|
107
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const signed short& v)
|
108
|
+
{ o.pack_short(v); return o; }
|
109
|
+
|
110
|
+
template <typename Stream>
|
111
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const signed int& v)
|
112
|
+
{ o.pack_int(v); return o; }
|
113
|
+
|
114
|
+
template <typename Stream>
|
115
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const signed long& v)
|
116
|
+
{ o.pack_long(v); return o; }
|
117
|
+
|
118
|
+
template <typename Stream>
|
119
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const signed long long& v)
|
120
|
+
{ o.pack_long_long(v); return o; }
|
121
|
+
|
122
|
+
|
123
|
+
template <typename Stream>
|
124
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const unsigned char& v)
|
125
|
+
{ o.pack_uint8(v); return o; }
|
126
|
+
|
127
|
+
template <typename Stream>
|
128
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const unsigned short& v)
|
129
|
+
{ o.pack_unsigned_short(v); return o; }
|
130
|
+
|
131
|
+
template <typename Stream>
|
132
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const unsigned int& v)
|
133
|
+
{ o.pack_unsigned_int(v); return o; }
|
134
|
+
|
135
|
+
template <typename Stream>
|
136
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const unsigned long& v)
|
137
|
+
{ o.pack_unsigned_long(v); return o; }
|
138
|
+
|
139
|
+
template <typename Stream>
|
140
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const unsigned long long& v)
|
141
|
+
{ o.pack_unsigned_long_long(v); return o; }
|
142
|
+
|
143
|
+
|
144
|
+
inline void operator<< (object& o, signed char v)
|
145
|
+
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
146
|
+
|
147
|
+
inline void operator<< (object& o, signed short v)
|
148
|
+
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
149
|
+
|
150
|
+
inline void operator<< (object& o, signed int v)
|
151
|
+
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
152
|
+
|
153
|
+
inline void operator<< (object& o, signed long v)
|
154
|
+
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
155
|
+
|
156
|
+
inline void operator<< (object& o, signed long long v)
|
157
|
+
{ v < 0 ? o.type = type::NEGATIVE_INTEGER, o.via.i64 = v : o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
158
|
+
|
159
|
+
|
160
|
+
inline void operator<< (object& o, unsigned char v)
|
161
|
+
{ o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
162
|
+
|
163
|
+
inline void operator<< (object& o, unsigned short v)
|
164
|
+
{ o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
165
|
+
|
166
|
+
inline void operator<< (object& o, unsigned int v)
|
167
|
+
{ o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
168
|
+
|
169
|
+
inline void operator<< (object& o, unsigned long v)
|
170
|
+
{ o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
171
|
+
|
172
|
+
inline void operator<< (object& o, unsigned long long v)
|
173
|
+
{ o.type = type::POSITIVE_INTEGER, o.via.u64 = v; }
|
174
|
+
|
175
|
+
|
176
|
+
inline void operator<< (object::with_zone& o, signed char v)
|
177
|
+
{ static_cast<object&>(o) << v; }
|
178
|
+
|
179
|
+
inline void operator<< (object::with_zone& o, signed short v)
|
180
|
+
{ static_cast<object&>(o) << v; }
|
181
|
+
|
182
|
+
inline void operator<< (object::with_zone& o, signed int v)
|
183
|
+
{ static_cast<object&>(o) << v; }
|
184
|
+
|
185
|
+
inline void operator<< (object::with_zone& o, signed long v)
|
186
|
+
{ static_cast<object&>(o) << v; }
|
187
|
+
|
188
|
+
inline void operator<< (object::with_zone& o, signed long long v)
|
189
|
+
{ static_cast<object&>(o) << v; }
|
190
|
+
|
191
|
+
|
192
|
+
inline void operator<< (object::with_zone& o, unsigned char v)
|
193
|
+
{ static_cast<object&>(o) << v; }
|
194
|
+
|
195
|
+
inline void operator<< (object::with_zone& o, unsigned short v)
|
196
|
+
{ static_cast<object&>(o) << v; }
|
197
|
+
|
198
|
+
inline void operator<< (object::with_zone& o, unsigned int v)
|
199
|
+
{ static_cast<object&>(o) << v; }
|
200
|
+
|
201
|
+
inline void operator<< (object::with_zone& o, unsigned long v)
|
202
|
+
{ static_cast<object&>(o) << v; }
|
203
|
+
|
204
|
+
inline void operator<< (object::with_zone& o, unsigned long long v)
|
205
|
+
{ static_cast<object&>(o) << v; }
|
206
|
+
|
207
|
+
|
208
|
+
} // namespace msgpack
|
209
|
+
|
210
|
+
#endif /* msgpack/type/int.hpp */
|
211
|
+
|
@@ -0,0 +1,77 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ static resolution routine
|
3
|
+
//
|
4
|
+
// Copyright (C) 2008-2009 FURUHASHI Sadayuki
|
5
|
+
//
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
// you may not use this file except in compliance with the License.
|
8
|
+
// You may obtain a copy of the License at
|
9
|
+
//
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
//
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
// See the License for the specific language governing permissions and
|
16
|
+
// limitations under the License.
|
17
|
+
//
|
18
|
+
#ifndef MSGPACK_TYPE_LIST_HPP__
|
19
|
+
#define MSGPACK_TYPE_LIST_HPP__
|
20
|
+
|
21
|
+
#include "msgpack/object.hpp"
|
22
|
+
#include <list>
|
23
|
+
|
24
|
+
namespace msgpack {
|
25
|
+
|
26
|
+
|
27
|
+
template <typename T>
|
28
|
+
inline std::list<T>& operator>> (object o, std::list<T>& v)
|
29
|
+
{
|
30
|
+
if(o.type != type::ARRAY) { throw type_error(); }
|
31
|
+
v.resize(o.via.array.size);
|
32
|
+
object* p = o.via.array.ptr;
|
33
|
+
object* const pend = o.via.array.ptr + o.via.array.size;
|
34
|
+
typename std::list<T>::iterator it = v.begin();
|
35
|
+
for(; p < pend; ++p, ++it) {
|
36
|
+
p->convert(&*it);
|
37
|
+
}
|
38
|
+
return v;
|
39
|
+
}
|
40
|
+
|
41
|
+
template <typename Stream, typename T>
|
42
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const std::list<T>& v)
|
43
|
+
{
|
44
|
+
o.pack_array(v.size());
|
45
|
+
for(typename std::list<T>::const_iterator it(v.begin()), it_end(v.end());
|
46
|
+
it != it_end; ++it) {
|
47
|
+
o.pack(*it);
|
48
|
+
}
|
49
|
+
return o;
|
50
|
+
}
|
51
|
+
|
52
|
+
template <typename T>
|
53
|
+
inline void operator<< (object::with_zone& o, const std::list<T>& v)
|
54
|
+
{
|
55
|
+
o.type = type::ARRAY;
|
56
|
+
if(v.empty()) {
|
57
|
+
o.via.array.ptr = NULL;
|
58
|
+
o.via.array.size = 0;
|
59
|
+
} else {
|
60
|
+
object* p = (object*)o.zone->malloc(sizeof(object)*v.size());
|
61
|
+
object* const pend = p + v.size();
|
62
|
+
o.via.array.ptr = p;
|
63
|
+
o.via.array.size = v.size();
|
64
|
+
typename std::list<T>::const_iterator it(v.begin());
|
65
|
+
do {
|
66
|
+
*p = object(*it, o.zone);
|
67
|
+
++p;
|
68
|
+
++it;
|
69
|
+
} while(p < pend);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
} // namespace msgpack
|
75
|
+
|
76
|
+
#endif /* msgpack/type/list.hpp */
|
77
|
+
|