Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 858941 Details for
Bug 1061007
internal compiler error(s) compiling google test and cross-compiling older versions of gcc
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Preprocessed source stored into temporary file, recommeded to be attached
ccb52BJj.out (text/x-csrc), 2.20 MB, created by
ratytimo
on 2014-02-04 08:04:28 UTC
(
hide
)
Description:
Preprocessed source stored into temporary file, recommeded to be attached
Filename:
MIME Type:
Creator:
ratytimo
Created:
2014-02-04 08:04:28 UTC
Size:
2.20 MB
patch
obsolete
>// /usr/libexec/gcc/x86_64-redhat-linux/4.8.2/cc1plus -quiet -I /home/timppa/workspace-kepler-R/RefactoringExample1/inc -I /home/timppa/workspace-kepler-R/RefactoringExample1/gmock -I /home/timppa/workspace-kepler-R/RefactoringExample1/gtest_contrib -MMD gtest_contrib/gmock-gtest-all.d -MF gtest_contrib/gmock-gtest-all.d -MP -MT gtest_contrib/gmock-gtest-all.d -dD -H -D_GNU_SOURCE ../gtest_contrib/gmock-gtest-all.cc -quiet -dumpbase gmock-gtest-all.cc -mtune=generic -march=x86-64 -auxbase-strip gtest_contrib/gmock-gtest-all.o -g3 -O0 -Wall -Wextra -fmessage-length=0 -ftest-coverage -fprofile-arcs -o - -frandom-seed=0 ># 1 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "/home/timppa/workspace-kepler-R/RefactoringExample1/UnitTest//" >#define __STDC__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __cplusplus 199711L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __STDC_HOSTED__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GNUC__ 4 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GNUC_MINOR__ 8 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GNUC_PATCHLEVEL__ 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __VERSION__ "4.8.2 20131212 (Red Hat 4.8.2-7)" ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GNUC_RH_RELEASE__ 7 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ATOMIC_RELAXED 0 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ATOMIC_SEQ_CST 5 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ATOMIC_ACQUIRE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ATOMIC_RELEASE 3 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ATOMIC_ACQ_REL 4 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ATOMIC_CONSUME 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FINITE_MATH_ONLY__ 0 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define _LP64 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LP64__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_INT__ 4 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_LONG__ 8 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_LONG_LONG__ 8 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_SHORT__ 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_FLOAT__ 4 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_DOUBLE__ 8 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_LONG_DOUBLE__ 16 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_SIZE_T__ 8 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __CHAR_BIT__ 8 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __BIGGEST_ALIGNMENT__ 16 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ORDER_LITTLE_ENDIAN__ 1234 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ORDER_BIG_ENDIAN__ 4321 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ORDER_PDP_ENDIAN__ 3412 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__ ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_POINTER__ 8 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GNUG__ 4 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZE_TYPE__ long unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __PTRDIFF_TYPE__ long int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __WCHAR_TYPE__ int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __WINT_TYPE__ unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INTMAX_TYPE__ long int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINTMAX_TYPE__ long unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __CHAR16_TYPE__ short unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __CHAR32_TYPE__ unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIG_ATOMIC_TYPE__ int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT8_TYPE__ signed char ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT16_TYPE__ short int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT32_TYPE__ int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT64_TYPE__ long int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT8_TYPE__ unsigned char ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT16_TYPE__ short unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT32_TYPE__ unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT64_TYPE__ long unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_LEAST8_TYPE__ signed char ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_LEAST16_TYPE__ short int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_LEAST32_TYPE__ int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_LEAST64_TYPE__ long int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_LEAST8_TYPE__ unsigned char ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_LEAST16_TYPE__ short unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_LEAST32_TYPE__ unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_LEAST64_TYPE__ long unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_FAST8_TYPE__ signed char ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_FAST16_TYPE__ long int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_FAST32_TYPE__ long int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_FAST64_TYPE__ long int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_FAST8_TYPE__ unsigned char ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_FAST16_TYPE__ long unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_FAST32_TYPE__ long unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_FAST64_TYPE__ long unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INTPTR_TYPE__ long int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINTPTR_TYPE__ long unsigned int ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GXX_WEAK__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEPRECATED 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GXX_RTTI 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __EXCEPTIONS 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GXX_ABI_VERSION 1002 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SCHAR_MAX__ 127 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SHRT_MAX__ 32767 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_MAX__ 2147483647 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LONG_MAX__ 9223372036854775807L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LONG_LONG_MAX__ 9223372036854775807LL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __WCHAR_MAX__ 2147483647 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __WINT_MAX__ 4294967295U ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __WINT_MIN__ 0U ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __PTRDIFF_MAX__ 9223372036854775807L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZE_MAX__ 18446744073709551615UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INTMAX_MAX__ 9223372036854775807L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INTMAX_C(c) c ## L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINTMAX_MAX__ 18446744073709551615UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINTMAX_C(c) c ## UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIG_ATOMIC_MAX__ 2147483647 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT8_MAX__ 127 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT16_MAX__ 32767 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT32_MAX__ 2147483647 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT64_MAX__ 9223372036854775807L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT8_MAX__ 255 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT16_MAX__ 65535 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT32_MAX__ 4294967295U ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT64_MAX__ 18446744073709551615UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_LEAST8_MAX__ 127 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT8_C(c) c ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_LEAST16_MAX__ 32767 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT16_C(c) c ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_LEAST32_MAX__ 2147483647 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT32_C(c) c ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_LEAST64_MAX__ 9223372036854775807L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT64_C(c) c ## L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_LEAST8_MAX__ 255 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT8_C(c) c ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_LEAST16_MAX__ 65535 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT16_C(c) c ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_LEAST32_MAX__ 4294967295U ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT32_C(c) c ## U ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_LEAST64_MAX__ 18446744073709551615UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT64_C(c) c ## UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_FAST8_MAX__ 127 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_FAST16_MAX__ 9223372036854775807L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_FAST32_MAX__ 9223372036854775807L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INT_FAST64_MAX__ 9223372036854775807L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_FAST8_MAX__ 255 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_FAST16_MAX__ 18446744073709551615UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_FAST32_MAX__ 18446744073709551615UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINT_FAST64_MAX__ 18446744073709551615UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __INTPTR_MAX__ 9223372036854775807L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __UINTPTR_MAX__ 18446744073709551615UL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_EVAL_METHOD__ 0 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC_EVAL_METHOD__ 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_RADIX__ 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_MANT_DIG__ 24 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_DIG__ 6 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_MIN_EXP__ (-125) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_MIN_10_EXP__ (-37) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_MAX_EXP__ 128 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_MAX_10_EXP__ 38 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_DECIMAL_DIG__ 9 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_MAX__ 3.40282346638528859812e+38F ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_MIN__ 1.17549435082228750797e-38F ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_EPSILON__ 1.19209289550781250000e-7F ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_DENORM_MIN__ 1.40129846432481707092e-45F ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_HAS_DENORM__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_HAS_INFINITY__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FLT_HAS_QUIET_NAN__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_MANT_DIG__ 53 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_DIG__ 15 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_MIN_EXP__ (-1021) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_MIN_10_EXP__ (-307) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_MAX_EXP__ 1024 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_MAX_10_EXP__ 308 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_DECIMAL_DIG__ 17 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_MAX__ double(1.79769313486231570815e+308L) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_MIN__ double(2.22507385850720138309e-308L) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_EPSILON__ double(2.22044604925031308085e-16L) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_DENORM_MIN__ double(4.94065645841246544177e-324L) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_HAS_DENORM__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_HAS_INFINITY__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DBL_HAS_QUIET_NAN__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_MANT_DIG__ 64 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_DIG__ 18 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_MIN_EXP__ (-16381) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_MIN_10_EXP__ (-4931) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_MAX_EXP__ 16384 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_MAX_10_EXP__ 4932 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DECIMAL_DIG__ 21 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_MAX__ 1.18973149535723176502e+4932L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_MIN__ 3.36210314311209350626e-4932L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_EPSILON__ 1.08420217248550443401e-19L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_HAS_DENORM__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_HAS_INFINITY__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __LDBL_HAS_QUIET_NAN__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC32_MANT_DIG__ 7 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC32_MIN_EXP__ (-94) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC32_MAX_EXP__ 97 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC32_MIN__ 1E-95DF ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC32_MAX__ 9.999999E96DF ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC32_EPSILON__ 1E-6DF ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC64_MANT_DIG__ 16 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC64_MIN_EXP__ (-382) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC64_MAX_EXP__ 385 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC64_MIN__ 1E-383DD ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC64_MAX__ 9.999999999999999E384DD ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC64_EPSILON__ 1E-15DD ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC128_MANT_DIG__ 34 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC128_MIN_EXP__ (-6142) ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC128_MAX_EXP__ 6145 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC128_MIN__ 1E-6143DL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC128_EPSILON__ 1E-33DL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __REGISTER_PREFIX__ ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __USER_LABEL_PREFIX__ ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GNUC_GNU_INLINE__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __NO_INLINE__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_BOOL_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_CHAR_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_SHORT_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_INT_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_LONG_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_LLONG_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_ATOMIC_POINTER_LOCK_FREE 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __GCC_HAVE_DWARF2_CFI_ASM 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __PRAGMA_REDEFINE_EXTNAME 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_INT128__ 16 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_WCHAR_T__ 4 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_WINT_T__ 4 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SIZEOF_PTRDIFF_T__ 8 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __amd64 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __amd64__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __x86_64 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __x86_64__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ATOMIC_HLE_ACQUIRE 65536 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ATOMIC_HLE_RELEASE 131072 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __k8 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __k8__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __code_model_small__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __MMX__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SSE__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SSE2__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __FXSR__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SSE_MATH__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __SSE2_MATH__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __gnu_linux__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __linux 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __linux__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define linux 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __unix 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __unix__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define unix 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __ELF__ 1 ># 1 "../gtest_contrib/gmock-gtest-all.cc" >#define __DECIMAL_BID_FORMAT__ 1 ># 1 "<command-line>" >#define _GNU_SOURCE 1 ># 1 "/usr/include/stdc-predef.h" 1 3 4 ># 19 "/usr/include/stdc-predef.h" 3 4 >#define _STDC_PREDEF_H 1 ># 30 "/usr/include/stdc-predef.h" 3 4 >#define __STDC_IEC_559__ 1 >#define __STDC_IEC_559_COMPLEX__ 1 > > > >#define __STDC_ISO_10646__ 201103L > > >#define __STDC_NO_THREADS__ 1 ># 1 "<command-line>" 2 ># 1 "../gtest_contrib/gmock-gtest-all.cc" ># 39 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "../gtest_contrib/gtest/gtest.h" 1 ># 52 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_GTEST_H_ > ># 1 "/usr/include/c++/4.8.2/limits" 1 3 ># 38 "/usr/include/c++/4.8.2/limits" 3 >#define _GLIBCXX_NUMERIC_LIMITS 1 > > ># 41 "/usr/include/c++/4.8.2/limits" 3 > ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 1 3 > >#define _CPP_CPPCONFIG_WRAPPER 1 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 4 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 2 3 ># 1702 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_CXX_CONFIG_H 1 > > >#define __GLIBCXX__ 20131212 ># 1714 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_PURE __attribute__ ((__pure__)) > > > >#define _GLIBCXX_CONST __attribute__ ((__const__)) > > > >#define _GLIBCXX_NORETURN __attribute__ ((__noreturn__)) ># 1735 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_HAVE_ATTRIBUTE_VISIBILITY 1 > > >#define _GLIBCXX_VISIBILITY(V) __attribute__ ((__visibility__ (#V))) ># 1749 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_USE_DEPRECATED 1 > > > > > >#define _GLIBCXX_DEPRECATED > > > > >#define _GLIBCXX_ABI_TAG_CXX11 __attribute ((__abi_tag__ ("cxx11"))) ># 1772 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_CONSTEXPR >#define _GLIBCXX_USE_CONSTEXPR const ># 1784 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_NOEXCEPT >#define _GLIBCXX_USE_NOEXCEPT throw() >#define _GLIBCXX_THROW(_EXC) throw(_EXC) > > > > >#define _GLIBCXX_NOTHROW _GLIBCXX_USE_NOEXCEPT > > > > >#define _GLIBCXX_THROW_OR_ABORT(_EXC) (throw (_EXC)) ># 1812 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_EXTERN_TEMPLATE 1 ># 1855 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >namespace std >{ > typedef long unsigned int size_t; > typedef long int ptrdiff_t; > > > > >} > > > >#define _GLIBCXX_INLINE_VERSION 0 ># 1907 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_BEGIN_NAMESPACE_VERSION >#define _GLIBCXX_END_NAMESPACE_VERSION ># 1988 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_STD_A std > > > >#define _GLIBCXX_STD_C std > > > >#define _GLIBCXX_BEGIN_NAMESPACE_ALGO > > > >#define _GLIBCXX_END_NAMESPACE_ALGO > > > >#define _GLIBCXX_BEGIN_NAMESPACE_CONTAINER > > > >#define _GLIBCXX_END_NAMESPACE_CONTAINER > > > > >#undef _GLIBCXX_LONG_DOUBLE_COMPAT ># 2025 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_NAMESPACE_LDBL >#define _GLIBCXX_BEGIN_NAMESPACE_LDBL >#define _GLIBCXX_END_NAMESPACE_LDBL > > > > >#define __glibcxx_assert(_Condition) ># 2078 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(A) > > >#define _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(A) > > > >#define _GLIBCXX_BEGIN_EXTERN_C extern "C" { >#define _GLIBCXX_END_EXTERN_C } ># 2097 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h" 1 3 ># 31 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h" 3 >#define _GLIBCXX_OS_DEFINES 1 > > > > > >#define __NO_CTYPE 1 > ># 1 "/usr/include/features.h" 1 3 4 ># 19 "/usr/include/features.h" 3 4 >#define _FEATURES_H 1 ># 98 "/usr/include/features.h" 3 4 >#undef __USE_ISOC11 >#undef __USE_ISOC99 >#undef __USE_ISOC95 >#undef __USE_ISOCXX11 >#undef __USE_POSIX >#undef __USE_POSIX2 >#undef __USE_POSIX199309 >#undef __USE_POSIX199506 >#undef __USE_XOPEN >#undef __USE_XOPEN_EXTENDED >#undef __USE_UNIX98 >#undef __USE_XOPEN2K >#undef __USE_XOPEN2KXSI >#undef __USE_XOPEN2K8 >#undef __USE_XOPEN2K8XSI >#undef __USE_LARGEFILE >#undef __USE_LARGEFILE64 >#undef __USE_FILE_OFFSET64 >#undef __USE_BSD >#undef __USE_SVID >#undef __USE_MISC >#undef __USE_ATFILE >#undef __USE_GNU >#undef __USE_REENTRANT >#undef __USE_FORTIFY_LEVEL >#undef __FAVOR_BSD >#undef __KERNEL_STRICT_NAMES > > > > >#define __KERNEL_STRICT_NAMES ># 140 "/usr/include/features.h" 3 4 >#define __GNUC_PREREQ(maj,min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) ># 156 "/usr/include/features.h" 3 4 >#undef _ISOC95_SOURCE >#define _ISOC95_SOURCE 1 >#undef _ISOC99_SOURCE >#define _ISOC99_SOURCE 1 >#undef _ISOC11_SOURCE >#define _ISOC11_SOURCE 1 >#undef _POSIX_SOURCE >#define _POSIX_SOURCE 1 >#undef _POSIX_C_SOURCE >#define _POSIX_C_SOURCE 200809L >#undef _XOPEN_SOURCE >#define _XOPEN_SOURCE 700 >#undef _XOPEN_SOURCE_EXTENDED >#define _XOPEN_SOURCE_EXTENDED 1 >#undef _LARGEFILE64_SOURCE >#define _LARGEFILE64_SOURCE 1 >#undef _BSD_SOURCE >#define _BSD_SOURCE 1 >#undef _SVID_SOURCE >#define _SVID_SOURCE 1 >#undef _ATFILE_SOURCE >#define _ATFILE_SOURCE 1 ># 192 "/usr/include/features.h" 3 4 >#define __USE_ISOC11 1 > > > > > >#define __USE_ISOC99 1 > > > > > >#define __USE_ISOC95 1 ># 234 "/usr/include/features.h" 3 4 >#define __USE_POSIX 1 > > > >#define __USE_POSIX2 1 > > > >#define __USE_POSIX199309 1 > > > >#define __USE_POSIX199506 1 > > > >#define __USE_XOPEN2K 1 >#undef __USE_ISOC95 >#define __USE_ISOC95 1 >#undef __USE_ISOC99 >#define __USE_ISOC99 1 > > > >#define __USE_XOPEN2K8 1 >#undef _ATFILE_SOURCE >#define _ATFILE_SOURCE 1 > > > >#define __USE_XOPEN 1 > >#define __USE_XOPEN_EXTENDED 1 >#define __USE_UNIX98 1 >#undef _LARGEFILE_SOURCE >#define _LARGEFILE_SOURCE 1 > > >#define __USE_XOPEN2K8 1 >#define __USE_XOPEN2K8XSI 1 > >#define __USE_XOPEN2K 1 >#define __USE_XOPEN2KXSI 1 >#undef __USE_ISOC95 >#define __USE_ISOC95 1 >#undef __USE_ISOC99 >#define __USE_ISOC99 1 ># 290 "/usr/include/features.h" 3 4 >#define __USE_LARGEFILE 1 > > > >#define __USE_LARGEFILE64 1 > > > > > > > >#define __USE_MISC 1 > > > >#define __USE_BSD 1 > > > >#define __USE_SVID 1 > > > >#define __USE_ATFILE 1 > > > >#define __USE_GNU 1 ># 337 "/usr/include/features.h" 3 4 >#define __USE_FORTIFY_LEVEL 0 ># 350 "/usr/include/features.h" 3 4 >#undef __GNU_LIBRARY__ >#define __GNU_LIBRARY__ 6 > > > >#define __GLIBC__ 2 >#define __GLIBC_MINOR__ 18 > >#define __GLIBC_PREREQ(maj,min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) > > > > > ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 19 "/usr/include/sys/cdefs.h" 3 4 >#define _SYS_CDEFS_H 1 ># 34 "/usr/include/sys/cdefs.h" 3 4 >#undef __P >#undef __PMT > > > > > > >#define __LEAF , __leaf__ >#define __LEAF_ATTR __attribute__ ((__leaf__)) ># 60 "/usr/include/sys/cdefs.h" 3 4 >#define __THROW throw () >#define __THROWNL throw () >#define __NTH(fct) __LEAF_ATTR fct throw () ># 82 "/usr/include/sys/cdefs.h" 3 4 >#define __P(args) args >#define __PMT(args) args > > > > >#define __CONCAT(x,y) x ## y >#define __STRING(x) #x > > >#define __ptr_t void * >#define __long_double_t long double > > > > >#define __BEGIN_DECLS extern "C" { >#define __END_DECLS } ># 122 "/usr/include/sys/cdefs.h" 3 4 >#define __BEGIN_NAMESPACE_STD >#define __END_NAMESPACE_STD >#define __USING_NAMESPACE_STD(name) >#define __BEGIN_NAMESPACE_C99 >#define __END_NAMESPACE_C99 >#define __USING_NAMESPACE_C99(name) > > > > >#define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) >#define __bos0(ptr) __builtin_object_size (ptr, 0) >#define __fortify_function __extern_always_inline __attribute_artificial__ > > >#define __warndecl(name,msg) extern void name (void) __attribute__((__warning__ (msg))) > >#define __warnattr(msg) __attribute__((__warning__ (msg))) >#define __errordecl(name,msg) extern void name (void) __attribute__((__error__ (msg))) ># 151 "/usr/include/sys/cdefs.h" 3 4 >#define __flexarr [] ># 178 "/usr/include/sys/cdefs.h" 3 4 >#define __REDIRECT(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) > >#define __REDIRECT_NTH(name,proto,alias) name proto __THROW __asm__ (__ASMNAME (#alias)) > >#define __REDIRECT_NTHNL(name,proto,alias) name proto __THROWNL __asm__ (__ASMNAME (#alias)) > > > > > > > >#define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname) >#define __ASMNAME2(prefix,cname) __STRING (prefix) cname ># 212 "/usr/include/sys/cdefs.h" 3 4 >#define __attribute_malloc__ __attribute__ ((__malloc__)) > > > > > > > >#define __attribute_alloc_size__(params) __attribute__ ((__alloc_size__ params)) ># 230 "/usr/include/sys/cdefs.h" 3 4 >#define __attribute_pure__ __attribute__ ((__pure__)) > > > > > > >#define __attribute_const__ __attribute__ ((__const__)) ># 246 "/usr/include/sys/cdefs.h" 3 4 >#define __attribute_used__ __attribute__ ((__used__)) >#define __attribute_noinline__ __attribute__ ((__noinline__)) > > > > > > > >#define __attribute_deprecated__ __attribute__ ((__deprecated__)) ># 267 "/usr/include/sys/cdefs.h" 3 4 >#define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x))) ># 277 "/usr/include/sys/cdefs.h" 3 4 >#define __attribute_format_strfmon__(a,b) __attribute__ ((__format__ (__strfmon__, a, b))) ># 286 "/usr/include/sys/cdefs.h" 3 4 >#define __nonnull(params) __attribute__ ((__nonnull__ params)) > > > > > > > >#define __attribute_warn_unused_result__ __attribute__ ((__warn_unused_result__)) ># 303 "/usr/include/sys/cdefs.h" 3 4 >#define __wur > > > > >#define __always_inline __inline __attribute__ ((__always_inline__)) > > > > > > > >#define __attribute_artificial__ __attribute__ ((__artificial__)) ># 327 "/usr/include/sys/cdefs.h" 3 4 >#define __extern_inline extern __inline __attribute__ ((__gnu_inline__)) >#define __extern_always_inline extern __always_inline __attribute__ ((__gnu_inline__)) ># 342 "/usr/include/sys/cdefs.h" 3 4 >#define __va_arg_pack() __builtin_va_arg_pack () >#define __va_arg_pack_len() __builtin_va_arg_pack_len () ># 366 "/usr/include/sys/cdefs.h" 3 4 >#define __restrict_arr ># 378 "/usr/include/sys/cdefs.h" 3 4 >#define __glibc_unlikely(cond) __builtin_expect ((cond), 0) >#define __glibc_likely(cond) __builtin_expect ((cond), 1) > > > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 386 "/usr/include/sys/cdefs.h" 2 3 4 ># 407 "/usr/include/sys/cdefs.h" 3 4 >#define __LDBL_REDIR1(name,proto,alias) name proto >#define __LDBL_REDIR(name,proto) name proto >#define __LDBL_REDIR1_NTH(name,proto,alias) name proto __THROW >#define __LDBL_REDIR_NTH(name,proto) name proto __THROW >#define __LDBL_REDIR_DECL(name) > >#define __REDIRECT_LDBL(name,proto,alias) __REDIRECT (name, proto, alias) >#define __REDIRECT_NTH_LDBL(name,proto,alias) __REDIRECT_NTH (name, proto, alias) ># 365 "/usr/include/features.h" 2 3 4 ># 388 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 ># 10 "/usr/include/gnu/stubs.h" 3 4 ># 1 "/usr/include/gnu/stubs-64.h" 1 3 4 ># 10 "/usr/include/gnu/stubs-64.h" 3 4 >#define __stub_bdflush >#define __stub_chflags >#define __stub_fattach >#define __stub_fchflags >#define __stub_fdetach >#define __stub_getmsg >#define __stub_gtty >#define __stub_lchmod >#define __stub_putmsg >#define __stub_revoke >#define __stub_setlogin >#define __stub_sigreturn >#define __stub_sstk >#define __stub_stty ># 11 "/usr/include/gnu/stubs.h" 2 3 4 ># 389 "/usr/include/features.h" 2 3 4 ># 40 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/os_defines.h" 2 3 > > > > > >#undef _GLIBCXX_HAVE_GETS ># 2098 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 2 3 > > ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/cpu_defines.h" 1 3 ># 31 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/cpu_defines.h" 3 >#define _GLIBCXX_CPU_DEFINES 1 ># 2101 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 2 3 > > > > >#define _GLIBCXX_PSEUDO_VISIBILITY(V) > > > > > > >#define _GLIBCXX_WEAK_DEFINITION ># 2123 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_FAST_MATH 0 > > > > > > >#define __N(msgid) (msgid) > > >#undef min >#undef max > > > > > > >#define _GLIBCXX_HAVE_ACOSF 1 > > >#define _GLIBCXX_HAVE_ACOSL 1 > > >#define _GLIBCXX_HAVE_ASINF 1 > > >#define _GLIBCXX_HAVE_ASINL 1 > > >#define _GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE 1 > > >#define _GLIBCXX_HAVE_ATAN2F 1 > > >#define _GLIBCXX_HAVE_ATAN2L 1 > > >#define _GLIBCXX_HAVE_ATANF 1 > > >#define _GLIBCXX_HAVE_ATANL 1 > > >#define _GLIBCXX_HAVE_AT_QUICK_EXIT 1 > > > > > >#define _GLIBCXX_HAVE_CEILF 1 > > >#define _GLIBCXX_HAVE_CEILL 1 > > >#define _GLIBCXX_HAVE_COMPLEX_H 1 > > >#define _GLIBCXX_HAVE_COSF 1 > > >#define _GLIBCXX_HAVE_COSHF 1 > > >#define _GLIBCXX_HAVE_COSHL 1 > > >#define _GLIBCXX_HAVE_COSL 1 > > >#define _GLIBCXX_HAVE_DLFCN_H 1 > > >#define _GLIBCXX_HAVE_EBADMSG 1 > > >#define _GLIBCXX_HAVE_ECANCELED 1 > > >#define _GLIBCXX_HAVE_ECHILD 1 > > >#define _GLIBCXX_HAVE_EIDRM 1 > > >#define _GLIBCXX_HAVE_ENDIAN_H 1 > > >#define _GLIBCXX_HAVE_ENODATA 1 > > >#define _GLIBCXX_HAVE_ENOLINK 1 > > >#define _GLIBCXX_HAVE_ENOSPC 1 > > >#define _GLIBCXX_HAVE_ENOSR 1 > > >#define _GLIBCXX_HAVE_ENOSTR 1 > > >#define _GLIBCXX_HAVE_ENOTRECOVERABLE 1 > > >#define _GLIBCXX_HAVE_ENOTSUP 1 > > >#define _GLIBCXX_HAVE_EOVERFLOW 1 > > >#define _GLIBCXX_HAVE_EOWNERDEAD 1 > > >#define _GLIBCXX_HAVE_EPERM 1 > > >#define _GLIBCXX_HAVE_EPROTO 1 > > >#define _GLIBCXX_HAVE_ETIME 1 > > >#define _GLIBCXX_HAVE_ETIMEDOUT 1 > > >#define _GLIBCXX_HAVE_ETXTBSY 1 > > >#define _GLIBCXX_HAVE_EWOULDBLOCK 1 > > >#define _GLIBCXX_HAVE_EXECINFO_H 1 > > >#define _GLIBCXX_HAVE_EXPF 1 > > >#define _GLIBCXX_HAVE_EXPL 1 > > >#define _GLIBCXX_HAVE_FABSF 1 > > >#define _GLIBCXX_HAVE_FABSL 1 > > >#define _GLIBCXX_HAVE_FENV_H 1 > > >#define _GLIBCXX_HAVE_FINITE 1 > > >#define _GLIBCXX_HAVE_FINITEF 1 > > >#define _GLIBCXX_HAVE_FINITEL 1 > > >#define _GLIBCXX_HAVE_FLOAT_H 1 > > >#define _GLIBCXX_HAVE_FLOORF 1 > > >#define _GLIBCXX_HAVE_FLOORL 1 > > >#define _GLIBCXX_HAVE_FMODF 1 > > >#define _GLIBCXX_HAVE_FMODL 1 ># 2306 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_HAVE_FREXPF 1 > > >#define _GLIBCXX_HAVE_FREXPL 1 > > >#define _GLIBCXX_HAVE_GETIPINFO 1 > > >#define _GLIBCXX_HAVE_GETS 1 > > >#define _GLIBCXX_HAVE_HYPOT 1 > > >#define _GLIBCXX_HAVE_HYPOTF 1 > > >#define _GLIBCXX_HAVE_HYPOTL 1 > > >#define _GLIBCXX_HAVE_ICONV 1 > > > > > >#define _GLIBCXX_HAVE_INT64_T 1 > > >#define _GLIBCXX_HAVE_INT64_T_LONG 1 > > > > > >#define _GLIBCXX_HAVE_INTTYPES_H 1 > > >#define _GLIBCXX_HAVE_ISINF 1 > > >#define _GLIBCXX_HAVE_ISINFF 1 > > >#define _GLIBCXX_HAVE_ISINFL 1 > > >#define _GLIBCXX_HAVE_ISNAN 1 > > >#define _GLIBCXX_HAVE_ISNANF 1 > > >#define _GLIBCXX_HAVE_ISNANL 1 > > >#define _GLIBCXX_HAVE_ISWBLANK 1 > > >#define _GLIBCXX_HAVE_LC_MESSAGES 1 > > >#define _GLIBCXX_HAVE_LDEXPF 1 > > >#define _GLIBCXX_HAVE_LDEXPL 1 > > >#define _GLIBCXX_HAVE_LIBINTL_H 1 > > >#define _GLIBCXX_HAVE_LIMIT_AS 1 > > >#define _GLIBCXX_HAVE_LIMIT_DATA 1 > > >#define _GLIBCXX_HAVE_LIMIT_FSIZE 1 > > >#define _GLIBCXX_HAVE_LIMIT_RSS 1 > > >#define _GLIBCXX_HAVE_LIMIT_VMEM 0 > > >#define _GLIBCXX_HAVE_LINUX_FUTEX 1 > > >#define _GLIBCXX_HAVE_LOCALE_H 1 > > >#define _GLIBCXX_HAVE_LOG10F 1 > > >#define _GLIBCXX_HAVE_LOG10L 1 > > >#define _GLIBCXX_HAVE_LOGF 1 > > >#define _GLIBCXX_HAVE_LOGL 1 ># 2417 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_HAVE_MBSTATE_T 1 > > >#define _GLIBCXX_HAVE_MEMORY_H 1 > > >#define _GLIBCXX_HAVE_MODF 1 > > >#define _GLIBCXX_HAVE_MODFF 1 > > >#define _GLIBCXX_HAVE_MODFL 1 > > > > > >#define _GLIBCXX_HAVE_POLL 1 > > >#define _GLIBCXX_HAVE_POWF 1 > > >#define _GLIBCXX_HAVE_POWL 1 > > > > > >#define _GLIBCXX_HAVE_QUICK_EXIT 1 > > >#define _GLIBCXX_HAVE_SETENV 1 > > >#define _GLIBCXX_HAVE_SINCOS 1 > > >#define _GLIBCXX_HAVE_SINCOSF 1 > > >#define _GLIBCXX_HAVE_SINCOSL 1 > > >#define _GLIBCXX_HAVE_SINF 1 > > >#define _GLIBCXX_HAVE_SINHF 1 > > >#define _GLIBCXX_HAVE_SINHL 1 > > >#define _GLIBCXX_HAVE_SINL 1 > > >#define _GLIBCXX_HAVE_SLEEP 1 > > >#define _GLIBCXX_HAVE_SQRTF 1 > > >#define _GLIBCXX_HAVE_SQRTL 1 > > >#define _GLIBCXX_HAVE_STDALIGN_H 1 > > >#define _GLIBCXX_HAVE_STDBOOL_H 1 > > >#define _GLIBCXX_HAVE_STDINT_H 1 > > >#define _GLIBCXX_HAVE_STDLIB_H 1 > > >#define _GLIBCXX_HAVE_STRERROR_L 1 > > >#define _GLIBCXX_HAVE_STRERROR_R 1 > > >#define _GLIBCXX_HAVE_STRINGS_H 1 > > >#define _GLIBCXX_HAVE_STRING_H 1 > > >#define _GLIBCXX_HAVE_STRTOF 1 > > >#define _GLIBCXX_HAVE_STRTOLD 1 > > >#define _GLIBCXX_HAVE_STRXFRM_L 1 > > > >#define _GLIBCXX_HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1 > > > > > >#define _GLIBCXX_HAVE_SYS_IOCTL_H 1 > > >#define _GLIBCXX_HAVE_SYS_IPC_H 1 ># 2535 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_HAVE_SYS_PARAM_H 1 > > >#define _GLIBCXX_HAVE_SYS_RESOURCE_H 1 > > >#define _GLIBCXX_HAVE_SYS_SDT_H 1 > > >#define _GLIBCXX_HAVE_SYS_SEM_H 1 > > >#define _GLIBCXX_HAVE_SYS_STAT_H 1 > > >#define _GLIBCXX_HAVE_SYS_SYSINFO_H 1 > > >#define _GLIBCXX_HAVE_SYS_TIME_H 1 > > >#define _GLIBCXX_HAVE_SYS_TYPES_H 1 > > >#define _GLIBCXX_HAVE_SYS_UIO_H 1 > > > > > >#define _GLIBCXX_HAVE_S_ISREG 1 > > >#define _GLIBCXX_HAVE_TANF 1 > > >#define _GLIBCXX_HAVE_TANHF 1 > > >#define _GLIBCXX_HAVE_TANHL 1 > > >#define _GLIBCXX_HAVE_TANL 1 > > >#define _GLIBCXX_HAVE_TGMATH_H 1 > > >#define _GLIBCXX_HAVE_TLS 1 > > >#define _GLIBCXX_HAVE_UNISTD_H 1 > > >#define _GLIBCXX_HAVE_USLEEP 1 > > >#define _GLIBCXX_HAVE_VFWSCANF 1 > > >#define _GLIBCXX_HAVE_VSWSCANF 1 > > >#define _GLIBCXX_HAVE_VWSCANF 1 > > >#define _GLIBCXX_HAVE_WCHAR_H 1 > > >#define _GLIBCXX_HAVE_WCSTOF 1 > > >#define _GLIBCXX_HAVE_WCTYPE_H 1 > > > > > >#define _GLIBCXX_HAVE_WRITEV 1 ># 2802 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL 1 > > >#define _GLIBCXX_ICONV_CONST > > > >#define LT_OBJDIR ".libs/" > > > > > >#define _GLIBCXX_PACKAGE_BUGREPORT "" > > >#define _GLIBCXX_PACKAGE_NAME "package-unused" > > >#define _GLIBCXX_PACKAGE_STRING "package-unused version-unused" > > >#define _GLIBCXX_PACKAGE_TARNAME "libstdc++" > > >#define _GLIBCXX_PACKAGE_URL "" > > >#define _GLIBCXX_PACKAGE__GLIBCXX_VERSION "version-unused" ># 2848 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define STDC_HEADERS 1 > > > > > >#define _GLIBCXX_ATOMIC_BUILTINS 1 > > > > > > >#define _GLIBCXX_FULLY_DYNAMIC_STRING 0 > > >#define _GLIBCXX_HAS_GTHREADS 1 > > >#define _GLIBCXX_HOSTED 1 > > > > > > > >#define _GLIBCXX_RES_LIMITS 1 ># 2884 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_STDIO_EOF -1 > > >#define _GLIBCXX_STDIO_SEEK_CUR 1 > > >#define _GLIBCXX_STDIO_SEEK_END 2 > > >#define _GLIBCXX_SYMVER 1 > > > > > >#define _GLIBCXX_SYMVER_GNU 1 ># 2909 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_USE_C99 1 > > > > >#define _GLIBCXX_USE_C99_COMPLEX 1 > > > > >#define _GLIBCXX_USE_C99_COMPLEX_TR1 1 > > > >#define _GLIBCXX_USE_C99_CTYPE_TR1 1 > > > >#define _GLIBCXX_USE_C99_FENV_TR1 1 > > > >#define _GLIBCXX_USE_C99_INTTYPES_TR1 1 > > > >#define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1 1 > > > >#define _GLIBCXX_USE_C99_MATH 1 > > > >#define _GLIBCXX_USE_C99_MATH_TR1 1 > > > >#define _GLIBCXX_USE_C99_STDINT_TR1 1 > > >#define _GLIBCXX_USE_CLOCK_MONOTONIC 1 > > >#define _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL 1 > > >#define _GLIBCXX_USE_CLOCK_REALTIME 1 > > > >#define _GLIBCXX_USE_DECIMAL_FLOAT 1 > > >#define _GLIBCXX_USE_FLOAT128 1 > > >#define _GLIBCXX_USE_GETTIMEOFDAY 1 > > >#define _GLIBCXX_USE_GET_NPROCS 1 > > >#define _GLIBCXX_USE_INT128 1 > > >#define _GLIBCXX_USE_LFS 1 > > >#define _GLIBCXX_USE_LONG_LONG 1 > > > > > >#define _GLIBCXX_USE_NLS 1 > > > > > > >#define _GLIBCXX_USE_RANDOM_TR1 1 > > > > > >#define _GLIBCXX_USE_SC_NPROCESSORS_ONLN 1 ># 3006 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h" 3 >#define _GLIBCXX_USE_WCHAR_T 1 > > >#define _GLIBCXX_VERBOSE 1 > > >#define _GLIBCXX_X86_RDRAND 1 > > >#define _GTHREAD_USE_MUTEX_TIMEDLOCK 1 ># 43 "/usr/include/c++/4.8.2/limits" 2 3 ># 80 "/usr/include/c++/4.8.2/limits" 3 >#define __glibcxx_integral_traps true ># 89 "/usr/include/c++/4.8.2/limits" 3 >#define __glibcxx_float_has_denorm_loss false > > >#define __glibcxx_float_traps false > > >#define __glibcxx_float_tinyness_before false > > > > > > > >#define __glibcxx_double_has_denorm_loss false > > >#define __glibcxx_double_traps false > > >#define __glibcxx_double_tinyness_before false > > > > > > > >#define __glibcxx_long_double_has_denorm_loss false > > >#define __glibcxx_long_double_traps false > > >#define __glibcxx_long_double_tinyness_before false > > > > >#define __glibcxx_signed(T) ((T)(-1) < 0) > >#define __glibcxx_min(T) (__glibcxx_signed (T) ? -__glibcxx_max (T) - 1 : (T)0) > > >#define __glibcxx_max(T) (__glibcxx_signed (T) ? (((((T)1 << (__glibcxx_digits (T) - 1)) - 1) << 1) + 1) : ~(T)0) > > > >#define __glibcxx_digits(T) (sizeof(T) * __CHAR_BIT__ - __glibcxx_signed (T)) > > > >#define __glibcxx_digits10(T) (__glibcxx_digits (T) * 643L / 2136) > > >#define __glibcxx_max_digits10(T) (2 + (T) * 643L / 2136) > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > > > > enum float_round_style > { > round_indeterminate = -1, > round_toward_zero = 0, > round_to_nearest = 1, > round_toward_infinity = 2, > round_toward_neg_infinity = 3 > }; > > > > > > > > enum float_denorm_style > { > > denorm_indeterminate = -1, > > denorm_absent = 0, > > denorm_present = 1 > }; ># 191 "/usr/include/c++/4.8.2/limits" 3 > struct __numeric_limits_base > { > > > static const bool is_specialized = false; > > > > > static const int digits = 0; > > > static const int digits10 = 0; ># 212 "/usr/include/c++/4.8.2/limits" 3 > static const bool is_signed = false; > > > static const bool is_integer = false; > > > > > static const bool is_exact = false; > > > > static const int radix = 0; > > > > static const int min_exponent = 0; > > > > static const int min_exponent10 = 0; > > > > > static const int max_exponent = 0; > > > > static const int max_exponent10 = 0; > > > static const bool has_infinity = false; > > > > static const bool has_quiet_NaN = false; > > > > static const bool has_signaling_NaN = false; > > > static const float_denorm_style has_denorm = denorm_absent; > > > > static const bool has_denorm_loss = false; > > > > static const bool is_iec559 = false; > > > > > static const bool is_bounded = false; ># 277 "/usr/include/c++/4.8.2/limits" 3 > static const bool is_modulo = false; > > > static const bool traps = false; > > > static const bool tinyness_before = false; > > > > > static const float_round_style round_style = > round_toward_zero; > }; ># 303 "/usr/include/c++/4.8.2/limits" 3 > template<typename _Tp> > struct numeric_limits : public __numeric_limits_base > { > > > static _Tp > min() throw() { return _Tp(); } > > > static _Tp > max() throw() { return _Tp(); } ># 324 "/usr/include/c++/4.8.2/limits" 3 > static _Tp > epsilon() throw() { return _Tp(); } > > > static _Tp > round_error() throw() { return _Tp(); } > > > static _Tp > infinity() throw() { return _Tp(); } > > > > static _Tp > quiet_NaN() throw() { return _Tp(); } > > > > static _Tp > signaling_NaN() throw() { return _Tp(); } > > > > > static _Tp > denorm_min() throw() { return _Tp(); } > }; ># 370 "/usr/include/c++/4.8.2/limits" 3 > template<> > struct numeric_limits<bool> > { > static const bool is_specialized = true; > > static bool > min() throw() { return false; } > > static bool > max() throw() { return true; } > > > > > > static const int digits = 1; > static const int digits10 = 0; > > > > static const bool is_signed = false; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static bool > epsilon() throw() { return false; } > > static bool > round_error() throw() { return false; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static bool > infinity() throw() { return false; } > > static bool > quiet_NaN() throw() { return false; } > > static bool > signaling_NaN() throw() { return false; } > > static bool > denorm_min() throw() { return false; } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = false; > > > > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<char> > { > static const bool is_specialized = true; > > static char > min() throw() { return (((char)(-1) < 0) ? -(((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0) - 1 : (char)0); } > > static char > max() throw() { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } > > > > > > > static const int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); > static const int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = ((char)(-1) < 0); > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static char > epsilon() throw() { return 0; } > > static char > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static > char infinity() throw() { return char(); } > > static char > quiet_NaN() throw() { return char(); } > > static char > signaling_NaN() throw() { return char(); } > > static char > denorm_min() throw() { return static_cast<char>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = !is_signed; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<signed char> > { > static const bool is_specialized = true; > > static signed char > min() throw() { return -127 - 1; } > > static signed char > max() throw() { return 127; } > > > > > > > static const int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); > static const int digits10 > = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = true; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static signed char > epsilon() throw() { return 0; } > > static signed char > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static signed char > infinity() throw() { return static_cast<signed char>(0); } > > static signed char > quiet_NaN() throw() { return static_cast<signed char>(0); } > > static signed char > signaling_NaN() throw() > { return static_cast<signed char>(0); } > > static signed char > denorm_min() throw() > { return static_cast<signed char>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = false; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<unsigned char> > { > static const bool is_specialized = true; > > static unsigned char > min() throw() { return 0; } > > static unsigned char > max() throw() { return 127 * 2U + 1; } > > > > > > > static const int digits > = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); > static const int digits10 > = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = false; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static unsigned char > epsilon() throw() { return 0; } > > static unsigned char > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static unsigned char > infinity() throw() > { return static_cast<unsigned char>(0); } > > static unsigned char > quiet_NaN() throw() > { return static_cast<unsigned char>(0); } > > static unsigned char > signaling_NaN() throw() > { return static_cast<unsigned char>(0); } > > static unsigned char > denorm_min() throw() > { return static_cast<unsigned char>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = true; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<wchar_t> > { > static const bool is_specialized = true; > > static wchar_t > min() throw() { return (((wchar_t)(-1) < 0) ? -(((wchar_t)(-1) < 0) ? (((((wchar_t)1 << ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(wchar_t)0) - 1 : (wchar_t)0); } > > static wchar_t > max() throw() { return (((wchar_t)(-1) < 0) ? (((((wchar_t)1 << ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(wchar_t)0); } > > > > > > > static const int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); > static const int digits10 > = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = ((wchar_t)(-1) < 0); > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static wchar_t > epsilon() throw() { return 0; } > > static wchar_t > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static wchar_t > infinity() throw() { return wchar_t(); } > > static wchar_t > quiet_NaN() throw() { return wchar_t(); } > > static wchar_t > signaling_NaN() throw() { return wchar_t(); } > > static wchar_t > denorm_min() throw() { return wchar_t(); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = !is_signed; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; ># 841 "/usr/include/c++/4.8.2/limits" 3 > template<> > struct numeric_limits<short> > { > static const bool is_specialized = true; > > static short > min() throw() { return -32767 - 1; } > > static short > max() throw() { return 32767; } > > > > > > > static const int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); > static const int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = true; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static short > epsilon() throw() { return 0; } > > static short > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static short > infinity() throw() { return short(); } > > static short > quiet_NaN() throw() { return short(); } > > static short > signaling_NaN() throw() { return short(); } > > static short > denorm_min() throw() { return short(); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = false; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<unsigned short> > { > static const bool is_specialized = true; > > static unsigned short > min() throw() { return 0; } > > static unsigned short > max() throw() { return 32767 * 2U + 1; } > > > > > > > static const int digits > = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); > static const int digits10 > = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = false; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static unsigned short > epsilon() throw() { return 0; } > > static unsigned short > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static unsigned short > infinity() throw() > { return static_cast<unsigned short>(0); } > > static unsigned short > quiet_NaN() throw() > { return static_cast<unsigned short>(0); } > > static unsigned short > signaling_NaN() throw() > { return static_cast<unsigned short>(0); } > > static unsigned short > denorm_min() throw() > { return static_cast<unsigned short>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = true; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<int> > { > static const bool is_specialized = true; > > static int > min() throw() { return -2147483647 - 1; } > > static int > max() throw() { return 2147483647; } > > > > > > > static const int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); > static const int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = true; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static int > epsilon() throw() { return 0; } > > static int > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static int > infinity() throw() { return static_cast<int>(0); } > > static int > quiet_NaN() throw() { return static_cast<int>(0); } > > static int > signaling_NaN() throw() { return static_cast<int>(0); } > > static int > denorm_min() throw() { return static_cast<int>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = false; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<unsigned int> > { > static const bool is_specialized = true; > > static unsigned int > min() throw() { return 0; } > > static unsigned int > max() throw() { return 2147483647 * 2U + 1; } > > > > > > > static const int digits > = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); > static const int digits10 > = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = false; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static unsigned int > epsilon() throw() { return 0; } > > static unsigned int > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static unsigned int > infinity() throw() { return static_cast<unsigned int>(0); } > > static unsigned int > quiet_NaN() throw() > { return static_cast<unsigned int>(0); } > > static unsigned int > signaling_NaN() throw() > { return static_cast<unsigned int>(0); } > > static unsigned int > denorm_min() throw() > { return static_cast<unsigned int>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = true; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<long> > { > static const bool is_specialized = true; > > static long > min() throw() { return -9223372036854775807L - 1; } > > static long > max() throw() { return 9223372036854775807L; } > > > > > > > static const int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); > static const int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = true; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static long > epsilon() throw() { return 0; } > > static long > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static long > infinity() throw() { return static_cast<long>(0); } > > static long > quiet_NaN() throw() { return static_cast<long>(0); } > > static long > signaling_NaN() throw() { return static_cast<long>(0); } > > static long > denorm_min() throw() { return static_cast<long>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = false; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<unsigned long> > { > static const bool is_specialized = true; > > static unsigned long > min() throw() { return 0; } > > static unsigned long > max() throw() { return 9223372036854775807L * 2UL + 1; } > > > > > > > static const int digits > = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); > static const int digits10 > = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = false; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static unsigned long > epsilon() throw() { return 0; } > > static unsigned long > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static unsigned long > infinity() throw() > { return static_cast<unsigned long>(0); } > > static unsigned long > quiet_NaN() throw() > { return static_cast<unsigned long>(0); } > > static unsigned long > signaling_NaN() throw() > { return static_cast<unsigned long>(0); } > > static unsigned long > denorm_min() throw() > { return static_cast<unsigned long>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = true; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<long long> > { > static const bool is_specialized = true; > > static long long > min() throw() { return -9223372036854775807LL - 1; } > > static long long > max() throw() { return 9223372036854775807LL; } > > > > > > > static const int digits > = (sizeof(long long) * 8 - ((long long)(-1) < 0)); > static const int digits10 > = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = true; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static long long > epsilon() throw() { return 0; } > > static long long > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static long long > infinity() throw() { return static_cast<long long>(0); } > > static long long > quiet_NaN() throw() { return static_cast<long long>(0); } > > static long long > signaling_NaN() throw() > { return static_cast<long long>(0); } > > static long long > denorm_min() throw() { return static_cast<long long>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = false; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<unsigned long long> > { > static const bool is_specialized = true; > > static unsigned long long > min() throw() { return 0; } > > static unsigned long long > max() throw() { return 9223372036854775807LL * 2ULL + 1; } > > > > > > > static const int digits > = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); > static const int digits10 > = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = false; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static unsigned long long > epsilon() throw() { return 0; } > > static unsigned long long > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static unsigned long long > infinity() throw() > { return static_cast<unsigned long long>(0); } > > static unsigned long long > quiet_NaN() throw() > { return static_cast<unsigned long long>(0); } > > static unsigned long long > signaling_NaN() throw() > { return static_cast<unsigned long long>(0); } > > static unsigned long long > denorm_min() throw() > { return static_cast<unsigned long long>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = true; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > > template<> > struct numeric_limits<__int128> > { > static const bool is_specialized = true; > > static __int128 > min() throw() { return (((__int128)(-1) < 0) ? -(((__int128)(-1) < 0) ? (((((__int128)1 << ((sizeof(__int128) * 8 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0) - 1 : (__int128)0); } > > static __int128 > max() throw() { return (((__int128)(-1) < 0) ? (((((__int128)1 << ((sizeof(__int128) * 8 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0); } > > > > > > > static const int digits > = (sizeof(__int128) * 8 - ((__int128)(-1) < 0)); > static const int digits10 > = ((sizeof(__int128) * 8 - ((__int128)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = true; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static __int128 > epsilon() throw() { return 0; } > > static __int128 > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static __int128 > infinity() throw() > { return static_cast<__int128>(0); } > > static __int128 > quiet_NaN() throw() > { return static_cast<__int128>(0); } > > static __int128 > signaling_NaN() throw() > { return static_cast<__int128>(0); } > > static __int128 > denorm_min() throw() > { return static_cast<__int128>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = false; > > static const bool traps > = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > template<> > struct numeric_limits<unsigned __int128> > { > static const bool is_specialized = true; > > static unsigned __int128 > min() throw() { return 0; } > > static unsigned __int128 > max() throw() { return (((unsigned __int128)(-1) < 0) ? (((((unsigned __int128)1 << ((sizeof(unsigned __int128) * 8 - ((unsigned __int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(unsigned __int128)0); } > > > > > > > static const int digits > = (sizeof(unsigned __int128) * 8 - ((unsigned __int128)(-1) < 0)); > static const int digits10 > = ((sizeof(unsigned __int128) * 8 - ((unsigned __int128)(-1) < 0)) * 643L / 2136); > > > > static const bool is_signed = false; > static const bool is_integer = true; > static const bool is_exact = true; > static const int radix = 2; > > static unsigned __int128 > epsilon() throw() { return 0; } > > static unsigned __int128 > round_error() throw() { return 0; } > > static const int min_exponent = 0; > static const int min_exponent10 = 0; > static const int max_exponent = 0; > static const int max_exponent10 = 0; > > static const bool has_infinity = false; > static const bool has_quiet_NaN = false; > static const bool has_signaling_NaN = false; > static const float_denorm_style has_denorm > = denorm_absent; > static const bool has_denorm_loss = false; > > static unsigned __int128 > infinity() throw() > { return static_cast<unsigned __int128>(0); } > > static unsigned __int128 > quiet_NaN() throw() > { return static_cast<unsigned __int128>(0); } > > static unsigned __int128 > signaling_NaN() throw() > { return static_cast<unsigned __int128>(0); } > > static unsigned __int128 > denorm_min() throw() > { return static_cast<unsigned __int128>(0); } > > static const bool is_iec559 = false; > static const bool is_bounded = true; > static const bool is_modulo = true; > > static const bool traps = true; > static const bool tinyness_before = false; > static const float_round_style round_style > = round_toward_zero; > }; > > > > template<> > struct numeric_limits<float> > { > static const bool is_specialized = true; > > static float > min() throw() { return 1.17549435082228750797e-38F; } > > static float > max() throw() { return 3.40282346638528859812e+38F; } > > > > > > > static const int digits = 24; > static const int digits10 = 6; > > > > > static const bool is_signed = true; > static const bool is_integer = false; > static const bool is_exact = false; > static const int radix = 2; > > static float > epsilon() throw() { return 1.19209289550781250000e-7F; } > > static float > round_error() throw() { return 0.5F; } > > static const int min_exponent = (-125); > static const int min_exponent10 = (-37); > static const int max_exponent = 128; > static const int max_exponent10 = 38; > > static const bool has_infinity = 1; > static const bool has_quiet_NaN = 1; > static const bool has_signaling_NaN = has_quiet_NaN; > static const float_denorm_style has_denorm > = bool(1) ? denorm_present : denorm_absent; > static const bool has_denorm_loss > = false; > > static float > infinity() throw() { return __builtin_huge_valf(); } > > static float > quiet_NaN() throw() { return __builtin_nanf(""); } > > static float > signaling_NaN() throw() { return __builtin_nansf(""); } > > static float > denorm_min() throw() { return 1.40129846432481707092e-45F; } > > static const bool is_iec559 > = has_infinity && has_quiet_NaN && has_denorm == denorm_present; > static const bool is_bounded = true; > static const bool is_modulo = false; > > static const bool traps = false; > static const bool tinyness_before > = false; > static const float_round_style round_style > = round_to_nearest; > }; > >#undef __glibcxx_float_has_denorm_loss >#undef __glibcxx_float_traps >#undef __glibcxx_float_tinyness_before > > > template<> > struct numeric_limits<double> > { > static const bool is_specialized = true; > > static double > min() throw() { return double(2.22507385850720138309e-308L); } > > static double > max() throw() { return double(1.79769313486231570815e+308L); } > > > > > > > static const int digits = 53; > static const int digits10 = 15; > > > > > static const bool is_signed = true; > static const bool is_integer = false; > static const bool is_exact = false; > static const int radix = 2; > > static double > epsilon() throw() { return double(2.22044604925031308085e-16L); } > > static double > round_error() throw() { return 0.5; } > > static const int min_exponent = (-1021); > static const int min_exponent10 = (-307); > static const int max_exponent = 1024; > static const int max_exponent10 = 308; > > static const bool has_infinity = 1; > static const bool has_quiet_NaN = 1; > static const bool has_signaling_NaN = has_quiet_NaN; > static const float_denorm_style has_denorm > = bool(1) ? denorm_present : denorm_absent; > static const bool has_denorm_loss > = false; > > static double > infinity() throw() { return __builtin_huge_val(); } > > static double > quiet_NaN() throw() { return __builtin_nan(""); } > > static double > signaling_NaN() throw() { return __builtin_nans(""); } > > static double > denorm_min() throw() { return double(4.94065645841246544177e-324L); } > > static const bool is_iec559 > = has_infinity && has_quiet_NaN && has_denorm == denorm_present; > static const bool is_bounded = true; > static const bool is_modulo = false; > > static const bool traps = false; > static const bool tinyness_before > = false; > static const float_round_style round_style > = round_to_nearest; > }; > >#undef __glibcxx_double_has_denorm_loss >#undef __glibcxx_double_traps >#undef __glibcxx_double_tinyness_before > > > template<> > struct numeric_limits<long double> > { > static const bool is_specialized = true; > > static long double > min() throw() { return 3.36210314311209350626e-4932L; } > > static long double > max() throw() { return 1.18973149535723176502e+4932L; } > > > > > > > static const int digits = 64; > static const int digits10 = 18; > > > > > static const bool is_signed = true; > static const bool is_integer = false; > static const bool is_exact = false; > static const int radix = 2; > > static long double > epsilon() throw() { return 1.08420217248550443401e-19L; } > > static long double > round_error() throw() { return 0.5L; } > > static const int min_exponent = (-16381); > static const int min_exponent10 = (-4931); > static const int max_exponent = 16384; > static const int max_exponent10 = 4932; > > static const bool has_infinity = 1; > static const bool has_quiet_NaN = 1; > static const bool has_signaling_NaN = has_quiet_NaN; > static const float_denorm_style has_denorm > = bool(1) ? denorm_present : denorm_absent; > static const bool has_denorm_loss > = false; > > static long double > infinity() throw() { return __builtin_huge_vall(); } > > static long double > quiet_NaN() throw() { return __builtin_nanl(""); } > > static long double > signaling_NaN() throw() { return __builtin_nansl(""); } > > static long double > denorm_min() throw() { return 3.64519953188247460253e-4951L; } > > static const bool is_iec559 > = has_infinity && has_quiet_NaN && has_denorm == denorm_present; > static const bool is_bounded = true; > static const bool is_modulo = false; > > static const bool traps = false; > static const bool tinyness_before = > false; > static const float_round_style round_style = > round_to_nearest; > }; > >#undef __glibcxx_long_double_has_denorm_loss >#undef __glibcxx_long_double_traps >#undef __glibcxx_long_double_tinyness_before > > >} > >#undef __glibcxx_signed >#undef __glibcxx_min >#undef __glibcxx_max >#undef __glibcxx_digits >#undef __glibcxx_digits10 >#undef __glibcxx_max_digits10 ># 55 "../gtest_contrib/gtest/gtest.h" 2 ># 1 "/usr/include/c++/4.8.2/vector" 1 3 ># 56 "/usr/include/c++/4.8.2/vector" 3 >#define _GLIBCXX_VECTOR 1 > > ># 59 "/usr/include/c++/4.8.2/vector" 3 > ># 1 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 >#define _STL_ALGOBASE_H 1 > > ># 1 "/usr/include/c++/4.8.2/bits/functexcept.h" 1 3 ># 37 "/usr/include/c++/4.8.2/bits/functexcept.h" 3 >#define _FUNCTEXCEPT_H 1 > > ># 1 "/usr/include/c++/4.8.2/bits/exception_defines.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/exception_defines.h" 3 >#define _EXCEPTION_DEFINES_H 1 ># 40 "/usr/include/c++/4.8.2/bits/exception_defines.h" 3 >#define __try try >#define __catch(X) catch(X) >#define __throw_exception_again throw ># 41 "/usr/include/c++/4.8.2/bits/functexcept.h" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > void > __throw_bad_exception(void) __attribute__((__noreturn__)); > > > void > __throw_bad_alloc(void) __attribute__((__noreturn__)); > > > void > __throw_bad_cast(void) __attribute__((__noreturn__)); > > void > __throw_bad_typeid(void) __attribute__((__noreturn__)); > > > void > __throw_logic_error(const char*) __attribute__((__noreturn__)); > > void > __throw_domain_error(const char*) __attribute__((__noreturn__)); > > void > __throw_invalid_argument(const char*) __attribute__((__noreturn__)); > > void > __throw_length_error(const char*) __attribute__((__noreturn__)); > > void > __throw_out_of_range(const char*) __attribute__((__noreturn__)); > > void > __throw_runtime_error(const char*) __attribute__((__noreturn__)); > > void > __throw_range_error(const char*) __attribute__((__noreturn__)); > > void > __throw_overflow_error(const char*) __attribute__((__noreturn__)); > > void > __throw_underflow_error(const char*) __attribute__((__noreturn__)); > > > void > __throw_ios_failure(const char*) __attribute__((__noreturn__)); > > void > __throw_system_error(int) __attribute__((__noreturn__)); > > void > __throw_future_error(int) __attribute__((__noreturn__)); > > > void > __throw_bad_function_call() __attribute__((__noreturn__)); > > >} ># 61 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/cpp_type_traits.h" 1 3 ># 33 "/usr/include/c++/4.8.2/bits/cpp_type_traits.h" 3 >#define _CPP_TYPE_TRAITS_H 1 > > ># 36 "/usr/include/c++/4.8.2/bits/cpp_type_traits.h" 3 ># 68 "/usr/include/c++/4.8.2/bits/cpp_type_traits.h" 3 >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _Iterator, typename _Container> > class __normal_iterator; > > >} > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > struct __true_type { }; > struct __false_type { }; > > template<bool> > struct __truth_type > { typedef __false_type __type; }; > > template<> > struct __truth_type<true> > { typedef __true_type __type; }; > > > > template<class _Sp, class _Tp> > struct __traitor > { > enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; > typedef typename __truth_type<__value>::__type __type; > }; > > > template<typename, typename> > struct __are_same > { > enum { __value = 0 }; > typedef __false_type __type; > }; > > template<typename _Tp> > struct __are_same<_Tp, _Tp> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > template<typename _Tp> > struct __is_void > { > enum { __value = 0 }; > typedef __false_type __type; > }; > > template<> > struct __is_void<void> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > > > template<typename _Tp> > struct __is_integer > { > enum { __value = 0 }; > typedef __false_type __type; > }; > > > > > template<> > struct __is_integer<bool> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<char> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<signed char> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<unsigned char> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > template<> > struct __is_integer<wchar_t> > { > enum { __value = 1 }; > typedef __true_type __type; > }; ># 198 "/usr/include/c++/4.8.2/bits/cpp_type_traits.h" 3 > template<> > struct __is_integer<short> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<unsigned short> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<int> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<unsigned int> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<long> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<unsigned long> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<long long> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_integer<unsigned long long> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > > > template<typename _Tp> > struct __is_floating > { > enum { __value = 0 }; > typedef __false_type __type; > }; > > > template<> > struct __is_floating<float> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_floating<double> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_floating<long double> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > > > template<typename _Tp> > struct __is_pointer > { > enum { __value = 0 }; > typedef __false_type __type; > }; > > template<typename _Tp> > struct __is_pointer<_Tp*> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > > > template<typename _Tp> > struct __is_normal_iterator > { > enum { __value = 0 }; > typedef __false_type __type; > }; > > template<typename _Iterator, typename _Container> > struct __is_normal_iterator< __gnu_cxx::__normal_iterator<_Iterator, > _Container> > > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > > > template<typename _Tp> > struct __is_arithmetic > : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > > { }; > > > > > template<typename _Tp> > struct __is_fundamental > : public __traitor<__is_void<_Tp>, __is_arithmetic<_Tp> > > { }; > > > > > template<typename _Tp> > struct __is_scalar > : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > > { }; > > > > > template<typename _Tp> > struct __is_char > { > enum { __value = 0 }; > typedef __false_type __type; > }; > > template<> > struct __is_char<char> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > template<> > struct __is_char<wchar_t> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > template<typename _Tp> > struct __is_byte > { > enum { __value = 0 }; > typedef __false_type __type; > }; > > template<> > struct __is_byte<char> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_byte<signed char> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > template<> > struct __is_byte<unsigned char> > { > enum { __value = 1 }; > typedef __true_type __type; > }; > > > > > template<typename _Tp> > struct __is_move_iterator > { > enum { __value = 0 }; > typedef __false_type __type; > }; ># 421 "/usr/include/c++/4.8.2/bits/cpp_type_traits.h" 3 > >} ># 62 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 2 3 ># 1 "/usr/include/c++/4.8.2/ext/type_traits.h" 1 3 ># 30 "/usr/include/c++/4.8.2/ext/type_traits.h" 3 >#define _EXT_TYPE_TRAITS 1 > > ># 33 "/usr/include/c++/4.8.2/ext/type_traits.h" 3 > > > > >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > > > > template<bool, typename> > struct __enable_if > { }; > > template<typename _Tp> > struct __enable_if<true, _Tp> > { typedef _Tp __type; }; > > > > template<bool _Cond, typename _Iftrue, typename _Iffalse> > struct __conditional_type > { typedef _Iftrue __type; }; > > template<typename _Iftrue, typename _Iffalse> > struct __conditional_type<false, _Iftrue, _Iffalse> > { typedef _Iffalse __type; }; > > > > template<typename _Tp> > struct __add_unsigned > { > private: > typedef __enable_if<std::__is_integer<_Tp>::__value, _Tp> __if_type; > > public: > typedef typename __if_type::__type __type; > }; > > template<> > struct __add_unsigned<char> > { typedef unsigned char __type; }; > > template<> > struct __add_unsigned<signed char> > { typedef unsigned char __type; }; > > template<> > struct __add_unsigned<short> > { typedef unsigned short __type; }; > > template<> > struct __add_unsigned<int> > { typedef unsigned int __type; }; > > template<> > struct __add_unsigned<long> > { typedef unsigned long __type; }; > > template<> > struct __add_unsigned<long long> > { typedef unsigned long long __type; }; > > > template<> > struct __add_unsigned<bool>; > > template<> > struct __add_unsigned<wchar_t>; > > > > template<typename _Tp> > struct __remove_unsigned > { > private: > typedef __enable_if<std::__is_integer<_Tp>::__value, _Tp> __if_type; > > public: > typedef typename __if_type::__type __type; > }; > > template<> > struct __remove_unsigned<char> > { typedef signed char __type; }; > > template<> > struct __remove_unsigned<unsigned char> > { typedef signed char __type; }; > > template<> > struct __remove_unsigned<unsigned short> > { typedef short __type; }; > > template<> > struct __remove_unsigned<unsigned int> > { typedef int __type; }; > > template<> > struct __remove_unsigned<unsigned long> > { typedef long __type; }; > > template<> > struct __remove_unsigned<unsigned long long> > { typedef long long __type; }; > > > template<> > struct __remove_unsigned<bool>; > > template<> > struct __remove_unsigned<wchar_t>; > > > > template<typename _Type> > inline bool > __is_null_pointer(_Type* __ptr) > { return __ptr == 0; } > > template<typename _Type> > inline bool > __is_null_pointer(_Type) > { return false; } > > > > template<typename _Tp, bool = std::__is_integer<_Tp>::__value> > struct __promote > { typedef double __type; }; > > > > > template<typename _Tp> > struct __promote<_Tp, false> > { }; > > template<> > struct __promote<long double> > { typedef long double __type; }; > > template<> > struct __promote<double> > { typedef double __type; }; > > template<> > struct __promote<float> > { typedef float __type; }; > > template<typename _Tp, typename _Up, > typename _Tp2 = typename __promote<_Tp>::__type, > typename _Up2 = typename __promote<_Up>::__type> > struct __promote_2 > { > typedef __typeof__(_Tp2() + _Up2()) __type; > }; > > template<typename _Tp, typename _Up, typename _Vp, > typename _Tp2 = typename __promote<_Tp>::__type, > typename _Up2 = typename __promote<_Up>::__type, > typename _Vp2 = typename __promote<_Vp>::__type> > struct __promote_3 > { > typedef __typeof__(_Tp2() + _Up2() + _Vp2()) __type; > }; > > template<typename _Tp, typename _Up, typename _Vp, typename _Wp, > typename _Tp2 = typename __promote<_Tp>::__type, > typename _Up2 = typename __promote<_Up>::__type, > typename _Vp2 = typename __promote<_Vp>::__type, > typename _Wp2 = typename __promote<_Wp>::__type> > struct __promote_4 > { > typedef __typeof__(_Tp2() + _Up2() + _Vp2() + _Wp2()) __type; > }; > > >} ># 63 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 2 3 ># 1 "/usr/include/c++/4.8.2/ext/numeric_traits.h" 1 3 ># 30 "/usr/include/c++/4.8.2/ext/numeric_traits.h" 3 >#define _EXT_NUMERIC_TRAITS 1 > > ># 33 "/usr/include/c++/4.8.2/ext/numeric_traits.h" 3 > > > > >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > > > > >#define __glibcxx_signed(_Tp) ((_Tp)(-1) < 0) >#define __glibcxx_digits(_Tp) (sizeof(_Tp) * __CHAR_BIT__ - __glibcxx_signed(_Tp)) > > >#define __glibcxx_min(_Tp) (__glibcxx_signed(_Tp) ? (_Tp)1 << __glibcxx_digits(_Tp) : (_Tp)0) > > >#define __glibcxx_max(_Tp) (__glibcxx_signed(_Tp) ? (((((_Tp)1 << (__glibcxx_digits(_Tp) - 1)) - 1) << 1) + 1) : ~(_Tp)0) > > > > template<typename _Value> > struct __numeric_traits_integer > { > > static const _Value __min = (((_Value)(-1) < 0) ? (_Value)1 << (sizeof(_Value) * 8 - ((_Value)(-1) < 0)) : (_Value)0); > static const _Value __max = (((_Value)(-1) < 0) ? (((((_Value)1 << ((sizeof(_Value) * 8 - ((_Value)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(_Value)0); > > > > static const bool __is_signed = ((_Value)(-1) < 0); > static const int __digits = (sizeof(_Value) * 8 - ((_Value)(-1) < 0)); > }; > > template<typename _Value> > const _Value __numeric_traits_integer<_Value>::__min; > > template<typename _Value> > const _Value __numeric_traits_integer<_Value>::__max; > > template<typename _Value> > const bool __numeric_traits_integer<_Value>::__is_signed; > > template<typename _Value> > const int __numeric_traits_integer<_Value>::__digits; > >#undef __glibcxx_signed >#undef __glibcxx_digits >#undef __glibcxx_min >#undef __glibcxx_max > >#define __glibcxx_floating(_Tp,_Fval,_Dval,_LDval) (std::__are_same<_Tp, float>::__value ? _Fval : std::__are_same<_Tp, double>::__value ? _Dval : _LDval) > > > >#define __glibcxx_max_digits10(_Tp) (2 + __glibcxx_floating(_Tp, __FLT_MANT_DIG__, __DBL_MANT_DIG__, __LDBL_MANT_DIG__) * 643L / 2136) > > > >#define __glibcxx_digits10(_Tp) __glibcxx_floating(_Tp, __FLT_DIG__, __DBL_DIG__, __LDBL_DIG__) > > >#define __glibcxx_max_exponent10(_Tp) __glibcxx_floating(_Tp, __FLT_MAX_10_EXP__, __DBL_MAX_10_EXP__, __LDBL_MAX_10_EXP__) > > > > template<typename _Value> > struct __numeric_traits_floating > { > > static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 64) * 643L / 2136); > > > static const bool __is_signed = true; > static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 18); > static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 4932); > }; > > template<typename _Value> > const int __numeric_traits_floating<_Value>::__max_digits10; > > template<typename _Value> > const bool __numeric_traits_floating<_Value>::__is_signed; > > template<typename _Value> > const int __numeric_traits_floating<_Value>::__digits10; > > template<typename _Value> > const int __numeric_traits_floating<_Value>::__max_exponent10; > > template<typename _Value> > struct __numeric_traits > : public __conditional_type<std::__is_integer<_Value>::__value, > __numeric_traits_integer<_Value>, > __numeric_traits_floating<_Value> >::__type > { }; > > >} > >#undef __glibcxx_floating >#undef __glibcxx_max_digits10 >#undef __glibcxx_digits10 >#undef __glibcxx_max_exponent10 ># 64 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_pair.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_pair.h" 3 >#define _STL_PAIR_H 1 > ># 1 "/usr/include/c++/4.8.2/bits/move.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/move.h" 3 >#define _MOVE_H 1 > > ># 1 "/usr/include/c++/4.8.2/bits/concept_check.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/concept_check.h" 3 >#define _CONCEPT_CHECK_H 1 > > ># 34 "/usr/include/c++/4.8.2/bits/concept_check.h" 3 ># 47 "/usr/include/c++/4.8.2/bits/concept_check.h" 3 >#define __glibcxx_function_requires(...) >#define __glibcxx_class_requires(_a,_b) >#define __glibcxx_class_requires2(_a,_b,_c) >#define __glibcxx_class_requires3(_a,_b,_c,_d) >#define __glibcxx_class_requires4(_a,_b,_c,_d,_e) ># 35 "/usr/include/c++/4.8.2/bits/move.h" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > > > > template<typename _Tp> > inline _Tp* > __addressof(_Tp& __r) > { > return reinterpret_cast<_Tp*> > (&const_cast<char&>(reinterpret_cast<const volatile char&>(__r))); > } > > >} ># 145 "/usr/include/c++/4.8.2/bits/move.h" 3 >#define _GLIBCXX_MOVE(__val) (__val) >#define _GLIBCXX_FORWARD(_Tp,__val) (__val) > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 164 "/usr/include/c++/4.8.2/bits/move.h" 3 > template<typename _Tp> > inline void > swap(_Tp& __a, _Tp& __b) > > > > > { > > > > _Tp __tmp = (__a); > __a = (__b); > __b = (__tmp); > } > > > > > template<typename _Tp, size_t _Nm> > inline void > swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) > > > > { > for (size_t __n = 0; __n < _Nm; ++__n) > swap(__a[__n], __b[__n]); > } > > > >} ># 60 "/usr/include/c++/4.8.2/bits/stl_pair.h" 2 3 > > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 95 "/usr/include/c++/4.8.2/bits/stl_pair.h" 3 > template<class _T1, class _T2> > struct pair > { > typedef _T1 first_type; > typedef _T2 second_type; > > _T1 first; > _T2 second; > > > > > > pair() > : first(), second() { } > > > pair(const _T1& __a, const _T2& __b) > : first(__a), second(__b) { } > > > > template<class _U1, class _U2> > pair(const pair<_U1, _U2>& __p) > : first(__p.first), second(__p.second) { } ># 209 "/usr/include/c++/4.8.2/bits/stl_pair.h" 3 > }; > > > template<class _T1, class _T2> > inline bool > operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) > { return __x.first == __y.first && __x.second == __y.second; } > > > template<class _T1, class _T2> > inline bool > operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) > { return __x.first < __y.first > || (!(__y.first < __x.first) && __x.second < __y.second); } > > > template<class _T1, class _T2> > inline bool > operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) > { return !(__x == __y); } > > > template<class _T1, class _T2> > inline bool > operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) > { return __y < __x; } > > > template<class _T1, class _T2> > inline bool > operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) > { return !(__y < __x); } > > > template<class _T1, class _T2> > inline bool > operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) > { return !(__x < __y); } ># 284 "/usr/include/c++/4.8.2/bits/stl_pair.h" 3 > template<class _T1, class _T2> > inline pair<_T1, _T2> > make_pair(_T1 __x, _T2 __y) > { return pair<_T1, _T2>(__x, __y); } > > > > > >} ># 65 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_iterator_base_types.h" 1 3 ># 60 "/usr/include/c++/4.8.2/bits/stl_iterator_base_types.h" 3 >#define _STL_ITERATOR_BASE_TYPES_H 1 > > ># 63 "/usr/include/c++/4.8.2/bits/stl_iterator_base_types.h" 3 > > > > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 89 "/usr/include/c++/4.8.2/bits/stl_iterator_base_types.h" 3 > struct input_iterator_tag { }; > > > struct output_iterator_tag { }; > > > struct forward_iterator_tag : public input_iterator_tag { }; > > > > struct bidirectional_iterator_tag : public forward_iterator_tag { }; > > > > struct random_access_iterator_tag : public bidirectional_iterator_tag { }; ># 116 "/usr/include/c++/4.8.2/bits/stl_iterator_base_types.h" 3 > template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t, > typename _Pointer = _Tp*, typename _Reference = _Tp&> > struct iterator > { > > typedef _Category iterator_category; > > typedef _Tp value_type; > > typedef _Distance difference_type; > > typedef _Pointer pointer; > > typedef _Reference reference; > }; ># 162 "/usr/include/c++/4.8.2/bits/stl_iterator_base_types.h" 3 > template<typename _Iterator> > struct iterator_traits > { > typedef typename _Iterator::iterator_category iterator_category; > typedef typename _Iterator::value_type value_type; > typedef typename _Iterator::difference_type difference_type; > typedef typename _Iterator::pointer pointer; > typedef typename _Iterator::reference reference; > }; > > > > template<typename _Tp> > struct iterator_traits<_Tp*> > { > typedef random_access_iterator_tag iterator_category; > typedef _Tp value_type; > typedef ptrdiff_t difference_type; > typedef _Tp* pointer; > typedef _Tp& reference; > }; > > > template<typename _Tp> > struct iterator_traits<const _Tp*> > { > typedef random_access_iterator_tag iterator_category; > typedef _Tp value_type; > typedef ptrdiff_t difference_type; > typedef const _Tp* pointer; > typedef const _Tp& reference; > }; > > > > > > template<typename _Iter> > inline typename iterator_traits<_Iter>::iterator_category > __iterator_category(const _Iter&) > { return typename iterator_traits<_Iter>::iterator_category(); } > > > > > > template<typename _Iterator, bool _HasBase> > struct _Iter_base > { > typedef _Iterator iterator_type; > static iterator_type _S_base(_Iterator __it) > { return __it; } > }; > > template<typename _Iterator> > struct _Iter_base<_Iterator, true> > { > typedef typename _Iterator::iterator_type iterator_type; > static iterator_type _S_base(_Iterator __it) > { return __it.base(); } > }; ># 232 "/usr/include/c++/4.8.2/bits/stl_iterator_base_types.h" 3 > >} ># 66 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_iterator_base_funcs.h" 1 3 ># 60 "/usr/include/c++/4.8.2/bits/stl_iterator_base_funcs.h" 3 >#define _STL_ITERATOR_BASE_FUNCS_H 1 > > ># 63 "/usr/include/c++/4.8.2/bits/stl_iterator_base_funcs.h" 3 > > ># 1 "/usr/include/c++/4.8.2/debug/debug.h" 1 3 ># 30 "/usr/include/c++/4.8.2/debug/debug.h" 3 >#define _GLIBCXX_DEBUG_MACRO_SWITCH_H 1 ># 46 "/usr/include/c++/4.8.2/debug/debug.h" 3 >namespace std >{ > namespace __debug { } >} > > > > >namespace __gnu_debug >{ > using namespace std::__debug; >} > > > >#define _GLIBCXX_DEBUG_ASSERT(_Condition) >#define _GLIBCXX_DEBUG_PEDASSERT(_Condition) >#define _GLIBCXX_DEBUG_ONLY(_Statement) ; >#define __glibcxx_requires_cond(_Cond,_Msg) >#define __glibcxx_requires_valid_range(_First,_Last) >#define __glibcxx_requires_non_empty_range(_First,_Last) >#define __glibcxx_requires_sorted(_First,_Last) >#define __glibcxx_requires_sorted_pred(_First,_Last,_Pred) >#define __glibcxx_requires_sorted_set(_First1,_Last1,_First2) >#define __glibcxx_requires_sorted_set_pred(_First1,_Last1,_First2,_Pred) >#define __glibcxx_requires_partitioned_lower(_First,_Last,_Value) >#define __glibcxx_requires_partitioned_upper(_First,_Last,_Value) >#define __glibcxx_requires_partitioned_lower_pred(_First,_Last,_Value,_Pred) >#define __glibcxx_requires_partitioned_upper_pred(_First,_Last,_Value,_Pred) >#define __glibcxx_requires_heap(_First,_Last) >#define __glibcxx_requires_heap_pred(_First,_Last,_Pred) >#define __glibcxx_requires_nonempty() >#define __glibcxx_requires_string(_String) >#define __glibcxx_requires_string_len(_String,_Len) >#define __glibcxx_requires_subscript(_N) ># 66 "/usr/include/c++/4.8.2/bits/stl_iterator_base_funcs.h" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _InputIterator> > inline typename iterator_traits<_InputIterator>::difference_type > __distance(_InputIterator __first, _InputIterator __last, > input_iterator_tag) > { > > > > typename iterator_traits<_InputIterator>::difference_type __n = 0; > while (__first != __last) > { > ++__first; > ++__n; > } > return __n; > } > > template<typename _RandomAccessIterator> > inline typename iterator_traits<_RandomAccessIterator>::difference_type > __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, > random_access_iterator_tag) > { > > > > return __last - __first; > } ># 112 "/usr/include/c++/4.8.2/bits/stl_iterator_base_funcs.h" 3 > template<typename _InputIterator> > inline typename iterator_traits<_InputIterator>::difference_type > distance(_InputIterator __first, _InputIterator __last) > { > > return std::__distance(__first, __last, > std::__iterator_category(__first)); > } > > template<typename _InputIterator, typename _Distance> > inline void > __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) > { > > > ; > while (__n--) > ++__i; > } > > template<typename _BidirectionalIterator, typename _Distance> > inline void > __advance(_BidirectionalIterator& __i, _Distance __n, > bidirectional_iterator_tag) > { > > > > if (__n > 0) > while (__n--) > ++__i; > else > while (__n++) > --__i; > } > > template<typename _RandomAccessIterator, typename _Distance> > inline void > __advance(_RandomAccessIterator& __i, _Distance __n, > random_access_iterator_tag) > { > > > > __i += __n; > } ># 171 "/usr/include/c++/4.8.2/bits/stl_iterator_base_funcs.h" 3 > template<typename _InputIterator, typename _Distance> > inline void > advance(_InputIterator& __i, _Distance __n) > { > > typename iterator_traits<_InputIterator>::difference_type __d = __n; > std::__advance(__i, __d, std::__iterator_category(__i)); > } ># 202 "/usr/include/c++/4.8.2/bits/stl_iterator_base_funcs.h" 3 > >} ># 67 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 1 3 ># 61 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 >#define _STL_ITERATOR_H 1 > > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 95 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > template<typename _Iterator> > class reverse_iterator > : public iterator<typename iterator_traits<_Iterator>::iterator_category, > typename iterator_traits<_Iterator>::value_type, > typename iterator_traits<_Iterator>::difference_type, > typename iterator_traits<_Iterator>::pointer, > typename iterator_traits<_Iterator>::reference> > { > protected: > _Iterator current; > > typedef iterator_traits<_Iterator> __traits_type; > > public: > typedef _Iterator iterator_type; > typedef typename __traits_type::difference_type difference_type; > typedef typename __traits_type::pointer pointer; > typedef typename __traits_type::reference reference; > > > > > > > > reverse_iterator() : current() { } > > > > > explicit > reverse_iterator(iterator_type __x) : current(__x) { } > > > > > reverse_iterator(const reverse_iterator& __x) > : current(__x.current) { } > > > > > > template<typename _Iter> > reverse_iterator(const reverse_iterator<_Iter>& __x) > : current(__x.base()) { } > > > > > iterator_type > base() const > { return current; } ># 159 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > reference > operator*() const > { > _Iterator __tmp = current; > return *--__tmp; > } > > > > > > > pointer > operator->() const > { return &(operator*()); } > > > > > > > reverse_iterator& > operator++() > { > --current; > return *this; > } > > > > > > > reverse_iterator > operator++(int) > { > reverse_iterator __tmp = *this; > --current; > return __tmp; > } > > > > > > > reverse_iterator& > operator--() > { > ++current; > return *this; > } > > > > > > > reverse_iterator > operator--(int) > { > reverse_iterator __tmp = *this; > ++current; > return __tmp; > } > > > > > > > reverse_iterator > operator+(difference_type __n) const > { return reverse_iterator(current - __n); } > > > > > > > > reverse_iterator& > operator+=(difference_type __n) > { > current -= __n; > return *this; > } > > > > > > > reverse_iterator > operator-(difference_type __n) const > { return reverse_iterator(current + __n); } > > > > > > > > reverse_iterator& > operator-=(difference_type __n) > { > current += __n; > return *this; > } > > > > > > > reference > operator[](difference_type __n) const > { return *(*this + __n); } > }; ># 289 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > template<typename _Iterator> > inline bool > operator==(const reverse_iterator<_Iterator>& __x, > const reverse_iterator<_Iterator>& __y) > { return __x.base() == __y.base(); } > > template<typename _Iterator> > inline bool > operator<(const reverse_iterator<_Iterator>& __x, > const reverse_iterator<_Iterator>& __y) > { return __y.base() < __x.base(); } > > template<typename _Iterator> > inline bool > operator!=(const reverse_iterator<_Iterator>& __x, > const reverse_iterator<_Iterator>& __y) > { return !(__x == __y); } > > template<typename _Iterator> > inline bool > operator>(const reverse_iterator<_Iterator>& __x, > const reverse_iterator<_Iterator>& __y) > { return __y < __x; } > > template<typename _Iterator> > inline bool > operator<=(const reverse_iterator<_Iterator>& __x, > const reverse_iterator<_Iterator>& __y) > { return !(__y < __x); } > > template<typename _Iterator> > inline bool > operator>=(const reverse_iterator<_Iterator>& __x, > const reverse_iterator<_Iterator>& __y) > { return !(__x < __y); } > > template<typename _Iterator> > inline typename reverse_iterator<_Iterator>::difference_type > operator-(const reverse_iterator<_Iterator>& __x, > const reverse_iterator<_Iterator>& __y) > { return __y.base() - __x.base(); } > > template<typename _Iterator> > inline reverse_iterator<_Iterator> > operator+(typename reverse_iterator<_Iterator>::difference_type __n, > const reverse_iterator<_Iterator>& __x) > { return reverse_iterator<_Iterator>(__x.base() - __n); } > > > > template<typename _IteratorL, typename _IteratorR> > inline bool > operator==(const reverse_iterator<_IteratorL>& __x, > const reverse_iterator<_IteratorR>& __y) > { return __x.base() == __y.base(); } > > template<typename _IteratorL, typename _IteratorR> > inline bool > operator<(const reverse_iterator<_IteratorL>& __x, > const reverse_iterator<_IteratorR>& __y) > { return __y.base() < __x.base(); } > > template<typename _IteratorL, typename _IteratorR> > inline bool > operator!=(const reverse_iterator<_IteratorL>& __x, > const reverse_iterator<_IteratorR>& __y) > { return !(__x == __y); } > > template<typename _IteratorL, typename _IteratorR> > inline bool > operator>(const reverse_iterator<_IteratorL>& __x, > const reverse_iterator<_IteratorR>& __y) > { return __y < __x; } > > template<typename _IteratorL, typename _IteratorR> > inline bool > operator<=(const reverse_iterator<_IteratorL>& __x, > const reverse_iterator<_IteratorR>& __y) > { return !(__y < __x); } > > template<typename _IteratorL, typename _IteratorR> > inline bool > operator>=(const reverse_iterator<_IteratorL>& __x, > const reverse_iterator<_IteratorR>& __y) > { return !(__x < __y); } > > template<typename _IteratorL, typename _IteratorR> > > > > > > > > inline typename reverse_iterator<_IteratorL>::difference_type > operator-(const reverse_iterator<_IteratorL>& __x, > const reverse_iterator<_IteratorR>& __y) > > { return __y.base() - __x.base(); } ># 401 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > template<typename _Container> > class back_insert_iterator > : public iterator<output_iterator_tag, void, void, void, void> > { > protected: > _Container* container; > > public: > > typedef _Container container_type; > > > explicit > back_insert_iterator(_Container& __x) : container(&__x) { } ># 428 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > back_insert_iterator& > operator=(typename _Container::const_reference __value) > { > container->push_back(__value); > return *this; > } ># 451 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > back_insert_iterator& > operator*() > { return *this; } > > > back_insert_iterator& > operator++() > { return *this; } > > > back_insert_iterator > operator++(int) > { return *this; } > }; ># 477 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > template<typename _Container> > inline back_insert_iterator<_Container> > back_inserter(_Container& __x) > { return back_insert_iterator<_Container>(__x); } ># 492 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > template<typename _Container> > class front_insert_iterator > : public iterator<output_iterator_tag, void, void, void, void> > { > protected: > _Container* container; > > public: > > typedef _Container container_type; > > > explicit front_insert_iterator(_Container& __x) : container(&__x) { } ># 518 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > front_insert_iterator& > operator=(typename _Container::const_reference __value) > { > container->push_front(__value); > return *this; > } ># 541 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > front_insert_iterator& > operator*() > { return *this; } > > > front_insert_iterator& > operator++() > { return *this; } > > > front_insert_iterator > operator++(int) > { return *this; } > }; ># 567 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > template<typename _Container> > inline front_insert_iterator<_Container> > front_inserter(_Container& __x) > { return front_insert_iterator<_Container>(__x); } ># 586 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > template<typename _Container> > class insert_iterator > : public iterator<output_iterator_tag, void, void, void, void> > { > protected: > _Container* container; > typename _Container::iterator iter; > > public: > > typedef _Container container_type; > > > > > > insert_iterator(_Container& __x, typename _Container::iterator __i) > : container(&__x), iter(__i) {} ># 629 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > insert_iterator& > operator=(typename _Container::const_reference __value) > { > iter = container->insert(iter, __value); > ++iter; > return *this; > } ># 655 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > insert_iterator& > operator*() > { return *this; } > > > insert_iterator& > operator++() > { return *this; } > > > insert_iterator& > operator++(int) > { return *this; } > }; ># 681 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > template<typename _Container, typename _Iterator> > inline insert_iterator<_Container> > inserter(_Container& __x, _Iterator __i) > { > return insert_iterator<_Container>(__x, > typename _Container::iterator(__i)); > } > > > > >} > >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > ># 705 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > using std::iterator_traits; > using std::iterator; > template<typename _Iterator, typename _Container> > class __normal_iterator > { > protected: > _Iterator _M_current; > > typedef iterator_traits<_Iterator> __traits_type; > > public: > typedef _Iterator iterator_type; > typedef typename __traits_type::iterator_category iterator_category; > typedef typename __traits_type::value_type value_type; > typedef typename __traits_type::difference_type difference_type; > typedef typename __traits_type::reference reference; > typedef typename __traits_type::pointer pointer; > > __normal_iterator() : _M_current(_Iterator()) { } > > explicit > __normal_iterator(const _Iterator& __i) : _M_current(__i) { } > > > template<typename _Iter> > __normal_iterator(const __normal_iterator<_Iter, > typename __enable_if< > (std::__are_same<_Iter, typename _Container::pointer>::__value), > _Container>::__type>& __i) > : _M_current(__i.base()) { } > > > reference > operator*() const > { return *_M_current; } > > pointer > operator->() const > { return _M_current; } > > __normal_iterator& > operator++() > { > ++_M_current; > return *this; > } > > __normal_iterator > operator++(int) > { return __normal_iterator(_M_current++); } > > > __normal_iterator& > operator--() > { > --_M_current; > return *this; > } > > __normal_iterator > operator--(int) > { return __normal_iterator(_M_current--); } > > > reference > operator[](const difference_type& __n) const > { return _M_current[__n]; } > > __normal_iterator& > operator+=(const difference_type& __n) > { _M_current += __n; return *this; } > > __normal_iterator > operator+(const difference_type& __n) const > { return __normal_iterator(_M_current + __n); } > > __normal_iterator& > operator-=(const difference_type& __n) > { _M_current -= __n; return *this; } > > __normal_iterator > operator-(const difference_type& __n) const > { return __normal_iterator(_M_current - __n); } > > const _Iterator& > base() const > { return _M_current; } > }; ># 803 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 > template<typename _IteratorL, typename _IteratorR, typename _Container> > inline bool > operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, > const __normal_iterator<_IteratorR, _Container>& __rhs) > { return __lhs.base() == __rhs.base(); } > > template<typename _Iterator, typename _Container> > inline bool > operator==(const __normal_iterator<_Iterator, _Container>& __lhs, > const __normal_iterator<_Iterator, _Container>& __rhs) > { return __lhs.base() == __rhs.base(); } > > template<typename _IteratorL, typename _IteratorR, typename _Container> > inline bool > operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, > const __normal_iterator<_IteratorR, _Container>& __rhs) > { return __lhs.base() != __rhs.base(); } > > template<typename _Iterator, typename _Container> > inline bool > operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, > const __normal_iterator<_Iterator, _Container>& __rhs) > { return __lhs.base() != __rhs.base(); } > > > template<typename _IteratorL, typename _IteratorR, typename _Container> > inline bool > operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, > const __normal_iterator<_IteratorR, _Container>& __rhs) > { return __lhs.base() < __rhs.base(); } > > template<typename _Iterator, typename _Container> > inline bool > operator<(const __normal_iterator<_Iterator, _Container>& __lhs, > const __normal_iterator<_Iterator, _Container>& __rhs) > { return __lhs.base() < __rhs.base(); } > > template<typename _IteratorL, typename _IteratorR, typename _Container> > inline bool > operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, > const __normal_iterator<_IteratorR, _Container>& __rhs) > { return __lhs.base() > __rhs.base(); } > > template<typename _Iterator, typename _Container> > inline bool > operator>(const __normal_iterator<_Iterator, _Container>& __lhs, > const __normal_iterator<_Iterator, _Container>& __rhs) > { return __lhs.base() > __rhs.base(); } > > template<typename _IteratorL, typename _IteratorR, typename _Container> > inline bool > operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, > const __normal_iterator<_IteratorR, _Container>& __rhs) > { return __lhs.base() <= __rhs.base(); } > > template<typename _Iterator, typename _Container> > inline bool > operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, > const __normal_iterator<_Iterator, _Container>& __rhs) > { return __lhs.base() <= __rhs.base(); } > > template<typename _IteratorL, typename _IteratorR, typename _Container> > inline bool > operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, > const __normal_iterator<_IteratorR, _Container>& __rhs) > { return __lhs.base() >= __rhs.base(); } > > template<typename _Iterator, typename _Container> > inline bool > operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, > const __normal_iterator<_Iterator, _Container>& __rhs) > { return __lhs.base() >= __rhs.base(); } > > > > > > template<typename _IteratorL, typename _IteratorR, typename _Container> > > > > > > > > inline typename __normal_iterator<_IteratorL, _Container>::difference_type > operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, > const __normal_iterator<_IteratorR, _Container>& __rhs) > > { return __lhs.base() - __rhs.base(); } > > template<typename _Iterator, typename _Container> > inline typename __normal_iterator<_Iterator, _Container>::difference_type > operator-(const __normal_iterator<_Iterator, _Container>& __lhs, > const __normal_iterator<_Iterator, _Container>& __rhs) > { return __lhs.base() - __rhs.base(); } > > template<typename _Iterator, typename _Container> > inline __normal_iterator<_Iterator, _Container> > operator+(typename __normal_iterator<_Iterator, _Container>::difference_type > __n, const __normal_iterator<_Iterator, _Container>& __i) > { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } > > >} ># 1144 "/usr/include/c++/4.8.2/bits/stl_iterator.h" 3 >#define _GLIBCXX_MAKE_MOVE_ITERATOR(_Iter) (_Iter) >#define _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(_Iter) (_Iter) ># 68 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 2 3 > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > > > template<bool _BoolType> > struct __iter_swap > { > template<typename _ForwardIterator1, typename _ForwardIterator2> > static void > iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) > { > typedef typename iterator_traits<_ForwardIterator1>::value_type > _ValueType1; > _ValueType1 __tmp = (*__a); > *__a = (*__b); > *__b = (__tmp); > } > }; > > template<> > struct __iter_swap<true> > { > template<typename _ForwardIterator1, typename _ForwardIterator2> > static void > iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) > { > swap(*__a, *__b); > } > }; ># 117 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _ForwardIterator1, typename _ForwardIterator2> > inline void > iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) > { > > > > > > > > typedef typename iterator_traits<_ForwardIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_ForwardIterator2>::value_type > _ValueType2; > > > > > > > typedef typename iterator_traits<_ForwardIterator1>::reference > _ReferenceType1; > typedef typename iterator_traits<_ForwardIterator2>::reference > _ReferenceType2; > std::__iter_swap<__are_same<_ValueType1, _ValueType2>::__value > && __are_same<_ValueType1&, _ReferenceType1>::__value > && __are_same<_ValueType2&, _ReferenceType2>::__value>:: > iter_swap(__a, __b); > > > > } ># 163 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _ForwardIterator1, typename _ForwardIterator2> > _ForwardIterator2 > swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, > _ForwardIterator2 __first2) > { > > > > > > ; > > for (; __first1 != __last1; ++__first1, ++__first2) > std::iter_swap(__first1, __first2); > return __first2; > } ># 191 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _Tp> > inline const _Tp& > min(const _Tp& __a, const _Tp& __b) > { > > > > if (__b < __a) > return __b; > return __a; > } ># 214 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _Tp> > inline const _Tp& > max(const _Tp& __a, const _Tp& __b) > { > > > > if (__a < __b) > return __b; > return __a; > } ># 237 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _Tp, typename _Compare> > inline const _Tp& > min(const _Tp& __a, const _Tp& __b, _Compare __comp) > { > > if (__comp(__b, __a)) > return __b; > return __a; > } ># 258 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _Tp, typename _Compare> > inline const _Tp& > max(const _Tp& __a, const _Tp& __b, _Compare __comp) > { > > if (__comp(__a, __b)) > return __b; > return __a; > } > > > > template<typename _Iterator> > struct _Niter_base > : _Iter_base<_Iterator, __is_normal_iterator<_Iterator>::__value> > { }; > > template<typename _Iterator> > inline typename _Niter_base<_Iterator>::iterator_type > __niter_base(_Iterator __it) > { return std::_Niter_base<_Iterator>::_S_base(__it); } > > > template<typename _Iterator> > struct _Miter_base > : _Iter_base<_Iterator, __is_move_iterator<_Iterator>::__value> > { }; > > template<typename _Iterator> > inline typename _Miter_base<_Iterator>::iterator_type > __miter_base(_Iterator __it) > { return std::_Miter_base<_Iterator>::_S_base(__it); } > > > > > > > > template<bool, bool, typename> > struct __copy_move > { > template<typename _II, typename _OI> > static _OI > __copy_m(_II __first, _II __last, _OI __result) > { > for (; __first != __last; ++__result, ++__first) > *__result = *__first; > return __result; > } > }; ># 325 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<> > struct __copy_move<false, false, random_access_iterator_tag> > { > template<typename _II, typename _OI> > static _OI > __copy_m(_II __first, _II __last, _OI __result) > { > typedef typename iterator_traits<_II>::difference_type _Distance; > for(_Distance __n = __last - __first; __n > 0; --__n) > { > *__result = *__first; > ++__first; > ++__result; > } > return __result; > } > }; ># 363 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<bool _IsMove> > struct __copy_move<_IsMove, true, random_access_iterator_tag> > { > template<typename _Tp> > static _Tp* > __copy_m(const _Tp* __first, const _Tp* __last, _Tp* __result) > { > const ptrdiff_t _Num = __last - __first; > if (_Num) > __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); > return __result + _Num; > } > }; > > template<bool _IsMove, typename _II, typename _OI> > inline _OI > __copy_move_a(_II __first, _II __last, _OI __result) > { > typedef typename iterator_traits<_II>::value_type _ValueTypeI; > typedef typename iterator_traits<_OI>::value_type _ValueTypeO; > typedef typename iterator_traits<_II>::iterator_category _Category; > const bool __simple = (__is_trivial(_ValueTypeI) > && __is_pointer<_II>::__value > && __is_pointer<_OI>::__value > && __are_same<_ValueTypeI, _ValueTypeO>::__value); > > return std::__copy_move<_IsMove, __simple, > _Category>::__copy_m(__first, __last, __result); > } > > > > template<typename _CharT> > struct char_traits; > > template<typename _CharT, typename _Traits> > class istreambuf_iterator; > > template<typename _CharT, typename _Traits> > class ostreambuf_iterator; > > template<bool _IsMove, typename _CharT> > typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, > ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type > __copy_move_a2(_CharT*, _CharT*, > ostreambuf_iterator<_CharT, char_traits<_CharT> >); > > template<bool _IsMove, typename _CharT> > typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, > ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type > __copy_move_a2(const _CharT*, const _CharT*, > ostreambuf_iterator<_CharT, char_traits<_CharT> >); > > template<bool _IsMove, typename _CharT> > typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, > _CharT*>::__type > __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, > istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); > > template<bool _IsMove, typename _II, typename _OI> > inline _OI > __copy_move_a2(_II __first, _II __last, _OI __result) > { > return _OI(std::__copy_move_a<_IsMove>(std::__niter_base(__first), > std::__niter_base(__last), > std::__niter_base(__result))); > } ># 448 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _II, typename _OI> > inline _OI > copy(_II __first, _II __last, _OI __result) > { > > > > > ; > > return (std::__copy_move_a2<__is_move_iterator<_II>::__value> > (std::__miter_base(__first), std::__miter_base(__last), > __result)); > } ># 497 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 >#define _GLIBCXX_MOVE3(_Tp,_Up,_Vp) std::copy(_Tp, _Up, _Vp) > > > template<bool, bool, typename> > struct __copy_move_backward > { > template<typename _BI1, typename _BI2> > static _BI2 > __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) > { > while (__first != __last) > *--__result = *--__last; > return __result; > } > }; ># 528 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<> > struct __copy_move_backward<false, false, random_access_iterator_tag> > { > template<typename _BI1, typename _BI2> > static _BI2 > __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) > { > typename iterator_traits<_BI1>::difference_type __n; > for (__n = __last - __first; __n > 0; --__n) > *--__result = *--__last; > return __result; > } > }; ># 558 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<bool _IsMove> > struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> > { > template<typename _Tp> > static _Tp* > __copy_move_b(const _Tp* __first, const _Tp* __last, _Tp* __result) > { > const ptrdiff_t _Num = __last - __first; > if (_Num) > __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); > return __result - _Num; > } > }; > > template<bool _IsMove, typename _BI1, typename _BI2> > inline _BI2 > __copy_move_backward_a(_BI1 __first, _BI1 __last, _BI2 __result) > { > typedef typename iterator_traits<_BI1>::value_type _ValueType1; > typedef typename iterator_traits<_BI2>::value_type _ValueType2; > typedef typename iterator_traits<_BI1>::iterator_category _Category; > const bool __simple = (__is_trivial(_ValueType1) > && __is_pointer<_BI1>::__value > && __is_pointer<_BI2>::__value > && __are_same<_ValueType1, _ValueType2>::__value); > > return std::__copy_move_backward<_IsMove, __simple, > _Category>::__copy_move_b(__first, > __last, > __result); > } > > template<bool _IsMove, typename _BI1, typename _BI2> > inline _BI2 > __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) > { > return _BI2(std::__copy_move_backward_a<_IsMove> > (std::__niter_base(__first), std::__niter_base(__last), > std::__niter_base(__result))); > } ># 617 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _BI1, typename _BI2> > inline _BI2 > copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) > { > > > > > > > ; > > return (std::__copy_move_backward_a2<__is_move_iterator<_BI1>::__value> > (std::__miter_base(__first), std::__miter_base(__last), > __result)); > } ># 672 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 >#define _GLIBCXX_MOVE_BACKWARD3(_Tp,_Up,_Vp) std::copy_backward(_Tp, _Up, _Vp) > > > template<typename _ForwardIterator, typename _Tp> > inline typename > __gnu_cxx::__enable_if<!__is_scalar<_Tp>::__value, void>::__type > __fill_a(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __value) > { > for (; __first != __last; ++__first) > *__first = __value; > } > > template<typename _ForwardIterator, typename _Tp> > inline typename > __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type > __fill_a(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __value) > { > const _Tp __tmp = __value; > for (; __first != __last; ++__first) > *__first = __tmp; > } > > > template<typename _Tp> > inline typename > __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type > __fill_a(_Tp* __first, _Tp* __last, const _Tp& __c) > { > const _Tp __tmp = __c; > __builtin_memset(__first, static_cast<unsigned char>(__tmp), > __last - __first); > } ># 719 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _ForwardIterator, typename _Tp> > inline void > fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) > { > > > > ; > > std::__fill_a(std::__niter_base(__first), std::__niter_base(__last), > __value); > } > > template<typename _OutputIterator, typename _Size, typename _Tp> > inline typename > __gnu_cxx::__enable_if<!__is_scalar<_Tp>::__value, _OutputIterator>::__type > __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value) > { > for (__decltype(__n + 0) __niter = __n; > __niter > 0; --__niter, ++__first) > *__first = __value; > return __first; > } > > template<typename _OutputIterator, typename _Size, typename _Tp> > inline typename > __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type > __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value) > { > const _Tp __tmp = __value; > for (__decltype(__n + 0) __niter = __n; > __niter > 0; --__niter, ++__first) > *__first = __tmp; > return __first; > } > > template<typename _Size, typename _Tp> > inline typename > __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, _Tp*>::__type > __fill_n_a(_Tp* __first, _Size __n, const _Tp& __c) > { > std::__fill_a(__first, __first + __n, __c); > return __first + __n; > } ># 779 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _OI, typename _Size, typename _Tp> > inline _OI > fill_n(_OI __first, _Size __n, const _Tp& __value) > { > > > > return _OI(std::__fill_n_a(std::__niter_base(__first), __n, __value)); > } > > template<bool _BoolType> > struct __equal > { > template<typename _II1, typename _II2> > static bool > equal(_II1 __first1, _II1 __last1, _II2 __first2) > { > for (; __first1 != __last1; ++__first1, ++__first2) > if (!(*__first1 == *__first2)) > return false; > return true; > } > }; > > template<> > struct __equal<true> > { > template<typename _Tp> > static bool > equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) > { > return !__builtin_memcmp(__first1, __first2, sizeof(_Tp) > * (__last1 - __first1)); > } > }; > > template<typename _II1, typename _II2> > inline bool > __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) > { > typedef typename iterator_traits<_II1>::value_type _ValueType1; > typedef typename iterator_traits<_II2>::value_type _ValueType2; > const bool __simple = ((__is_integer<_ValueType1>::__value > || __is_pointer<_ValueType1>::__value) > && __is_pointer<_II1>::__value > && __is_pointer<_II2>::__value > && __are_same<_ValueType1, _ValueType2>::__value); > > return std::__equal<__simple>::equal(__first1, __last1, __first2); > } > > > template<typename, typename> > struct __lc_rai > { > template<typename _II1, typename _II2> > static _II1 > __newlast1(_II1, _II1 __last1, _II2, _II2) > { return __last1; } > > template<typename _II> > static bool > __cnd2(_II __first, _II __last) > { return __first != __last; } > }; > > template<> > struct __lc_rai<random_access_iterator_tag, random_access_iterator_tag> > { > template<typename _RAI1, typename _RAI2> > static _RAI1 > __newlast1(_RAI1 __first1, _RAI1 __last1, > _RAI2 __first2, _RAI2 __last2) > { > const typename iterator_traits<_RAI1>::difference_type > __diff1 = __last1 - __first1; > const typename iterator_traits<_RAI2>::difference_type > __diff2 = __last2 - __first2; > return __diff2 < __diff1 ? __first1 + __diff2 : __last1; > } > > template<typename _RAI> > static bool > __cnd2(_RAI, _RAI) > { return true; } > }; > > template<bool _BoolType> > struct __lexicographical_compare > { > template<typename _II1, typename _II2> > static bool __lc(_II1, _II1, _II2, _II2); > }; > > template<bool _BoolType> > template<typename _II1, typename _II2> > bool > __lexicographical_compare<_BoolType>:: > __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) > { > typedef typename iterator_traits<_II1>::iterator_category _Category1; > typedef typename iterator_traits<_II2>::iterator_category _Category2; > typedef std::__lc_rai<_Category1, _Category2> __rai_type; > > __last1 = __rai_type::__newlast1(__first1, __last1, > __first2, __last2); > for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); > ++__first1, ++__first2) > { > if (*__first1 < *__first2) > return true; > if (*__first2 < *__first1) > return false; > } > return __first1 == __last1 && __first2 != __last2; > } > > template<> > struct __lexicographical_compare<true> > { > template<typename _Tp, typename _Up> > static bool > __lc(const _Tp* __first1, const _Tp* __last1, > const _Up* __first2, const _Up* __last2) > { > const size_t __len1 = __last1 - __first1; > const size_t __len2 = __last2 - __first2; > const int __result = __builtin_memcmp(__first1, __first2, > std::min(__len1, __len2)); > return __result != 0 ? __result < 0 : __len1 < __len2; > } > }; > > template<typename _II1, typename _II2> > inline bool > __lexicographical_compare_aux(_II1 __first1, _II1 __last1, > _II2 __first2, _II2 __last2) > { > typedef typename iterator_traits<_II1>::value_type _ValueType1; > typedef typename iterator_traits<_II2>::value_type _ValueType2; > const bool __simple = > (__is_byte<_ValueType1>::__value && __is_byte<_ValueType2>::__value > && !__gnu_cxx::__numeric_traits<_ValueType1>::__is_signed > && !__gnu_cxx::__numeric_traits<_ValueType2>::__is_signed > && __is_pointer<_II1>::__value > && __is_pointer<_II2>::__value); > > return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, > __first2, __last2); > } ># 941 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _ForwardIterator, typename _Tp> > _ForwardIterator > lower_bound(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __val) > { > > > > > typedef typename iterator_traits<_ForwardIterator>::difference_type > _DistanceType; > > > > > ; > > _DistanceType __len = std::distance(__first, __last); > > while (__len > 0) > { > _DistanceType __half = __len >> 1; > _ForwardIterator __middle = __first; > std::advance(__middle, __half); > if (*__middle < __val) > { > __first = __middle; > ++__first; > __len = __len - __half - 1; > } > else > __len = __half; > } > return __first; > } > > > > inline int > __lg(int __n) > { return sizeof(int) * 8 - 1 - __builtin_clz(__n); } > > inline unsigned > __lg(unsigned __n) > { return sizeof(int) * 8 - 1 - __builtin_clz(__n); } > > inline long > __lg(long __n) > { return sizeof(long) * 8 - 1 - __builtin_clzl(__n); } > > inline unsigned long > __lg(unsigned long __n) > { return sizeof(long) * 8 - 1 - __builtin_clzl(__n); } > > inline long long > __lg(long long __n) > { return sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } > > inline unsigned long long > __lg(unsigned long long __n) > { return sizeof(long long) * 8 - 1 - __builtin_clzll(__n); } > > > > ># 1019 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _II1, typename _II2> > inline bool > equal(_II1 __first1, _II1 __last1, _II2 __first2) > { > > > > > > > ; > > return std::__equal_aux(std::__niter_base(__first1), > std::__niter_base(__last1), > std::__niter_base(__first2)); > } ># 1051 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _IIter1, typename _IIter2, typename _BinaryPredicate> > inline bool > equal(_IIter1 __first1, _IIter1 __last1, > _IIter2 __first2, _BinaryPredicate __binary_pred) > { > > > > ; > > for (; __first1 != __last1; ++__first1, ++__first2) > if (!bool(__binary_pred(*__first1, *__first2))) > return false; > return true; > } ># 1082 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _II1, typename _II2> > inline bool > lexicographical_compare(_II1 __first1, _II1 __last1, > _II2 __first2, _II2 __last2) > { > > > > > > > > > > ; > ; > > return std::__lexicographical_compare_aux(std::__niter_base(__first1), > std::__niter_base(__last1), > std::__niter_base(__first2), > std::__niter_base(__last2)); > } ># 1118 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _II1, typename _II2, typename _Compare> > bool > lexicographical_compare(_II1 __first1, _II1 __last1, > _II2 __first2, _II2 __last2, _Compare __comp) > { > typedef typename iterator_traits<_II1>::iterator_category _Category1; > typedef typename iterator_traits<_II2>::iterator_category _Category2; > typedef std::__lc_rai<_Category1, _Category2> __rai_type; > > > > > ; > ; > > __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); > for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); > ++__first1, ++__first2) > { > if (__comp(*__first1, *__first2)) > return true; > if (__comp(*__first2, *__first1)) > return false; > } > return __first1 == __last1 && __first2 != __last2; > } ># 1158 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _InputIterator1, typename _InputIterator2> > pair<_InputIterator1, _InputIterator2> > mismatch(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2) > { > > > > > > > ; > > while (__first1 != __last1 && *__first1 == *__first2) > { > ++__first1; > ++__first2; > } > return pair<_InputIterator1, _InputIterator2>(__first1, __first2); > } ># 1195 "/usr/include/c++/4.8.2/bits/stl_algobase.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _BinaryPredicate> > pair<_InputIterator1, _InputIterator2> > mismatch(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _BinaryPredicate __binary_pred) > { > > > > ; > > while (__first1 != __last1 && bool(__binary_pred(*__first1, *__first2))) > { > ++__first1; > ++__first2; > } > return pair<_InputIterator1, _InputIterator2>(__first1, __first2); > } > > >} ># 61 "/usr/include/c++/4.8.2/vector" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/allocator.h" 1 3 ># 44 "/usr/include/c++/4.8.2/bits/allocator.h" 3 >#define _ALLOCATOR_H 1 > ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++allocator.h" 1 3 ># 31 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++allocator.h" 3 >#define _GLIBCXX_CXX_ALLOCATOR_H 1 > ># 1 "/usr/include/c++/4.8.2/ext/new_allocator.h" 1 3 ># 30 "/usr/include/c++/4.8.2/ext/new_allocator.h" 3 >#define _NEW_ALLOCATOR_H 1 > > ># 1 "/usr/include/c++/4.8.2/new" 1 3 ># 35 "/usr/include/c++/4.8.2/new" 3 >#define _NEW > > ># 38 "/usr/include/c++/4.8.2/new" 3 > > ># 1 "/usr/include/c++/4.8.2/exception" 1 3 ># 31 "/usr/include/c++/4.8.2/exception" 3 >#define __EXCEPTION__ > > ># 34 "/usr/include/c++/4.8.2/exception" 3 > >#pragma GCC visibility push(default) > > ># 1 "/usr/include/c++/4.8.2/bits/atomic_lockfree_defines.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/atomic_lockfree_defines.h" 3 >#define _GLIBCXX_ATOMIC_LOCK_FREE_H 1 > > ># 34 "/usr/include/c++/4.8.2/bits/atomic_lockfree_defines.h" 3 ># 39 "/usr/include/c++/4.8.2/exception" 2 3 > >extern "C++" { > >namespace std >{ ># 60 "/usr/include/c++/4.8.2/exception" 3 > class exception > { > public: > exception() throw() { } > virtual ~exception() throw(); > > > > virtual const char* what() const throw(); > }; > > > > class bad_exception : public exception > { > public: > bad_exception() throw() { } > > > > virtual ~bad_exception() throw(); > > > virtual const char* what() const throw(); > }; > > > typedef void (*terminate_handler) (); > > > typedef void (*unexpected_handler) (); > > > terminate_handler set_terminate(terminate_handler) throw(); > > > > void terminate() throw() __attribute__ ((__noreturn__)); > > > unexpected_handler set_unexpected(unexpected_handler) throw(); > > > > void unexpected() __attribute__ ((__noreturn__)); ># 117 "/usr/include/c++/4.8.2/exception" 3 > bool uncaught_exception() throw() __attribute__ ((__pure__)); > > >} > >namespace __gnu_cxx >{ > ># 142 "/usr/include/c++/4.8.2/exception" 3 > void __verbose_terminate_handler(); > > >} > >} > >#pragma GCC visibility pop ># 41 "/usr/include/c++/4.8.2/new" 2 3 > >#pragma GCC visibility push(default) > >extern "C++" { > >namespace std >{ > > > > > > > class bad_alloc : public exception > { > public: > bad_alloc() throw() { } > > > > virtual ~bad_alloc() throw(); > > > virtual const char* what() const throw(); > }; > > struct nothrow_t { }; > > extern const nothrow_t nothrow; > > > > typedef void (*new_handler)(); > > > > new_handler set_new_handler(new_handler) throw(); >} ># 91 "/usr/include/c++/4.8.2/new" 3 >void* operator new(std::size_t) throw(std::bad_alloc) > __attribute__((__externally_visible__)); >void* operator new[](std::size_t) throw(std::bad_alloc) > __attribute__((__externally_visible__)); >void operator delete(void*) throw() > __attribute__((__externally_visible__)); >void operator delete[](void*) throw() > __attribute__((__externally_visible__)); >void* operator new(std::size_t, const std::nothrow_t&) throw() > __attribute__((__externally_visible__)); >void* operator new[](std::size_t, const std::nothrow_t&) throw() > __attribute__((__externally_visible__)); >void operator delete(void*, const std::nothrow_t&) throw() > __attribute__((__externally_visible__)); >void operator delete[](void*, const std::nothrow_t&) throw() > __attribute__((__externally_visible__)); > > >inline void* operator new(std::size_t, void* __p) throw() >{ return __p; } >inline void* operator new[](std::size_t, void* __p) throw() >{ return __p; } > > >inline void operator delete (void*, void*) throw() { } >inline void operator delete[](void*, void*) throw() { } > >} > >#pragma GCC visibility pop ># 34 "/usr/include/c++/4.8.2/ext/new_allocator.h" 2 3 > > > > > > >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > > > using std::size_t; > using std::ptrdiff_t; ># 57 "/usr/include/c++/4.8.2/ext/new_allocator.h" 3 > template<typename _Tp> > class new_allocator > { > public: > typedef size_t size_type; > typedef ptrdiff_t difference_type; > typedef _Tp* pointer; > typedef const _Tp* const_pointer; > typedef _Tp& reference; > typedef const _Tp& const_reference; > typedef _Tp value_type; > > template<typename _Tp1> > struct rebind > { typedef new_allocator<_Tp1> other; }; > > > > > > > > new_allocator() throw() { } > > new_allocator(const new_allocator&) throw() { } > > template<typename _Tp1> > new_allocator(const new_allocator<_Tp1>&) throw() { } > > ~new_allocator() throw() { } > > pointer > address(reference __x) const > { return std::__addressof(__x); } > > const_pointer > address(const_reference __x) const > { return std::__addressof(__x); } > > > > pointer > allocate(size_type __n, const void* = 0) > { > if (__n > this->max_size()) > std::__throw_bad_alloc(); > > return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); > } > > > void > deallocate(pointer __p, size_type) > { ::operator delete(__p); } > > size_type > max_size() const throw() > { return size_t(-1) / sizeof(_Tp); } ># 128 "/usr/include/c++/4.8.2/ext/new_allocator.h" 3 > void > construct(pointer __p, const _Tp& __val) > { ::new((void *)__p) _Tp(__val); } > > void > destroy(pointer __p) { __p->~_Tp(); } > > }; > > template<typename _Tp> > inline bool > operator==(const new_allocator<_Tp>&, const new_allocator<_Tp>&) > { return true; } > > template<typename _Tp> > inline bool > operator!=(const new_allocator<_Tp>&, const new_allocator<_Tp>&) > { return false; } > > >} ># 34 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++allocator.h" 2 3 ># 52 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++allocator.h" 3 >#define __allocator_base __gnu_cxx::new_allocator ># 47 "/usr/include/c++/4.8.2/bits/allocator.h" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/memoryfwd.h" 1 3 ># 44 "/usr/include/c++/4.8.2/bits/memoryfwd.h" 3 >#define _MEMORYFWD_H 1 > > ># 47 "/usr/include/c++/4.8.2/bits/memoryfwd.h" 3 > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 63 "/usr/include/c++/4.8.2/bits/memoryfwd.h" 3 > template<typename> > class allocator; > > template<> > class allocator<void>; > > > template<typename, typename> > struct uses_allocator; > > > > >} ># 48 "/usr/include/c++/4.8.2/bits/allocator.h" 2 3 > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > > > > > template<> > class allocator<void> > { > public: > typedef size_t size_type; > typedef ptrdiff_t difference_type; > typedef void* pointer; > typedef const void* const_pointer; > typedef void value_type; > > template<typename _Tp1> > struct rebind > { typedef allocator<_Tp1> other; }; > > > > > > > }; ># 91 "/usr/include/c++/4.8.2/bits/allocator.h" 3 > template<typename _Tp> > class allocator: public __gnu_cxx::new_allocator<_Tp> > { > public: > typedef size_t size_type; > typedef ptrdiff_t difference_type; > typedef _Tp* pointer; > typedef const _Tp* const_pointer; > typedef _Tp& reference; > typedef const _Tp& const_reference; > typedef _Tp value_type; > > template<typename _Tp1> > struct rebind > { typedef allocator<_Tp1> other; }; > > > > > > > > allocator() throw() { } > > allocator(const allocator& __a) throw() > : __gnu_cxx::new_allocator<_Tp>(__a) { } > > template<typename _Tp1> > allocator(const allocator<_Tp1>&) throw() { } > > ~allocator() throw() { } > > > }; > > template<typename _T1, typename _T2> > inline bool > operator==(const allocator<_T1>&, const allocator<_T2>&) > { return true; } > > template<typename _Tp> > inline bool > operator==(const allocator<_Tp>&, const allocator<_Tp>&) > { return true; } > > template<typename _T1, typename _T2> > inline bool > operator!=(const allocator<_T1>&, const allocator<_T2>&) > { return false; } > > template<typename _Tp> > inline bool > operator!=(const allocator<_Tp>&, const allocator<_Tp>&) > { return false; } > > > > > > > extern template class allocator<char>; > extern template class allocator<wchar_t>; > > > >#undef __allocator_base > > > template<typename _Alloc, bool = __is_empty(_Alloc)> > struct __alloc_swap > { static void _S_do_it(_Alloc&, _Alloc&) { } }; > > template<typename _Alloc> > struct __alloc_swap<_Alloc, false> > { > static void > _S_do_it(_Alloc& __one, _Alloc& __two) > { > > if (__one != __two) > swap(__one, __two); > } > }; > > > template<typename _Alloc, bool = __is_empty(_Alloc)> > struct __alloc_neq > { > static bool > _S_do_it(const _Alloc&, const _Alloc&) > { return false; } > }; > > template<typename _Alloc> > struct __alloc_neq<_Alloc, false> > { > static bool > _S_do_it(const _Alloc& __one, const _Alloc& __two) > { return __one != __two; } > }; ># 218 "/usr/include/c++/4.8.2/bits/allocator.h" 3 > >} ># 62 "/usr/include/c++/4.8.2/vector" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_construct.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_construct.h" 3 >#define _STL_CONSTRUCT_H 1 > > > ># 1 "/usr/include/c++/4.8.2/ext/alloc_traits.h" 1 3 ># 30 "/usr/include/c++/4.8.2/ext/alloc_traits.h" 3 >#define _EXT_ALLOC_TRAITS_H 1 > > ># 33 "/usr/include/c++/4.8.2/ext/alloc_traits.h" 3 ># 41 "/usr/include/c++/4.8.2/ext/alloc_traits.h" 3 >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > ># 120 "/usr/include/c++/4.8.2/ext/alloc_traits.h" 3 >template<typename _Alloc> > struct __alloc_traits > > > > { > typedef _Alloc allocator_type; ># 199 "/usr/include/c++/4.8.2/ext/alloc_traits.h" 3 > typedef typename _Alloc::pointer pointer; > typedef typename _Alloc::const_pointer const_pointer; > typedef typename _Alloc::value_type value_type; > typedef typename _Alloc::reference reference; > typedef typename _Alloc::const_reference const_reference; > typedef typename _Alloc::size_type size_type; > typedef typename _Alloc::difference_type difference_type; > > static pointer > allocate(_Alloc& __a, size_type __n) > { return __a.allocate(__n); } > > static void deallocate(_Alloc& __a, pointer __p, size_type __n) > { __a.deallocate(__p, __n); } > > template<typename _Tp> > static void construct(_Alloc& __a, pointer __p, const _Tp& __arg) > { __a.construct(__p, __arg); } > > static void destroy(_Alloc& __a, pointer __p) > { __a.destroy(__p); } > > static size_type max_size(const _Alloc& __a) > { return __a.max_size(); } > > static const _Alloc& _S_select_on_copy(const _Alloc& __a) { return __a; } > > static void _S_on_swap(_Alloc& __a, _Alloc& __b) > { > > > std::__alloc_swap<_Alloc>::_S_do_it(__a, __b); > } > > template<typename _Tp> > struct rebind > { typedef typename _Alloc::template rebind<_Tp>::other other; }; > > }; > > >} ># 62 "/usr/include/c++/4.8.2/bits/stl_construct.h" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 77 "/usr/include/c++/4.8.2/bits/stl_construct.h" 3 > template<typename _T1, typename _T2> > inline void > _Construct(_T1* __p, const _T2& __value) > { > > > ::new(static_cast<void*>(__p)) _T1(__value); > } > > > > > > template<typename _Tp> > inline void > _Destroy(_Tp* __pointer) > { __pointer->~_Tp(); } > > template<bool> > struct _Destroy_aux > { > template<typename _ForwardIterator> > static void > __destroy(_ForwardIterator __first, _ForwardIterator __last) > { > for (; __first != __last; ++__first) > std::_Destroy(std::__addressof(*__first)); > } > }; > > template<> > struct _Destroy_aux<true> > { > template<typename _ForwardIterator> > static void > __destroy(_ForwardIterator, _ForwardIterator) { } > }; > > > > > > > template<typename _ForwardIterator> > inline void > _Destroy(_ForwardIterator __first, _ForwardIterator __last) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _Value_type; > std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: > __destroy(__first, __last); > } > > > > > > > > template<typename _ForwardIterator, typename _Allocator> > void > _Destroy(_ForwardIterator __first, _ForwardIterator __last, > _Allocator& __alloc) > { > typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; > for (; __first != __last; ++__first) > __traits::destroy(__alloc, std::__addressof(*__first)); > } > > template<typename _ForwardIterator, typename _Tp> > inline void > _Destroy(_ForwardIterator __first, _ForwardIterator __last, > allocator<_Tp>&) > { > _Destroy(__first, __last); > } > > >} ># 63 "/usr/include/c++/4.8.2/vector" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" 3 >#define _STL_UNINITIALIZED_H 1 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<bool _TrivialValueTypes> > struct __uninitialized_copy > { > template<typename _InputIterator, typename _ForwardIterator> > static _ForwardIterator > __uninit_copy(_InputIterator __first, _InputIterator __last, > _ForwardIterator __result) > { > _ForwardIterator __cur = __result; > try > { > for (; __first != __last; ++__first, ++__cur) > std::_Construct(std::__addressof(*__cur), *__first); > return __cur; > } > catch(...) > { > std::_Destroy(__result, __cur); > throw; > } > } > }; > > template<> > struct __uninitialized_copy<true> > { > template<typename _InputIterator, typename _ForwardIterator> > static _ForwardIterator > __uninit_copy(_InputIterator __first, _InputIterator __last, > _ForwardIterator __result) > { return std::copy(__first, __last, __result); } > }; ># 105 "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" 3 > template<typename _InputIterator, typename _ForwardIterator> > inline _ForwardIterator > uninitialized_copy(_InputIterator __first, _InputIterator __last, > _ForwardIterator __result) > { > typedef typename iterator_traits<_InputIterator>::value_type > _ValueType1; > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType2; > > return std::__uninitialized_copy<(__is_trivial(_ValueType1) > && __is_trivial(_ValueType2))>:: > __uninit_copy(__first, __last, __result); > } > > > template<bool _TrivialValueType> > struct __uninitialized_fill > { > template<typename _ForwardIterator, typename _Tp> > static void > __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __x) > { > _ForwardIterator __cur = __first; > try > { > for (; __cur != __last; ++__cur) > std::_Construct(std::__addressof(*__cur), __x); > } > catch(...) > { > std::_Destroy(__first, __cur); > throw; > } > } > }; > > template<> > struct __uninitialized_fill<true> > { > template<typename _ForwardIterator, typename _Tp> > static void > __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __x) > { std::fill(__first, __last, __x); } > }; ># 162 "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" 3 > template<typename _ForwardIterator, typename _Tp> > inline void > uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __x) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > > std::__uninitialized_fill<__is_trivial(_ValueType)>:: > __uninit_fill(__first, __last, __x); > } > > > template<bool _TrivialValueType> > struct __uninitialized_fill_n > { > template<typename _ForwardIterator, typename _Size, typename _Tp> > static void > __uninit_fill_n(_ForwardIterator __first, _Size __n, > const _Tp& __x) > { > _ForwardIterator __cur = __first; > try > { > for (; __n > 0; --__n, ++__cur) > std::_Construct(std::__addressof(*__cur), __x); > } > catch(...) > { > std::_Destroy(__first, __cur); > throw; > } > } > }; > > template<> > struct __uninitialized_fill_n<true> > { > template<typename _ForwardIterator, typename _Size, typename _Tp> > static void > __uninit_fill_n(_ForwardIterator __first, _Size __n, > const _Tp& __x) > { std::fill_n(__first, __n, __x); } > }; ># 216 "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" 3 > template<typename _ForwardIterator, typename _Size, typename _Tp> > inline void > uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > > std::__uninitialized_fill_n<__is_trivial(_ValueType)>:: > __uninit_fill_n(__first, __n, __x); > } > > > > > > > > template<typename _InputIterator, typename _ForwardIterator, > typename _Allocator> > _ForwardIterator > __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, > _ForwardIterator __result, _Allocator& __alloc) > { > _ForwardIterator __cur = __result; > try > { > typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; > for (; __first != __last; ++__first, ++__cur) > __traits::construct(__alloc, std::__addressof(*__cur), *__first); > return __cur; > } > catch(...) > { > std::_Destroy(__result, __cur, __alloc); > throw; > } > } > > template<typename _InputIterator, typename _ForwardIterator, typename _Tp> > inline _ForwardIterator > __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, > _ForwardIterator __result, allocator<_Tp>&) > { return std::uninitialized_copy(__first, __last, __result); } > > template<typename _InputIterator, typename _ForwardIterator, > typename _Allocator> > inline _ForwardIterator > __uninitialized_move_a(_InputIterator __first, _InputIterator __last, > _ForwardIterator __result, _Allocator& __alloc) > { > return std::__uninitialized_copy_a((__first), > (__last), > __result, __alloc); > } > > template<typename _InputIterator, typename _ForwardIterator, > typename _Allocator> > inline _ForwardIterator > __uninitialized_move_if_noexcept_a(_InputIterator __first, > _InputIterator __last, > _ForwardIterator __result, > _Allocator& __alloc) > { > return std::__uninitialized_copy_a > ((__first), > (__last), __result, __alloc); > } > > template<typename _ForwardIterator, typename _Tp, typename _Allocator> > void > __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __x, _Allocator& __alloc) > { > _ForwardIterator __cur = __first; > try > { > typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; > for (; __cur != __last; ++__cur) > __traits::construct(__alloc, std::__addressof(*__cur), __x); > } > catch(...) > { > std::_Destroy(__first, __cur, __alloc); > throw; > } > } > > template<typename _ForwardIterator, typename _Tp, typename _Tp2> > inline void > __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __x, allocator<_Tp2>&) > { std::uninitialized_fill(__first, __last, __x); } > > template<typename _ForwardIterator, typename _Size, typename _Tp, > typename _Allocator> > void > __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, > const _Tp& __x, _Allocator& __alloc) > { > _ForwardIterator __cur = __first; > try > { > typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; > for (; __n > 0; --__n, ++__cur) > __traits::construct(__alloc, std::__addressof(*__cur), __x); > } > catch(...) > { > std::_Destroy(__first, __cur, __alloc); > throw; > } > } > > template<typename _ForwardIterator, typename _Size, typename _Tp, > typename _Tp2> > inline void > __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, > const _Tp& __x, allocator<_Tp2>&) > { std::uninitialized_fill_n(__first, __n, __x); } ># 346 "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _ForwardIterator, typename _Allocator> > inline _ForwardIterator > __uninitialized_copy_move(_InputIterator1 __first1, > _InputIterator1 __last1, > _InputIterator2 __first2, > _InputIterator2 __last2, > _ForwardIterator __result, > _Allocator& __alloc) > { > _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, > __result, > __alloc); > try > { > return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); > } > catch(...) > { > std::_Destroy(__result, __mid, __alloc); > throw; > } > } > > > > > > template<typename _InputIterator1, typename _InputIterator2, > typename _ForwardIterator, typename _Allocator> > inline _ForwardIterator > __uninitialized_move_copy(_InputIterator1 __first1, > _InputIterator1 __last1, > _InputIterator2 __first2, > _InputIterator2 __last2, > _ForwardIterator __result, > _Allocator& __alloc) > { > _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, > __result, > __alloc); > try > { > return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); > } > catch(...) > { > std::_Destroy(__result, __mid, __alloc); > throw; > } > } > > > > > template<typename _ForwardIterator, typename _Tp, typename _InputIterator, > typename _Allocator> > inline _ForwardIterator > __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, > const _Tp& __x, _InputIterator __first, > _InputIterator __last, _Allocator& __alloc) > { > std::__uninitialized_fill_a(__result, __mid, __x, __alloc); > try > { > return std::__uninitialized_move_a(__first, __last, __mid, __alloc); > } > catch(...) > { > std::_Destroy(__result, __mid, __alloc); > throw; > } > } > > > > > template<typename _InputIterator, typename _ForwardIterator, typename _Tp, > typename _Allocator> > inline void > __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, > _ForwardIterator __first2, > _ForwardIterator __last2, const _Tp& __x, > _Allocator& __alloc) > { > _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, > __first2, > __alloc); > try > { > std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); > } > catch(...) > { > std::_Destroy(__first2, __mid2, __alloc); > throw; > } > } ># 653 "/usr/include/c++/4.8.2/bits/stl_uninitialized.h" 3 > >} ># 64 "/usr/include/c++/4.8.2/vector" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_vector.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 >#define _STL_VECTOR_H 1 ># 66 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > template<typename _Tp, typename _Alloc> > struct _Vector_base > { > typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template > rebind<_Tp>::other _Tp_alloc_type; > typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer > pointer; > > struct _Vector_impl > : public _Tp_alloc_type > { > pointer _M_start; > pointer _M_finish; > pointer _M_end_of_storage; > > _Vector_impl() > : _Tp_alloc_type(), _M_start(0), _M_finish(0), _M_end_of_storage(0) > { } > > _Vector_impl(_Tp_alloc_type const& __a) > : _Tp_alloc_type(__a), _M_start(0), _M_finish(0), _M_end_of_storage(0) > { } ># 101 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > void _M_swap_data(_Vector_impl& __x) > { > std::swap(_M_start, __x._M_start); > std::swap(_M_finish, __x._M_finish); > std::swap(_M_end_of_storage, __x._M_end_of_storage); > } > }; > > public: > typedef _Alloc allocator_type; > > _Tp_alloc_type& > _M_get_Tp_allocator() > { return *static_cast<_Tp_alloc_type*>(&this->_M_impl); } > > const _Tp_alloc_type& > _M_get_Tp_allocator() const > { return *static_cast<const _Tp_alloc_type*>(&this->_M_impl); } > > allocator_type > get_allocator() const > { return allocator_type(_M_get_Tp_allocator()); } > > _Vector_base() > : _M_impl() { } > > _Vector_base(const allocator_type& __a) > : _M_impl(__a) { } > > _Vector_base(size_t __n) > : _M_impl() > { _M_create_storage(__n); } > > _Vector_base(size_t __n, const allocator_type& __a) > : _M_impl(__a) > { _M_create_storage(__n); } ># 159 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > ~_Vector_base() > { _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage > - this->_M_impl._M_start); } > > public: > _Vector_impl _M_impl; > > pointer > _M_allocate(size_t __n) > { return __n != 0 ? _M_impl.allocate(__n) : 0; } > > void > _M_deallocate(pointer __p, size_t __n) > { > if (__p) > _M_impl.deallocate(__p, __n); > } > > private: > void > _M_create_storage(size_t __n) > { > this->_M_impl._M_start = this->_M_allocate(__n); > this->_M_impl._M_finish = this->_M_impl._M_start; > this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; > } > }; ># 209 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > template<typename _Tp, typename _Alloc = std::allocator<_Tp> > > class vector : protected _Vector_base<_Tp, _Alloc> > { > > typedef typename _Alloc::value_type _Alloc_value_type; > > > > typedef _Vector_base<_Tp, _Alloc> _Base; > typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; > typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; > > public: > typedef _Tp value_type; > typedef typename _Base::pointer pointer; > typedef typename _Alloc_traits::const_pointer const_pointer; > typedef typename _Alloc_traits::reference reference; > typedef typename _Alloc_traits::const_reference const_reference; > typedef __gnu_cxx::__normal_iterator<pointer, vector> iterator; > typedef __gnu_cxx::__normal_iterator<const_pointer, vector> > const_iterator; > typedef std::reverse_iterator<const_iterator> const_reverse_iterator; > typedef std::reverse_iterator<iterator> reverse_iterator; > typedef size_t size_type; > typedef ptrdiff_t difference_type; > typedef _Alloc allocator_type; > > protected: > using _Base::_M_allocate; > using _Base::_M_deallocate; > using _Base::_M_impl; > using _Base::_M_get_Tp_allocator; > > public: > > > > > > vector() > : _Base() { } > > > > > > explicit > vector(const allocator_type& __a) > : _Base(__a) { } ># 294 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > explicit > vector(size_type __n, const value_type& __value = value_type(), > const allocator_type& __a = allocator_type()) > : _Base(__n, __a) > { _M_fill_initialize(__n, __value); } ># 310 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > vector(const vector& __x) > : _Base(__x.size(), > _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) > { this->_M_impl._M_finish = > std::__uninitialized_copy_a(__x.begin(), __x.end(), > this->_M_impl._M_start, > _M_get_Tp_allocator()); > } ># 397 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > template<typename _InputIterator> > vector(_InputIterator __first, _InputIterator __last, > const allocator_type& __a = allocator_type()) > : _Base(__a) > { > > typedef typename std::__is_integer<_InputIterator>::__type _Integral; > _M_initialize_dispatch(__first, __last, _Integral()); > } ># 414 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > ~vector() > { std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, > _M_get_Tp_allocator()); } ># 426 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > vector& > operator=(const vector& __x); ># 478 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > void > assign(size_type __n, const value_type& __val) > { _M_fill_assign(__n, __val); } ># 501 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > template<typename _InputIterator> > void > assign(_InputIterator __first, _InputIterator __last) > { > > typedef typename std::__is_integer<_InputIterator>::__type _Integral; > _M_assign_dispatch(__first, __last, _Integral()); > } ># 529 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > using _Base::get_allocator; > > > > > > > > iterator > begin() > { return iterator(this->_M_impl._M_start); } > > > > > > > const_iterator > begin() const > { return const_iterator(this->_M_impl._M_start); } > > > > > > > iterator > end() > { return iterator(this->_M_impl._M_finish); } > > > > > > > const_iterator > end() const > { return const_iterator(this->_M_impl._M_finish); } > > > > > > > reverse_iterator > rbegin() > { return reverse_iterator(end()); } > > > > > > > const_reverse_iterator > rbegin() const > { return const_reverse_iterator(end()); } > > > > > > > reverse_iterator > rend() > { return reverse_iterator(begin()); } > > > > > > > const_reverse_iterator > rend() const > { return const_reverse_iterator(begin()); } ># 644 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > size_type > size() const > { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } > > > size_type > max_size() const > { return _Alloc_traits::max_size(_M_get_Tp_allocator()); } ># 703 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > void > resize(size_type __new_size, value_type __x = value_type()) > { > if (__new_size > size()) > insert(end(), __new_size - size(), __x); > else if (__new_size < size()) > _M_erase_at_end(this->_M_impl._M_start + __new_size); > } ># 724 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > size_type > capacity() const > { return size_type(this->_M_impl._M_end_of_storage > - this->_M_impl._M_start); } > > > > > > bool > empty() const > { return begin() == end(); } ># 754 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > void > reserve(size_type __n); ># 769 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > reference > operator[](size_type __n) > { return *(this->_M_impl._M_start + __n); } ># 784 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > const_reference > operator[](size_type __n) const > { return *(this->_M_impl._M_start + __n); } > > protected: > > void > _M_range_check(size_type __n) const > { > if (__n >= this->size()) > __throw_out_of_range(("vector::_M_range_check")); > } > > public: ># 809 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > reference > at(size_type __n) > { > _M_range_check(__n); > return (*this)[__n]; > } ># 827 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > const_reference > at(size_type __n) const > { > _M_range_check(__n); > return (*this)[__n]; > } > > > > > > reference > front() > { return *begin(); } > > > > > > const_reference > front() const > { return *begin(); } > > > > > > reference > back() > { return *(end() - 1); } > > > > > > const_reference > back() const > { return *(end() - 1); } ># 876 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > pointer > > data() > { return std::__addressof(front()); } > > > > > const_pointer > > data() const > { return std::__addressof(front()); } ># 900 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > void > push_back(const value_type& __x) > { > if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) > { > _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, > __x); > ++this->_M_impl._M_finish; > } > else > > > > _M_insert_aux(end(), __x); > > } ># 936 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > void > pop_back() > { > --this->_M_impl._M_finish; > _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); > } ># 972 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > iterator > insert(iterator __position, const value_type& __x); ># 1022 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > void > insert(iterator __position, size_type __n, const value_type& __x) > { _M_fill_insert(__position, __n, __x); } ># 1048 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > template<typename _InputIterator> > void > insert(iterator __position, _InputIterator __first, > _InputIterator __last) > { > > typedef typename std::__is_integer<_InputIterator>::__type _Integral; > _M_insert_dispatch(__position, __first, __last, _Integral()); > } ># 1074 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > iterator > erase(iterator __position); ># 1095 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > iterator > erase(iterator __first, iterator __last); ># 1107 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > void > swap(vector& __x) > > > > { > this->_M_impl._M_swap_data(__x._M_impl); > _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), > __x._M_get_Tp_allocator()); > } > > > > > > > > void > clear() > { _M_erase_at_end(this->_M_impl._M_start); } > > protected: > > > > > template<typename _ForwardIterator> > pointer > _M_allocate_and_copy(size_type __n, > _ForwardIterator __first, _ForwardIterator __last) > { > pointer __result = this->_M_allocate(__n); > try > { > std::__uninitialized_copy_a(__first, __last, __result, > _M_get_Tp_allocator()); > return __result; > } > catch(...) > { > _M_deallocate(__result, __n); > throw; > } > } ># 1159 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > template<typename _Integer> > void > _M_initialize_dispatch(_Integer __n, _Integer __value, __true_type) > { > this->_M_impl._M_start = _M_allocate(static_cast<size_type>(__n)); > this->_M_impl._M_end_of_storage = > this->_M_impl._M_start + static_cast<size_type>(__n); > _M_fill_initialize(static_cast<size_type>(__n), __value); > } > > > template<typename _InputIterator> > void > _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, > __false_type) > { > typedef typename std::iterator_traits<_InputIterator>:: > iterator_category _IterCategory; > _M_range_initialize(__first, __last, _IterCategory()); > } > > > template<typename _InputIterator> > void > _M_range_initialize(_InputIterator __first, > _InputIterator __last, std::input_iterator_tag) > { > for (; __first != __last; ++__first) > > > > push_back(*__first); > > } > > > template<typename _ForwardIterator> > void > _M_range_initialize(_ForwardIterator __first, > _ForwardIterator __last, std::forward_iterator_tag) > { > const size_type __n = std::distance(__first, __last); > this->_M_impl._M_start = this->_M_allocate(__n); > this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; > this->_M_impl._M_finish = > std::__uninitialized_copy_a(__first, __last, > this->_M_impl._M_start, > _M_get_Tp_allocator()); > } > > > > void > _M_fill_initialize(size_type __n, const value_type& __value) > { > std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, > _M_get_Tp_allocator()); > this->_M_impl._M_finish = this->_M_impl._M_end_of_storage; > } ># 1237 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > template<typename _Integer> > void > _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) > { _M_fill_assign(__n, __val); } > > > template<typename _InputIterator> > void > _M_assign_dispatch(_InputIterator __first, _InputIterator __last, > __false_type) > { > typedef typename std::iterator_traits<_InputIterator>:: > iterator_category _IterCategory; > _M_assign_aux(__first, __last, _IterCategory()); > } > > > template<typename _InputIterator> > void > _M_assign_aux(_InputIterator __first, _InputIterator __last, > std::input_iterator_tag); > > > template<typename _ForwardIterator> > void > _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, > std::forward_iterator_tag); > > > > void > _M_fill_assign(size_type __n, const value_type& __val); ># 1277 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > template<typename _Integer> > void > _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, > __true_type) > { _M_fill_insert(__pos, __n, __val); } > > > template<typename _InputIterator> > void > _M_insert_dispatch(iterator __pos, _InputIterator __first, > _InputIterator __last, __false_type) > { > typedef typename std::iterator_traits<_InputIterator>:: > iterator_category _IterCategory; > _M_range_insert(__pos, __first, __last, _IterCategory()); > } > > > template<typename _InputIterator> > void > _M_range_insert(iterator __pos, _InputIterator __first, > _InputIterator __last, std::input_iterator_tag); > > > template<typename _ForwardIterator> > void > _M_range_insert(iterator __pos, _ForwardIterator __first, > _ForwardIterator __last, std::forward_iterator_tag); > > > > void > _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); ># 1322 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > void > _M_insert_aux(iterator __position, const value_type& __x); ># 1335 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > size_type > _M_check_len(size_type __n, const char* __s) const > { > if (max_size() - size() < __n) > __throw_length_error((__s)); > > const size_type __len = size() + std::max(size(), __n); > return (__len < size() || __len > max_size()) ? max_size() : __len; > } > > > > > > void > _M_erase_at_end(pointer __pos) > { > std::_Destroy(__pos, this->_M_impl._M_finish, _M_get_Tp_allocator()); > this->_M_impl._M_finish = __pos; > } ># 1388 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > }; ># 1401 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > template<typename _Tp, typename _Alloc> > inline bool > operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) > { return (__x.size() == __y.size() > && std::equal(__x.begin(), __x.end(), __y.begin())); } ># 1418 "/usr/include/c++/4.8.2/bits/stl_vector.h" 3 > template<typename _Tp, typename _Alloc> > inline bool > operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) > { return std::lexicographical_compare(__x.begin(), __x.end(), > __y.begin(), __y.end()); } > > > template<typename _Tp, typename _Alloc> > inline bool > operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) > { return !(__x == __y); } > > > template<typename _Tp, typename _Alloc> > inline bool > operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) > { return __y < __x; } > > > template<typename _Tp, typename _Alloc> > inline bool > operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) > { return !(__y < __x); } > > > template<typename _Tp, typename _Alloc> > inline bool > operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) > { return !(__x < __y); } > > > template<typename _Tp, typename _Alloc> > inline void > swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) > { __x.swap(__y); } > > >} ># 65 "/usr/include/c++/4.8.2/vector" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 >#define _STL_BVECTOR_H 1 > > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > typedef unsigned long _Bit_type; > enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; > > struct _Bit_reference > { > _Bit_type * _M_p; > _Bit_type _M_mask; > > _Bit_reference(_Bit_type * __x, _Bit_type __y) > : _M_p(__x), _M_mask(__y) { } > > _Bit_reference() : _M_p(0), _M_mask(0) { } > > operator bool() const > { return !!(*_M_p & _M_mask); } > > _Bit_reference& > operator=(bool __x) > { > if (__x) > *_M_p |= _M_mask; > else > *_M_p &= ~_M_mask; > return *this; > } > > _Bit_reference& > operator=(const _Bit_reference& __x) > { return *this = bool(__x); } > > bool > operator==(const _Bit_reference& __x) const > { return bool(*this) == bool(__x); } > > bool > operator<(const _Bit_reference& __x) const > { return !bool(*this) && bool(__x); } > > void > flip() > { *_M_p ^= _M_mask; } > }; ># 136 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > struct _Bit_iterator_base > : public std::iterator<std::random_access_iterator_tag, bool> > { > _Bit_type * _M_p; > unsigned int _M_offset; > > _Bit_iterator_base(_Bit_type * __x, unsigned int __y) > : _M_p(__x), _M_offset(__y) { } > > void > _M_bump_up() > { > if (_M_offset++ == int(_S_word_bit) - 1) > { > _M_offset = 0; > ++_M_p; > } > } > > void > _M_bump_down() > { > if (_M_offset-- == 0) > { > _M_offset = int(_S_word_bit) - 1; > --_M_p; > } > } > > void > _M_incr(ptrdiff_t __i) > { > difference_type __n = __i + _M_offset; > _M_p += __n / int(_S_word_bit); > __n = __n % int(_S_word_bit); > if (__n < 0) > { > __n += int(_S_word_bit); > --_M_p; > } > _M_offset = static_cast<unsigned int>(__n); > } > > bool > operator==(const _Bit_iterator_base& __i) const > { return _M_p == __i._M_p && _M_offset == __i._M_offset; } > > bool > operator<(const _Bit_iterator_base& __i) const > { > return _M_p < __i._M_p > || (_M_p == __i._M_p && _M_offset < __i._M_offset); > } > > bool > operator!=(const _Bit_iterator_base& __i) const > { return !(*this == __i); } > > bool > operator>(const _Bit_iterator_base& __i) const > { return __i < *this; } > > bool > operator<=(const _Bit_iterator_base& __i) const > { return !(__i < *this); } > > bool > operator>=(const _Bit_iterator_base& __i) const > { return !(*this < __i); } > }; > > inline ptrdiff_t > operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) > { > return (int(_S_word_bit) * (__x._M_p - __y._M_p) > + __x._M_offset - __y._M_offset); > } > > struct _Bit_iterator : public _Bit_iterator_base > { > typedef _Bit_reference reference; > typedef _Bit_reference* pointer; > typedef _Bit_iterator iterator; > > _Bit_iterator() : _Bit_iterator_base(0, 0) { } > > _Bit_iterator(_Bit_type * __x, unsigned int __y) > : _Bit_iterator_base(__x, __y) { } > > reference > operator*() const > { return reference(_M_p, 1UL << _M_offset); } > > iterator& > operator++() > { > _M_bump_up(); > return *this; > } > > iterator > operator++(int) > { > iterator __tmp = *this; > _M_bump_up(); > return __tmp; > } > > iterator& > operator--() > { > _M_bump_down(); > return *this; > } > > iterator > operator--(int) > { > iterator __tmp = *this; > _M_bump_down(); > return __tmp; > } > > iterator& > operator+=(difference_type __i) > { > _M_incr(__i); > return *this; > } > > iterator& > operator-=(difference_type __i) > { > *this += -__i; > return *this; > } > > iterator > operator+(difference_type __i) const > { > iterator __tmp = *this; > return __tmp += __i; > } > > iterator > operator-(difference_type __i) const > { > iterator __tmp = *this; > return __tmp -= __i; > } > > reference > operator[](difference_type __i) const > { return *(*this + __i); } > }; > > inline _Bit_iterator > operator+(ptrdiff_t __n, const _Bit_iterator& __x) > { return __x + __n; } > > struct _Bit_const_iterator : public _Bit_iterator_base > { > typedef bool reference; > typedef bool const_reference; > typedef const bool* pointer; > typedef _Bit_const_iterator const_iterator; > > _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } > > _Bit_const_iterator(_Bit_type * __x, unsigned int __y) > : _Bit_iterator_base(__x, __y) { } > > _Bit_const_iterator(const _Bit_iterator& __x) > : _Bit_iterator_base(__x._M_p, __x._M_offset) { } > > const_reference > operator*() const > { return _Bit_reference(_M_p, 1UL << _M_offset); } > > const_iterator& > operator++() > { > _M_bump_up(); > return *this; > } > > const_iterator > operator++(int) > { > const_iterator __tmp = *this; > _M_bump_up(); > return __tmp; > } > > const_iterator& > operator--() > { > _M_bump_down(); > return *this; > } > > const_iterator > operator--(int) > { > const_iterator __tmp = *this; > _M_bump_down(); > return __tmp; > } > > const_iterator& > operator+=(difference_type __i) > { > _M_incr(__i); > return *this; > } > > const_iterator& > operator-=(difference_type __i) > { > *this += -__i; > return *this; > } > > const_iterator > operator+(difference_type __i) const > { > const_iterator __tmp = *this; > return __tmp += __i; > } > > const_iterator > operator-(difference_type __i) const > { > const_iterator __tmp = *this; > return __tmp -= __i; > } > > const_reference > operator[](difference_type __i) const > { return *(*this + __i); } > }; > > inline _Bit_const_iterator > operator+(ptrdiff_t __n, const _Bit_const_iterator& __x) > { return __x + __n; } > > inline void > __fill_bvector(_Bit_iterator __first, _Bit_iterator __last, bool __x) > { > for (; __first != __last; ++__first) > *__first = __x; > } > > inline void > fill(_Bit_iterator __first, _Bit_iterator __last, const bool& __x) > { > if (__first._M_p != __last._M_p) > { > std::fill(__first._M_p + 1, __last._M_p, __x ? ~0 : 0); > __fill_bvector(__first, _Bit_iterator(__first._M_p + 1, 0), __x); > __fill_bvector(_Bit_iterator(__last._M_p, 0), __last, __x); > } > else > __fill_bvector(__first, __last, __x); > } > > template<typename _Alloc> > struct _Bvector_base > { > typedef typename _Alloc::template rebind<_Bit_type>::other > _Bit_alloc_type; > > struct _Bvector_impl > : public _Bit_alloc_type > { > _Bit_iterator _M_start; > _Bit_iterator _M_finish; > _Bit_type* _M_end_of_storage; > > _Bvector_impl() > : _Bit_alloc_type(), _M_start(), _M_finish(), _M_end_of_storage(0) > { } > > _Bvector_impl(const _Bit_alloc_type& __a) > : _Bit_alloc_type(__a), _M_start(), _M_finish(), _M_end_of_storage(0) > { } > > > > > > > > }; > > public: > typedef _Alloc allocator_type; > > _Bit_alloc_type& > _M_get_Bit_allocator() > { return *static_cast<_Bit_alloc_type*>(&this->_M_impl); } > > const _Bit_alloc_type& > _M_get_Bit_allocator() const > { return *static_cast<const _Bit_alloc_type*>(&this->_M_impl); } > > allocator_type > get_allocator() const > { return allocator_type(_M_get_Bit_allocator()); } > > _Bvector_base() > : _M_impl() { } > > _Bvector_base(const allocator_type& __a) > : _M_impl(__a) { } ># 465 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > ~_Bvector_base() > { this->_M_deallocate(); } > > protected: > _Bvector_impl _M_impl; > > _Bit_type* > _M_allocate(size_t __n) > { return _M_impl.allocate(_S_nword(__n)); } > > void > _M_deallocate() > { > if (_M_impl._M_start._M_p) > _M_impl.deallocate(_M_impl._M_start._M_p, > _M_impl._M_end_of_storage - _M_impl._M_start._M_p); > } > > static size_t > _S_nword(size_t __n) > { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } > }; > > >} > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 517 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 >template<typename _Alloc> > class vector<bool, _Alloc> : protected _Bvector_base<_Alloc> > { > typedef _Bvector_base<_Alloc> _Base; > > > > > > public: > typedef bool value_type; > typedef size_t size_type; > typedef ptrdiff_t difference_type; > typedef _Bit_reference reference; > typedef bool const_reference; > typedef _Bit_reference* pointer; > typedef const bool* const_pointer; > typedef _Bit_iterator iterator; > typedef _Bit_const_iterator const_iterator; > typedef std::reverse_iterator<const_iterator> const_reverse_iterator; > typedef std::reverse_iterator<iterator> reverse_iterator; > typedef _Alloc allocator_type; > > allocator_type get_allocator() const > { return _Base::get_allocator(); } > > protected: > using _Base::_M_allocate; > using _Base::_M_deallocate; > using _Base::_S_nword; > using _Base::_M_get_Bit_allocator; > > public: > vector() > : _Base() { } > > explicit > vector(const allocator_type& __a) > : _Base(__a) { } ># 572 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > explicit > vector(size_type __n, const bool& __value = bool(), > const allocator_type& __a = allocator_type()) > : _Base(__a) > { > _M_initialize(__n); > std::fill(this->_M_impl._M_start._M_p, this->_M_impl._M_end_of_storage, > __value ? ~0 : 0); > } > > > vector(const vector& __x) > : _Base(__x._M_get_Bit_allocator()) > { > _M_initialize(__x.size()); > _M_copy_aligned(__x.begin(), __x.end(), this->_M_impl._M_start); > } ># 611 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > template<typename _InputIterator> > vector(_InputIterator __first, _InputIterator __last, > const allocator_type& __a = allocator_type()) > : _Base(__a) > { > typedef typename std::__is_integer<_InputIterator>::__type _Integral; > _M_initialize_dispatch(__first, __last, _Integral()); > } > > > ~vector() { } > > vector& > operator=(const vector& __x) > { > if (&__x == this) > return *this; > if (__x.size() > capacity()) > { > this->_M_deallocate(); > _M_initialize(__x.size()); > } > this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), > begin()); > return *this; > } ># 661 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > void > assign(size_type __n, const bool& __x) > { _M_fill_assign(__n, __x); } ># 672 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > template<typename _InputIterator> > void > assign(_InputIterator __first, _InputIterator __last) > { > typedef typename std::__is_integer<_InputIterator>::__type _Integral; > _M_assign_dispatch(__first, __last, _Integral()); > } ># 687 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > iterator > begin() > { return this->_M_impl._M_start; } > > const_iterator > begin() const > { return this->_M_impl._M_start; } > > iterator > end() > { return this->_M_impl._M_finish; } > > const_iterator > end() const > { return this->_M_impl._M_finish; } > > reverse_iterator > rbegin() > { return reverse_iterator(end()); } > > const_reverse_iterator > rbegin() const > { return const_reverse_iterator(end()); } > > reverse_iterator > rend() > { return reverse_iterator(begin()); } > > const_reverse_iterator > rend() const > { return const_reverse_iterator(begin()); } ># 737 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > size_type > size() const > { return size_type(end() - begin()); } > > size_type > max_size() const > { > const size_type __isize = > __gnu_cxx::__numeric_traits<difference_type>::__max > - int(_S_word_bit) + 1; > const size_type __asize = _M_get_Bit_allocator().max_size(); > return (__asize <= __isize / int(_S_word_bit) > ? __asize * int(_S_word_bit) : __isize); > } > > size_type > capacity() const > { return size_type(const_iterator(this->_M_impl._M_end_of_storage, 0) > - begin()); } > > bool > empty() const > { return begin() == end(); } > > reference > operator[](size_type __n) > { > return *iterator(this->_M_impl._M_start._M_p > + __n / int(_S_word_bit), __n % int(_S_word_bit)); > } > > const_reference > operator[](size_type __n) const > { > return *const_iterator(this->_M_impl._M_start._M_p > + __n / int(_S_word_bit), __n % int(_S_word_bit)); > } > > protected: > void > _M_range_check(size_type __n) const > { > if (__n >= this->size()) > __throw_out_of_range(("vector<bool>::_M_range_check")); > } > > public: > reference > at(size_type __n) > { _M_range_check(__n); return (*this)[__n]; } > > const_reference > at(size_type __n) const > { _M_range_check(__n); return (*this)[__n]; } > > void > reserve(size_type __n) > { > if (__n > max_size()) > __throw_length_error(("vector::reserve")); > if (capacity() < __n) > _M_reallocate(__n); > } > > reference > front() > { return *begin(); } > > const_reference > front() const > { return *begin(); } > > reference > back() > { return *(end() - 1); } > > const_reference > back() const > { return *(end() - 1); } > > > > > > > void > data() { } > > void > push_back(bool __x) > { > if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_of_storage) > *this->_M_impl._M_finish++ = __x; > else > _M_insert_aux(end(), __x); > } > > void > swap(vector& __x) > { > std::swap(this->_M_impl._M_start, __x._M_impl._M_start); > std::swap(this->_M_impl._M_finish, __x._M_impl._M_finish); > std::swap(this->_M_impl._M_end_of_storage, > __x._M_impl._M_end_of_storage); > > > > std::__alloc_swap<typename _Base::_Bit_alloc_type>:: > _S_do_it(_M_get_Bit_allocator(), __x._M_get_Bit_allocator()); > } > > > static void > swap(reference __x, reference __y) > { > bool __tmp = __x; > __x = __y; > __y = __tmp; > } > > iterator > insert(iterator __position, const bool& __x = bool()) > { > const difference_type __n = __position - begin(); > if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_of_storage > && __position == end()) > *this->_M_impl._M_finish++ = __x; > else > _M_insert_aux(__position, __x); > return begin() + __n; > } ># 877 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > template<typename _InputIterator> > void > insert(iterator __position, > _InputIterator __first, _InputIterator __last) > { > typedef typename std::__is_integer<_InputIterator>::__type _Integral; > _M_insert_dispatch(__position, __first, __last, _Integral()); > } > > > void > insert(iterator __position, size_type __n, const bool& __x) > { _M_fill_insert(__position, __n, __x); } > > > > > > > void > pop_back() > { --this->_M_impl._M_finish; } > > iterator > erase(iterator __position) > { > if (__position + 1 != end()) > std::copy(__position + 1, end(), __position); > --this->_M_impl._M_finish; > return __position; > } > > iterator > erase(iterator __first, iterator __last) > { > if (__first != __last) > _M_erase_at_end(std::copy(__last, end(), __first)); > return __first; > } > > void > resize(size_type __new_size, bool __x = bool()) > { > if (__new_size < size()) > _M_erase_at_end(begin() + difference_type(__new_size)); > else > insert(end(), __new_size - size(), __x); > } > > > > > > > > void > flip() > { > for (_Bit_type * __p = this->_M_impl._M_start._M_p; > __p != this->_M_impl._M_end_of_storage; ++__p) > *__p = ~*__p; > } > > void > clear() > { _M_erase_at_end(begin()); } > > > protected: > > iterator > _M_copy_aligned(const_iterator __first, const_iterator __last, > iterator __result) > { > _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); > return std::copy(const_iterator(__last._M_p, 0), __last, > iterator(__q, 0)); > } > > void > _M_initialize(size_type __n) > { > _Bit_type* __q = this->_M_allocate(__n); > this->_M_impl._M_end_of_storage = __q + _S_nword(__n); > this->_M_impl._M_start = iterator(__q, 0); > this->_M_impl._M_finish = this->_M_impl._M_start + difference_type(__n); > } > > void > _M_reallocate(size_type __n); ># 977 "/usr/include/c++/4.8.2/bits/stl_bvector.h" 3 > template<typename _Integer> > void > _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) > { > _M_initialize(static_cast<size_type>(__n)); > std::fill(this->_M_impl._M_start._M_p, > this->_M_impl._M_end_of_storage, __x ? ~0 : 0); > } > > template<typename _InputIterator> > void > _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, > __false_type) > { _M_initialize_range(__first, __last, > std::__iterator_category(__first)); } > > template<typename _InputIterator> > void > _M_initialize_range(_InputIterator __first, _InputIterator __last, > std::input_iterator_tag) > { > for (; __first != __last; ++__first) > push_back(*__first); > } > > template<typename _ForwardIterator> > void > _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, > std::forward_iterator_tag) > { > const size_type __n = std::distance(__first, __last); > _M_initialize(__n); > std::copy(__first, __last, this->_M_impl._M_start); > } > > > > template<typename _Integer> > void > _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) > { _M_fill_assign(__n, __val); } > > template<class _InputIterator> > void > _M_assign_dispatch(_InputIterator __first, _InputIterator __last, > __false_type) > { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } > > void > _M_fill_assign(size_t __n, bool __x) > { > if (__n > size()) > { > std::fill(this->_M_impl._M_start._M_p, > this->_M_impl._M_end_of_storage, __x ? ~0 : 0); > insert(end(), __n - size(), __x); > } > else > { > _M_erase_at_end(begin() + __n); > std::fill(this->_M_impl._M_start._M_p, > this->_M_impl._M_end_of_storage, __x ? ~0 : 0); > } > } > > template<typename _InputIterator> > void > _M_assign_aux(_InputIterator __first, _InputIterator __last, > std::input_iterator_tag) > { > iterator __cur = begin(); > for (; __first != __last && __cur != end(); ++__cur, ++__first) > *__cur = *__first; > if (__first == __last) > _M_erase_at_end(__cur); > else > insert(end(), __first, __last); > } > > template<typename _ForwardIterator> > void > _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, > std::forward_iterator_tag) > { > const size_type __len = std::distance(__first, __last); > if (__len < size()) > _M_erase_at_end(std::copy(__first, __last, begin())); > else > { > _ForwardIterator __mid = __first; > std::advance(__mid, size()); > std::copy(__first, __mid, begin()); > insert(end(), __mid, __last); > } > } > > > > > > template<typename _Integer> > void > _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __x, > __true_type) > { _M_fill_insert(__pos, __n, __x); } > > template<typename _InputIterator> > void > _M_insert_dispatch(iterator __pos, > _InputIterator __first, _InputIterator __last, > __false_type) > { _M_insert_range(__pos, __first, __last, > std::__iterator_category(__first)); } > > void > _M_fill_insert(iterator __position, size_type __n, bool __x); > > template<typename _InputIterator> > void > _M_insert_range(iterator __pos, _InputIterator __first, > _InputIterator __last, std::input_iterator_tag) > { > for (; __first != __last; ++__first) > { > __pos = insert(__pos, *__first); > ++__pos; > } > } > > template<typename _ForwardIterator> > void > _M_insert_range(iterator __position, _ForwardIterator __first, > _ForwardIterator __last, std::forward_iterator_tag); > > void > _M_insert_aux(iterator __position, bool __x); > > size_type > _M_check_len(size_type __n, const char* __s) const > { > if (max_size() - size() < __n) > __throw_length_error((__s)); > > const size_type __len = size() + std::max(size(), __n); > return (__len < size() || __len > max_size()) ? max_size() : __len; > } > > void > _M_erase_at_end(iterator __pos) > { this->_M_impl._M_finish = __pos; } > }; > > >} ># 66 "/usr/include/c++/4.8.2/vector" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/range_access.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/range_access.h" 3 >#define _GLIBCXX_RANGE_ACCESS_H 1 > > ># 34 "/usr/include/c++/4.8.2/bits/range_access.h" 3 ># 67 "/usr/include/c++/4.8.2/vector" 2 3 > > ># 1 "/usr/include/c++/4.8.2/bits/vector.tcc" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/vector.tcc" 3 >#define _VECTOR_TCC 1 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _Tp, typename _Alloc> > void > vector<_Tp, _Alloc>:: > reserve(size_type __n) > { > if (__n > this->max_size()) > __throw_length_error(("vector::reserve")); > if (this->capacity() < __n) > { > const size_type __old_size = size(); > pointer __tmp = _M_allocate_and_copy(__n, > (this->_M_impl._M_start), > (this->_M_impl._M_finish)); > std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, > _M_get_Tp_allocator()); > _M_deallocate(this->_M_impl._M_start, > this->_M_impl._M_end_of_storage > - this->_M_impl._M_start); > this->_M_impl._M_start = __tmp; > this->_M_impl._M_finish = __tmp + __old_size; > this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; > } > } ># 105 "/usr/include/c++/4.8.2/bits/vector.tcc" 3 > template<typename _Tp, typename _Alloc> > typename vector<_Tp, _Alloc>::iterator > vector<_Tp, _Alloc>:: > insert(iterator __position, const value_type& __x) > { > const size_type __n = __position - begin(); > if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage > && __position == end()) > { > _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, __x); > ++this->_M_impl._M_finish; > } > else > { ># 127 "/usr/include/c++/4.8.2/bits/vector.tcc" 3 > _M_insert_aux(__position, __x); > } > return iterator(this->_M_impl._M_start + __n); > } > > template<typename _Tp, typename _Alloc> > typename vector<_Tp, _Alloc>::iterator > vector<_Tp, _Alloc>:: > erase(iterator __position) > { > if (__position + 1 != end()) > std::copy(__position + 1, end(), __position); > --this->_M_impl._M_finish; > _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); > return __position; > } > > template<typename _Tp, typename _Alloc> > typename vector<_Tp, _Alloc>::iterator > vector<_Tp, _Alloc>:: > erase(iterator __first, iterator __last) > { > if (__first != __last) > { > if (__last != end()) > std::copy(__last, end(), __first); > _M_erase_at_end(__first.base() + (end() - __last)); > } > return __first; > } > > template<typename _Tp, typename _Alloc> > vector<_Tp, _Alloc>& > vector<_Tp, _Alloc>:: > operator=(const vector<_Tp, _Alloc>& __x) > { > if (&__x != this) > { ># 184 "/usr/include/c++/4.8.2/bits/vector.tcc" 3 > const size_type __xlen = __x.size(); > if (__xlen > capacity()) > { > pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), > __x.end()); > std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, > _M_get_Tp_allocator()); > _M_deallocate(this->_M_impl._M_start, > this->_M_impl._M_end_of_storage > - this->_M_impl._M_start); > this->_M_impl._M_start = __tmp; > this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; > } > else if (size() >= __xlen) > { > std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), > end(), _M_get_Tp_allocator()); > } > else > { > std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), > this->_M_impl._M_start); > std::__uninitialized_copy_a(__x._M_impl._M_start + size(), > __x._M_impl._M_finish, > this->_M_impl._M_finish, > _M_get_Tp_allocator()); > } > this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; > } > return *this; > } > > template<typename _Tp, typename _Alloc> > void > vector<_Tp, _Alloc>:: > _M_fill_assign(size_t __n, const value_type& __val) > { > if (__n > capacity()) > { > vector __tmp(__n, __val, _M_get_Tp_allocator()); > __tmp.swap(*this); > } > else if (__n > size()) > { > std::fill(begin(), end(), __val); > std::__uninitialized_fill_n_a(this->_M_impl._M_finish, > __n - size(), __val, > _M_get_Tp_allocator()); > this->_M_impl._M_finish += __n - size(); > } > else > _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); > } > > template<typename _Tp, typename _Alloc> > template<typename _InputIterator> > void > vector<_Tp, _Alloc>:: > _M_assign_aux(_InputIterator __first, _InputIterator __last, > std::input_iterator_tag) > { > pointer __cur(this->_M_impl._M_start); > for (; __first != __last && __cur != this->_M_impl._M_finish; > ++__cur, ++__first) > *__cur = *__first; > if (__first == __last) > _M_erase_at_end(__cur); > else > insert(end(), __first, __last); > } > > template<typename _Tp, typename _Alloc> > template<typename _ForwardIterator> > void > vector<_Tp, _Alloc>:: > _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, > std::forward_iterator_tag) > { > const size_type __len = std::distance(__first, __last); > > if (__len > capacity()) > { > pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); > std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, > _M_get_Tp_allocator()); > _M_deallocate(this->_M_impl._M_start, > this->_M_impl._M_end_of_storage > - this->_M_impl._M_start); > this->_M_impl._M_start = __tmp; > this->_M_impl._M_finish = this->_M_impl._M_start + __len; > this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; > } > else if (size() >= __len) > _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); > else > { > _ForwardIterator __mid = __first; > std::advance(__mid, size()); > std::copy(__first, __mid, this->_M_impl._M_start); > this->_M_impl._M_finish = > std::__uninitialized_copy_a(__mid, __last, > this->_M_impl._M_finish, > _M_get_Tp_allocator()); > } > } ># 316 "/usr/include/c++/4.8.2/bits/vector.tcc" 3 > template<typename _Tp, typename _Alloc> > void > vector<_Tp, _Alloc>:: > _M_insert_aux(iterator __position, const _Tp& __x) > > { > if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) > { > _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, > (*(this->_M_impl._M_finish - 1)) > ); > ++this->_M_impl._M_finish; > > _Tp __x_copy = __x; > > std::copy_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) > > ; > > *__position = __x_copy; > > > > } > else > { > const size_type __len = > _M_check_len(size_type(1), "vector::_M_insert_aux"); > const size_type __elems_before = __position - begin(); > pointer __new_start(this->_M_allocate(__len)); > pointer __new_finish(__new_start); > try > { > > > > > _Alloc_traits::construct(this->_M_impl, > __new_start + __elems_before, > > > > __x); > > __new_finish = 0; > > __new_finish > = std::__uninitialized_move_if_noexcept_a > (this->_M_impl._M_start, __position.base(), > __new_start, _M_get_Tp_allocator()); > > ++__new_finish; > > __new_finish > = std::__uninitialized_move_if_noexcept_a > (__position.base(), this->_M_impl._M_finish, > __new_finish, _M_get_Tp_allocator()); > } > catch(...) > { > if (!__new_finish) > _Alloc_traits::destroy(this->_M_impl, > __new_start + __elems_before); > else > std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); > _M_deallocate(__new_start, __len); > throw; > } > std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, > _M_get_Tp_allocator()); > _M_deallocate(this->_M_impl._M_start, > this->_M_impl._M_end_of_storage > - this->_M_impl._M_start); > this->_M_impl._M_start = __new_start; > this->_M_impl._M_finish = __new_finish; > this->_M_impl._M_end_of_storage = __new_start + __len; > } > } ># 439 "/usr/include/c++/4.8.2/bits/vector.tcc" 3 > template<typename _Tp, typename _Alloc> > void > vector<_Tp, _Alloc>:: > _M_fill_insert(iterator __position, size_type __n, const value_type& __x) > { > if (__n != 0) > { > if (size_type(this->_M_impl._M_end_of_storage > - this->_M_impl._M_finish) >= __n) > { > value_type __x_copy = __x; > const size_type __elems_after = end() - __position; > pointer __old_finish(this->_M_impl._M_finish); > if (__elems_after > __n) > { > std::__uninitialized_move_a(this->_M_impl._M_finish - __n, > this->_M_impl._M_finish, > this->_M_impl._M_finish, > _M_get_Tp_allocator()); > this->_M_impl._M_finish += __n; > std::copy_backward(__position.base(), __old_finish - __n, __old_finish) > ; > std::fill(__position.base(), __position.base() + __n, > __x_copy); > } > else > { > std::__uninitialized_fill_n_a(this->_M_impl._M_finish, > __n - __elems_after, > __x_copy, > _M_get_Tp_allocator()); > this->_M_impl._M_finish += __n - __elems_after; > std::__uninitialized_move_a(__position.base(), __old_finish, > this->_M_impl._M_finish, > _M_get_Tp_allocator()); > this->_M_impl._M_finish += __elems_after; > std::fill(__position.base(), __old_finish, __x_copy); > } > } > else > { > const size_type __len = > _M_check_len(__n, "vector::_M_fill_insert"); > const size_type __elems_before = __position - begin(); > pointer __new_start(this->_M_allocate(__len)); > pointer __new_finish(__new_start); > try > { > > std::__uninitialized_fill_n_a(__new_start + __elems_before, > __n, __x, > _M_get_Tp_allocator()); > __new_finish = 0; > > __new_finish > = std::__uninitialized_move_if_noexcept_a > (this->_M_impl._M_start, __position.base(), > __new_start, _M_get_Tp_allocator()); > > __new_finish += __n; > > __new_finish > = std::__uninitialized_move_if_noexcept_a > (__position.base(), this->_M_impl._M_finish, > __new_finish, _M_get_Tp_allocator()); > } > catch(...) > { > if (!__new_finish) > std::_Destroy(__new_start + __elems_before, > __new_start + __elems_before + __n, > _M_get_Tp_allocator()); > else > std::_Destroy(__new_start, __new_finish, > _M_get_Tp_allocator()); > _M_deallocate(__new_start, __len); > throw; > } > std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, > _M_get_Tp_allocator()); > _M_deallocate(this->_M_impl._M_start, > this->_M_impl._M_end_of_storage > - this->_M_impl._M_start); > this->_M_impl._M_start = __new_start; > this->_M_impl._M_finish = __new_finish; > this->_M_impl._M_end_of_storage = __new_start + __len; > } > } > } ># 591 "/usr/include/c++/4.8.2/bits/vector.tcc" 3 > template<typename _Tp, typename _Alloc> > template<typename _InputIterator> > void > vector<_Tp, _Alloc>:: > _M_range_insert(iterator __pos, _InputIterator __first, > _InputIterator __last, std::input_iterator_tag) > { > for (; __first != __last; ++__first) > { > __pos = insert(__pos, *__first); > ++__pos; > } > } > > template<typename _Tp, typename _Alloc> > template<typename _ForwardIterator> > void > vector<_Tp, _Alloc>:: > _M_range_insert(iterator __position, _ForwardIterator __first, > _ForwardIterator __last, std::forward_iterator_tag) > { > if (__first != __last) > { > const size_type __n = std::distance(__first, __last); > if (size_type(this->_M_impl._M_end_of_storage > - this->_M_impl._M_finish) >= __n) > { > const size_type __elems_after = end() - __position; > pointer __old_finish(this->_M_impl._M_finish); > if (__elems_after > __n) > { > std::__uninitialized_move_a(this->_M_impl._M_finish - __n, > this->_M_impl._M_finish, > this->_M_impl._M_finish, > _M_get_Tp_allocator()); > this->_M_impl._M_finish += __n; > std::copy_backward(__position.base(), __old_finish - __n, __old_finish) > ; > std::copy(__first, __last, __position); > } > else > { > _ForwardIterator __mid = __first; > std::advance(__mid, __elems_after); > std::__uninitialized_copy_a(__mid, __last, > this->_M_impl._M_finish, > _M_get_Tp_allocator()); > this->_M_impl._M_finish += __n - __elems_after; > std::__uninitialized_move_a(__position.base(), > __old_finish, > this->_M_impl._M_finish, > _M_get_Tp_allocator()); > this->_M_impl._M_finish += __elems_after; > std::copy(__first, __mid, __position); > } > } > else > { > const size_type __len = > _M_check_len(__n, "vector::_M_range_insert"); > pointer __new_start(this->_M_allocate(__len)); > pointer __new_finish(__new_start); > try > { > __new_finish > = std::__uninitialized_move_if_noexcept_a > (this->_M_impl._M_start, __position.base(), > __new_start, _M_get_Tp_allocator()); > __new_finish > = std::__uninitialized_copy_a(__first, __last, > __new_finish, > _M_get_Tp_allocator()); > __new_finish > = std::__uninitialized_move_if_noexcept_a > (__position.base(), this->_M_impl._M_finish, > __new_finish, _M_get_Tp_allocator()); > } > catch(...) > { > std::_Destroy(__new_start, __new_finish, > _M_get_Tp_allocator()); > _M_deallocate(__new_start, __len); > throw; > } > std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, > _M_get_Tp_allocator()); > _M_deallocate(this->_M_impl._M_start, > this->_M_impl._M_end_of_storage > - this->_M_impl._M_start); > this->_M_impl._M_start = __new_start; > this->_M_impl._M_finish = __new_finish; > this->_M_impl._M_end_of_storage = __new_start + __len; > } > } > } > > > > template<typename _Alloc> > void > vector<bool, _Alloc>:: > _M_reallocate(size_type __n) > { > _Bit_type* __q = this->_M_allocate(__n); > this->_M_impl._M_finish = _M_copy_aligned(begin(), end(), > iterator(__q, 0)); > this->_M_deallocate(); > this->_M_impl._M_start = iterator(__q, 0); > this->_M_impl._M_end_of_storage = __q + _S_nword(__n); > } > > template<typename _Alloc> > void > vector<bool, _Alloc>:: > _M_fill_insert(iterator __position, size_type __n, bool __x) > { > if (__n == 0) > return; > if (capacity() - size() >= __n) > { > std::copy_backward(__position, end(), > this->_M_impl._M_finish + difference_type(__n)); > std::fill(__position, __position + difference_type(__n), __x); > this->_M_impl._M_finish += difference_type(__n); > } > else > { > const size_type __len = > _M_check_len(__n, "vector<bool>::_M_fill_insert"); > _Bit_type * __q = this->_M_allocate(__len); > iterator __i = _M_copy_aligned(begin(), __position, > iterator(__q, 0)); > std::fill(__i, __i + difference_type(__n), __x); > this->_M_impl._M_finish = std::copy(__position, end(), > __i + difference_type(__n)); > this->_M_deallocate(); > this->_M_impl._M_end_of_storage = __q + _S_nword(__len); > this->_M_impl._M_start = iterator(__q, 0); > } > } > > template<typename _Alloc> > template<typename _ForwardIterator> > void > vector<bool, _Alloc>:: > _M_insert_range(iterator __position, _ForwardIterator __first, > _ForwardIterator __last, std::forward_iterator_tag) > { > if (__first != __last) > { > size_type __n = std::distance(__first, __last); > if (capacity() - size() >= __n) > { > std::copy_backward(__position, end(), > this->_M_impl._M_finish > + difference_type(__n)); > std::copy(__first, __last, __position); > this->_M_impl._M_finish += difference_type(__n); > } > else > { > const size_type __len = > _M_check_len(__n, "vector<bool>::_M_insert_range"); > _Bit_type * __q = this->_M_allocate(__len); > iterator __i = _M_copy_aligned(begin(), __position, > iterator(__q, 0)); > __i = std::copy(__first, __last, __i); > this->_M_impl._M_finish = std::copy(__position, end(), __i); > this->_M_deallocate(); > this->_M_impl._M_end_of_storage = __q + _S_nword(__len); > this->_M_impl._M_start = iterator(__q, 0); > } > } > } > > template<typename _Alloc> > void > vector<bool, _Alloc>:: > _M_insert_aux(iterator __position, bool __x) > { > if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_of_storage) > { > std::copy_backward(__position, this->_M_impl._M_finish, > this->_M_impl._M_finish + 1); > *__position = __x; > ++this->_M_impl._M_finish; > } > else > { > const size_type __len = > _M_check_len(size_type(1), "vector<bool>::_M_insert_aux"); > _Bit_type * __q = this->_M_allocate(__len); > iterator __i = _M_copy_aligned(begin(), __position, > iterator(__q, 0)); > *__i++ = __x; > this->_M_impl._M_finish = std::copy(__position, end(), __i); > this->_M_deallocate(); > this->_M_impl._M_end_of_storage = __q + _S_nword(__len); > this->_M_impl._M_start = iterator(__q, 0); > } > } ># 811 "/usr/include/c++/4.8.2/bits/vector.tcc" 3 > >} ># 70 "/usr/include/c++/4.8.2/vector" 2 3 ># 56 "../gtest_contrib/gtest/gtest.h" 2 ># 94 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_ ># 132 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ ># 281 "../gtest_contrib/gtest/gtest.h" ># 1 "/usr/include/ctype.h" 1 3 4 ># 23 "/usr/include/ctype.h" 3 4 >#define _CTYPE_H 1 > > ># 1 "/usr/include/bits/types.h" 1 3 4 ># 24 "/usr/include/bits/types.h" 3 4 >#define _BITS_TYPES_H 1 > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 28 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned char __u_char; >typedef unsigned short int __u_short; >typedef unsigned int __u_int; >typedef unsigned long int __u_long; > > >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef signed short int __int16_t; >typedef unsigned short int __uint16_t; >typedef signed int __int32_t; >typedef unsigned int __uint32_t; > >typedef signed long int __int64_t; >typedef unsigned long int __uint64_t; > > > > > > > >typedef long int __quad_t; >typedef unsigned long int __u_quad_t; ># 89 "/usr/include/bits/types.h" 3 4 >#define __S16_TYPE short int >#define __U16_TYPE unsigned short int >#define __S32_TYPE int >#define __U32_TYPE unsigned int >#define __SLONGWORD_TYPE long int >#define __ULONGWORD_TYPE unsigned long int ># 108 "/usr/include/bits/types.h" 3 4 >#define __SQUAD_TYPE long int >#define __UQUAD_TYPE unsigned long int >#define __SWORD_TYPE long int >#define __UWORD_TYPE unsigned long int >#define __SLONG32_TYPE int >#define __ULONG32_TYPE unsigned int >#define __S64_TYPE long int >#define __U64_TYPE unsigned long int > >#define __STD_TYPE typedef > > > ># 1 "/usr/include/bits/typesizes.h" 1 3 4 ># 24 "/usr/include/bits/typesizes.h" 3 4 >#define _BITS_TYPESIZES_H 1 ># 34 "/usr/include/bits/typesizes.h" 3 4 >#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE >#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE > > >#define __DEV_T_TYPE __UQUAD_TYPE >#define __UID_T_TYPE __U32_TYPE >#define __GID_T_TYPE __U32_TYPE >#define __INO_T_TYPE __SYSCALL_ULONG_TYPE >#define __INO64_T_TYPE __UQUAD_TYPE >#define __MODE_T_TYPE __U32_TYPE > >#define __NLINK_T_TYPE __SYSCALL_ULONG_TYPE >#define __FSWORD_T_TYPE __SYSCALL_SLONG_TYPE > > > > >#define __OFF_T_TYPE __SYSCALL_SLONG_TYPE >#define __OFF64_T_TYPE __SQUAD_TYPE >#define __PID_T_TYPE __S32_TYPE >#define __RLIM_T_TYPE __SYSCALL_ULONG_TYPE >#define __RLIM64_T_TYPE __UQUAD_TYPE >#define __BLKCNT_T_TYPE __SYSCALL_SLONG_TYPE >#define __BLKCNT64_T_TYPE __SQUAD_TYPE >#define __FSBLKCNT_T_TYPE __SYSCALL_ULONG_TYPE >#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE >#define __FSFILCNT_T_TYPE __SYSCALL_ULONG_TYPE >#define __FSFILCNT64_T_TYPE __UQUAD_TYPE >#define __ID_T_TYPE __U32_TYPE >#define __CLOCK_T_TYPE __SYSCALL_SLONG_TYPE >#define __TIME_T_TYPE __SYSCALL_SLONG_TYPE >#define __USECONDS_T_TYPE __U32_TYPE >#define __SUSECONDS_T_TYPE __SYSCALL_SLONG_TYPE >#define __DADDR_T_TYPE __S32_TYPE >#define __KEY_T_TYPE __S32_TYPE >#define __CLOCKID_T_TYPE __S32_TYPE >#define __TIMER_T_TYPE void * >#define __BLKSIZE_T_TYPE __SYSCALL_SLONG_TYPE >#define __FSID_T_TYPE struct { int __val[2]; } >#define __SSIZE_T_TYPE __SWORD_TYPE > > > > > >#define __OFF_T_MATCHES_OFF64_T 1 > > >#define __INO_T_MATCHES_INO64_T 1 > > > >#define __FD_SETSIZE 1024 ># 122 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned long int __dev_t; >typedef unsigned int __uid_t; >typedef unsigned int __gid_t; >typedef unsigned long int __ino_t; >typedef unsigned long int __ino64_t; >typedef unsigned int __mode_t; >typedef unsigned long int __nlink_t; >typedef long int __off_t; >typedef long int __off64_t; >typedef int __pid_t; >typedef struct { int __val[2]; } __fsid_t; >typedef long int __clock_t; >typedef unsigned long int __rlim_t; >typedef unsigned long int __rlim64_t; >typedef unsigned int __id_t; >typedef long int __time_t; >typedef unsigned int __useconds_t; >typedef long int __suseconds_t; > >typedef int __daddr_t; >typedef int __key_t; > > >typedef int __clockid_t; > > >typedef void * __timer_t; > > >typedef long int __blksize_t; > > > > >typedef long int __blkcnt_t; >typedef long int __blkcnt64_t; > > >typedef unsigned long int __fsblkcnt_t; >typedef unsigned long int __fsblkcnt64_t; > > >typedef unsigned long int __fsfilcnt_t; >typedef unsigned long int __fsfilcnt64_t; > > >typedef long int __fsword_t; > >typedef long int __ssize_t; > > >typedef long int __syscall_slong_t; > >typedef unsigned long int __syscall_ulong_t; > > > >typedef __off64_t __loff_t; >typedef __quad_t *__qaddr_t; >typedef char *__caddr_t; > > >typedef long int __intptr_t; > > >typedef unsigned int __socklen_t; > > >#undef __STD_TYPE ># 27 "/usr/include/ctype.h" 2 3 4 > >extern "C" { ># 39 "/usr/include/ctype.h" 3 4 ># 1 "/usr/include/endian.h" 1 3 4 ># 19 "/usr/include/endian.h" 3 4 >#define _ENDIAN_H 1 ># 31 "/usr/include/endian.h" 3 4 >#define __LITTLE_ENDIAN 1234 >#define __BIG_ENDIAN 4321 >#define __PDP_ENDIAN 3412 > > ># 1 "/usr/include/bits/endian.h" 1 3 4 > > > > > > >#define __BYTE_ORDER __LITTLE_ENDIAN ># 37 "/usr/include/endian.h" 2 3 4 > > > > >#define __FLOAT_WORD_ORDER __BYTE_ORDER > > > >#define LITTLE_ENDIAN __LITTLE_ENDIAN >#define BIG_ENDIAN __BIG_ENDIAN >#define PDP_ENDIAN __PDP_ENDIAN >#define BYTE_ORDER __BYTE_ORDER > > > >#define __LONG_LONG_PAIR(HI,LO) LO, HI > > > > > > > ># 1 "/usr/include/bits/byteswap.h" 1 3 4 ># 24 "/usr/include/bits/byteswap.h" 3 4 >#define _BITS_BYTESWAP_H 1 > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 29 "/usr/include/bits/byteswap.h" 2 3 4 > > >#define __bswap_constant_16(x) ((unsigned short int) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))) > > > ># 1 "/usr/include/bits/byteswap-16.h" 1 3 4 ># 25 "/usr/include/bits/byteswap-16.h" 3 4 >#define __bswap_16(x) (__extension__ ({ unsigned short int __v, __x = (unsigned short int) (x); if (__builtin_constant_p (__x)) __v = __bswap_constant_16 (__x); else __asm__ ("rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) ># 36 "/usr/include/bits/byteswap.h" 2 3 4 > > >#define __bswap_constant_32(x) ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) > > > > > >static __inline unsigned int >__bswap_32 (unsigned int __bsx) >{ > return __builtin_bswap32 (__bsx); >} ># 97 "/usr/include/bits/byteswap.h" 3 4 >#define __bswap_constant_64(x) (__extension__ ((((x) & 0xff00000000000000ull) >> 56) | (((x) & 0x00ff000000000000ull) >> 40) | (((x) & 0x0000ff0000000000ull) >> 24) | (((x) & 0x000000ff00000000ull) >> 8) | (((x) & 0x00000000ff000000ull) << 8) | (((x) & 0x0000000000ff0000ull) << 24) | (((x) & 0x000000000000ff00ull) << 40) | (((x) & 0x00000000000000ffull) << 56))) ># 108 "/usr/include/bits/byteswap.h" 3 4 >static __inline __uint64_t >__bswap_64 (__uint64_t __bsx) >{ > return __builtin_bswap64 (__bsx); >} ># 61 "/usr/include/endian.h" 2 3 4 > > >#define htobe16(x) __bswap_16 (x) >#define htole16(x) (x) >#define be16toh(x) __bswap_16 (x) >#define le16toh(x) (x) > >#define htobe32(x) __bswap_32 (x) >#define htole32(x) (x) >#define be32toh(x) __bswap_32 (x) >#define le32toh(x) (x) > >#define htobe64(x) __bswap_64 (x) >#define htole64(x) (x) >#define be64toh(x) __bswap_64 (x) >#define le64toh(x) (x) ># 40 "/usr/include/ctype.h" 2 3 4 > > > >#define _ISbit(bit) ((bit) < 8 ? ((1 << (bit)) << 8) : ((1 << (bit)) >> 8)) > > >enum >{ > _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), > _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), > _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), > _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), > _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), > _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), > _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), > _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), > _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), > _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), > _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), > _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) >}; ># 79 "/usr/include/ctype.h" 3 4 >extern const unsigned short int **__ctype_b_loc (void) > throw () __attribute__ ((__const__)); >extern const __int32_t **__ctype_tolower_loc (void) > throw () __attribute__ ((__const__)); >extern const __int32_t **__ctype_toupper_loc (void) > throw () __attribute__ ((__const__)); ># 99 "/usr/include/ctype.h" 3 4 >#define __isascii(c) (((c) & ~0x7f) == 0) >#define __toascii(c) ((c) & 0x7f) > >#define __exctype(name) extern int name (int) __THROW > > > > > > > >extern int isalnum (int) throw (); >extern int isalpha (int) throw (); >extern int iscntrl (int) throw (); >extern int isdigit (int) throw (); >extern int islower (int) throw (); >extern int isgraph (int) throw (); >extern int isprint (int) throw (); >extern int ispunct (int) throw (); >extern int isspace (int) throw (); >extern int isupper (int) throw (); >extern int isxdigit (int) throw (); > > > >extern int tolower (int __c) throw (); > > >extern int toupper (int __c) throw (); > > > > > > > > >extern int isblank (int) throw (); > > > > > > >extern int isctype (int __c, int __mask) throw (); > > > > > > >extern int isascii (int __c) throw (); > > > >extern int toascii (int __c) throw (); > > > >extern int _toupper (int) throw (); >extern int _tolower (int) throw (); > > > >#define __tobody(c,f,a,args) (__extension__ ({ int __res; if (sizeof (c) > 1) { if (__builtin_constant_p (c)) { int __c = (c); __res = __c < -128 || __c > 255 ? __c : (a)[__c]; } else __res = f args; } else __res = (a)[(int) (c)]; __res; })) ># 257 "/usr/include/ctype.h" 3 4 ># 1 "/usr/include/xlocale.h" 1 3 4 ># 21 "/usr/include/xlocale.h" 3 4 >#define _XLOCALE_H 1 > > > > > >typedef struct __locale_struct >{ > > struct __locale_data *__locales[13]; > > > const unsigned short int *__ctype_b; > const int *__ctype_tolower; > const int *__ctype_toupper; > > > const char *__names[13]; >} *__locale_t; > > >typedef __locale_t locale_t; ># 258 "/usr/include/ctype.h" 2 3 4 > > > >#define __isctype_l(c,type,locale) ((locale)->__ctype_b[(int) (c)] & (unsigned short int) type) > > >#define __exctype_l(name) extern int name (int, __locale_t) __THROW > > > > > > >extern int isalnum_l (int, __locale_t) throw (); >extern int isalpha_l (int, __locale_t) throw (); >extern int iscntrl_l (int, __locale_t) throw (); >extern int isdigit_l (int, __locale_t) throw (); >extern int islower_l (int, __locale_t) throw (); >extern int isgraph_l (int, __locale_t) throw (); >extern int isprint_l (int, __locale_t) throw (); >extern int ispunct_l (int, __locale_t) throw (); >extern int isspace_l (int, __locale_t) throw (); >extern int isupper_l (int, __locale_t) throw (); >extern int isxdigit_l (int, __locale_t) throw (); > >extern int isblank_l (int, __locale_t) throw (); > > > >extern int __tolower_l (int __c, __locale_t __l) throw (); >extern int tolower_l (int __c, __locale_t __l) throw (); > > >extern int __toupper_l (int __c, __locale_t __l) throw (); >extern int toupper_l (int __c, __locale_t __l) throw (); ># 347 "/usr/include/ctype.h" 3 4 >} ># 282 "../gtest_contrib/gtest/gtest.h" 2 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 39 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#define _STDDEF_H >#define _STDDEF_H_ > >#define _ANSI_STDDEF_H ># 136 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#define _PTRDIFF_T >#define _T_PTRDIFF_ >#define _T_PTRDIFF >#define __PTRDIFF_T >#define _PTRDIFF_T_ >#define _BSD_PTRDIFF_T_ >#define ___int_ptrdiff_t_h >#define _GCC_PTRDIFF_T > > > >typedef long int ptrdiff_t; ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 184 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#define __size_t__ >#define __SIZE_T__ >#define _SIZE_T >#define _SYS_SIZE_T_H >#define _T_SIZE_ >#define _T_SIZE >#define __SIZE_T >#define _SIZE_T_ >#define _BSD_SIZE_T_ >#define _SIZE_T_DEFINED_ >#define _SIZE_T_DEFINED >#define _BSD_SIZE_T_DEFINED_ >#define _SIZE_T_DECLARED >#define ___int_size_t_h >#define _GCC_SIZE_T >#define _SIZET_ > > > > > > >#define __size_t > > > > > >typedef long unsigned int size_t; ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 263 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#define __wchar_t__ >#define __WCHAR_T__ >#define _WCHAR_T >#define _T_WCHAR_ >#define _T_WCHAR >#define __WCHAR_T >#define _WCHAR_T_ >#define _BSD_WCHAR_T_ >#define _WCHAR_T_DEFINED_ >#define _WCHAR_T_DEFINED >#define _WCHAR_T_H >#define ___int_wchar_t_h >#define __INT_WCHAR_T_H >#define _GCC_WCHAR_T >#define _WCHAR_T_DECLARED ># 290 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef _BSD_WCHAR_T_ ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 283 "../gtest_contrib/gtest/gtest.h" 2 ># 1 "/usr/include/stdlib.h" 1 3 4 ># 27 "/usr/include/stdlib.h" 3 4 >#define __need_size_t > >#define __need_wchar_t >#define __need_NULL > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 33 "/usr/include/stdlib.h" 2 3 4 > >extern "C" { > > >#define _STDLIB_H 1 > > > ># 1 "/usr/include/bits/waitflags.h" 1 3 4 ># 25 "/usr/include/bits/waitflags.h" 3 4 >#define WNOHANG 1 >#define WUNTRACED 2 > > >#define WSTOPPED 2 >#define WEXITED 4 >#define WCONTINUED 8 >#define WNOWAIT 0x01000000 > >#define __WNOTHREAD 0x20000000 > >#define __WALL 0x40000000 >#define __WCLONE 0x80000000 ># 42 "/usr/include/stdlib.h" 2 3 4 ># 1 "/usr/include/bits/waitstatus.h" 1 3 4 ># 28 "/usr/include/bits/waitstatus.h" 3 4 >#define __WEXITSTATUS(status) (((status) & 0xff00) >> 8) > > >#define __WTERMSIG(status) ((status) & 0x7f) > > >#define __WSTOPSIG(status) __WEXITSTATUS(status) > > >#define __WIFEXITED(status) (__WTERMSIG(status) == 0) > > >#define __WIFSIGNALED(status) (((signed char) (((status) & 0x7f) + 1) >> 1) > 0) > > > >#define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f) > > > > >#define __WIFCONTINUED(status) ((status) == __W_CONTINUED) > > > >#define __WCOREDUMP(status) ((status) & __WCOREFLAG) > > >#define __W_EXITCODE(ret,sig) ((ret) << 8 | (sig)) >#define __W_STOPCODE(sig) ((sig) << 8 | 0x7f) >#define __W_CONTINUED 0xffff >#define __WCOREFLAG 0x80 > > > > > > >union wait > { > int w_status; > struct > { > > unsigned int __w_termsig:7; > unsigned int __w_coredump:1; > unsigned int __w_retcode:8; > unsigned int:16; > > > > > > > > } __wait_terminated; > struct > { > > unsigned int __w_stopval:8; > unsigned int __w_stopsig:8; > unsigned int:16; > > > > > > > } __wait_stopped; > }; > >#define w_termsig __wait_terminated.__w_termsig >#define w_coredump __wait_terminated.__w_coredump >#define w_retcode __wait_terminated.__w_retcode >#define w_stopsig __wait_stopped.__w_stopsig >#define w_stopval __wait_stopped.__w_stopval ># 43 "/usr/include/stdlib.h" 2 3 4 ># 54 "/usr/include/stdlib.h" 3 4 >#define __WAIT_INT(status) (*(int *) &(status)) ># 63 "/usr/include/stdlib.h" 3 4 >#define __WAIT_STATUS void * >#define __WAIT_STATUS_DEFN void * ># 84 "/usr/include/stdlib.h" 3 4 >#define WEXITSTATUS(status) __WEXITSTATUS (__WAIT_INT (status)) >#define WTERMSIG(status) __WTERMSIG (__WAIT_INT (status)) >#define WSTOPSIG(status) __WSTOPSIG (__WAIT_INT (status)) >#define WIFEXITED(status) __WIFEXITED (__WAIT_INT (status)) >#define WIFSIGNALED(status) __WIFSIGNALED (__WAIT_INT (status)) >#define WIFSTOPPED(status) __WIFSTOPPED (__WAIT_INT (status)) > >#define WIFCONTINUED(status) __WIFCONTINUED (__WAIT_INT (status)) > > > > > >typedef struct > { > int quot; > int rem; > } div_t; > > > >typedef struct > { > long int quot; > long int rem; > } ldiv_t; >#define __ldiv_t_defined 1 > > > > > > >__extension__ typedef struct > { > long long int quot; > long long int rem; > } lldiv_t; >#define __lldiv_t_defined 1 > > > > > >#define RAND_MAX 2147483647 > > > > >#define EXIT_FAILURE 1 >#define EXIT_SUCCESS 0 > > > >#define MB_CUR_MAX (__ctype_get_mb_cur_max ()) >extern size_t __ctype_get_mb_cur_max (void) throw () ; > > > > >extern double atof (const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern int atoi (const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern long int atol (const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ extern long long int atoll (const char *__nptr) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern double strtod (const char *__restrict __nptr, > char **__restrict __endptr) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern float strtof (const char *__restrict __nptr, > char **__restrict __endptr) throw () __attribute__ ((__nonnull__ (1))); > >extern long double strtold (const char *__restrict __nptr, > char **__restrict __endptr) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern long int strtol (const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > >extern unsigned long int strtoul (const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > > > > >__extension__ >extern long long int strtoq (const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > >__extension__ >extern unsigned long long int strtouq (const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >__extension__ >extern long long int strtoll (const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > >__extension__ >extern unsigned long long int strtoull (const char *__restrict __nptr, > char **__restrict __endptr, int __base) > throw () __attribute__ ((__nonnull__ (1))); > ># 239 "/usr/include/stdlib.h" 3 4 >extern long int strtol_l (const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) throw () __attribute__ ((__nonnull__ (1, 4))); > >extern unsigned long int strtoul_l (const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 4))); > >__extension__ >extern long long int strtoll_l (const char *__restrict __nptr, > char **__restrict __endptr, int __base, > __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 4))); > >__extension__ >extern unsigned long long int strtoull_l (const char *__restrict __nptr, > char **__restrict __endptr, > int __base, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 4))); > >extern double strtod_l (const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 3))); > >extern float strtof_l (const char *__restrict __nptr, > char **__restrict __endptr, __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 3))); > >extern long double strtold_l (const char *__restrict __nptr, > char **__restrict __endptr, > __locale_t __loc) > throw () __attribute__ ((__nonnull__ (1, 3))); ># 305 "/usr/include/stdlib.h" 3 4 >extern char *l64a (long int __n) throw () ; > > >extern long int a64l (const char *__s) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > ># 1 "/usr/include/sys/types.h" 1 3 4 ># 23 "/usr/include/sys/types.h" 3 4 >#define _SYS_TYPES_H 1 > > > >extern "C" { > > > > > >typedef __u_char u_char; >typedef __u_short u_short; >typedef __u_int u_int; >typedef __u_long u_long; >typedef __quad_t quad_t; >typedef __u_quad_t u_quad_t; >typedef __fsid_t fsid_t; >#define __u_char_defined > > > >typedef __loff_t loff_t; > > > >typedef __ino_t ino_t; > > > >#define __ino_t_defined > > >typedef __ino64_t ino64_t; >#define __ino64_t_defined > > > >typedef __dev_t dev_t; >#define __dev_t_defined > > > >typedef __gid_t gid_t; >#define __gid_t_defined > > > >typedef __mode_t mode_t; >#define __mode_t_defined > > > >typedef __nlink_t nlink_t; >#define __nlink_t_defined > > > >typedef __uid_t uid_t; >#define __uid_t_defined > > > > >typedef __off_t off_t; > > > >#define __off_t_defined > > >typedef __off64_t off64_t; >#define __off64_t_defined > > > >typedef __pid_t pid_t; >#define __pid_t_defined > > > > >typedef __id_t id_t; >#define __id_t_defined > > > >typedef __ssize_t ssize_t; >#define __ssize_t_defined > > > > >typedef __daddr_t daddr_t; >typedef __caddr_t caddr_t; >#define __daddr_t_defined > > > > >typedef __key_t key_t; >#define __key_t_defined > > > >#define __need_clock_t > >#define __need_time_t >#define __need_timer_t >#define __need_clockid_t ># 1 "/usr/include/time.h" 1 3 4 ># 53 "/usr/include/time.h" 3 4 >#define __clock_t_defined 1 > > > > > >typedef __clock_t clock_t; > > > > > > >#undef __need_clock_t > > >#define __time_t_defined 1 > > > > > >typedef __time_t time_t; > > > > > > >#undef __need_time_t > > > >#define __clockid_t_defined 1 > > > > >typedef __clockid_t clockid_t; > > >#undef __clockid_time_t > > > >#define __timer_t_defined 1 > > > > >typedef __timer_t timer_t; > > >#undef __need_timer_t ># 127 "/usr/include/time.h" 3 4 >#undef __need_timespec ># 133 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __useconds_t useconds_t; >#define __useconds_t_defined > > >typedef __suseconds_t suseconds_t; >#define __suseconds_t_defined > > > >#define __need_size_t ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 147 "/usr/include/sys/types.h" 2 3 4 > > > >typedef unsigned long int ulong; >typedef unsigned short int ushort; >typedef unsigned int uint; ># 187 "/usr/include/sys/types.h" 3 4 >#define __intN_t(N,MODE) typedef int int ##N ##_t __attribute__ ((__mode__ (MODE))) > >#define __u_intN_t(N,MODE) typedef unsigned int u_int ##N ##_t __attribute__ ((__mode__ (MODE))) > > > >#define __int8_t_defined >typedef int int8_t __attribute__ ((__mode__ (__QI__))); >typedef int int16_t __attribute__ ((__mode__ (__HI__))); >typedef int int32_t __attribute__ ((__mode__ (__SI__))); >typedef int int64_t __attribute__ ((__mode__ (__DI__))); > > >typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); >typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); > >typedef int register_t __attribute__ ((__mode__ (__word__))); > > > > > >#define __BIT_TYPES_DEFINED__ 1 > > > > > > > ># 1 "/usr/include/sys/select.h" 1 3 4 ># 22 "/usr/include/sys/select.h" 3 4 >#define _SYS_SELECT_H 1 > > > > > > > ># 1 "/usr/include/bits/select.h" 1 3 4 ># 22 "/usr/include/bits/select.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 23 "/usr/include/bits/select.h" 2 3 4 > > > > > >#define __FD_ZERO_STOS "stosq" > > > > >#define __FD_ZERO(fdsp) do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " __FD_ZERO_STOS : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&__FDS_BITS (fdsp)[0]) : "memory"); } while (0) ># 58 "/usr/include/bits/select.h" 3 4 >#define __FD_SET(d,set) ((void) (__FDS_BITS (set)[__FD_ELT (d)] |= __FD_MASK (d))) > >#define __FD_CLR(d,set) ((void) (__FDS_BITS (set)[__FD_ELT (d)] &= ~__FD_MASK (d))) > >#define __FD_ISSET(d,set) ((__FDS_BITS (set)[__FD_ELT (d)] & __FD_MASK (d)) != 0) ># 31 "/usr/include/sys/select.h" 2 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 20 "/usr/include/bits/sigset.h" 3 4 >#define _SIGSET_H_types 1 > >typedef int __sig_atomic_t; > > > >#define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int))) >typedef struct > { > unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; > } __sigset_t; ># 34 "/usr/include/sys/select.h" 2 3 4 > > >#define __sigset_t_defined >typedef __sigset_t sigset_t; > > > >#define __need_time_t >#define __need_timespec ># 1 "/usr/include/time.h" 1 3 4 ># 66 "/usr/include/time.h" 3 4 >#undef __need_clock_t ># 82 "/usr/include/time.h" 3 4 >#undef __need_time_t ># 94 "/usr/include/time.h" 3 4 >#undef __clockid_time_t ># 106 "/usr/include/time.h" 3 4 >#undef __need_timer_t > > > > > > > >#define __timespec_defined 1 > > > > > >struct timespec > { > __time_t tv_sec; > __syscall_slong_t tv_nsec; > }; > > >#undef __need_timespec ># 44 "/usr/include/sys/select.h" 2 3 4 >#define __need_timeval ># 1 "/usr/include/bits/time.h" 1 3 4 ># 25 "/usr/include/bits/time.h" 3 4 >#define _STRUCT_TIMEVAL 1 > > > > >struct timeval > { > __time_t tv_sec; > __suseconds_t tv_usec; > }; ># 99 "/usr/include/bits/time.h" 3 4 >#undef __need_timeval ># 46 "/usr/include/sys/select.h" 2 3 4 ># 54 "/usr/include/sys/select.h" 3 4 >typedef long int __fd_mask; > > >#undef __NFDBITS > >#define __NFDBITS (8 * (int) sizeof (__fd_mask)) >#define __FD_ELT(d) ((d) / __NFDBITS) >#define __FD_MASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS)) > > >typedef struct > { > > > > __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; >#define __FDS_BITS(set) ((set)->fds_bits) > > > > > } fd_set; > > >#define FD_SETSIZE __FD_SETSIZE > > > >typedef __fd_mask fd_mask; > > >#define NFDBITS __NFDBITS > > > > >#define FD_SET(fd,fdsetp) __FD_SET (fd, fdsetp) >#define FD_CLR(fd,fdsetp) __FD_CLR (fd, fdsetp) >#define FD_ISSET(fd,fdsetp) __FD_ISSET (fd, fdsetp) >#define FD_ZERO(fdsetp) __FD_ZERO (fdsetp) > > >extern "C" { ># 106 "/usr/include/sys/select.h" 3 4 >extern int select (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > struct timeval *__restrict __timeout); ># 118 "/usr/include/sys/select.h" 3 4 >extern int pselect (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > const struct timespec *__restrict __timeout, > const __sigset_t *__restrict __sigmask); ># 131 "/usr/include/sys/select.h" 3 4 >} ># 220 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/sysmacros.h" 1 3 4 ># 20 "/usr/include/sys/sysmacros.h" 3 4 >#define _SYS_SYSMACROS_H 1 > > > >extern "C" { > >__extension__ >extern unsigned int gnu_dev_major (unsigned long long int __dev) > throw () __attribute__ ((__const__)); >__extension__ >extern unsigned int gnu_dev_minor (unsigned long long int __dev) > throw () __attribute__ ((__const__)); >__extension__ >extern unsigned long long int gnu_dev_makedev (unsigned int __major, > unsigned int __minor) > throw () __attribute__ ((__const__)); ># 58 "/usr/include/sys/sysmacros.h" 3 4 >} > > >#define major(dev) gnu_dev_major (dev) >#define minor(dev) gnu_dev_minor (dev) >#define makedev(maj,min) gnu_dev_makedev (maj, min) ># 223 "/usr/include/sys/types.h" 2 3 4 > > > > > >typedef __blksize_t blksize_t; >#define __blksize_t_defined > > > > > >typedef __blkcnt_t blkcnt_t; >#define __blkcnt_t_defined > > >typedef __fsblkcnt_t fsblkcnt_t; >#define __fsblkcnt_t_defined > > >typedef __fsfilcnt_t fsfilcnt_t; >#define __fsfilcnt_t_defined ># 262 "/usr/include/sys/types.h" 3 4 >typedef __blkcnt64_t blkcnt64_t; >typedef __fsblkcnt64_t fsblkcnt64_t; >typedef __fsfilcnt64_t fsfilcnt64_t; > > > > > ># 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ># 19 "/usr/include/bits/pthreadtypes.h" 3 4 >#define _BITS_PTHREADTYPES_H 1 > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 22 "/usr/include/bits/pthreadtypes.h" 2 3 4 > > > >#define __SIZEOF_PTHREAD_ATTR_T 56 >#define __SIZEOF_PTHREAD_MUTEX_T 40 >#define __SIZEOF_PTHREAD_MUTEXATTR_T 4 >#define __SIZEOF_PTHREAD_COND_T 48 >#define __SIZEOF_PTHREAD_CONDATTR_T 4 >#define __SIZEOF_PTHREAD_RWLOCK_T 56 >#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8 >#define __SIZEOF_PTHREAD_BARRIER_T 32 >#define __SIZEOF_PTHREAD_BARRIERATTR_T 4 ># 60 "/usr/include/bits/pthreadtypes.h" 3 4 >typedef unsigned long int pthread_t; > > >union pthread_attr_t >{ > char __size[56]; > long int __align; >}; > >typedef union pthread_attr_t pthread_attr_t; >#define __have_pthread_attr_t 1 > > > > >typedef struct __pthread_internal_list >{ > struct __pthread_internal_list *__prev; > struct __pthread_internal_list *__next; >} __pthread_list_t; ># 90 "/usr/include/bits/pthreadtypes.h" 3 4 >typedef union >{ > struct __pthread_mutex_s > { > int __lock; > unsigned int __count; > int __owner; > > unsigned int __nusers; > > > > int __kind; > > short __spins; > short __elision; > __pthread_list_t __list; >#define __PTHREAD_MUTEX_HAVE_PREV 1 >#define __PTHREAD_MUTEX_HAVE_ELISION 1 ># 124 "/usr/include/bits/pthreadtypes.h" 3 4 > } __data; > char __size[40]; > long int __align; >} pthread_mutex_t; > >typedef union >{ > char __size[4]; > int __align; >} pthread_mutexattr_t; > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __futex; > __extension__ unsigned long long int __total_seq; > __extension__ unsigned long long int __wakeup_seq; > __extension__ unsigned long long int __woken_seq; > void *__mutex; > unsigned int __nwaiters; > unsigned int __broadcast_seq; > } __data; > char __size[48]; > __extension__ long long int __align; >} pthread_cond_t; > >typedef union >{ > char __size[4]; > int __align; >} pthread_condattr_t; > > > >typedef unsigned int pthread_key_t; > > > >typedef int pthread_once_t; > > > > > >typedef union >{ > > struct > { > int __lock; > unsigned int __nr_readers; > unsigned int __readers_wakeup; > unsigned int __writer_wakeup; > unsigned int __nr_readers_queued; > unsigned int __nr_writers_queued; > int __writer; > int __shared; > unsigned long int __pad1; > unsigned long int __pad2; > > > unsigned int __flags; >#define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1 > } __data; ># 211 "/usr/include/bits/pthreadtypes.h" 3 4 > char __size[56]; > long int __align; >} pthread_rwlock_t; > >typedef union >{ > char __size[8]; > long int __align; >} pthread_rwlockattr_t; > > > > > >typedef volatile int pthread_spinlock_t; > > > > >typedef union >{ > char __size[32]; > long int __align; >} pthread_barrier_t; > >typedef union >{ > char __size[4]; > int __align; >} pthread_barrierattr_t; ># 271 "/usr/include/sys/types.h" 2 3 4 > > >} ># 315 "/usr/include/stdlib.h" 2 3 4 > > > > > > >extern long int random (void) throw (); > > >extern void srandom (unsigned int __seed) throw (); > > > > > >extern char *initstate (unsigned int __seed, char *__statebuf, > size_t __statelen) throw () __attribute__ ((__nonnull__ (2))); > > > >extern char *setstate (char *__statebuf) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > >struct random_data > { > int32_t *fptr; > int32_t *rptr; > int32_t *state; > int rand_type; > int rand_deg; > int rand_sep; > int32_t *end_ptr; > }; > >extern int random_r (struct random_data *__restrict __buf, > int32_t *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); > >extern int srandom_r (unsigned int __seed, struct random_data *__buf) > throw () __attribute__ ((__nonnull__ (2))); > >extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, > size_t __statelen, > struct random_data *__restrict __buf) > throw () __attribute__ ((__nonnull__ (2, 4))); > >extern int setstate_r (char *__restrict __statebuf, > struct random_data *__restrict __buf) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int rand (void) throw (); > >extern void srand (unsigned int __seed) throw (); > > > > >extern int rand_r (unsigned int *__seed) throw (); > > > > > > > >extern double drand48 (void) throw (); >extern double erand48 (unsigned short int __xsubi[3]) throw () __attribute__ ((__nonnull__ (1))); > > >extern long int lrand48 (void) throw (); >extern long int nrand48 (unsigned short int __xsubi[3]) > throw () __attribute__ ((__nonnull__ (1))); > > >extern long int mrand48 (void) throw (); >extern long int jrand48 (unsigned short int __xsubi[3]) > throw () __attribute__ ((__nonnull__ (1))); > > >extern void srand48 (long int __seedval) throw (); >extern unsigned short int *seed48 (unsigned short int __seed16v[3]) > throw () __attribute__ ((__nonnull__ (1))); >extern void lcong48 (unsigned short int __param[7]) throw () __attribute__ ((__nonnull__ (1))); > > > > > >struct drand48_data > { > unsigned short int __x[3]; > unsigned short int __old_x[3]; > unsigned short int __c; > unsigned short int __init; > __extension__ unsigned long long int __a; > > }; > > >extern int drand48_r (struct drand48_data *__restrict __buffer, > double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); >extern int erand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > double *__restrict __result) throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int lrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern int nrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int mrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern int jrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int srand48_r (long int __seedval, struct drand48_data *__buffer) > throw () __attribute__ ((__nonnull__ (2))); > >extern int seed48_r (unsigned short int __seed16v[3], > struct drand48_data *__buffer) throw () __attribute__ ((__nonnull__ (1, 2))); > >extern int lcong48_r (unsigned short int __param[7], > struct drand48_data *__buffer) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > >#define __malloc_and_calloc_defined > > >extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) ; > >extern void *calloc (size_t __nmemb, size_t __size) > throw () __attribute__ ((__malloc__)) ; > > > > > > > > > > >extern void *realloc (void *__ptr, size_t __size) > throw () __attribute__ ((__warn_unused_result__)); > >extern void free (void *__ptr) throw (); > > > > >extern void cfree (void *__ptr) throw (); > > > ># 1 "/usr/include/alloca.h" 1 3 4 ># 19 "/usr/include/alloca.h" 3 4 >#define _ALLOCA_H 1 > > > >#define __need_size_t ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 25 "/usr/include/alloca.h" 2 3 4 > >extern "C" { > > >#undef alloca > > >extern void *alloca (size_t __size) throw (); > > >#define alloca(size) __builtin_alloca (size) > > >} ># 493 "/usr/include/stdlib.h" 2 3 4 > > > > > >extern void *valloc (size_t __size) throw () __attribute__ ((__malloc__)) ; > > > > >extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > >extern void *aligned_alloc (size_t __alignment, size_t __size) > throw () __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (2))) ; > > > > >extern void abort (void) throw () __attribute__ ((__noreturn__)); > > > >extern int atexit (void (*__func) (void)) throw () __attribute__ ((__nonnull__ (1))); > > > > >extern "C++" int at_quick_exit (void (*__func) (void)) > throw () __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); > > > > > > > > > >extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) > throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern void exit (int __status) throw () __attribute__ ((__noreturn__)); > > > > > >extern void quick_exit (int __status) throw () __attribute__ ((__noreturn__)); > > > > > > > >extern void _Exit (int __status) throw () __attribute__ ((__noreturn__)); > > > > > > >extern char *getenv (const char *__name) throw () __attribute__ ((__nonnull__ (1))) ; > > > > > >extern char *secure_getenv (const char *__name) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > > > >extern int putenv (char *__string) throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int setenv (const char *__name, const char *__value, int __replace) > throw () __attribute__ ((__nonnull__ (2))); > > >extern int unsetenv (const char *__name) throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern int clearenv (void) throw (); ># 606 "/usr/include/stdlib.h" 3 4 >extern char *mktemp (char *__template) throw () __attribute__ ((__nonnull__ (1))); ># 620 "/usr/include/stdlib.h" 3 4 >extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; ># 630 "/usr/include/stdlib.h" 3 4 >extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ; ># 642 "/usr/include/stdlib.h" 3 4 >extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; ># 652 "/usr/include/stdlib.h" 3 4 >extern int mkstemps64 (char *__template, int __suffixlen) > __attribute__ ((__nonnull__ (1))) ; ># 663 "/usr/include/stdlib.h" 3 4 >extern char *mkdtemp (char *__template) throw () __attribute__ ((__nonnull__ (1))) ; ># 674 "/usr/include/stdlib.h" 3 4 >extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ; ># 684 "/usr/include/stdlib.h" 3 4 >extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ; ># 694 "/usr/include/stdlib.h" 3 4 >extern int mkostemps (char *__template, int __suffixlen, int __flags) > __attribute__ ((__nonnull__ (1))) ; ># 706 "/usr/include/stdlib.h" 3 4 >extern int mkostemps64 (char *__template, int __suffixlen, int __flags) > __attribute__ ((__nonnull__ (1))) ; > > > > > > > > > >extern int system (const char *__command) ; > > > > > > >extern char *canonicalize_file_name (const char *__name) > throw () __attribute__ ((__nonnull__ (1))) ; ># 734 "/usr/include/stdlib.h" 3 4 >extern char *realpath (const char *__restrict __name, > char *__restrict __resolved) throw () ; > > > > > >#define __COMPAR_FN_T >typedef int (*__compar_fn_t) (const void *, const void *); > > >typedef __compar_fn_t comparison_fn_t; > > > >typedef int (*__compar_d_fn_t) (const void *, const void *, void *); > > > > > >extern void *bsearch (const void *__key, const void *__base, > size_t __nmemb, size_t __size, __compar_fn_t __compar) > __attribute__ ((__nonnull__ (1, 2, 5))) ; > > > > > > > >extern void qsort (void *__base, size_t __nmemb, size_t __size, > __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); > >extern void qsort_r (void *__base, size_t __nmemb, size_t __size, > __compar_d_fn_t __compar, void *__arg) > __attribute__ ((__nonnull__ (1, 4))); > > > > >extern int abs (int __x) throw () __attribute__ ((__const__)) ; >extern long int labs (long int __x) throw () __attribute__ ((__const__)) ; > > > >__extension__ extern long long int llabs (long long int __x) > throw () __attribute__ ((__const__)) ; > > > > > > > >extern div_t div (int __numer, int __denom) > throw () __attribute__ ((__const__)) ; >extern ldiv_t ldiv (long int __numer, long int __denom) > throw () __attribute__ ((__const__)) ; > > > > >__extension__ extern lldiv_t lldiv (long long int __numer, > long long int __denom) > throw () __attribute__ ((__const__)) ; > ># 812 "/usr/include/stdlib.h" 3 4 >extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) throw () __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *gcvt (double __value, int __ndigit, char *__buf) > throw () __attribute__ ((__nonnull__ (3))) ; > > > > >extern char *qecvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > throw () __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qfcvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > throw () __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qgcvt (long double __value, int __ndigit, char *__buf) > throw () __attribute__ ((__nonnull__ (3))) ; > > > > >extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); >extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) throw () __attribute__ ((__nonnull__ (3, 4, 5))); > >extern int qecvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > throw () __attribute__ ((__nonnull__ (3, 4, 5))); >extern int qfcvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > throw () __attribute__ ((__nonnull__ (3, 4, 5))); > > > > > > >extern int mblen (const char *__s, size_t __n) throw (); > > >extern int mbtowc (wchar_t *__restrict __pwc, > const char *__restrict __s, size_t __n) throw (); > > >extern int wctomb (char *__s, wchar_t __wchar) throw (); > > > >extern size_t mbstowcs (wchar_t *__restrict __pwcs, > const char *__restrict __s, size_t __n) throw (); > >extern size_t wcstombs (char *__restrict __s, > const wchar_t *__restrict __pwcs, size_t __n) > throw (); > > > > > > > > >extern int rpmatch (const char *__response) throw () __attribute__ ((__nonnull__ (1))) ; ># 899 "/usr/include/stdlib.h" 3 4 >extern int getsubopt (char **__restrict __optionp, > char *const *__restrict __tokens, > char **__restrict __valuep) > throw () __attribute__ ((__nonnull__ (1, 2, 3))) ; > > > > > >extern void setkey (const char *__key) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > >extern int posix_openpt (int __oflag) ; > > > > > > > >extern int grantpt (int __fd) throw (); > > > >extern int unlockpt (int __fd) throw (); > > > > >extern char *ptsname (int __fd) throw () ; > > > > > > >extern int ptsname_r (int __fd, char *__buf, size_t __buflen) > throw () __attribute__ ((__nonnull__ (2))); > > >extern int getpt (void); > > > > > > >extern int getloadavg (double __loadavg[], int __nelem) > throw () __attribute__ ((__nonnull__ (1))); > > ># 1 "/usr/include/bits/stdlib-float.h" 1 3 4 ># 956 "/usr/include/stdlib.h" 2 3 4 ># 966 "/usr/include/stdlib.h" 3 4 >#undef __need_malloc_and_calloc > >} ># 284 "../gtest_contrib/gtest/gtest.h" 2 ># 1 "/usr/include/stdio.h" 1 3 4 ># 26 "/usr/include/stdio.h" 3 4 >#define _STDIO_H 1 > > >extern "C" { > >#define __need_size_t >#define __need_NULL ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 34 "/usr/include/stdio.h" 2 3 4 > > >#define __need_FILE >#define __need___FILE > > > > > > >struct _IO_FILE; > > > >typedef struct _IO_FILE FILE; > > > > > > > >#define __FILE_defined 1 > >#undef __need_FILE > > > > > >typedef struct _IO_FILE __FILE; > >#define ____FILE_defined 1 > >#undef __need___FILE > > > >#define _STDIO_USES_IOSTREAM > ># 1 "/usr/include/libio.h" 1 3 4 ># 29 "/usr/include/libio.h" 3 4 >#define _IO_STDIO_H > ># 1 "/usr/include/_G_config.h" 1 3 4 > > > > >#define _G_config_h 1 > > > > >#define __need_size_t > > > >#define __need_NULL ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 16 "/usr/include/_G_config.h" 2 3 4 >#define __need_mbstate_t > > > ># 1 "/usr/include/wchar.h" 1 3 4 ># 80 "/usr/include/wchar.h" 3 4 >#define ____mbstate_t_defined 1 > >typedef struct >{ > int __count; > union > { > > unsigned int __wch; > > > > char __wchb[4]; > } __value; >} __mbstate_t; > >#undef __need_mbstate_t ># 899 "/usr/include/wchar.h" 3 4 >#undef __need_mbstate_t >#undef __need_wint_t ># 21 "/usr/include/_G_config.h" 2 3 4 >typedef struct >{ > __off_t __pos; > __mbstate_t __state; >} _G_fpos_t; >typedef struct >{ > __off64_t __pos; > __mbstate_t __state; >} _G_fpos64_t; ># 46 "/usr/include/_G_config.h" 3 4 >#define _G_va_list __gnuc_va_list > >#define _G_HAVE_MMAP 1 >#define _G_HAVE_MREMAP 1 > >#define _G_IO_IO_FILE_VERSION 0x20001 > > >#define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE) > >#define _G_BUFSIZ 8192 ># 32 "/usr/include/libio.h" 2 3 4 > >#define _IO_fpos_t _G_fpos_t >#define _IO_fpos64_t _G_fpos64_t >#define _IO_size_t size_t >#define _IO_ssize_t __ssize_t >#define _IO_off_t __off_t >#define _IO_off64_t __off64_t >#define _IO_pid_t __pid_t >#define _IO_uid_t __uid_t >#define _IO_iconv_t _G_iconv_t >#define _IO_HAVE_ST_BLKSIZE _G_HAVE_ST_BLKSIZE >#define _IO_BUFSIZ _G_BUFSIZ >#define _IO_va_list _G_va_list >#define _IO_wint_t wint_t > > >#define __need___va_list ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdarg.h" 1 3 4 ># 34 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdarg.h" 3 4 >#undef __need___va_list > > > > >#define __GNUC_VA_LIST >typedef __builtin_va_list __gnuc_va_list; ># 50 "/usr/include/libio.h" 2 3 4 > >#undef _IO_va_list >#define _IO_va_list __gnuc_va_list > > > > > > >#define _IO_UNIFIED_JUMPTABLES 1 > > >#define EOF (-1) ># 77 "/usr/include/libio.h" 3 4 >#define _IOS_INPUT 1 >#define _IOS_OUTPUT 2 >#define _IOS_ATEND 4 >#define _IOS_APPEND 8 >#define _IOS_TRUNC 16 >#define _IOS_NOCREATE 32 >#define _IOS_NOREPLACE 64 >#define _IOS_BIN 128 > > > > > > > >#define _IO_MAGIC 0xFBAD0000 >#define _OLD_STDIO_MAGIC 0xFABC0000 >#define _IO_MAGIC_MASK 0xFFFF0000 >#define _IO_USER_BUF 1 >#define _IO_UNBUFFERED 2 >#define _IO_NO_READS 4 >#define _IO_NO_WRITES 8 >#define _IO_EOF_SEEN 0x10 >#define _IO_ERR_SEEN 0x20 >#define _IO_DELETE_DONT_CLOSE 0x40 >#define _IO_LINKED 0x80 >#define _IO_IN_BACKUP 0x100 >#define _IO_LINE_BUF 0x200 >#define _IO_TIED_PUT_GET 0x400 >#define _IO_CURRENTLY_PUTTING 0x800 >#define _IO_IS_APPENDING 0x1000 >#define _IO_IS_FILEBUF 0x2000 >#define _IO_BAD_SEEN 0x4000 >#define _IO_USER_LOCK 0x8000 > >#define _IO_FLAGS2_MMAP 1 >#define _IO_FLAGS2_NOTCANCEL 2 > > > >#define _IO_FLAGS2_USER_WBUF 8 > > > > > > > >#define _IO_SKIPWS 01 >#define _IO_LEFT 02 >#define _IO_RIGHT 04 >#define _IO_INTERNAL 010 >#define _IO_DEC 020 >#define _IO_OCT 040 >#define _IO_HEX 0100 >#define _IO_SHOWBASE 0200 >#define _IO_SHOWPOINT 0400 >#define _IO_UPPERCASE 01000 >#define _IO_SHOWPOS 02000 >#define _IO_SCIENTIFIC 04000 >#define _IO_FIXED 010000 >#define _IO_UNITBUF 020000 >#define _IO_STDIO 040000 >#define _IO_DONT_CLOSE 0100000 >#define _IO_BOOLALPHA 0200000 > > >struct _IO_jump_t; struct _IO_FILE; ># 154 "/usr/include/libio.h" 3 4 >typedef void _IO_lock_t; > > > > > >struct _IO_marker { > struct _IO_marker *_next; > struct _IO_FILE *_sbuf; > > > > int _pos; ># 177 "/usr/include/libio.h" 3 4 >}; > > >enum __codecvt_result >{ > __codecvt_ok, > __codecvt_partial, > __codecvt_error, > __codecvt_noconv >}; ># 245 "/usr/include/libio.h" 3 4 >struct _IO_FILE { > int _flags; >#define _IO_file_flags _flags > > > > char* _IO_read_ptr; > char* _IO_read_end; > char* _IO_read_base; > char* _IO_write_base; > char* _IO_write_ptr; > char* _IO_write_end; > char* _IO_buf_base; > char* _IO_buf_end; > > char *_IO_save_base; > char *_IO_backup_base; > char *_IO_save_end; > > struct _IO_marker *_markers; > > struct _IO_FILE *_chain; > > int _fileno; > > > > int _flags2; > > __off_t _old_offset; > >#define __HAVE_COLUMN > > unsigned short _cur_column; > signed char _vtable_offset; > char _shortbuf[1]; > > > > _IO_lock_t *_lock; ># 293 "/usr/include/libio.h" 3 4 > __off64_t _offset; ># 302 "/usr/include/libio.h" 3 4 > void *__pad1; > void *__pad2; > void *__pad3; > void *__pad4; > size_t __pad5; > > int _mode; > > char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; > >}; > > > > > >struct _IO_FILE_plus; > >extern struct _IO_FILE_plus _IO_2_1_stdin_; >extern struct _IO_FILE_plus _IO_2_1_stdout_; >extern struct _IO_FILE_plus _IO_2_1_stderr_; > >#define _IO_stdin ((_IO_FILE*)(&_IO_2_1_stdin_)) >#define _IO_stdout ((_IO_FILE*)(&_IO_2_1_stdout_)) >#define _IO_stderr ((_IO_FILE*)(&_IO_2_1_stderr_)) ># 338 "/usr/include/libio.h" 3 4 >typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); > > > > > > > >typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf, > size_t __n); > > > > > > > >typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); > > >typedef int __io_close_fn (void *__cookie); > > > > >typedef __io_read_fn cookie_read_function_t; >typedef __io_write_fn cookie_write_function_t; >typedef __io_seek_fn cookie_seek_function_t; >typedef __io_close_fn cookie_close_function_t; > > >typedef struct >{ > __io_read_fn *read; > __io_write_fn *write; > __io_seek_fn *seek; > __io_close_fn *close; >} _IO_cookie_io_functions_t; >typedef _IO_cookie_io_functions_t cookie_io_functions_t; > >struct _IO_cookie_file; > > >extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write, > void *__cookie, _IO_cookie_io_functions_t __fns); > > > > >extern "C" { > > >extern int __underflow (_IO_FILE *); >extern int __uflow (_IO_FILE *); >extern int __overflow (_IO_FILE *, int); > > > > > > > >#define _IO_BE(expr,res) __builtin_expect ((expr), res) > > > > >#define _IO_getc_unlocked(_fp) (_IO_BE ((_fp)->_IO_read_ptr >= (_fp)->_IO_read_end, 0) ? __uflow (_fp) : *(unsigned char *) (_fp)->_IO_read_ptr++) > > >#define _IO_peekc_unlocked(_fp) (_IO_BE ((_fp)->_IO_read_ptr >= (_fp)->_IO_read_end, 0) && __underflow (_fp) == EOF ? EOF : *(unsigned char *) (_fp)->_IO_read_ptr) > > > >#define _IO_putc_unlocked(_ch,_fp) (_IO_BE ((_fp)->_IO_write_ptr >= (_fp)->_IO_write_end, 0) ? __overflow (_fp, (unsigned char) (_ch)) : (unsigned char) (*(_fp)->_IO_write_ptr++ = (_ch))) ># 431 "/usr/include/libio.h" 3 4 >#define _IO_feof_unlocked(__fp) (((__fp)->_flags & _IO_EOF_SEEN) != 0) >#define _IO_ferror_unlocked(__fp) (((__fp)->_flags & _IO_ERR_SEEN) != 0) > >extern int _IO_getc (_IO_FILE *__fp); >extern int _IO_putc (int __c, _IO_FILE *__fp); >extern int _IO_feof (_IO_FILE *__fp) throw (); >extern int _IO_ferror (_IO_FILE *__fp) throw (); > >extern int _IO_peekc_locked (_IO_FILE *__fp); > > >#define _IO_PENDING_OUTPUT_COUNT(_fp) ((_fp)->_IO_write_ptr - (_fp)->_IO_write_base) > > >extern void _IO_flockfile (_IO_FILE *) throw (); >extern void _IO_funlockfile (_IO_FILE *) throw (); >extern int _IO_ftrylockfile (_IO_FILE *) throw (); ># 456 "/usr/include/libio.h" 3 4 >#define _IO_peekc(_fp) _IO_peekc_unlocked (_fp) >#define _IO_flockfile(_fp) >#define _IO_funlockfile(_fp) >#define _IO_ftrylockfile(_fp) >#define _IO_cleanup_region_start(_fct,_fp) >#define _IO_cleanup_region_end(_Doit) > > >extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, > __gnuc_va_list, int *__restrict); >extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, > __gnuc_va_list); >extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t); >extern size_t _IO_sgetn (_IO_FILE *, void *, size_t); > >extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); >extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int); > >extern void _IO_free_backup_area (_IO_FILE *) throw (); ># 526 "/usr/include/libio.h" 3 4 >} ># 75 "/usr/include/stdio.h" 2 3 4 > > > > >typedef __gnuc_va_list va_list; >#define _VA_LIST_DEFINED ># 108 "/usr/include/stdio.h" 3 4 > > >typedef _G_fpos_t fpos_t; > > > > > >typedef _G_fpos64_t fpos64_t; > > > >#define _IOFBF 0 >#define _IOLBF 1 >#define _IONBF 2 > > > > >#define BUFSIZ _IO_BUFSIZ ># 140 "/usr/include/stdio.h" 3 4 >#define SEEK_SET 0 >#define SEEK_CUR 1 >#define SEEK_END 2 > >#define SEEK_DATA 3 >#define SEEK_HOLE 4 > > > > > >#define P_tmpdir "/tmp" ># 164 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 23 "/usr/include/bits/stdio_lim.h" 3 4 >#define L_tmpnam 20 >#define TMP_MAX 238328 >#define FILENAME_MAX 4096 > > >#define L_ctermid 9 > >#define L_cuserid 9 > > > > > >#undef FOPEN_MAX >#define FOPEN_MAX 16 ># 165 "/usr/include/stdio.h" 2 3 4 > > > >extern struct _IO_FILE *stdin; >extern struct _IO_FILE *stdout; >extern struct _IO_FILE *stderr; > >#define stdin stdin >#define stdout stdout >#define stderr stderr > > > >extern int remove (const char *__filename) throw (); > >extern int rename (const char *__old, const char *__new) throw (); > > > > >extern int renameat (int __oldfd, const char *__old, int __newfd, > const char *__new) throw (); > > > > > > > > >extern FILE *tmpfile (void) ; ># 205 "/usr/include/stdio.h" 3 4 >extern FILE *tmpfile64 (void) ; > > > >extern char *tmpnam (char *__s) throw () ; > > > > > >extern char *tmpnam_r (char *__s) throw () ; ># 227 "/usr/include/stdio.h" 3 4 >extern char *tempnam (const char *__dir, const char *__pfx) > throw () __attribute__ ((__malloc__)) ; > > > > > > > > >extern int fclose (FILE *__stream); > > > > >extern int fflush (FILE *__stream); > ># 252 "/usr/include/stdio.h" 3 4 >extern int fflush_unlocked (FILE *__stream); ># 262 "/usr/include/stdio.h" 3 4 >extern int fcloseall (void); > > > > > > > > > >extern FILE *fopen (const char *__restrict __filename, > const char *__restrict __modes) ; > > > > >extern FILE *freopen (const char *__restrict __filename, > const char *__restrict __modes, > FILE *__restrict __stream) ; ># 295 "/usr/include/stdio.h" 3 4 > > >extern FILE *fopen64 (const char *__restrict __filename, > const char *__restrict __modes) ; >extern FILE *freopen64 (const char *__restrict __filename, > const char *__restrict __modes, > FILE *__restrict __stream) ; > > > > >extern FILE *fdopen (int __fd, const char *__modes) throw () ; > > > > > >extern FILE *fopencookie (void *__restrict __magic_cookie, > const char *__restrict __modes, > _IO_cookie_io_functions_t __io_funcs) throw () ; > > > > >extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) > throw () ; > > > > >extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) throw () ; > > > > > > >extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) throw (); > > > >extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, > int __modes, size_t __n) throw (); > > > > > >extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, > size_t __size) throw (); > > >extern void setlinebuf (FILE *__stream) throw (); > > > > > > > > >extern int fprintf (FILE *__restrict __stream, > const char *__restrict __format, ...); > > > > >extern int printf (const char *__restrict __format, ...); > >extern int sprintf (char *__restrict __s, > const char *__restrict __format, ...) throw (); > > > > > >extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, > __gnuc_va_list __arg); > > > > >extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); > >extern int vsprintf (char *__restrict __s, const char *__restrict __format, > __gnuc_va_list __arg) throw (); > > > > > >extern int snprintf (char *__restrict __s, size_t __maxlen, > const char *__restrict __format, ...) > throw () __attribute__ ((__format__ (__printf__, 3, 4))); > >extern int vsnprintf (char *__restrict __s, size_t __maxlen, > const char *__restrict __format, __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__printf__, 3, 0))); > > > > > > >extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, > __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__printf__, 2, 0))) ; >extern int __asprintf (char **__restrict __ptr, > const char *__restrict __fmt, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))) ; >extern int asprintf (char **__restrict __ptr, > const char *__restrict __fmt, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))) ; > > > > >extern int vdprintf (int __fd, const char *__restrict __fmt, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__printf__, 2, 0))); >extern int dprintf (int __fd, const char *__restrict __fmt, ...) > __attribute__ ((__format__ (__printf__, 2, 3))); > > > > > > > > >extern int fscanf (FILE *__restrict __stream, > const char *__restrict __format, ...) ; > > > > >extern int scanf (const char *__restrict __format, ...) ; > >extern int sscanf (const char *__restrict __s, > const char *__restrict __format, ...) throw (); ># 463 "/usr/include/stdio.h" 3 4 > > > > > > > > >extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, > __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 2, 0))) ; > > > > > >extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) > __attribute__ ((__format__ (__scanf__, 1, 0))) ; > > >extern int vsscanf (const char *__restrict __s, > const char *__restrict __format, __gnuc_va_list __arg) > throw () __attribute__ ((__format__ (__scanf__, 2, 0))); ># 522 "/usr/include/stdio.h" 3 4 > > > > > > > > > >extern int fgetc (FILE *__stream); >extern int getc (FILE *__stream); > > > > > >extern int getchar (void); > > > > >#define getc(_fp) _IO_getc (_fp) > > > > > > >extern int getc_unlocked (FILE *__stream); >extern int getchar_unlocked (void); ># 561 "/usr/include/stdio.h" 3 4 >extern int fgetc_unlocked (FILE *__stream); > > > > > > > > > > > >extern int fputc (int __c, FILE *__stream); >extern int putc (int __c, FILE *__stream); > > > > > >extern int putchar (int __c); > > > > >#define putc(_ch,_fp) _IO_putc (_ch, _fp) ># 594 "/usr/include/stdio.h" 3 4 >extern int fputc_unlocked (int __c, FILE *__stream); > > > > > > > >extern int putc_unlocked (int __c, FILE *__stream); >extern int putchar_unlocked (int __c); > > > > > > >extern int getw (FILE *__stream); > > >extern int putw (int __w, FILE *__stream); > > > > > > > > >extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) > ; ># 638 "/usr/include/stdio.h" 3 4 >extern char *gets (char *__s) __attribute__ ((__deprecated__)); > > ># 649 "/usr/include/stdio.h" 3 4 >extern char *fgets_unlocked (char *__restrict __s, int __n, > FILE *__restrict __stream) ; ># 665 "/usr/include/stdio.h" 3 4 >extern __ssize_t __getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream) ; >extern __ssize_t getdelim (char **__restrict __lineptr, > size_t *__restrict __n, int __delimiter, > FILE *__restrict __stream) ; > > > > > > > >extern __ssize_t getline (char **__restrict __lineptr, > size_t *__restrict __n, > FILE *__restrict __stream) ; > > > > > > > > >extern int fputs (const char *__restrict __s, FILE *__restrict __stream); > > > > > >extern int puts (const char *__s); > > > > > > >extern int ungetc (int __c, FILE *__stream); > > > > > > >extern size_t fread (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; > > > > >extern size_t fwrite (const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __s); > ># 726 "/usr/include/stdio.h" 3 4 >extern int fputs_unlocked (const char *__restrict __s, > FILE *__restrict __stream); ># 737 "/usr/include/stdio.h" 3 4 >extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; >extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream); > > > > > > > > >extern int fseek (FILE *__stream, long int __off, int __whence); > > > > >extern long int ftell (FILE *__stream) ; > > > > >extern void rewind (FILE *__stream); > ># 773 "/usr/include/stdio.h" 3 4 >extern int fseeko (FILE *__stream, __off_t __off, int __whence); > > > > >extern __off_t ftello (FILE *__stream) ; ># 792 "/usr/include/stdio.h" 3 4 > > > > > > >extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); > > > > >extern int fsetpos (FILE *__stream, const fpos_t *__pos); ># 815 "/usr/include/stdio.h" 3 4 > > > >extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); >extern __off64_t ftello64 (FILE *__stream) ; >extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); >extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); > > > > >extern void clearerr (FILE *__stream) throw (); > >extern int feof (FILE *__stream) throw () ; > >extern int ferror (FILE *__stream) throw () ; > > > > >extern void clearerr_unlocked (FILE *__stream) throw (); >extern int feof_unlocked (FILE *__stream) throw () ; >extern int ferror_unlocked (FILE *__stream) throw () ; > > > > > > > > >extern void perror (const char *__s); > > > > > > ># 1 "/usr/include/bits/sys_errlist.h" 1 3 4 ># 26 "/usr/include/bits/sys_errlist.h" 3 4 >extern int sys_nerr; >extern const char *const sys_errlist[]; > > >extern int _sys_nerr; >extern const char *const _sys_errlist[]; ># 854 "/usr/include/stdio.h" 2 3 4 > > > > >extern int fileno (FILE *__stream) throw () ; > > > > >extern int fileno_unlocked (FILE *__stream) throw () ; ># 873 "/usr/include/stdio.h" 3 4 >extern FILE *popen (const char *__command, const char *__modes) ; > > > > > >extern int pclose (FILE *__stream); > > > > > >extern char *ctermid (char *__s) throw (); > > > > > >extern char *cuserid (char *__s); > > > > >struct obstack; > > >extern int obstack_printf (struct obstack *__restrict __obstack, > const char *__restrict __format, ...) > throw () __attribute__ ((__format__ (__printf__, 2, 3))); >extern int obstack_vprintf (struct obstack *__restrict __obstack, > const char *__restrict __format, > __gnuc_va_list __args) > throw () __attribute__ ((__format__ (__printf__, 2, 0))); > > > > > > > >extern void flockfile (FILE *__stream) throw (); > > > >extern int ftrylockfile (FILE *__stream) throw () ; > > >extern void funlockfile (FILE *__stream) throw (); ># 943 "/usr/include/stdio.h" 3 4 >} ># 285 "../gtest_contrib/gtest/gtest.h" 2 ># 1 "/usr/include/string.h" 1 3 4 ># 23 "/usr/include/string.h" 3 4 >#define _STRING_H 1 > > > >extern "C" { > > >#define __need_size_t >#define __need_NULL ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 33 "/usr/include/string.h" 2 3 4 > > > >#define __CORRECT_ISO_CPP_STRING_H_PROTO > > > > > >extern void *memcpy (void *__restrict __dest, const void *__restrict __src, > size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memmove (void *__dest, const void *__src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memccpy (void *__restrict __dest, const void *__restrict __src, > int __c, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern void *memset (void *__s, int __c, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > >extern int memcmp (const void *__s1, const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern "C++" >{ >extern void *memchr (void *__s, int __c, size_t __n) > throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern const void *memchr (const void *__s, int __c, size_t __n) > throw () __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); ># 90 "/usr/include/string.h" 3 4 >} > > > > > > > > > > >extern "C++" void *rawmemchr (void *__s, int __c) > throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern "C++" const void *rawmemchr (const void *__s, int __c) > throw () __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > > > >extern "C++" void *memrchr (void *__s, int __c, size_t __n) > throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) > throw () __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > > > > > >extern char *strcpy (char *__restrict __dest, const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncpy (char *__restrict __dest, > const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strcat (char *__restrict __dest, const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncat (char *__restrict __dest, const char *__restrict __src, > size_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcmp (const char *__s1, const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int strncmp (const char *__s1, const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcoll (const char *__s1, const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern size_t strxfrm (char *__restrict __dest, > const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (2))); > ># 162 "/usr/include/string.h" 3 4 >extern int strcoll_l (const char *__s1, const char *__s2, __locale_t __l) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, > __locale_t __l) throw () __attribute__ ((__nonnull__ (2, 4))); > > > > > >extern char *strdup (const char *__s) > throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern char *strndup (const char *__string, size_t __n) > throw () __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); > > > > >#define strdupa(s) (__extension__ ({ const char *__old = (s); size_t __len = strlen (__old) + 1; char *__new = (char *) __builtin_alloca (__len); (char *) memcpy (__new, __old, __len); })) ># 196 "/usr/include/string.h" 3 4 >#define strndupa(s,n) (__extension__ ({ const char *__old = (s); size_t __len = strnlen (__old, (n)); char *__new = (char *) __builtin_alloca (__len + 1); __new[__len] = '\0'; (char *) memcpy (__new, __old, __len); })) ># 207 "/usr/include/string.h" 3 4 > > > >extern "C++" >{ >extern char *strchr (char *__s, int __c) > throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern const char *strchr (const char *__s, int __c) > throw () __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); ># 230 "/usr/include/string.h" 3 4 >} > > > > > > >extern "C++" >{ >extern char *strrchr (char *__s, int __c) > throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern const char *strrchr (const char *__s, int __c) > throw () __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); ># 257 "/usr/include/string.h" 3 4 >} > > > > > > > > > > >extern "C++" char *strchrnul (char *__s, int __c) > throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern "C++" const char *strchrnul (const char *__s, int __c) > throw () __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > > > > > >extern size_t strcspn (const char *__s, const char *__reject) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern size_t strspn (const char *__s, const char *__accept) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern "C++" >{ >extern char *strpbrk (char *__s, const char *__accept) > throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); >extern const char *strpbrk (const char *__s, const char *__accept) > throw () __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); ># 309 "/usr/include/string.h" 3 4 >} > > > > > > >extern "C++" >{ >extern char *strstr (char *__haystack, const char *__needle) > throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); >extern const char *strstr (const char *__haystack, const char *__needle) > throw () __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); ># 336 "/usr/include/string.h" 3 4 >} > > > > > > > >extern char *strtok (char *__restrict __s, const char *__restrict __delim) > throw () __attribute__ ((__nonnull__ (2))); > > > > >extern char *__strtok_r (char *__restrict __s, > const char *__restrict __delim, > char **__restrict __save_ptr) > throw () __attribute__ ((__nonnull__ (2, 3))); > >extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, > char **__restrict __save_ptr) > throw () __attribute__ ((__nonnull__ (2, 3))); > > > > > >extern "C++" char *strcasestr (char *__haystack, const char *__needle) > throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); >extern "C++" const char *strcasestr (const char *__haystack, > const char *__needle) > throw () __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); ># 378 "/usr/include/string.h" 3 4 >extern void *memmem (const void *__haystack, size_t __haystacklen, > const void *__needle, size_t __needlelen) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))); > > > >extern void *__mempcpy (void *__restrict __dest, > const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern void *mempcpy (void *__restrict __dest, > const void *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern size_t strlen (const char *__s) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern size_t strnlen (const char *__string, size_t __maxlen) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern char *strerror (int __errnum) throw (); > ># 434 "/usr/include/string.h" 3 4 >extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) > throw () __attribute__ ((__nonnull__ (2))) ; > > > > > >extern char *strerror_l (int __errnum, __locale_t __l) throw (); > > > > > >extern void __bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > > >extern void bcopy (const void *__src, void *__dest, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern void bzero (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > >extern int bcmp (const void *__s1, const void *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern "C++" >{ >extern char *index (char *__s, int __c) > throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern const char *index (const char *__s, int __c) > throw () __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); ># 483 "/usr/include/string.h" 3 4 >} > > > > > > > >extern "C++" >{ >extern char *rindex (char *__s, int __c) > throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern const char *rindex (const char *__s, int __c) > throw () __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); ># 511 "/usr/include/string.h" 3 4 >} > > > > > > > >extern int ffs (int __i) throw () __attribute__ ((__const__)); > > > > >extern int ffsl (long int __l) throw () __attribute__ ((__const__)); >__extension__ extern int ffsll (long long int __ll) > throw () __attribute__ ((__const__)); > > > >extern int strcasecmp (const char *__s1, const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern int strcasecmp_l (const char *__s1, const char *__s2, > __locale_t __loc) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); > >extern int strncasecmp_l (const char *__s1, const char *__s2, > size_t __n, __locale_t __loc) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); > > > > > >extern char *strsep (char **__restrict __stringp, > const char *__restrict __delim) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern char *strsignal (int __sig) throw (); > > >extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *__stpncpy (char *__restrict __dest, > const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); >extern char *stpncpy (char *__restrict __dest, > const char *__restrict __src, size_t __n) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int strverscmp (const char *__s1, const char *__s2) > throw () __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strfry (char *__string) throw () __attribute__ ((__nonnull__ (1))); > > >extern void *memfrob (void *__s, size_t __n) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > >extern "C++" char *basename (char *__filename) > throw () __asm ("basename") __attribute__ ((__nonnull__ (1))); >extern "C++" const char *basename (const char *__filename) > throw () __asm ("basename") __attribute__ ((__nonnull__ (1))); ># 640 "/usr/include/string.h" 3 4 >} ># 286 "../gtest_contrib/gtest/gtest.h" 2 > > ># 1 "/usr/include/sys/stat.h" 1 3 4 ># 23 "/usr/include/sys/stat.h" 3 4 >#define _SYS_STAT_H 1 ># 32 "/usr/include/sys/stat.h" 3 4 >#define __need_time_t > > >#define __need_timespec > ># 1 "/usr/include/time.h" 1 3 4 ># 66 "/usr/include/time.h" 3 4 >#undef __need_clock_t ># 82 "/usr/include/time.h" 3 4 >#undef __need_time_t ># 94 "/usr/include/time.h" 3 4 >#undef __clockid_time_t ># 106 "/usr/include/time.h" 3 4 >#undef __need_timer_t ># 127 "/usr/include/time.h" 3 4 >#undef __need_timespec ># 38 "/usr/include/sys/stat.h" 2 3 4 ># 103 "/usr/include/sys/stat.h" 3 4 >extern "C" { > ># 1 "/usr/include/bits/stat.h" 1 3 4 ># 23 "/usr/include/bits/stat.h" 3 4 >#define _BITS_STAT_H 1 ># 37 "/usr/include/bits/stat.h" 3 4 >#define _STAT_VER_KERNEL 0 >#define _STAT_VER_LINUX 1 > > >#define _MKNOD_VER_LINUX 0 > > >#define _STAT_VER _STAT_VER_LINUX > >struct stat > { > __dev_t st_dev; > > > > > __ino_t st_ino; > > > > > > > > __nlink_t st_nlink; > __mode_t st_mode; > > __uid_t st_uid; > __gid_t st_gid; > > int __pad0; > > __dev_t st_rdev; > > > > > __off_t st_size; > > > > __blksize_t st_blksize; > > __blkcnt_t st_blocks; ># 91 "/usr/include/bits/stat.h" 3 4 > struct timespec st_atim; > struct timespec st_mtim; > struct timespec st_ctim; >#define st_atime st_atim.tv_sec >#define st_mtime st_mtim.tv_sec >#define st_ctime st_ctim.tv_sec ># 106 "/usr/include/bits/stat.h" 3 4 > __syscall_slong_t __unused[3]; ># 115 "/usr/include/bits/stat.h" 3 4 > }; > > > >struct stat64 > { > __dev_t st_dev; > > __ino64_t st_ino; > __nlink_t st_nlink; > __mode_t st_mode; > > > > > > > __uid_t st_uid; > __gid_t st_gid; > > int __pad0; > __dev_t st_rdev; > __off_t st_size; > > > > > > __blksize_t st_blksize; > __blkcnt64_t st_blocks; > > > > > > > > struct timespec st_atim; > struct timespec st_mtim; > struct timespec st_ctim; ># 164 "/usr/include/bits/stat.h" 3 4 > __syscall_slong_t __unused[3]; > > > > }; > > > >#define _STATBUF_ST_BLKSIZE >#define _STATBUF_ST_RDEV > >#define _STATBUF_ST_NSEC > > > >#define __S_IFMT 0170000 > > >#define __S_IFDIR 0040000 >#define __S_IFCHR 0020000 >#define __S_IFBLK 0060000 >#define __S_IFREG 0100000 >#define __S_IFIFO 0010000 >#define __S_IFLNK 0120000 >#define __S_IFSOCK 0140000 > > > >#define __S_TYPEISMQ(buf) ((buf)->st_mode - (buf)->st_mode) >#define __S_TYPEISSEM(buf) ((buf)->st_mode - (buf)->st_mode) >#define __S_TYPEISSHM(buf) ((buf)->st_mode - (buf)->st_mode) > > > >#define __S_ISUID 04000 >#define __S_ISGID 02000 >#define __S_ISVTX 01000 >#define __S_IREAD 0400 >#define __S_IWRITE 0200 >#define __S_IEXEC 0100 > > >#define UTIME_NOW ((1l << 30) - 1l) >#define UTIME_OMIT ((1l << 30) - 2l) ># 106 "/usr/include/sys/stat.h" 2 3 4 > > >#define S_IFMT __S_IFMT >#define S_IFDIR __S_IFDIR >#define S_IFCHR __S_IFCHR >#define S_IFBLK __S_IFBLK >#define S_IFREG __S_IFREG > >#define S_IFIFO __S_IFIFO > > >#define S_IFLNK __S_IFLNK > > > >#define S_IFSOCK __S_IFSOCK > > > > > >#define __S_ISTYPE(mode,mask) (((mode) & __S_IFMT) == (mask)) > >#define S_ISDIR(mode) __S_ISTYPE((mode), __S_IFDIR) >#define S_ISCHR(mode) __S_ISTYPE((mode), __S_IFCHR) >#define S_ISBLK(mode) __S_ISTYPE((mode), __S_IFBLK) >#define S_ISREG(mode) __S_ISTYPE((mode), __S_IFREG) > >#define S_ISFIFO(mode) __S_ISTYPE((mode), __S_IFIFO) > > >#define S_ISLNK(mode) __S_ISTYPE((mode), __S_IFLNK) ># 146 "/usr/include/sys/stat.h" 3 4 >#define S_ISSOCK(mode) __S_ISTYPE((mode), __S_IFSOCK) ># 156 "/usr/include/sys/stat.h" 3 4 >#define S_TYPEISMQ(buf) __S_TYPEISMQ(buf) >#define S_TYPEISSEM(buf) __S_TYPEISSEM(buf) >#define S_TYPEISSHM(buf) __S_TYPEISSHM(buf) > > > > > >#define S_ISUID __S_ISUID >#define S_ISGID __S_ISGID > > > >#define S_ISVTX __S_ISVTX > > >#define S_IRUSR __S_IREAD >#define S_IWUSR __S_IWRITE >#define S_IXUSR __S_IEXEC > >#define S_IRWXU (__S_IREAD|__S_IWRITE|__S_IEXEC) > > >#define S_IREAD S_IRUSR >#define S_IWRITE S_IWUSR >#define S_IEXEC S_IXUSR > > >#define S_IRGRP (S_IRUSR >> 3) >#define S_IWGRP (S_IWUSR >> 3) >#define S_IXGRP (S_IXUSR >> 3) > >#define S_IRWXG (S_IRWXU >> 3) > >#define S_IROTH (S_IRGRP >> 3) >#define S_IWOTH (S_IWGRP >> 3) >#define S_IXOTH (S_IXGRP >> 3) > >#define S_IRWXO (S_IRWXG >> 3) > > > > >#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) >#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) >#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) > >#define S_BLKSIZE 512 > > > > > >extern int stat (const char *__restrict __file, > struct stat *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int fstat (int __fd, struct stat *__buf) throw () __attribute__ ((__nonnull__ (2))); ># 228 "/usr/include/sys/stat.h" 3 4 >extern int stat64 (const char *__restrict __file, > struct stat64 *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2))); >extern int fstat64 (int __fd, struct stat64 *__buf) throw () __attribute__ ((__nonnull__ (2))); > > > > > > > >extern int fstatat (int __fd, const char *__restrict __file, > struct stat *__restrict __buf, int __flag) > throw () __attribute__ ((__nonnull__ (2, 3))); ># 253 "/usr/include/sys/stat.h" 3 4 >extern int fstatat64 (int __fd, const char *__restrict __file, > struct stat64 *__restrict __buf, int __flag) > throw () __attribute__ ((__nonnull__ (2, 3))); > > > > > > > >extern int lstat (const char *__restrict __file, > struct stat *__restrict __buf) throw () __attribute__ ((__nonnull__ (1, 2))); ># 276 "/usr/include/sys/stat.h" 3 4 >extern int lstat64 (const char *__restrict __file, > struct stat64 *__restrict __buf) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern int chmod (const char *__file, __mode_t __mode) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int lchmod (const char *__file, __mode_t __mode) > throw () __attribute__ ((__nonnull__ (1))); > > > > >extern int fchmod (int __fd, __mode_t __mode) throw (); > > > > > >extern int fchmodat (int __fd, const char *__file, __mode_t __mode, > int __flag) > throw () __attribute__ ((__nonnull__ (2))) ; > > > > > > >extern __mode_t umask (__mode_t __mask) throw (); > > > > >extern __mode_t getumask (void) throw (); > > > >extern int mkdir (const char *__path, __mode_t __mode) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int mkdirat (int __fd, const char *__path, __mode_t __mode) > throw () __attribute__ ((__nonnull__ (2))); > > > > > > >extern int mknod (const char *__path, __mode_t __mode, __dev_t __dev) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int mknodat (int __fd, const char *__path, __mode_t __mode, > __dev_t __dev) throw () __attribute__ ((__nonnull__ (2))); > > > > > >extern int mkfifo (const char *__path, __mode_t __mode) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int mkfifoat (int __fd, const char *__path, __mode_t __mode) > throw () __attribute__ ((__nonnull__ (2))); > > > > > >extern int utimensat (int __fd, const char *__path, > const struct timespec __times[2], > int __flags) > throw () __attribute__ ((__nonnull__ (2))); > > > > >extern int futimens (int __fd, const struct timespec __times[2]) throw (); ># 394 "/usr/include/sys/stat.h" 3 4 >#define _MKNOD_VER 0 > > > > >extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) > throw () __attribute__ ((__nonnull__ (3))); >extern int __xstat (int __ver, const char *__filename, > struct stat *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3))); >extern int __lxstat (int __ver, const char *__filename, > struct stat *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3))); >extern int __fxstatat (int __ver, int __fildes, const char *__filename, > struct stat *__stat_buf, int __flag) > throw () __attribute__ ((__nonnull__ (3, 4))); ># 432 "/usr/include/sys/stat.h" 3 4 >extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf) > throw () __attribute__ ((__nonnull__ (3))); >extern int __xstat64 (int __ver, const char *__filename, > struct stat64 *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3))); >extern int __lxstat64 (int __ver, const char *__filename, > struct stat64 *__stat_buf) throw () __attribute__ ((__nonnull__ (2, 3))); >extern int __fxstatat64 (int __ver, int __fildes, const char *__filename, > struct stat64 *__stat_buf, int __flag) > throw () __attribute__ ((__nonnull__ (3, 4))); > >extern int __xmknod (int __ver, const char *__path, __mode_t __mode, > __dev_t *__dev) throw () __attribute__ ((__nonnull__ (2, 4))); > >extern int __xmknodat (int __ver, int __fd, const char *__path, > __mode_t __mode, __dev_t *__dev) > throw () __attribute__ ((__nonnull__ (3, 5))); ># 534 "/usr/include/sys/stat.h" 3 4 >} ># 289 "../gtest_contrib/gtest/gtest.h" 2 > > ># 1 "/usr/include/c++/4.8.2/iostream" 1 3 ># 34 "/usr/include/c++/4.8.2/iostream" 3 >#define _GLIBCXX_IOSTREAM 1 > > ># 37 "/usr/include/c++/4.8.2/iostream" 3 > > ># 1 "/usr/include/c++/4.8.2/ostream" 1 3 ># 34 "/usr/include/c++/4.8.2/ostream" 3 >#define _GLIBCXX_OSTREAM 1 > > ># 37 "/usr/include/c++/4.8.2/ostream" 3 > ># 1 "/usr/include/c++/4.8.2/ios" 1 3 ># 34 "/usr/include/c++/4.8.2/ios" 3 >#define _GLIBCXX_IOS 1 > > ># 37 "/usr/include/c++/4.8.2/ios" 3 > ># 1 "/usr/include/c++/4.8.2/iosfwd" 1 3 ># 34 "/usr/include/c++/4.8.2/iosfwd" 3 >#define _GLIBCXX_IOSFWD 1 > > ># 37 "/usr/include/c++/4.8.2/iosfwd" 3 > > ># 1 "/usr/include/c++/4.8.2/bits/stringfwd.h" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/stringfwd.h" 3 >#define _STRINGFWD_H 1 > > ># 38 "/usr/include/c++/4.8.2/bits/stringfwd.h" 3 > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > > > > > template<class _CharT> > struct char_traits; > > template<typename _CharT, typename _Traits = char_traits<_CharT>, > typename _Alloc = allocator<_CharT> > > class basic_string; > > template<> struct char_traits<char>; > > > typedef basic_string<char> string; > > > template<> struct char_traits<wchar_t>; > > > typedef basic_string<wchar_t> wstring; ># 86 "/usr/include/c++/4.8.2/bits/stringfwd.h" 3 > >} ># 40 "/usr/include/c++/4.8.2/iosfwd" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/postypes.h" 1 3 ># 36 "/usr/include/c++/4.8.2/bits/postypes.h" 3 >#define _GLIBCXX_POSTYPES_H 1 > > ># 39 "/usr/include/c++/4.8.2/bits/postypes.h" 3 > ># 1 "/usr/include/c++/4.8.2/cwchar" 1 3 ># 39 "/usr/include/c++/4.8.2/cwchar" 3 > ># 40 "/usr/include/c++/4.8.2/cwchar" 3 > > > > ># 1 "/usr/include/wchar.h" 1 3 4 ># 26 "/usr/include/wchar.h" 3 4 >#define _WCHAR_H 1 > > > > > >#define __need___FILE > >#define __need_FILE > > > >#define __need___va_list ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdarg.h" 1 3 4 ># 34 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdarg.h" 3 4 >#undef __need___va_list ># 40 "/usr/include/wchar.h" 2 3 4 > ># 1 "/usr/include/bits/wchar.h" 1 3 4 ># 20 "/usr/include/bits/wchar.h" 3 4 >#define _BITS_WCHAR_H 1 ># 34 "/usr/include/bits/wchar.h" 3 4 >#define __WCHAR_MAX __WCHAR_MAX__ > > > > > > > >#define __WCHAR_MIN __WCHAR_MIN__ ># 42 "/usr/include/wchar.h" 2 3 4 > > >#define __need_size_t >#define __need_wchar_t >#define __need_NULL > > >#undef __need_wint_t >#define __need_wint_t ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t > > > > >#define _WINT_T > > > > >typedef unsigned int wint_t; > >#undef __need_wint_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 52 "/usr/include/wchar.h" 2 3 4 ># 75 "/usr/include/wchar.h" 3 4 >#define __CORRECT_ISO_CPP_WCHAR_H_PROTO ># 96 "/usr/include/wchar.h" 3 4 >#undef __need_mbstate_t > > > > > > > > > >typedef __mbstate_t mbstate_t; > >#define __mbstate_t_defined 1 > > > > > > > > >#define WCHAR_MIN __WCHAR_MIN >#define WCHAR_MAX __WCHAR_MAX > > > >#define WEOF (0xffffffffu) ># 132 "/usr/include/wchar.h" 3 4 >extern "C" { > > > > >struct tm; > > > > > > > > > >extern wchar_t *wcscpy (wchar_t *__restrict __dest, > const wchar_t *__restrict __src) throw (); > >extern wchar_t *wcsncpy (wchar_t *__restrict __dest, > const wchar_t *__restrict __src, size_t __n) > throw (); > > >extern wchar_t *wcscat (wchar_t *__restrict __dest, > const wchar_t *__restrict __src) throw (); > >extern wchar_t *wcsncat (wchar_t *__restrict __dest, > const wchar_t *__restrict __src, size_t __n) > throw (); > > >extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) > throw () __attribute__ ((__pure__)); > >extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) > throw () __attribute__ ((__pure__)); > > > > >extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) throw (); > > >extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, > size_t __n) throw (); > > > > > >extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, > __locale_t __loc) throw (); > >extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, > size_t __n, __locale_t __loc) throw (); > > > > > >extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) throw (); > > > >extern size_t wcsxfrm (wchar_t *__restrict __s1, > const wchar_t *__restrict __s2, size_t __n) throw (); > > > > > > > > >extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, > __locale_t __loc) throw (); > > > > >extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, > size_t __n, __locale_t __loc) throw (); > > >extern wchar_t *wcsdup (const wchar_t *__s) throw () __attribute__ ((__malloc__)); > > > > > >extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) > throw () __asm ("wcschr") __attribute__ ((__pure__)); >extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) > throw () __asm ("wcschr") __attribute__ ((__pure__)); > > > > > > >extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) > throw () __asm ("wcsrchr") __attribute__ ((__pure__)); >extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) > throw () __asm ("wcsrchr") __attribute__ ((__pure__)); > > > > > > > > > >extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) > throw () __attribute__ ((__pure__)); > > > > > >extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) > throw () __attribute__ ((__pure__)); > > >extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) > throw () __attribute__ ((__pure__)); > > >extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) > throw () __asm ("wcspbrk") __attribute__ ((__pure__)); >extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, > const wchar_t *__accept) > throw () __asm ("wcspbrk") __attribute__ ((__pure__)); > > > > > > >extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) > throw () __asm ("wcsstr") __attribute__ ((__pure__)); >extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, > const wchar_t *__needle) > throw () __asm ("wcsstr") __attribute__ ((__pure__)); > > > > > > >extern wchar_t *wcstok (wchar_t *__restrict __s, > const wchar_t *__restrict __delim, > wchar_t **__restrict __ptr) throw (); > > >extern size_t wcslen (const wchar_t *__s) throw () __attribute__ ((__pure__)); > > > > > >extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) > throw () __asm ("wcswcs") __attribute__ ((__pure__)); >extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, > const wchar_t *__needle) > throw () __asm ("wcswcs") __attribute__ ((__pure__)); ># 306 "/usr/include/wchar.h" 3 4 >extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) > throw () __attribute__ ((__pure__)); > > > > > > >extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) > throw () __asm ("wmemchr") __attribute__ ((__pure__)); >extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, > size_t __n) > throw () __asm ("wmemchr") __attribute__ ((__pure__)); > > > > > > >extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) > throw () __attribute__ ((__pure__)); > > >extern wchar_t *wmemcpy (wchar_t *__restrict __s1, > const wchar_t *__restrict __s2, size_t __n) throw (); > > > >extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) > throw (); > > >extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) throw (); > > > > > >extern wchar_t *wmempcpy (wchar_t *__restrict __s1, > const wchar_t *__restrict __s2, size_t __n) > throw (); > > > > > > >extern wint_t btowc (int __c) throw (); > > > >extern int wctob (wint_t __c) throw (); > > > >extern int mbsinit (const mbstate_t *__ps) throw () __attribute__ ((__pure__)); > > > >extern size_t mbrtowc (wchar_t *__restrict __pwc, > const char *__restrict __s, size_t __n, > mbstate_t *__restrict __p) throw (); > > >extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, > mbstate_t *__restrict __ps) throw (); > > >extern size_t __mbrlen (const char *__restrict __s, size_t __n, > mbstate_t *__restrict __ps) throw (); >extern size_t mbrlen (const char *__restrict __s, size_t __n, > mbstate_t *__restrict __ps) throw (); > ># 405 "/usr/include/wchar.h" 3 4 > > > >extern size_t mbsrtowcs (wchar_t *__restrict __dst, > const char **__restrict __src, size_t __len, > mbstate_t *__restrict __ps) throw (); > > > >extern size_t wcsrtombs (char *__restrict __dst, > const wchar_t **__restrict __src, size_t __len, > mbstate_t *__restrict __ps) throw (); > > > > > > >extern size_t mbsnrtowcs (wchar_t *__restrict __dst, > const char **__restrict __src, size_t __nmc, > size_t __len, mbstate_t *__restrict __ps) throw (); > > > >extern size_t wcsnrtombs (char *__restrict __dst, > const wchar_t **__restrict __src, > size_t __nwc, size_t __len, > mbstate_t *__restrict __ps) throw (); > > > > > > >extern int wcwidth (wchar_t __c) throw (); > > > >extern int wcswidth (const wchar_t *__s, size_t __n) throw (); > > > > > > >extern double wcstod (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr) throw (); > > > > > >extern float wcstof (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr) throw (); >extern long double wcstold (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr) throw (); > > > > > > > >extern long int wcstol (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) throw (); > > > >extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) > throw (); > > > > > > >__extension__ >extern long long int wcstoll (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) > throw (); > > > >__extension__ >extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base) throw (); > > > > > > >__extension__ >extern long long int wcstoq (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) > throw (); > > > >__extension__ >extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base) throw (); ># 530 "/usr/include/wchar.h" 3 4 >extern long int wcstol_l (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base, > __locale_t __loc) throw (); > >extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base, __locale_t __loc) throw (); > >__extension__ >extern long long int wcstoll_l (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base, __locale_t __loc) throw (); > >__extension__ >extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base, __locale_t __loc) > throw (); > >extern double wcstod_l (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, __locale_t __loc) > throw (); > >extern float wcstof_l (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, __locale_t __loc) > throw (); > >extern long double wcstold_l (const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > __locale_t __loc) throw (); > > > > > > >extern wchar_t *wcpcpy (wchar_t *__restrict __dest, > const wchar_t *__restrict __src) throw (); > > > >extern wchar_t *wcpncpy (wchar_t *__restrict __dest, > const wchar_t *__restrict __src, size_t __n) > throw (); > > > > > > >extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) throw (); > > > > > > >extern int fwide (__FILE *__fp, int __mode) throw (); > > > > > > >extern int fwprintf (__FILE *__restrict __stream, > const wchar_t *__restrict __format, ...) > ; > > > > >extern int wprintf (const wchar_t *__restrict __format, ...) > ; > >extern int swprintf (wchar_t *__restrict __s, size_t __n, > const wchar_t *__restrict __format, ...) > throw () ; > > > > > >extern int vfwprintf (__FILE *__restrict __s, > const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > > > > >extern int vwprintf (const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > > >extern int vswprintf (wchar_t *__restrict __s, size_t __n, > const wchar_t *__restrict __format, > __gnuc_va_list __arg) > throw () ; > > > > > > >extern int fwscanf (__FILE *__restrict __stream, > const wchar_t *__restrict __format, ...) > ; > > > > >extern int wscanf (const wchar_t *__restrict __format, ...) > ; > >extern int swscanf (const wchar_t *__restrict __s, > const wchar_t *__restrict __format, ...) > throw () ; ># 680 "/usr/include/wchar.h" 3 4 > > > > > > > > > >extern int vfwscanf (__FILE *__restrict __s, > const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > > > > >extern int vwscanf (const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > >extern int vswscanf (const wchar_t *__restrict __s, > const wchar_t *__restrict __format, > __gnuc_va_list __arg) > throw () ; ># 736 "/usr/include/wchar.h" 3 4 > > > > > > > > > >extern wint_t fgetwc (__FILE *__stream); >extern wint_t getwc (__FILE *__stream); > > > > > >extern wint_t getwchar (void); > > > > > > >extern wint_t fputwc (wchar_t __wc, __FILE *__stream); >extern wint_t putwc (wchar_t __wc, __FILE *__stream); > > > > > >extern wint_t putwchar (wchar_t __wc); > > > > > > > >extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, > __FILE *__restrict __stream); > > > > > >extern int fputws (const wchar_t *__restrict __ws, > __FILE *__restrict __stream); > > > > > > >extern wint_t ungetwc (wint_t __wc, __FILE *__stream); > ># 801 "/usr/include/wchar.h" 3 4 >extern wint_t getwc_unlocked (__FILE *__stream); >extern wint_t getwchar_unlocked (void); > > > > > > > >extern wint_t fgetwc_unlocked (__FILE *__stream); > > > > > > > >extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); ># 827 "/usr/include/wchar.h" 3 4 >extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); >extern wint_t putwchar_unlocked (wchar_t __wc); ># 837 "/usr/include/wchar.h" 3 4 >extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, > __FILE *__restrict __stream); > > > > > > > >extern int fputws_unlocked (const wchar_t *__restrict __ws, > __FILE *__restrict __stream); > > > > > > > >extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, > const wchar_t *__restrict __format, > const struct tm *__restrict __tp) throw (); > > > > > > > >extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, > const wchar_t *__restrict __format, > const struct tm *__restrict __tp, > __locale_t __loc) throw (); ># 891 "/usr/include/wchar.h" 3 4 >} > > > > > > > >#undef __need_mbstate_t >#undef __need_wint_t ># 45 "/usr/include/c++/4.8.2/cwchar" 2 3 > > > >#define _GLIBCXX_CWCHAR 1 ># 62 "/usr/include/c++/4.8.2/cwchar" 3 >namespace std >{ > using ::mbstate_t; >} > > >#undef btowc >#undef fgetwc >#undef fgetws >#undef fputwc >#undef fputws >#undef fwide >#undef fwprintf >#undef fwscanf >#undef getwc >#undef getwchar >#undef mbrlen >#undef mbrtowc >#undef mbsinit >#undef mbsrtowcs >#undef putwc >#undef putwchar >#undef swprintf >#undef swscanf >#undef ungetwc >#undef vfwprintf > >#undef vfwscanf > >#undef vswprintf > >#undef vswscanf > >#undef vwprintf > >#undef vwscanf > >#undef wcrtomb >#undef wcscat >#undef wcschr >#undef wcscmp >#undef wcscoll >#undef wcscpy >#undef wcscspn >#undef wcsftime >#undef wcslen >#undef wcsncat >#undef wcsncmp >#undef wcsncpy >#undef wcspbrk >#undef wcsrchr >#undef wcsrtombs >#undef wcsspn >#undef wcsstr >#undef wcstod > >#undef wcstof > >#undef wcstok >#undef wcstol >#undef wcstoul >#undef wcsxfrm >#undef wctob >#undef wmemchr >#undef wmemcmp >#undef wmemcpy >#undef wmemmove >#undef wmemset >#undef wprintf >#undef wscanf > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > using ::wint_t; > > using ::btowc; > using ::fgetwc; > using ::fgetws; > using ::fputwc; > using ::fputws; > using ::fwide; > using ::fwprintf; > using ::fwscanf; > using ::getwc; > using ::getwchar; > using ::mbrlen; > using ::mbrtowc; > using ::mbsinit; > using ::mbsrtowcs; > using ::putwc; > using ::putwchar; > > using ::swprintf; > > using ::swscanf; > using ::ungetwc; > using ::vfwprintf; > > using ::vfwscanf; > > > using ::vswprintf; > > > using ::vswscanf; > > using ::vwprintf; > > using ::vwscanf; > > using ::wcrtomb; > using ::wcscat; > using ::wcscmp; > using ::wcscoll; > using ::wcscpy; > using ::wcscspn; > using ::wcsftime; > using ::wcslen; > using ::wcsncat; > using ::wcsncmp; > using ::wcsncpy; > using ::wcsrtombs; > using ::wcsspn; > using ::wcstod; > > using ::wcstof; > > using ::wcstok; > using ::wcstol; > using ::wcstoul; > using ::wcsxfrm; > using ::wctob; > using ::wmemcmp; > using ::wmemcpy; > using ::wmemmove; > using ::wmemset; > using ::wprintf; > using ::wscanf; > using ::wcschr; > using ::wcspbrk; > using ::wcsrchr; > using ::wcsstr; > using ::wmemchr; ># 232 "/usr/include/c++/4.8.2/cwchar" 3 > >} > > > >#undef wcstold >#undef wcstoll >#undef wcstoull > >namespace __gnu_cxx >{ > > > > > > using ::wcstold; ># 257 "/usr/include/c++/4.8.2/cwchar" 3 > using ::wcstoll; > using ::wcstoull; > >} > >namespace std >{ > using ::__gnu_cxx::wcstold; > using ::__gnu_cxx::wcstoll; > using ::__gnu_cxx::wcstoull; >} ># 41 "/usr/include/c++/4.8.2/bits/postypes.h" 2 3 ># 68 "/usr/include/c++/4.8.2/bits/postypes.h" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 88 "/usr/include/c++/4.8.2/bits/postypes.h" 3 > typedef long streamoff; ># 98 "/usr/include/c++/4.8.2/bits/postypes.h" 3 > typedef ptrdiff_t streamsize; ># 111 "/usr/include/c++/4.8.2/bits/postypes.h" 3 > template<typename _StateT> > class fpos > { > private: > streamoff _M_off; > _StateT _M_state; > > public: > > > > > fpos() > : _M_off(0), _M_state() { } ># 133 "/usr/include/c++/4.8.2/bits/postypes.h" 3 > fpos(streamoff __off) > : _M_off(__off), _M_state() { } > > > operator streamoff() const { return _M_off; } > > > void > state(_StateT __st) > { _M_state = __st; } > > > _StateT > state() const > { return _M_state; } > > > > > > fpos& > operator+=(streamoff __off) > { > _M_off += __off; > return *this; > } > > > > > > fpos& > operator-=(streamoff __off) > { > _M_off -= __off; > return *this; > } > > > > > > > > fpos > operator+(streamoff __off) const > { > fpos __pos(*this); > __pos += __off; > return __pos; > } > > > > > > > > fpos > operator-(streamoff __off) const > { > fpos __pos(*this); > __pos -= __off; > return __pos; > } > > > > > > > streamoff > operator-(const fpos& __other) const > { return _M_off - __other._M_off; } > }; > > > > > > > template<typename _StateT> > inline bool > operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) > { return streamoff(__lhs) == streamoff(__rhs); } > > template<typename _StateT> > inline bool > operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) > { return streamoff(__lhs) != streamoff(__rhs); } > > > > > > typedef fpos<mbstate_t> streampos; > > typedef fpos<mbstate_t> wstreampos; ># 239 "/usr/include/c++/4.8.2/bits/postypes.h" 3 > >} ># 41 "/usr/include/c++/4.8.2/iosfwd" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 74 "/usr/include/c++/4.8.2/iosfwd" 3 > class ios_base; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class basic_ios; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class basic_streambuf; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class basic_istream; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class basic_ostream; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class basic_iostream; > > template<typename _CharT, typename _Traits = char_traits<_CharT>, > typename _Alloc = allocator<_CharT> > > class basic_stringbuf; > > template<typename _CharT, typename _Traits = char_traits<_CharT>, > typename _Alloc = allocator<_CharT> > > class basic_istringstream; > > template<typename _CharT, typename _Traits = char_traits<_CharT>, > typename _Alloc = allocator<_CharT> > > class basic_ostringstream; > > template<typename _CharT, typename _Traits = char_traits<_CharT>, > typename _Alloc = allocator<_CharT> > > class basic_stringstream; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class basic_filebuf; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class basic_ifstream; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class basic_ofstream; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class basic_fstream; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class istreambuf_iterator; > > template<typename _CharT, typename _Traits = char_traits<_CharT> > > class ostreambuf_iterator; > > > > typedef basic_ios<char> ios; > > > typedef basic_streambuf<char> streambuf; > > > typedef basic_istream<char> istream; > > > typedef basic_ostream<char> ostream; > > > typedef basic_iostream<char> iostream; > > > typedef basic_stringbuf<char> stringbuf; > > > typedef basic_istringstream<char> istringstream; > > > typedef basic_ostringstream<char> ostringstream; > > > typedef basic_stringstream<char> stringstream; > > > typedef basic_filebuf<char> filebuf; > > > typedef basic_ifstream<char> ifstream; > > > typedef basic_ofstream<char> ofstream; > > > typedef basic_fstream<char> fstream; > > > > typedef basic_ios<wchar_t> wios; > > > typedef basic_streambuf<wchar_t> wstreambuf; > > > typedef basic_istream<wchar_t> wistream; > > > typedef basic_ostream<wchar_t> wostream; > > > typedef basic_iostream<wchar_t> wiostream; > > > typedef basic_stringbuf<wchar_t> wstringbuf; > > > typedef basic_istringstream<wchar_t> wistringstream; > > > typedef basic_ostringstream<wchar_t> wostringstream; > > > typedef basic_stringstream<wchar_t> wstringstream; > > > typedef basic_filebuf<wchar_t> wfilebuf; > > > typedef basic_ifstream<wchar_t> wifstream; > > > typedef basic_ofstream<wchar_t> wofstream; > > > typedef basic_fstream<wchar_t> wfstream; > > > > >} ># 39 "/usr/include/c++/4.8.2/ios" 2 3 > ># 1 "/usr/include/c++/4.8.2/bits/char_traits.h" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/char_traits.h" 3 >#define _CHAR_TRAITS_H 1 > > ># 38 "/usr/include/c++/4.8.2/bits/char_traits.h" 3 > > > ># 1 "/usr/include/c++/4.8.2/cwchar" 1 3 ># 39 "/usr/include/c++/4.8.2/cwchar" 3 > ># 40 "/usr/include/c++/4.8.2/cwchar" 3 > > > > ># 1 "/usr/include/wchar.h" 1 3 4 ># 899 "/usr/include/wchar.h" 3 4 >#undef __need_mbstate_t >#undef __need_wint_t ># 45 "/usr/include/c++/4.8.2/cwchar" 2 3 ># 42 "/usr/include/c++/4.8.2/bits/char_traits.h" 2 3 > >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > ># 57 "/usr/include/c++/4.8.2/bits/char_traits.h" 3 > template<typename _CharT> > struct _Char_types > { > typedef unsigned long int_type; > typedef std::streampos pos_type; > typedef std::streamoff off_type; > typedef std::mbstate_t state_type; > }; ># 82 "/usr/include/c++/4.8.2/bits/char_traits.h" 3 > template<typename _CharT> > struct char_traits > { > typedef _CharT char_type; > typedef typename _Char_types<_CharT>::int_type int_type; > typedef typename _Char_types<_CharT>::pos_type pos_type; > typedef typename _Char_types<_CharT>::off_type off_type; > typedef typename _Char_types<_CharT>::state_type state_type; > > static void > assign(char_type& __c1, const char_type& __c2) > { __c1 = __c2; } > > static bool > eq(const char_type& __c1, const char_type& __c2) > { return __c1 == __c2; } > > static bool > lt(const char_type& __c1, const char_type& __c2) > { return __c1 < __c2; } > > static int > compare(const char_type* __s1, const char_type* __s2, std::size_t __n); > > static std::size_t > length(const char_type* __s); > > static const char_type* > find(const char_type* __s, std::size_t __n, const char_type& __a); > > static char_type* > move(char_type* __s1, const char_type* __s2, std::size_t __n); > > static char_type* > copy(char_type* __s1, const char_type* __s2, std::size_t __n); > > static char_type* > assign(char_type* __s, std::size_t __n, char_type __a); > > static char_type > to_char_type(const int_type& __c) > { return static_cast<char_type>(__c); } > > static int_type > to_int_type(const char_type& __c) > { return static_cast<int_type>(__c); } > > static bool > eq_int_type(const int_type& __c1, const int_type& __c2) > { return __c1 == __c2; } > > static int_type > eof() > { return static_cast<int_type>(-1); } > > static int_type > not_eof(const int_type& __c) > { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } > }; > > template<typename _CharT> > int > char_traits<_CharT>:: > compare(const char_type* __s1, const char_type* __s2, std::size_t __n) > { > for (std::size_t __i = 0; __i < __n; ++__i) > if (lt(__s1[__i], __s2[__i])) > return -1; > else if (lt(__s2[__i], __s1[__i])) > return 1; > return 0; > } > > template<typename _CharT> > std::size_t > char_traits<_CharT>:: > length(const char_type* __p) > { > std::size_t __i = 0; > while (!eq(__p[__i], char_type())) > ++__i; > return __i; > } > > template<typename _CharT> > const typename char_traits<_CharT>::char_type* > char_traits<_CharT>:: > find(const char_type* __s, std::size_t __n, const char_type& __a) > { > for (std::size_t __i = 0; __i < __n; ++__i) > if (eq(__s[__i], __a)) > return __s + __i; > return 0; > } > > template<typename _CharT> > typename char_traits<_CharT>::char_type* > char_traits<_CharT>:: > move(char_type* __s1, const char_type* __s2, std::size_t __n) > { > return static_cast<_CharT*>(__builtin_memmove(__s1, __s2, > __n * sizeof(char_type))); > } > > template<typename _CharT> > typename char_traits<_CharT>::char_type* > char_traits<_CharT>:: > copy(char_type* __s1, const char_type* __s2, std::size_t __n) > { > > std::copy(__s2, __s2 + __n, __s1); > return __s1; > } > > template<typename _CharT> > typename char_traits<_CharT>::char_type* > char_traits<_CharT>:: > assign(char_type* __s, std::size_t __n, char_type __a) > { > > std::fill_n(__s, __n, __a); > return __s; > } > > >} > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 226 "/usr/include/c++/4.8.2/bits/char_traits.h" 3 > template<class _CharT> > struct char_traits : public __gnu_cxx::char_traits<_CharT> > { }; > > > > template<> > struct char_traits<char> > { > typedef char char_type; > typedef int int_type; > typedef streampos pos_type; > typedef streamoff off_type; > typedef mbstate_t state_type; > > static void > assign(char_type& __c1, const char_type& __c2) > { __c1 = __c2; } > > static bool > eq(const char_type& __c1, const char_type& __c2) > { return __c1 == __c2; } > > static bool > lt(const char_type& __c1, const char_type& __c2) > { return __c1 < __c2; } > > static int > compare(const char_type* __s1, const char_type* __s2, size_t __n) > { return __builtin_memcmp(__s1, __s2, __n); } > > static size_t > length(const char_type* __s) > { return __builtin_strlen(__s); } > > static const char_type* > find(const char_type* __s, size_t __n, const char_type& __a) > { return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); } > > static char_type* > move(char_type* __s1, const char_type* __s2, size_t __n) > { return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); } > > static char_type* > copy(char_type* __s1, const char_type* __s2, size_t __n) > { return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); } > > static char_type* > assign(char_type* __s, size_t __n, char_type __a) > { return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); } > > static char_type > to_char_type(const int_type& __c) > { return static_cast<char_type>(__c); } > > > > static int_type > to_int_type(const char_type& __c) > { return static_cast<int_type>(static_cast<unsigned char>(__c)); } > > static bool > eq_int_type(const int_type& __c1, const int_type& __c2) > { return __c1 == __c2; } > > static int_type > eof() > { return static_cast<int_type>(-1); } > > static int_type > not_eof(const int_type& __c) > { return (__c == eof()) ? 0 : __c; } > }; > > > > > template<> > struct char_traits<wchar_t> > { > typedef wchar_t char_type; > typedef wint_t int_type; > typedef streamoff off_type; > typedef wstreampos pos_type; > typedef mbstate_t state_type; > > static void > assign(char_type& __c1, const char_type& __c2) > { __c1 = __c2; } > > static bool > eq(const char_type& __c1, const char_type& __c2) > { return __c1 == __c2; } > > static bool > lt(const char_type& __c1, const char_type& __c2) > { return __c1 < __c2; } > > static int > compare(const char_type* __s1, const char_type* __s2, size_t __n) > { return wmemcmp(__s1, __s2, __n); } > > static size_t > length(const char_type* __s) > { return wcslen(__s); } > > static const char_type* > find(const char_type* __s, size_t __n, const char_type& __a) > { return wmemchr(__s, __a, __n); } > > static char_type* > move(char_type* __s1, const char_type* __s2, size_t __n) > { return wmemmove(__s1, __s2, __n); } > > static char_type* > copy(char_type* __s1, const char_type* __s2, size_t __n) > { return wmemcpy(__s1, __s2, __n); } > > static char_type* > assign(char_type* __s, size_t __n, char_type __a) > { return wmemset(__s, __a, __n); } > > static char_type > to_char_type(const int_type& __c) > { return char_type(__c); } > > static int_type > to_int_type(const char_type& __c) > { return int_type(__c); } > > static bool > eq_int_type(const int_type& __c1, const int_type& __c2) > { return __c1 == __c2; } > > static int_type > eof() > { return static_cast<int_type>((0xffffffffu)); } > > static int_type > not_eof(const int_type& __c) > { return eq_int_type(__c, eof()) ? 0 : __c; } > }; > > > >} ># 41 "/usr/include/c++/4.8.2/ios" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/localefwd.h" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/localefwd.h" 3 >#define _LOCALE_FWD_H 1 > > ># 38 "/usr/include/c++/4.8.2/bits/localefwd.h" 3 > > ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++locale.h" 1 3 ># 37 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++locale.h" 3 >#define _GLIBCXX_CXX_LOCALE_H 1 > > ># 40 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++locale.h" 3 > ># 1 "/usr/include/c++/4.8.2/clocale" 1 3 ># 39 "/usr/include/c++/4.8.2/clocale" 3 > ># 40 "/usr/include/c++/4.8.2/clocale" 3 > > ># 1 "/usr/include/locale.h" 1 3 4 ># 23 "/usr/include/locale.h" 3 4 >#define _LOCALE_H 1 > > > >#define __need_NULL ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 29 "/usr/include/locale.h" 2 3 4 ># 1 "/usr/include/bits/locale.h" 1 3 4 ># 24 "/usr/include/bits/locale.h" 3 4 >#define _BITS_LOCALE_H 1 > >#define __LC_CTYPE 0 >#define __LC_NUMERIC 1 >#define __LC_TIME 2 >#define __LC_COLLATE 3 >#define __LC_MONETARY 4 >#define __LC_MESSAGES 5 >#define __LC_ALL 6 >#define __LC_PAPER 7 >#define __LC_NAME 8 >#define __LC_ADDRESS 9 >#define __LC_TELEPHONE 10 >#define __LC_MEASUREMENT 11 >#define __LC_IDENTIFICATION 12 ># 30 "/usr/include/locale.h" 2 3 4 > >extern "C" { > > > >#define LC_CTYPE __LC_CTYPE >#define LC_NUMERIC __LC_NUMERIC >#define LC_TIME __LC_TIME >#define LC_COLLATE __LC_COLLATE >#define LC_MONETARY __LC_MONETARY >#define LC_MESSAGES __LC_MESSAGES >#define LC_ALL __LC_ALL >#define LC_PAPER __LC_PAPER >#define LC_NAME __LC_NAME >#define LC_ADDRESS __LC_ADDRESS >#define LC_TELEPHONE __LC_TELEPHONE >#define LC_MEASUREMENT __LC_MEASUREMENT >#define LC_IDENTIFICATION __LC_IDENTIFICATION > > > > > >struct lconv >{ > > > char *decimal_point; > char *thousands_sep; > > > > > > char *grouping; > > > > > > char *int_curr_symbol; > char *currency_symbol; > char *mon_decimal_point; > char *mon_thousands_sep; > char *mon_grouping; > char *positive_sign; > char *negative_sign; > char int_frac_digits; > char frac_digits; > > char p_cs_precedes; > > char p_sep_by_space; > > char n_cs_precedes; > > char n_sep_by_space; > > > > > > > char p_sign_posn; > char n_sign_posn; > > > char int_p_cs_precedes; > > char int_p_sep_by_space; > > char int_n_cs_precedes; > > char int_n_sep_by_space; > > > > > > > char int_p_sign_posn; > char int_n_sign_posn; ># 120 "/usr/include/locale.h" 3 4 >}; > > > >extern char *setlocale (int __category, const char *__locale) throw (); > > >extern struct lconv *localeconv (void) throw (); > > ># 151 "/usr/include/locale.h" 3 4 >extern __locale_t newlocale (int __category_mask, const char *__locale, > __locale_t __base) throw (); > > > > > >#define LC_CTYPE_MASK (1 << __LC_CTYPE) >#define LC_NUMERIC_MASK (1 << __LC_NUMERIC) >#define LC_TIME_MASK (1 << __LC_TIME) >#define LC_COLLATE_MASK (1 << __LC_COLLATE) >#define LC_MONETARY_MASK (1 << __LC_MONETARY) >#define LC_MESSAGES_MASK (1 << __LC_MESSAGES) >#define LC_PAPER_MASK (1 << __LC_PAPER) >#define LC_NAME_MASK (1 << __LC_NAME) >#define LC_ADDRESS_MASK (1 << __LC_ADDRESS) >#define LC_TELEPHONE_MASK (1 << __LC_TELEPHONE) >#define LC_MEASUREMENT_MASK (1 << __LC_MEASUREMENT) >#define LC_IDENTIFICATION_MASK (1 << __LC_IDENTIFICATION) >#define LC_ALL_MASK (LC_CTYPE_MASK | LC_NUMERIC_MASK | LC_TIME_MASK | LC_COLLATE_MASK | LC_MONETARY_MASK | LC_MESSAGES_MASK | LC_PAPER_MASK | LC_NAME_MASK | LC_ADDRESS_MASK | LC_TELEPHONE_MASK | LC_MEASUREMENT_MASK | LC_IDENTIFICATION_MASK ) ># 186 "/usr/include/locale.h" 3 4 >extern __locale_t duplocale (__locale_t __dataset) throw (); > > > >extern void freelocale (__locale_t __dataset) throw (); > > > > > > >extern __locale_t uselocale (__locale_t __dataset) throw (); > > > >#define LC_GLOBAL_LOCALE ((__locale_t) -1L) > > > >} ># 43 "/usr/include/c++/4.8.2/clocale" 2 3 > > >#define _GLIBCXX_CLOCALE 1 > > >#undef setlocale >#undef localeconv > >namespace std >{ > using ::lconv; > using ::setlocale; > using ::localeconv; >} ># 42 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++locale.h" 2 3 > >#define _GLIBCXX_C_LOCALE_GNU 1 > >#define _GLIBCXX_NUM_CATEGORIES 6 > > >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > > > extern "C" __typeof(uselocale) __uselocale; > > >} > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > typedef __locale_t __c_locale; > > > > > > inline int > __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), > char* __out, > const int __size __attribute__ ((__unused__)), > const char* __fmt, ...) > { > > __c_locale __old = __gnu_cxx::__uselocale(__cloc); ># 88 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++locale.h" 3 > __builtin_va_list __args; > __builtin_va_start(__args, __fmt); > > > const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); > > > > > __builtin_va_end(__args); > > > __gnu_cxx::__uselocale(__old); > > > > > > > > return __ret; > } > > >} ># 41 "/usr/include/c++/4.8.2/bits/localefwd.h" 2 3 > ># 1 "/usr/include/c++/4.8.2/cctype" 1 3 ># 39 "/usr/include/c++/4.8.2/cctype" 3 > ># 40 "/usr/include/c++/4.8.2/cctype" 3 > > > > > >#define _GLIBCXX_CCTYPE 1 > > >#undef isalnum >#undef isalpha >#undef iscntrl >#undef isdigit >#undef isgraph >#undef islower >#undef isprint >#undef ispunct >#undef isspace >#undef isupper >#undef isxdigit >#undef tolower >#undef toupper > >namespace std >{ > using ::isalnum; > using ::isalpha; > using ::iscntrl; > using ::isdigit; > using ::isgraph; > using ::islower; > using ::isprint; > using ::ispunct; > using ::isspace; > using ::isupper; > using ::isxdigit; > using ::tolower; > using ::toupper; >} ># 43 "/usr/include/c++/4.8.2/bits/localefwd.h" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 55 "/usr/include/c++/4.8.2/bits/localefwd.h" 3 > class locale; > > template<typename _Facet> > bool > has_facet(const locale&) throw(); > > template<typename _Facet> > const _Facet& > use_facet(const locale&); > > > template<typename _CharT> > bool > isspace(_CharT, const locale&); > > template<typename _CharT> > bool > isprint(_CharT, const locale&); > > template<typename _CharT> > bool > iscntrl(_CharT, const locale&); > > template<typename _CharT> > bool > isupper(_CharT, const locale&); > > template<typename _CharT> > bool > islower(_CharT, const locale&); > > template<typename _CharT> > bool > isalpha(_CharT, const locale&); > > template<typename _CharT> > bool > isdigit(_CharT, const locale&); > > template<typename _CharT> > bool > ispunct(_CharT, const locale&); > > template<typename _CharT> > bool > isxdigit(_CharT, const locale&); > > template<typename _CharT> > bool > isalnum(_CharT, const locale&); > > template<typename _CharT> > bool > isgraph(_CharT, const locale&); > > template<typename _CharT> > _CharT > toupper(_CharT, const locale&); > > template<typename _CharT> > _CharT > tolower(_CharT, const locale&); > > > class ctype_base; > template<typename _CharT> > class ctype; > template<> class ctype<char>; > > template<> class ctype<wchar_t>; > > template<typename _CharT> > class ctype_byname; > > > class codecvt_base; > template<typename _InternT, typename _ExternT, typename _StateT> > class codecvt; > template<> class codecvt<char, char, mbstate_t>; > > template<> class codecvt<wchar_t, char, mbstate_t>; > > template<typename _InternT, typename _ExternT, typename _StateT> > class codecvt_byname; > > > > template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> > > class num_get; > template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> > > class num_put; > > template<typename _CharT> class numpunct; > template<typename _CharT> class numpunct_byname; > > > template<typename _CharT> > class collate; > template<typename _CharT> class > collate_byname; > > > class time_base; > template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> > > class time_get; > template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> > > class time_get_byname; > template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> > > class time_put; > template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> > > class time_put_byname; > > > class money_base; > > template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> > > class money_get; > template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> > > class money_put; > > template<typename _CharT, bool _Intl = false> > class moneypunct; > template<typename _CharT, bool _Intl = false> > class moneypunct_byname; > > > class messages_base; > template<typename _CharT> > class messages; > template<typename _CharT> > class messages_byname; > > >} ># 42 "/usr/include/c++/4.8.2/ios" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/ios_base.h" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 >#define _IOS_BASE_H 1 > > ># 38 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > ># 1 "/usr/include/c++/4.8.2/ext/atomicity.h" 1 3 ># 30 "/usr/include/c++/4.8.2/ext/atomicity.h" 3 >#define _GLIBCXX_ATOMICITY_H 1 > > ># 33 "/usr/include/c++/4.8.2/ext/atomicity.h" 3 > > ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr.h" 1 3 ># 27 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr.h" 3 >#define _GLIBCXX_GCC_GTHR_H > > >#pragma GCC visibility push(default) ># 145 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr.h" 3 >#define _GLIBCXX_GTHREAD_USE_WEAK 1 > > ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr-default.h" 1 3 ># 27 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr-default.h" 3 >#define _GLIBCXX_GCC_GTHR_POSIX_H > > > > >#define __GTHREADS 1 >#define __GTHREADS_CXX0X 1 > ># 1 "/usr/include/pthread.h" 1 3 4 ># 19 "/usr/include/pthread.h" 3 4 >#define _PTHREAD_H 1 > > > ># 1 "/usr/include/sched.h" 1 3 4 ># 20 "/usr/include/sched.h" 3 4 >#define _SCHED_H 1 > > > > > > >#define __need_size_t ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 29 "/usr/include/sched.h" 2 3 4 > >#define __need_time_t >#define __need_timespec ># 1 "/usr/include/time.h" 1 3 4 ># 66 "/usr/include/time.h" 3 4 >#undef __need_clock_t ># 82 "/usr/include/time.h" 3 4 >#undef __need_time_t ># 94 "/usr/include/time.h" 3 4 >#undef __clockid_time_t ># 106 "/usr/include/time.h" 3 4 >#undef __need_timer_t ># 127 "/usr/include/time.h" 3 4 >#undef __need_timespec ># 33 "/usr/include/sched.h" 2 3 4 ># 41 "/usr/include/sched.h" 3 4 ># 1 "/usr/include/bits/sched.h" 1 3 4 ># 28 "/usr/include/bits/sched.h" 3 4 >#define SCHED_OTHER 0 >#define SCHED_FIFO 1 >#define SCHED_RR 2 > >#define SCHED_BATCH 3 >#define SCHED_IDLE 5 > >#define SCHED_RESET_ON_FORK 0x40000000 > > > > >#define CSIGNAL 0x000000ff >#define CLONE_VM 0x00000100 >#define CLONE_FS 0x00000200 >#define CLONE_FILES 0x00000400 >#define CLONE_SIGHAND 0x00000800 >#define CLONE_PTRACE 0x00002000 >#define CLONE_VFORK 0x00004000 > >#define CLONE_PARENT 0x00008000 > >#define CLONE_THREAD 0x00010000 >#define CLONE_NEWNS 0x00020000 >#define CLONE_SYSVSEM 0x00040000 >#define CLONE_SETTLS 0x00080000 >#define CLONE_PARENT_SETTID 0x00100000 > >#define CLONE_CHILD_CLEARTID 0x00200000 > >#define CLONE_DETACHED 0x00400000 >#define CLONE_UNTRACED 0x00800000 > >#define CLONE_CHILD_SETTID 0x01000000 > >#define CLONE_NEWUTS 0x04000000 >#define CLONE_NEWIPC 0x08000000 >#define CLONE_NEWUSER 0x10000000 >#define CLONE_NEWPID 0x20000000 >#define CLONE_NEWNET 0x40000000 >#define CLONE_IO 0x80000000 > > > >struct sched_param > { > int __sched_priority; > }; > >extern "C" { > > > >extern int clone (int (*__fn) (void *__arg), void *__child_stack, > int __flags, void *__arg, ...) throw (); > > >extern int unshare (int __flags) throw (); > > >extern int sched_getcpu (void) throw (); > > >extern int setns (int __fd, int __nstype) throw (); > > > >} > > > > > >#define __defined_schedparam 1 > >struct __sched_param > { > int __sched_priority; > }; >#undef __need_schedparam > > > > >#define __cpu_set_t_defined > >#define __CPU_SETSIZE 1024 >#define __NCPUBITS (8 * sizeof (__cpu_mask)) > > >typedef unsigned long int __cpu_mask; > > >#define __CPUELT(cpu) ((cpu) / __NCPUBITS) >#define __CPUMASK(cpu) ((__cpu_mask) 1 << ((cpu) % __NCPUBITS)) > > >typedef struct >{ > __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; >} cpu_set_t; > > > >#define __CPU_ZERO_S(setsize,cpusetp) do __builtin_memset (cpusetp, '\0', setsize); while (0) ># 144 "/usr/include/bits/sched.h" 3 4 >#define __CPU_SET_S(cpu,setsize,cpusetp) (__extension__ ({ size_t __cpu = (cpu); __cpu / 8 < (setsize) ? (((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] |= __CPUMASK (__cpu)) : 0; })) > > > > > > >#define __CPU_CLR_S(cpu,setsize,cpusetp) (__extension__ ({ size_t __cpu = (cpu); __cpu / 8 < (setsize) ? (((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] &= ~__CPUMASK (__cpu)) : 0; })) > > > > > > >#define __CPU_ISSET_S(cpu,setsize,cpusetp) (__extension__ ({ size_t __cpu = (cpu); __cpu / 8 < (setsize) ? ((((const __cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] & __CPUMASK (__cpu))) != 0 : 0; })) > > > > > > > >#define __CPU_COUNT_S(setsize,cpusetp) __sched_cpucount (setsize, cpusetp) > > > >#define __CPU_EQUAL_S(setsize,cpusetp1,cpusetp2) (__builtin_memcmp (cpusetp1, cpusetp2, setsize) == 0) ># 185 "/usr/include/bits/sched.h" 3 4 >#define __CPU_OP_S(setsize,destset,srcset1,srcset2,op) (__extension__ ({ cpu_set_t *__dest = (destset); const __cpu_mask *__arr1 = (srcset1)->__bits; const __cpu_mask *__arr2 = (srcset2)->__bits; size_t __imax = (setsize) / sizeof (__cpu_mask); size_t __i; for (__i = 0; __i < __imax; ++__i) ((__cpu_mask *) __dest->__bits)[__i] = __arr1[__i] op __arr2[__i]; __dest; })) ># 196 "/usr/include/bits/sched.h" 3 4 >#define __CPU_ALLOC_SIZE(count) ((((count) + __NCPUBITS - 1) / __NCPUBITS) * sizeof (__cpu_mask)) > >#define __CPU_ALLOC(count) __sched_cpualloc (count) >#define __CPU_FREE(cpuset) __sched_cpufree (cpuset) > >extern "C" { > >extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) > throw (); >extern cpu_set_t *__sched_cpualloc (size_t __count) throw () ; >extern void __sched_cpufree (cpu_set_t *__set) throw (); > >} ># 42 "/usr/include/sched.h" 2 3 4 > >#define sched_priority __sched_priority > > >extern "C" { > > >extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) > throw (); > > >extern int sched_getparam (__pid_t __pid, struct sched_param *__param) throw (); > > >extern int sched_setscheduler (__pid_t __pid, int __policy, > const struct sched_param *__param) throw (); > > >extern int sched_getscheduler (__pid_t __pid) throw (); > > >extern int sched_yield (void) throw (); > > >extern int sched_get_priority_max (int __algorithm) throw (); > > >extern int sched_get_priority_min (int __algorithm) throw (); > > >extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) throw (); > > > > >#define CPU_SETSIZE __CPU_SETSIZE >#define CPU_SET(cpu,cpusetp) __CPU_SET_S (cpu, sizeof (cpu_set_t), cpusetp) >#define CPU_CLR(cpu,cpusetp) __CPU_CLR_S (cpu, sizeof (cpu_set_t), cpusetp) >#define CPU_ISSET(cpu,cpusetp) __CPU_ISSET_S (cpu, sizeof (cpu_set_t), cpusetp) > >#define CPU_ZERO(cpusetp) __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp) >#define CPU_COUNT(cpusetp) __CPU_COUNT_S (sizeof (cpu_set_t), cpusetp) > >#define CPU_SET_S(cpu,setsize,cpusetp) __CPU_SET_S (cpu, setsize, cpusetp) >#define CPU_CLR_S(cpu,setsize,cpusetp) __CPU_CLR_S (cpu, setsize, cpusetp) >#define CPU_ISSET_S(cpu,setsize,cpusetp) __CPU_ISSET_S (cpu, setsize, cpusetp) > >#define CPU_ZERO_S(setsize,cpusetp) __CPU_ZERO_S (setsize, cpusetp) >#define CPU_COUNT_S(setsize,cpusetp) __CPU_COUNT_S (setsize, cpusetp) > >#define CPU_EQUAL(cpusetp1,cpusetp2) __CPU_EQUAL_S (sizeof (cpu_set_t), cpusetp1, cpusetp2) > >#define CPU_EQUAL_S(setsize,cpusetp1,cpusetp2) __CPU_EQUAL_S (setsize, cpusetp1, cpusetp2) > > >#define CPU_AND(destset,srcset1,srcset2) __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, &) > >#define CPU_OR(destset,srcset1,srcset2) __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, |) > >#define CPU_XOR(destset,srcset1,srcset2) __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, ^) > >#define CPU_AND_S(setsize,destset,srcset1,srcset2) __CPU_OP_S (setsize, destset, srcset1, srcset2, &) > >#define CPU_OR_S(setsize,destset,srcset1,srcset2) __CPU_OP_S (setsize, destset, srcset1, srcset2, |) > >#define CPU_XOR_S(setsize,destset,srcset1,srcset2) __CPU_OP_S (setsize, destset, srcset1, srcset2, ^) > > >#define CPU_ALLOC_SIZE(count) __CPU_ALLOC_SIZE (count) >#define CPU_ALLOC(count) __CPU_ALLOC (count) >#define CPU_FREE(cpuset) __CPU_FREE (cpuset) > > > >extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, > const cpu_set_t *__cpuset) throw (); > > >extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, > cpu_set_t *__cpuset) throw (); > > >} ># 24 "/usr/include/pthread.h" 2 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 26 "/usr/include/time.h" 3 4 >#define _TIME_H 1 > > >extern "C" { > > > > > >#define __need_size_t >#define __need_NULL ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 38 "/usr/include/time.h" 2 3 4 > > > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 40 "/usr/include/bits/time.h" 3 4 >#define _BITS_TIME_H 1 > > > > > > > >#define CLOCKS_PER_SEC 1000000l ># 61 "/usr/include/bits/time.h" 3 4 >#define CLOCK_REALTIME 0 > >#define CLOCK_MONOTONIC 1 > >#define CLOCK_PROCESS_CPUTIME_ID 2 > >#define CLOCK_THREAD_CPUTIME_ID 3 > >#define CLOCK_MONOTONIC_RAW 4 > >#define CLOCK_REALTIME_COARSE 5 > >#define CLOCK_MONOTONIC_COARSE 6 > >#define CLOCK_BOOTTIME 7 > >#define CLOCK_REALTIME_ALARM 8 > >#define CLOCK_BOOTTIME_ALARM 9 > > >#define TIMER_ABSTIME 1 > > > ># 1 "/usr/include/bits/timex.h" 1 3 4 ># 19 "/usr/include/bits/timex.h" 3 4 >#define _BITS_TIMEX_H 1 > > > > > >struct timex >{ > unsigned int modes; > __syscall_slong_t offset; > __syscall_slong_t freq; > __syscall_slong_t maxerror; > __syscall_slong_t esterror; > int status; > __syscall_slong_t constant; > __syscall_slong_t precision; > __syscall_slong_t tolerance; > struct timeval time; > __syscall_slong_t tick; > __syscall_slong_t ppsfreq; > __syscall_slong_t jitter; > int shift; > __syscall_slong_t stabil; > __syscall_slong_t jitcnt; > __syscall_slong_t calcnt; > __syscall_slong_t errcnt; > __syscall_slong_t stbcnt; > > int tai; > > > int :32; int :32; int :32; int :32; > int :32; int :32; int :32; int :32; > int :32; int :32; int :32; >}; > > >#define ADJ_OFFSET 0x0001 >#define ADJ_FREQUENCY 0x0002 >#define ADJ_MAXERROR 0x0004 >#define ADJ_ESTERROR 0x0008 >#define ADJ_STATUS 0x0010 >#define ADJ_TIMECONST 0x0020 >#define ADJ_TAI 0x0080 >#define ADJ_MICRO 0x1000 >#define ADJ_NANO 0x2000 >#define ADJ_TICK 0x4000 >#define ADJ_OFFSET_SINGLESHOT 0x8001 >#define ADJ_OFFSET_SS_READ 0xa001 > > >#define MOD_OFFSET ADJ_OFFSET >#define MOD_FREQUENCY ADJ_FREQUENCY >#define MOD_MAXERROR ADJ_MAXERROR >#define MOD_ESTERROR ADJ_ESTERROR >#define MOD_STATUS ADJ_STATUS >#define MOD_TIMECONST ADJ_TIMECONST >#define MOD_CLKB ADJ_TICK >#define MOD_CLKA ADJ_OFFSET_SINGLESHOT >#define MOD_TAI ADJ_TAI >#define MOD_MICRO ADJ_MICRO >#define MOD_NANO ADJ_NANO > > > >#define STA_PLL 0x0001 >#define STA_PPSFREQ 0x0002 >#define STA_PPSTIME 0x0004 >#define STA_FLL 0x0008 > >#define STA_INS 0x0010 >#define STA_DEL 0x0020 >#define STA_UNSYNC 0x0040 >#define STA_FREQHOLD 0x0080 > >#define STA_PPSSIGNAL 0x0100 >#define STA_PPSJITTER 0x0200 >#define STA_PPSWANDER 0x0400 >#define STA_PPSERROR 0x0800 > >#define STA_CLOCKERR 0x1000 >#define STA_NANO 0x2000 >#define STA_MODE 0x4000 >#define STA_CLK 0x8000 > > >#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK) ># 87 "/usr/include/bits/time.h" 2 3 4 > >extern "C" { > > >extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) throw (); > >} > > > > > >#undef __need_timeval ># 42 "/usr/include/time.h" 2 3 4 ># 66 "/usr/include/time.h" 3 4 >#undef __need_clock_t ># 82 "/usr/include/time.h" 3 4 >#undef __need_time_t ># 94 "/usr/include/time.h" 3 4 >#undef __clockid_time_t ># 106 "/usr/include/time.h" 3 4 >#undef __need_timer_t ># 127 "/usr/include/time.h" 3 4 >#undef __need_timespec > > > > > >struct tm >{ > int tm_sec; > int tm_min; > int tm_hour; > int tm_mday; > int tm_mon; > int tm_year; > int tm_wday; > int tm_yday; > int tm_isdst; > > > long int tm_gmtoff; > const char *tm_zone; > > > > >}; > > > > > > > > >struct itimerspec > { > struct timespec it_interval; > struct timespec it_value; > }; > > >struct sigevent; ># 182 "/usr/include/time.h" 3 4 >#define TIME_UTC 1 > > > > > > >extern clock_t clock (void) throw (); > > >extern time_t time (time_t *__timer) throw (); > > >extern double difftime (time_t __time1, time_t __time0) > throw () __attribute__ ((__const__)); > > >extern time_t mktime (struct tm *__tp) throw (); > > > > > >extern size_t strftime (char *__restrict __s, size_t __maxsize, > const char *__restrict __format, > const struct tm *__restrict __tp) throw (); > > > > > >extern char *strptime (const char *__restrict __s, > const char *__restrict __fmt, struct tm *__tp) > throw (); > > > > > > > >extern size_t strftime_l (char *__restrict __s, size_t __maxsize, > const char *__restrict __format, > const struct tm *__restrict __tp, > __locale_t __loc) throw (); > > > >extern char *strptime_l (const char *__restrict __s, > const char *__restrict __fmt, struct tm *__tp, > __locale_t __loc) throw (); > > > > > > >extern struct tm *gmtime (const time_t *__timer) throw (); > > > >extern struct tm *localtime (const time_t *__timer) throw (); > > > > > >extern struct tm *gmtime_r (const time_t *__restrict __timer, > struct tm *__restrict __tp) throw (); > > > >extern struct tm *localtime_r (const time_t *__restrict __timer, > struct tm *__restrict __tp) throw (); > > > > > >extern char *asctime (const struct tm *__tp) throw (); > > >extern char *ctime (const time_t *__timer) throw (); > > > > > > > >extern char *asctime_r (const struct tm *__restrict __tp, > char *__restrict __buf) throw (); > > >extern char *ctime_r (const time_t *__restrict __timer, > char *__restrict __buf) throw (); > > > > >extern char *__tzname[2]; >extern int __daylight; >extern long int __timezone; > > > > >extern char *tzname[2]; > > > >extern void tzset (void) throw (); > > > >extern int daylight; >extern long int timezone; > > > > > >extern int stime (const time_t *__when) throw (); > > > > > >#define __isleap(year) ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) ># 319 "/usr/include/time.h" 3 4 >extern time_t timegm (struct tm *__tp) throw (); > > >extern time_t timelocal (struct tm *__tp) throw (); > > >extern int dysize (int __year) throw () __attribute__ ((__const__)); ># 334 "/usr/include/time.h" 3 4 >extern int nanosleep (const struct timespec *__requested_time, > struct timespec *__remaining); > > > >extern int clock_getres (clockid_t __clock_id, struct timespec *__res) throw (); > > >extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) throw (); > > >extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) > throw (); > > > > > > >extern int clock_nanosleep (clockid_t __clock_id, int __flags, > const struct timespec *__req, > struct timespec *__rem); > > >extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) throw (); > > > > >extern int timer_create (clockid_t __clock_id, > struct sigevent *__restrict __evp, > timer_t *__restrict __timerid) throw (); > > >extern int timer_delete (timer_t __timerid) throw (); > > >extern int timer_settime (timer_t __timerid, int __flags, > const struct itimerspec *__restrict __value, > struct itimerspec *__restrict __ovalue) throw (); > > >extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) > throw (); > > >extern int timer_getoverrun (timer_t __timerid) throw (); > > > > > >extern int timespec_get (struct timespec *__ts, int __base) > throw () __attribute__ ((__nonnull__ (1))); ># 403 "/usr/include/time.h" 3 4 >extern int getdate_err; ># 412 "/usr/include/time.h" 3 4 >extern struct tm *getdate (const char *__string); ># 426 "/usr/include/time.h" 3 4 >extern int getdate_r (const char *__restrict __string, > struct tm *__restrict __resbufp); > > >} ># 25 "/usr/include/pthread.h" 2 3 4 > > ># 1 "/usr/include/bits/setjmp.h" 1 3 4 ># 20 "/usr/include/bits/setjmp.h" 3 4 >#define _BITS_SETJMP_H 1 > > > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 27 "/usr/include/bits/setjmp.h" 2 3 4 > > > > >typedef long int __jmp_buf[8]; ># 28 "/usr/include/pthread.h" 2 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 29 "/usr/include/pthread.h" 2 3 4 > > > >enum >{ > PTHREAD_CREATE_JOINABLE, >#define PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_JOINABLE > PTHREAD_CREATE_DETACHED >#define PTHREAD_CREATE_DETACHED PTHREAD_CREATE_DETACHED >}; > > > >enum >{ > PTHREAD_MUTEX_TIMED_NP, > PTHREAD_MUTEX_RECURSIVE_NP, > PTHREAD_MUTEX_ERRORCHECK_NP, > PTHREAD_MUTEX_ADAPTIVE_NP > > , > PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, > PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, > PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, > PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL > > > > , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP > >}; > > > > >enum >{ > PTHREAD_MUTEX_STALLED, > PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, > PTHREAD_MUTEX_ROBUST, > PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST >}; > > > > > >enum >{ > PTHREAD_PRIO_NONE, > PTHREAD_PRIO_INHERIT, > PTHREAD_PRIO_PROTECT >}; > > > > > >#define __PTHREAD_SPINS 0, 0 > > > > > > > >#define PTHREAD_MUTEX_INITIALIZER { { 0, 0, 0, 0, 0, __PTHREAD_SPINS, { 0, 0 } } } > > >#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, __PTHREAD_SPINS, { 0, 0 } } } > >#define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, __PTHREAD_SPINS, { 0, 0 } } } > >#define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __PTHREAD_SPINS, { 0, 0 } } } > >#define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __PTHREAD_SPINS, { 0, 0 } } } ># 125 "/usr/include/pthread.h" 3 4 >enum >{ > PTHREAD_RWLOCK_PREFER_READER_NP, > PTHREAD_RWLOCK_PREFER_WRITER_NP, > PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, > PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP >}; ># 143 "/usr/include/pthread.h" 3 4 >#define PTHREAD_RWLOCK_INITIALIZER { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } } > > > >#define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } } ># 166 "/usr/include/pthread.h" 3 4 >enum >{ > PTHREAD_INHERIT_SCHED, >#define PTHREAD_INHERIT_SCHED PTHREAD_INHERIT_SCHED > PTHREAD_EXPLICIT_SCHED >#define PTHREAD_EXPLICIT_SCHED PTHREAD_EXPLICIT_SCHED >}; > > > >enum >{ > PTHREAD_SCOPE_SYSTEM, >#define PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_SYSTEM > PTHREAD_SCOPE_PROCESS >#define PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_PROCESS >}; > > > >enum >{ > PTHREAD_PROCESS_PRIVATE, >#define PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_PRIVATE > PTHREAD_PROCESS_SHARED >#define PTHREAD_PROCESS_SHARED PTHREAD_PROCESS_SHARED >}; > > > > >#define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } } > > > >struct _pthread_cleanup_buffer >{ > void (*__routine) (void *); > void *__arg; > int __canceltype; > struct _pthread_cleanup_buffer *__prev; >}; > > >enum >{ > PTHREAD_CANCEL_ENABLE, >#define PTHREAD_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE > PTHREAD_CANCEL_DISABLE >#define PTHREAD_CANCEL_DISABLE PTHREAD_CANCEL_DISABLE >}; >enum >{ > PTHREAD_CANCEL_DEFERRED, >#define PTHREAD_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED > PTHREAD_CANCEL_ASYNCHRONOUS >#define PTHREAD_CANCEL_ASYNCHRONOUS PTHREAD_CANCEL_ASYNCHRONOUS >}; >#define PTHREAD_CANCELED ((void *) -1) > > > >#define PTHREAD_ONCE_INIT 0 > > > > > > >#define PTHREAD_BARRIER_SERIAL_THREAD -1 > > > >extern "C" { > > > > >extern int pthread_create (pthread_t *__restrict __newthread, > const pthread_attr_t *__restrict __attr, > void *(*__start_routine) (void *), > void *__restrict __arg) throw () __attribute__ ((__nonnull__ (1, 3))); > > > > > >extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); > > > > > > > >extern int pthread_join (pthread_t __th, void **__thread_return); > > > > >extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) throw (); > > > > > > > >extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, > const struct timespec *__abstime); > > > > > > >extern int pthread_detach (pthread_t __th) throw (); > > > >extern pthread_t pthread_self (void) throw () __attribute__ ((__const__)); > > >extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) > throw () __attribute__ ((__const__)); > > > > > > > >extern int pthread_attr_init (pthread_attr_t *__attr) throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_attr_destroy (pthread_attr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, > int *__detachstate) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, > int __detachstate) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, > size_t *__guardsize) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setguardsize (pthread_attr_t *__attr, > size_t __guardsize) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, > struct sched_param *__restrict __param) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, > const struct sched_param *__restrict > __param) throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict > __attr, int *__restrict __policy) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict > __attr, int *__restrict __inherit) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, > int __inherit) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, > int *__restrict __scope) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict > __attr, void **__restrict __stackaddr) > throw () __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); > > > > > >extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, > void *__stackaddr) > throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); > > >extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict > __attr, size_t *__restrict __stacksize) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int pthread_attr_setstacksize (pthread_attr_t *__attr, > size_t __stacksize) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, > void **__restrict __stackaddr, > size_t *__restrict __stacksize) > throw () __attribute__ ((__nonnull__ (1, 2, 3))); > > > > >extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, > size_t __stacksize) throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, > size_t __cpusetsize, > const cpu_set_t *__cpuset) > throw () __attribute__ ((__nonnull__ (1, 3))); > > > >extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, > size_t __cpusetsize, > cpu_set_t *__cpuset) > throw () __attribute__ ((__nonnull__ (1, 3))); > > >extern int pthread_getattr_default_np (pthread_attr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_setattr_default_np (const pthread_attr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > > > >extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) > throw () __attribute__ ((__nonnull__ (2))); > > > > > > > >extern int pthread_setschedparam (pthread_t __target_thread, int __policy, > const struct sched_param *__param) > throw () __attribute__ ((__nonnull__ (3))); > > >extern int pthread_getschedparam (pthread_t __target_thread, > int *__restrict __policy, > struct sched_param *__restrict __param) > throw () __attribute__ ((__nonnull__ (2, 3))); > > >extern int pthread_setschedprio (pthread_t __target_thread, int __prio) > throw (); > > > > >extern int pthread_getname_np (pthread_t __target_thread, char *__buf, > size_t __buflen) > throw () __attribute__ ((__nonnull__ (2))); > > >extern int pthread_setname_np (pthread_t __target_thread, const char *__name) > throw () __attribute__ ((__nonnull__ (2))); > > > > > >extern int pthread_getconcurrency (void) throw (); > > >extern int pthread_setconcurrency (int __level) throw (); > > > > > > > >extern int pthread_yield (void) throw (); > > > > >extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, > const cpu_set_t *__cpuset) > throw () __attribute__ ((__nonnull__ (3))); > > >extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, > cpu_set_t *__cpuset) > throw () __attribute__ ((__nonnull__ (3))); ># 505 "/usr/include/pthread.h" 3 4 >extern int pthread_once (pthread_once_t *__once_control, > void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); ># 517 "/usr/include/pthread.h" 3 4 >extern int pthread_setcancelstate (int __state, int *__oldstate); > > > >extern int pthread_setcanceltype (int __type, int *__oldtype); > > >extern int pthread_cancel (pthread_t __th); > > > > >extern void pthread_testcancel (void); > > > > >typedef struct >{ > struct > { > __jmp_buf __cancel_jmp_buf; > int __mask_was_saved; > } __cancel_jmp_buf[1]; > void *__pad[4]; >} __pthread_unwind_buf_t __attribute__ ((__aligned__)); > > > >#define __cleanup_fct_attribute > > > > >struct __pthread_cleanup_frame >{ > void (*__cancel_routine) (void *); > void *__cancel_arg; > int __do_it; > int __cancel_type; >}; > > > > >class __pthread_cleanup_class >{ > void (*__cancel_routine) (void *); > void *__cancel_arg; > int __do_it; > int __cancel_type; > > public: > __pthread_cleanup_class (void (*__fct) (void *), void *__arg) > : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } > ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } > void __setdoit (int __newval) { __do_it = __newval; } > void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, > &__cancel_type); } > void __restore () const { pthread_setcanceltype (__cancel_type, 0); } >}; ># 586 "/usr/include/pthread.h" 3 4 >#define pthread_cleanup_push(routine,arg) do { __pthread_cleanup_class __clframe (routine, arg) > > > > > >#define pthread_cleanup_pop(execute) __clframe.__setdoit (execute); } while (0) > > > > > > > >#define pthread_cleanup_push_defer_np(routine,arg) do { __pthread_cleanup_class __clframe (routine, arg); __clframe.__defer () > > > > > > > >#define pthread_cleanup_pop_restore_np(execute) __clframe.__restore (); __clframe.__setdoit (execute); } while (0) ># 753 "/usr/include/pthread.h" 3 4 >struct __jmp_buf_tag; >extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) throw (); > > > > > >extern int pthread_mutex_init (pthread_mutex_t *__mutex, > const pthread_mutexattr_t *__mutexattr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutex_lock (pthread_mutex_t *__mutex) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, > const struct timespec *__restrict > __abstime) throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_mutex_getprioceiling (const pthread_mutex_t * > __restrict __mutex, > int *__restrict __prioceiling) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, > int __prioceiling, > int *__restrict __old_ceiling) > throw () __attribute__ ((__nonnull__ (1, 3))); > > > > >extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) > throw () __attribute__ ((__nonnull__ (1))); > >extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex) > throw () __attribute__ ((__nonnull__ (1))); ># 817 "/usr/include/pthread.h" 3 4 >extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * > __restrict __attr, > int *__restrict __pshared) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, > int __pshared) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict > __attr, int *__restrict __kind) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * > __restrict __attr, > int *__restrict __protocol) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, > int __protocol) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * > __restrict __attr, > int *__restrict __prioceiling) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, > int __prioceiling) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, > int *__robustness) > throw () __attribute__ ((__nonnull__ (1, 2))); > >extern int pthread_mutexattr_getrobust_np (const pthread_mutexattr_t *__attr, > int *__robustness) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, > int __robustness) > throw () __attribute__ ((__nonnull__ (1))); > >extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr, > int __robustness) > throw () __attribute__ ((__nonnull__ (1))); ># 899 "/usr/include/pthread.h" 3 4 >extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, > const pthread_rwlockattr_t *__restrict > __attr) throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, > const struct timespec *__restrict > __abstime) throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, > const struct timespec *__restrict > __abstime) throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * > __restrict __attr, > int *__restrict __pshared) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, > int __pshared) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * > __restrict __attr, > int *__restrict __pref) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, > int __pref) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > >extern int pthread_cond_init (pthread_cond_t *__restrict __cond, > const pthread_condattr_t *__restrict __cond_attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_cond_destroy (pthread_cond_t *__cond) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_cond_signal (pthread_cond_t *__cond) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_cond_broadcast (pthread_cond_t *__cond) > throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, > pthread_mutex_t *__restrict __mutex) > __attribute__ ((__nonnull__ (1, 2))); ># 1011 "/usr/include/pthread.h" 3 4 >extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, > pthread_mutex_t *__restrict __mutex, > const struct timespec *__restrict __abstime) > __attribute__ ((__nonnull__ (1, 2, 3))); > > > > >extern int pthread_condattr_init (pthread_condattr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_condattr_destroy (pthread_condattr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_condattr_getpshared (const pthread_condattr_t * > __restrict __attr, > int *__restrict __pshared) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, > int __pshared) throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_condattr_getclock (const pthread_condattr_t * > __restrict __attr, > __clockid_t *__restrict __clock_id) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_condattr_setclock (pthread_condattr_t *__attr, > __clockid_t __clock_id) > throw () __attribute__ ((__nonnull__ (1))); ># 1055 "/usr/include/pthread.h" 3 4 >extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_spin_destroy (pthread_spinlock_t *__lock) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_spin_lock (pthread_spinlock_t *__lock) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_spin_trylock (pthread_spinlock_t *__lock) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_spin_unlock (pthread_spinlock_t *__lock) > throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, > const pthread_barrierattr_t *__restrict > __attr, unsigned int __count) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_barrier_wait (pthread_barrier_t *__barrier) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * > __restrict __attr, > int *__restrict __pshared) > throw () __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, > int __pshared) > throw () __attribute__ ((__nonnull__ (1))); ># 1122 "/usr/include/pthread.h" 3 4 >extern int pthread_key_create (pthread_key_t *__key, > void (*__destr_function) (void *)) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int pthread_key_delete (pthread_key_t __key) throw (); > > >extern void *pthread_getspecific (pthread_key_t __key) throw (); > > >extern int pthread_setspecific (pthread_key_t __key, > const void *__pointer) throw () ; > > > > >extern int pthread_getcpuclockid (pthread_t __thread_id, > __clockid_t *__clock_id) > throw () __attribute__ ((__nonnull__ (2))); ># 1156 "/usr/include/pthread.h" 3 4 >extern int pthread_atfork (void (*__prepare) (void), > void (*__parent) (void), > void (*__child) (void)) throw (); ># 1170 "/usr/include/pthread.h" 3 4 >} ># 36 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr-default.h" 2 3 ># 47 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr-default.h" 3 >typedef pthread_t __gthread_t; >typedef pthread_key_t __gthread_key_t; >typedef pthread_once_t __gthread_once_t; >typedef pthread_mutex_t __gthread_mutex_t; >typedef pthread_mutex_t __gthread_recursive_mutex_t; >typedef pthread_cond_t __gthread_cond_t; >typedef struct timespec __gthread_time_t; > > > >#define __GTHREAD_HAS_COND 1 > >#define __GTHREAD_MUTEX_INIT PTHREAD_MUTEX_INITIALIZER >#define __GTHREAD_MUTEX_INIT_FUNCTION __gthread_mutex_init_function >#define __GTHREAD_ONCE_INIT PTHREAD_ONCE_INIT > > > >#define __GTHREAD_RECURSIVE_MUTEX_INIT PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP > > > >#define __GTHREAD_COND_INIT PTHREAD_COND_INITIALIZER >#define __GTHREAD_TIME_INIT {0,0} ># 87 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr-default.h" 3 >#define __gthrw_pragma(pragma) > >#define __gthrw2(name,name2,type) static __typeof(type) name __attribute__ ((__weakref__(#name2))); __gthrw_pragma(weak type) > > >#define __gthrw_(name) __gthrw_ ## name > > > > > > >#define __gthrw(name) __gthrw2(__gthrw_ ## name,name,name) > >static __typeof(pthread_once) __gthrw_pthread_once __attribute__ ((__weakref__("pthread_once"))); >static __typeof(pthread_getspecific) __gthrw_pthread_getspecific __attribute__ ((__weakref__("pthread_getspecific"))); >static __typeof(pthread_setspecific) __gthrw_pthread_setspecific __attribute__ ((__weakref__("pthread_setspecific"))); > >static __typeof(pthread_create) __gthrw_pthread_create __attribute__ ((__weakref__("pthread_create"))); >static __typeof(pthread_join) __gthrw_pthread_join __attribute__ ((__weakref__("pthread_join"))); >static __typeof(pthread_equal) __gthrw_pthread_equal __attribute__ ((__weakref__("pthread_equal"))); >static __typeof(pthread_self) __gthrw_pthread_self __attribute__ ((__weakref__("pthread_self"))); >static __typeof(pthread_detach) __gthrw_pthread_detach __attribute__ ((__weakref__("pthread_detach"))); > >static __typeof(pthread_cancel) __gthrw_pthread_cancel __attribute__ ((__weakref__("pthread_cancel"))); > >static __typeof(sched_yield) __gthrw_sched_yield __attribute__ ((__weakref__("sched_yield"))); > >static __typeof(pthread_mutex_lock) __gthrw_pthread_mutex_lock __attribute__ ((__weakref__("pthread_mutex_lock"))); >static __typeof(pthread_mutex_trylock) __gthrw_pthread_mutex_trylock __attribute__ ((__weakref__("pthread_mutex_trylock"))); > >static __typeof(pthread_mutex_timedlock) __gthrw_pthread_mutex_timedlock __attribute__ ((__weakref__("pthread_mutex_timedlock"))); > >static __typeof(pthread_mutex_unlock) __gthrw_pthread_mutex_unlock __attribute__ ((__weakref__("pthread_mutex_unlock"))); >static __typeof(pthread_mutex_init) __gthrw_pthread_mutex_init __attribute__ ((__weakref__("pthread_mutex_init"))); >static __typeof(pthread_mutex_destroy) __gthrw_pthread_mutex_destroy __attribute__ ((__weakref__("pthread_mutex_destroy"))); > >static __typeof(pthread_cond_init) __gthrw_pthread_cond_init __attribute__ ((__weakref__("pthread_cond_init"))); >static __typeof(pthread_cond_broadcast) __gthrw_pthread_cond_broadcast __attribute__ ((__weakref__("pthread_cond_broadcast"))); >static __typeof(pthread_cond_signal) __gthrw_pthread_cond_signal __attribute__ ((__weakref__("pthread_cond_signal"))); >static __typeof(pthread_cond_wait) __gthrw_pthread_cond_wait __attribute__ ((__weakref__("pthread_cond_wait"))); >static __typeof(pthread_cond_timedwait) __gthrw_pthread_cond_timedwait __attribute__ ((__weakref__("pthread_cond_timedwait"))); >static __typeof(pthread_cond_destroy) __gthrw_pthread_cond_destroy __attribute__ ((__weakref__("pthread_cond_destroy"))); > >static __typeof(pthread_key_create) __gthrw_pthread_key_create __attribute__ ((__weakref__("pthread_key_create"))); >static __typeof(pthread_key_delete) __gthrw_pthread_key_delete __attribute__ ((__weakref__("pthread_key_delete"))); >static __typeof(pthread_mutexattr_init) __gthrw_pthread_mutexattr_init __attribute__ ((__weakref__("pthread_mutexattr_init"))); >static __typeof(pthread_mutexattr_settype) __gthrw_pthread_mutexattr_settype __attribute__ ((__weakref__("pthread_mutexattr_settype"))); >static __typeof(pthread_mutexattr_destroy) __gthrw_pthread_mutexattr_destroy __attribute__ ((__weakref__("pthread_mutexattr_destroy"))); ># 236 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr-default.h" 3 >static __typeof(pthread_key_create) __gthrw___pthread_key_create __attribute__ ((__weakref__("__pthread_key_create"))); > > >#define GTHR_ACTIVE_PROXY __gthrw_(__pthread_key_create) > > > > > > >static inline int >__gthread_active_p (void) >{ > static void *const __gthread_active_ptr > = __extension__ (void *) &__gthrw___pthread_key_create; > return __gthread_active_ptr != 0; >} ># 658 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr-default.h" 3 >static inline int >__gthread_create (__gthread_t *__threadid, void *(*__func) (void*), > void *__args) >{ > return __gthrw_pthread_create (__threadid, __null, __func, __args); >} > >static inline int >__gthread_join (__gthread_t __threadid, void **__value_ptr) >{ > return __gthrw_pthread_join (__threadid, __value_ptr); >} > >static inline int >__gthread_detach (__gthread_t __threadid) >{ > return __gthrw_pthread_detach (__threadid); >} > >static inline int >__gthread_equal (__gthread_t __t1, __gthread_t __t2) >{ > return __gthrw_pthread_equal (__t1, __t2); >} > >static inline __gthread_t >__gthread_self (void) >{ > return __gthrw_pthread_self (); >} > >static inline int >__gthread_yield (void) >{ > return __gthrw_sched_yield (); >} > >static inline int >__gthread_once (__gthread_once_t *__once, void (*__func) (void)) >{ > if (__gthread_active_p ()) > return __gthrw_pthread_once (__once, __func); > else > return -1; >} > >static inline int >__gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) >{ > return __gthrw_pthread_key_create (__key, __dtor); >} > >static inline int >__gthread_key_delete (__gthread_key_t __key) >{ > return __gthrw_pthread_key_delete (__key); >} > >static inline void * >__gthread_getspecific (__gthread_key_t __key) >{ > return __gthrw_pthread_getspecific (__key); >} > >static inline int >__gthread_setspecific (__gthread_key_t __key, const void *__ptr) >{ > return __gthrw_pthread_setspecific (__key, __ptr); >} > >static inline void >__gthread_mutex_init_function (__gthread_mutex_t *__mutex) >{ > if (__gthread_active_p ()) > __gthrw_pthread_mutex_init (__mutex, __null); >} > >static inline int >__gthread_mutex_destroy (__gthread_mutex_t *__mutex) >{ > if (__gthread_active_p ()) > return __gthrw_pthread_mutex_destroy (__mutex); > else > return 0; >} > >static inline int >__gthread_mutex_lock (__gthread_mutex_t *__mutex) >{ > if (__gthread_active_p ()) > return __gthrw_pthread_mutex_lock (__mutex); > else > return 0; >} > >static inline int >__gthread_mutex_trylock (__gthread_mutex_t *__mutex) >{ > if (__gthread_active_p ()) > return __gthrw_pthread_mutex_trylock (__mutex); > else > return 0; >} > > >static inline int >__gthread_mutex_timedlock (__gthread_mutex_t *__mutex, > const __gthread_time_t *__abs_timeout) >{ > if (__gthread_active_p ()) > return __gthrw_pthread_mutex_timedlock (__mutex, __abs_timeout); > else > return 0; >} > > >static inline int >__gthread_mutex_unlock (__gthread_mutex_t *__mutex) >{ > if (__gthread_active_p ()) > return __gthrw_pthread_mutex_unlock (__mutex); > else > return 0; >} ># 807 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr-default.h" 3 >static inline int >__gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) >{ > return __gthread_mutex_lock (__mutex); >} > >static inline int >__gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) >{ > return __gthread_mutex_trylock (__mutex); >} > > >static inline int >__gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, > const __gthread_time_t *__abs_timeout) >{ > return __gthread_mutex_timedlock (__mutex, __abs_timeout); >} > > >static inline int >__gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) >{ > return __gthread_mutex_unlock (__mutex); >} > >static inline int >__gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) >{ > return __gthread_mutex_destroy (__mutex); >} ># 849 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr-default.h" 3 >static inline int >__gthread_cond_broadcast (__gthread_cond_t *__cond) >{ > return __gthrw_pthread_cond_broadcast (__cond); >} > >static inline int >__gthread_cond_signal (__gthread_cond_t *__cond) >{ > return __gthrw_pthread_cond_signal (__cond); >} > >static inline int >__gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) >{ > return __gthrw_pthread_cond_wait (__cond, __mutex); >} > >static inline int >__gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, > const __gthread_time_t *__abs_timeout) >{ > return __gthrw_pthread_cond_timedwait (__cond, __mutex, __abs_timeout); >} > >static inline int >__gthread_cond_wait_recursive (__gthread_cond_t *__cond, > __gthread_recursive_mutex_t *__mutex) >{ > return __gthread_cond_wait (__cond, __mutex); >} > >static inline int >__gthread_cond_destroy (__gthread_cond_t* __cond) >{ > return __gthrw_pthread_cond_destroy (__cond); >} ># 149 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/gthr.h" 2 3 > > >#pragma GCC visibility pop ># 36 "/usr/include/c++/4.8.2/ext/atomicity.h" 2 3 ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/atomic_word.h" 1 3 ># 30 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/atomic_word.h" 3 >#define _GLIBCXX_ATOMIC_WORD_H 1 > >typedef int _Atomic_word; ># 37 "/usr/include/c++/4.8.2/ext/atomicity.h" 2 3 > >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > > > > > > > > static inline _Atomic_word > __exchange_and_add(volatile _Atomic_word* __mem, int __val) > { return __atomic_fetch_add(__mem, __val, 4); } > > static inline void > __atomic_add(volatile _Atomic_word* __mem, int __val) > { __atomic_fetch_add(__mem, __val, 4); } ># 64 "/usr/include/c++/4.8.2/ext/atomicity.h" 3 > static inline _Atomic_word > __exchange_and_add_single(_Atomic_word* __mem, int __val) > { > _Atomic_word __result = *__mem; > *__mem += __val; > return __result; > } > > static inline void > __atomic_add_single(_Atomic_word* __mem, int __val) > { *__mem += __val; } > > static inline _Atomic_word > __attribute__ ((__unused__)) > __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) > { > > if (__gthread_active_p()) > return __exchange_and_add(__mem, __val); > else > return __exchange_and_add_single(__mem, __val); > > > > } > > static inline void > __attribute__ ((__unused__)) > __atomic_add_dispatch(_Atomic_word* __mem, int __val) > { > > if (__gthread_active_p()) > __atomic_add(__mem, __val); > else > __atomic_add_single(__mem, __val); > > > > } > > >} > > > > > >#define _GLIBCXX_READ_MEM_BARRIER __asm __volatile ("":::"memory") > > >#define _GLIBCXX_WRITE_MEM_BARRIER __asm __volatile ("":::"memory") ># 40 "/usr/include/c++/4.8.2/bits/ios_base.h" 2 3 > ># 1 "/usr/include/c++/4.8.2/bits/locale_classes.h" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 >#define _LOCALE_CLASSES_H 1 > > ># 38 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > > ># 1 "/usr/include/c++/4.8.2/string" 1 3 ># 34 "/usr/include/c++/4.8.2/string" 3 >#define _GLIBCXX_STRING 1 > > ># 37 "/usr/include/c++/4.8.2/string" 3 > > > > > > > ># 1 "/usr/include/c++/4.8.2/bits/ostream_insert.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/ostream_insert.h" 3 >#define _OSTREAM_INSERT_H 1 > > ># 34 "/usr/include/c++/4.8.2/bits/ostream_insert.h" 3 > > ># 1 "/usr/include/c++/4.8.2/bits/cxxabi_forced.h" 1 3 ># 32 "/usr/include/c++/4.8.2/bits/cxxabi_forced.h" 3 >#define _CXXABI_FORCED_H 1 > > ># 35 "/usr/include/c++/4.8.2/bits/cxxabi_forced.h" 3 > >#pragma GCC visibility push(default) > > >namespace __cxxabiv1 >{ > > > > > > > > class __forced_unwind > { > virtual ~__forced_unwind() throw(); > > > virtual void __pure_dummy() = 0; > }; >} > > >#pragma GCC visibility pop ># 37 "/usr/include/c++/4.8.2/bits/ostream_insert.h" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _CharT, typename _Traits> > inline void > __ostream_write(basic_ostream<_CharT, _Traits>& __out, > const _CharT* __s, streamsize __n) > { > typedef basic_ostream<_CharT, _Traits> __ostream_type; > typedef typename __ostream_type::ios_base __ios_base; > > const streamsize __put = __out.rdbuf()->sputn(__s, __n); > if (__put != __n) > __out.setstate(__ios_base::badbit); > } > > template<typename _CharT, typename _Traits> > inline void > __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) > { > typedef basic_ostream<_CharT, _Traits> __ostream_type; > typedef typename __ostream_type::ios_base __ios_base; > > const _CharT __c = __out.fill(); > for (; __n > 0; --__n) > { > const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); > if (_Traits::eq_int_type(__put, _Traits::eof())) > { > __out.setstate(__ios_base::badbit); > break; > } > } > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > __ostream_insert(basic_ostream<_CharT, _Traits>& __out, > const _CharT* __s, streamsize __n) > { > typedef basic_ostream<_CharT, _Traits> __ostream_type; > typedef typename __ostream_type::ios_base __ios_base; > > typename __ostream_type::sentry __cerb(__out); > if (__cerb) > { > try > { > const streamsize __w = __out.width(); > if (__w > __n) > { > const bool __left = ((__out.flags() > & __ios_base::adjustfield) > == __ios_base::left); > if (!__left) > __ostream_fill(__out, __w - __n); > if (__out.good()) > __ostream_write(__out, __s, __n); > if (__left && __out.good()) > __ostream_fill(__out, __w - __n); > } > else > __ostream_write(__out, __s, __n); > __out.width(0); > } > catch(__cxxabiv1::__forced_unwind&) > { > __out._M_setstate(__ios_base::badbit); > throw; > } > catch(...) > { __out._M_setstate(__ios_base::badbit); } > } > return __out; > } > > > > > extern template ostream& __ostream_insert(ostream&, const char*, streamsize); > > > extern template wostream& __ostream_insert(wostream&, const wchar_t*, > streamsize); > > > > >} ># 45 "/usr/include/c++/4.8.2/string" 2 3 > > > ># 1 "/usr/include/c++/4.8.2/bits/stl_function.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_function.h" 3 >#define _STL_FUNCTION_H 1 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 100 "/usr/include/c++/4.8.2/bits/stl_function.h" 3 > template<typename _Arg, typename _Result> > struct unary_function > { > > typedef _Arg argument_type; > > > typedef _Result result_type; > }; > > > > > template<typename _Arg1, typename _Arg2, typename _Result> > struct binary_function > { > > typedef _Arg1 first_argument_type; > > > typedef _Arg2 second_argument_type; > > > typedef _Result result_type; > }; ># 139 "/usr/include/c++/4.8.2/bits/stl_function.h" 3 > template<typename _Tp> > struct plus : public binary_function<_Tp, _Tp, _Tp> > { > _Tp > operator()(const _Tp& __x, const _Tp& __y) const > { return __x + __y; } > }; > > > template<typename _Tp> > struct minus : public binary_function<_Tp, _Tp, _Tp> > { > _Tp > operator()(const _Tp& __x, const _Tp& __y) const > { return __x - __y; } > }; > > > template<typename _Tp> > struct multiplies : public binary_function<_Tp, _Tp, _Tp> > { > _Tp > operator()(const _Tp& __x, const _Tp& __y) const > { return __x * __y; } > }; > > > template<typename _Tp> > struct divides : public binary_function<_Tp, _Tp, _Tp> > { > _Tp > operator()(const _Tp& __x, const _Tp& __y) const > { return __x / __y; } > }; > > > template<typename _Tp> > struct modulus : public binary_function<_Tp, _Tp, _Tp> > { > _Tp > operator()(const _Tp& __x, const _Tp& __y) const > { return __x % __y; } > }; > > > template<typename _Tp> > struct negate : public unary_function<_Tp, _Tp> > { > _Tp > operator()(const _Tp& __x) const > { return -__x; } > }; ># 203 "/usr/include/c++/4.8.2/bits/stl_function.h" 3 > template<typename _Tp> > struct equal_to : public binary_function<_Tp, _Tp, bool> > { > bool > operator()(const _Tp& __x, const _Tp& __y) const > { return __x == __y; } > }; > > > template<typename _Tp> > struct not_equal_to : public binary_function<_Tp, _Tp, bool> > { > bool > operator()(const _Tp& __x, const _Tp& __y) const > { return __x != __y; } > }; > > > template<typename _Tp> > struct greater : public binary_function<_Tp, _Tp, bool> > { > bool > operator()(const _Tp& __x, const _Tp& __y) const > { return __x > __y; } > }; > > > template<typename _Tp> > struct less : public binary_function<_Tp, _Tp, bool> > { > bool > operator()(const _Tp& __x, const _Tp& __y) const > { return __x < __y; } > }; > > > template<typename _Tp> > struct greater_equal : public binary_function<_Tp, _Tp, bool> > { > bool > operator()(const _Tp& __x, const _Tp& __y) const > { return __x >= __y; } > }; > > > template<typename _Tp> > struct less_equal : public binary_function<_Tp, _Tp, bool> > { > bool > operator()(const _Tp& __x, const _Tp& __y) const > { return __x <= __y; } > }; ># 267 "/usr/include/c++/4.8.2/bits/stl_function.h" 3 > template<typename _Tp> > struct logical_and : public binary_function<_Tp, _Tp, bool> > { > bool > operator()(const _Tp& __x, const _Tp& __y) const > { return __x && __y; } > }; > > > template<typename _Tp> > struct logical_or : public binary_function<_Tp, _Tp, bool> > { > bool > operator()(const _Tp& __x, const _Tp& __y) const > { return __x || __y; } > }; > > > template<typename _Tp> > struct logical_not : public unary_function<_Tp, bool> > { > bool > operator()(const _Tp& __x) const > { return !__x; } > }; > > > > > template<typename _Tp> > struct bit_and : public binary_function<_Tp, _Tp, _Tp> > { > _Tp > operator()(const _Tp& __x, const _Tp& __y) const > { return __x & __y; } > }; > > template<typename _Tp> > struct bit_or : public binary_function<_Tp, _Tp, _Tp> > { > _Tp > operator()(const _Tp& __x, const _Tp& __y) const > { return __x | __y; } > }; > > template<typename _Tp> > struct bit_xor : public binary_function<_Tp, _Tp, _Tp> > { > _Tp > operator()(const _Tp& __x, const _Tp& __y) const > { return __x ^ __y; } > }; ># 350 "/usr/include/c++/4.8.2/bits/stl_function.h" 3 > template<typename _Predicate> > class unary_negate > : public unary_function<typename _Predicate::argument_type, bool> > { > protected: > _Predicate _M_pred; > > public: > explicit > unary_negate(const _Predicate& __x) : _M_pred(__x) { } > > bool > operator()(const typename _Predicate::argument_type& __x) const > { return !_M_pred(__x); } > }; > > > template<typename _Predicate> > inline unary_negate<_Predicate> > not1(const _Predicate& __pred) > { return unary_negate<_Predicate>(__pred); } > > > template<typename _Predicate> > class binary_negate > : public binary_function<typename _Predicate::first_argument_type, > typename _Predicate::second_argument_type, bool> > { > protected: > _Predicate _M_pred; > > public: > explicit > binary_negate(const _Predicate& __x) : _M_pred(__x) { } > > bool > operator()(const typename _Predicate::first_argument_type& __x, > const typename _Predicate::second_argument_type& __y) const > { return !_M_pred(__x, __y); } > }; > > > template<typename _Predicate> > inline binary_negate<_Predicate> > not2(const _Predicate& __pred) > { return binary_negate<_Predicate>(__pred); } ># 421 "/usr/include/c++/4.8.2/bits/stl_function.h" 3 > template<typename _Arg, typename _Result> > class pointer_to_unary_function : public unary_function<_Arg, _Result> > { > protected: > _Result (*_M_ptr)(_Arg); > > public: > pointer_to_unary_function() { } > > explicit > pointer_to_unary_function(_Result (*__x)(_Arg)) > : _M_ptr(__x) { } > > _Result > operator()(_Arg __x) const > { return _M_ptr(__x); } > }; > > > template<typename _Arg, typename _Result> > inline pointer_to_unary_function<_Arg, _Result> > ptr_fun(_Result (*__x)(_Arg)) > { return pointer_to_unary_function<_Arg, _Result>(__x); } > > > template<typename _Arg1, typename _Arg2, typename _Result> > class pointer_to_binary_function > : public binary_function<_Arg1, _Arg2, _Result> > { > protected: > _Result (*_M_ptr)(_Arg1, _Arg2); > > public: > pointer_to_binary_function() { } > > explicit > pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) > : _M_ptr(__x) { } > > _Result > operator()(_Arg1 __x, _Arg2 __y) const > { return _M_ptr(__x, __y); } > }; > > > template<typename _Arg1, typename _Arg2, typename _Result> > inline pointer_to_binary_function<_Arg1, _Arg2, _Result> > ptr_fun(_Result (*__x)(_Arg1, _Arg2)) > { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } > > > template<typename _Tp> > struct _Identity > : public unary_function<_Tp,_Tp> > { > _Tp& > operator()(_Tp& __x) const > { return __x; } > > const _Tp& > operator()(const _Tp& __x) const > { return __x; } > }; > > template<typename _Pair> > struct _Select1st > : public unary_function<_Pair, typename _Pair::first_type> > { > typename _Pair::first_type& > operator()(_Pair& __x) const > { return __x.first; } > > const typename _Pair::first_type& > operator()(const _Pair& __x) const > { return __x.first; } ># 508 "/usr/include/c++/4.8.2/bits/stl_function.h" 3 > }; > > template<typename _Pair> > struct _Select2nd > : public unary_function<_Pair, typename _Pair::second_type> > { > typename _Pair::second_type& > operator()(_Pair& __x) const > { return __x.second; } > > const typename _Pair::second_type& > operator()(const _Pair& __x) const > { return __x.second; } > }; ># 541 "/usr/include/c++/4.8.2/bits/stl_function.h" 3 > template<typename _Ret, typename _Tp> > class mem_fun_t : public unary_function<_Tp*, _Ret> > { > public: > explicit > mem_fun_t(_Ret (_Tp::*__pf)()) > : _M_f(__pf) { } > > _Ret > operator()(_Tp* __p) const > { return (__p->*_M_f)(); } > > private: > _Ret (_Tp::*_M_f)(); > }; > > > > template<typename _Ret, typename _Tp> > class const_mem_fun_t : public unary_function<const _Tp*, _Ret> > { > public: > explicit > const_mem_fun_t(_Ret (_Tp::*__pf)() const) > : _M_f(__pf) { } > > _Ret > operator()(const _Tp* __p) const > { return (__p->*_M_f)(); } > > private: > _Ret (_Tp::*_M_f)() const; > }; > > > > template<typename _Ret, typename _Tp> > class mem_fun_ref_t : public unary_function<_Tp, _Ret> > { > public: > explicit > mem_fun_ref_t(_Ret (_Tp::*__pf)()) > : _M_f(__pf) { } > > _Ret > operator()(_Tp& __r) const > { return (__r.*_M_f)(); } > > private: > _Ret (_Tp::*_M_f)(); > }; > > > > template<typename _Ret, typename _Tp> > class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> > { > public: > explicit > const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) > : _M_f(__pf) { } > > _Ret > operator()(const _Tp& __r) const > { return (__r.*_M_f)(); } > > private: > _Ret (_Tp::*_M_f)() const; > }; > > > > template<typename _Ret, typename _Tp, typename _Arg> > class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> > { > public: > explicit > mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) > : _M_f(__pf) { } > > _Ret > operator()(_Tp* __p, _Arg __x) const > { return (__p->*_M_f)(__x); } > > private: > _Ret (_Tp::*_M_f)(_Arg); > }; > > > > template<typename _Ret, typename _Tp, typename _Arg> > class const_mem_fun1_t : public binary_function<const _Tp*, _Arg, _Ret> > { > public: > explicit > const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) > : _M_f(__pf) { } > > _Ret > operator()(const _Tp* __p, _Arg __x) const > { return (__p->*_M_f)(__x); } > > private: > _Ret (_Tp::*_M_f)(_Arg) const; > }; > > > > template<typename _Ret, typename _Tp, typename _Arg> > class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> > { > public: > explicit > mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) > : _M_f(__pf) { } > > _Ret > operator()(_Tp& __r, _Arg __x) const > { return (__r.*_M_f)(__x); } > > private: > _Ret (_Tp::*_M_f)(_Arg); > }; > > > > template<typename _Ret, typename _Tp, typename _Arg> > class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> > { > public: > explicit > const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) > : _M_f(__pf) { } > > _Ret > operator()(const _Tp& __r, _Arg __x) const > { return (__r.*_M_f)(__x); } > > private: > _Ret (_Tp::*_M_f)(_Arg) const; > }; > > > > template<typename _Ret, typename _Tp> > inline mem_fun_t<_Ret, _Tp> > mem_fun(_Ret (_Tp::*__f)()) > { return mem_fun_t<_Ret, _Tp>(__f); } > > template<typename _Ret, typename _Tp> > inline const_mem_fun_t<_Ret, _Tp> > mem_fun(_Ret (_Tp::*__f)() const) > { return const_mem_fun_t<_Ret, _Tp>(__f); } > > template<typename _Ret, typename _Tp> > inline mem_fun_ref_t<_Ret, _Tp> > mem_fun_ref(_Ret (_Tp::*__f)()) > { return mem_fun_ref_t<_Ret, _Tp>(__f); } > > template<typename _Ret, typename _Tp> > inline const_mem_fun_ref_t<_Ret, _Tp> > mem_fun_ref(_Ret (_Tp::*__f)() const) > { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } > > template<typename _Ret, typename _Tp, typename _Arg> > inline mem_fun1_t<_Ret, _Tp, _Arg> > mem_fun(_Ret (_Tp::*__f)(_Arg)) > { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } > > template<typename _Ret, typename _Tp, typename _Arg> > inline const_mem_fun1_t<_Ret, _Tp, _Arg> > mem_fun(_Ret (_Tp::*__f)(_Arg) const) > { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } > > template<typename _Ret, typename _Tp, typename _Arg> > inline mem_fun1_ref_t<_Ret, _Tp, _Arg> > mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) > { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } > > template<typename _Ret, typename _Tp, typename _Arg> > inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> > mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) > { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } > > > > >} > > ># 1 "/usr/include/c++/4.8.2/backward/binders.h" 1 3 ># 57 "/usr/include/c++/4.8.2/backward/binders.h" 3 >#define _BACKWARD_BINDERS_H 1 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 103 "/usr/include/c++/4.8.2/backward/binders.h" 3 > template<typename _Operation> > class binder1st > : public unary_function<typename _Operation::second_argument_type, > typename _Operation::result_type> > { > protected: > _Operation op; > typename _Operation::first_argument_type value; > > public: > binder1st(const _Operation& __x, > const typename _Operation::first_argument_type& __y) > : op(__x), value(__y) { } > > typename _Operation::result_type > operator()(const typename _Operation::second_argument_type& __x) const > { return op(value, __x); } > > > > typename _Operation::result_type > operator()(typename _Operation::second_argument_type& __x) const > { return op(value, __x); } > } ; > > > template<typename _Operation, typename _Tp> > inline binder1st<_Operation> > bind1st(const _Operation& __fn, const _Tp& __x) > { > typedef typename _Operation::first_argument_type _Arg1_type; > return binder1st<_Operation>(__fn, _Arg1_type(__x)); > } > > > template<typename _Operation> > class binder2nd > : public unary_function<typename _Operation::first_argument_type, > typename _Operation::result_type> > { > protected: > _Operation op; > typename _Operation::second_argument_type value; > > public: > binder2nd(const _Operation& __x, > const typename _Operation::second_argument_type& __y) > : op(__x), value(__y) { } > > typename _Operation::result_type > operator()(const typename _Operation::first_argument_type& __x) const > { return op(__x, value); } > > > > typename _Operation::result_type > operator()(typename _Operation::first_argument_type& __x) const > { return op(__x, value); } > } ; > > > template<typename _Operation, typename _Tp> > inline binder2nd<_Operation> > bind2nd(const _Operation& __fn, const _Tp& __x) > { > typedef typename _Operation::second_argument_type _Arg2_type; > return binder2nd<_Operation>(__fn, _Arg2_type(__x)); > } > > > >} ># 732 "/usr/include/c++/4.8.2/bits/stl_function.h" 2 3 ># 49 "/usr/include/c++/4.8.2/string" 2 3 > > > ># 1 "/usr/include/c++/4.8.2/bits/basic_string.h" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 >#define _BASIC_STRING_H 1 > > ># 38 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > > > > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 111 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > class basic_string > { > typedef typename _Alloc::template rebind<_CharT>::other _CharT_alloc_type; > > > public: > typedef _Traits traits_type; > typedef typename _Traits::char_type value_type; > typedef _Alloc allocator_type; > typedef typename _CharT_alloc_type::size_type size_type; > typedef typename _CharT_alloc_type::difference_type difference_type; > typedef typename _CharT_alloc_type::reference reference; > typedef typename _CharT_alloc_type::const_reference const_reference; > typedef typename _CharT_alloc_type::pointer pointer; > typedef typename _CharT_alloc_type::const_pointer const_pointer; > typedef __gnu_cxx::__normal_iterator<pointer, basic_string> iterator; > typedef __gnu_cxx::__normal_iterator<const_pointer, basic_string> > const_iterator; > typedef std::reverse_iterator<const_iterator> const_reverse_iterator; > typedef std::reverse_iterator<iterator> reverse_iterator; > > private: ># 148 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > struct _Rep_base > { > size_type _M_length; > size_type _M_capacity; > _Atomic_word _M_refcount; > }; > > struct _Rep : _Rep_base > { > > typedef typename _Alloc::template rebind<char>::other _Raw_bytes_alloc; ># 173 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > static const size_type _S_max_size; > static const _CharT _S_terminal; > > > > static size_type _S_empty_rep_storage[]; > > static _Rep& > _S_empty_rep() > { > > > > void* __p = reinterpret_cast<void*>(&_S_empty_rep_storage); > return *reinterpret_cast<_Rep*>(__p); > } > > bool > _M_is_leaked() const > { return this->_M_refcount < 0; } > > bool > _M_is_shared() const > { return this->_M_refcount > 0; } > > void > _M_set_leaked() > { this->_M_refcount = -1; } > > void > _M_set_sharable() > { this->_M_refcount = 0; } > > void > _M_set_length_and_sharable(size_type __n) > { > > if (__builtin_expect(this != &_S_empty_rep(), false)) > > { > this->_M_set_sharable(); > this->_M_length = __n; > traits_type::assign(this->_M_refdata()[__n], _S_terminal); > > > } > } > > _CharT* > _M_refdata() throw() > { return reinterpret_cast<_CharT*>(this + 1); } > > _CharT* > _M_grab(const _Alloc& __alloc1, const _Alloc& __alloc2) > { > return (!_M_is_leaked() && __alloc1 == __alloc2) > ? _M_refcopy() : _M_clone(__alloc1); > } > > > static _Rep* > _S_create(size_type, size_type, const _Alloc&); > > void > _M_dispose(const _Alloc& __a) > { > > if (__builtin_expect(this != &_S_empty_rep(), false)) > > { > > ; > if (__gnu_cxx::__exchange_and_add_dispatch(&this->_M_refcount, > -1) <= 0) > { > ; > _M_destroy(__a); > } > } > } > > void > _M_destroy(const _Alloc&) throw(); > > _CharT* > _M_refcopy() throw() > { > > if (__builtin_expect(this != &_S_empty_rep(), false)) > > __gnu_cxx::__atomic_add_dispatch(&this->_M_refcount, 1); > return _M_refdata(); > } > > _CharT* > _M_clone(const _Alloc&, size_type __res = 0); > }; > > > struct _Alloc_hider : _Alloc > { > _Alloc_hider(_CharT* __dat, const _Alloc& __a) > : _Alloc(__a), _M_p(__dat) { } > > _CharT* _M_p; > }; > > public: > > > > > static const size_type npos = static_cast<size_type>(-1); > > private: > > mutable _Alloc_hider _M_dataplus; > > _CharT* > _M_data() const > { return _M_dataplus._M_p; } > > _CharT* > _M_data(_CharT* __p) > { return (_M_dataplus._M_p = __p); } > > _Rep* > _M_rep() const > { return &((reinterpret_cast<_Rep*> (_M_data()))[-1]); } > > > > iterator > _M_ibegin() const > { return iterator(_M_data()); } > > iterator > _M_iend() const > { return iterator(_M_data() + this->size()); } > > void > _M_leak() > { > if (!_M_rep()->_M_is_leaked()) > _M_leak_hard(); > } > > size_type > _M_check(size_type __pos, const char* __s) const > { > if (__pos > this->size()) > __throw_out_of_range((__s)); > return __pos; > } > > void > _M_check_length(size_type __n1, size_type __n2, const char* __s) const > { > if (this->max_size() - (this->size() - __n1) < __n2) > __throw_length_error((__s)); > } > > > size_type > _M_limit(size_type __pos, size_type __off) const > { > const bool __testoff = __off < this->size() - __pos; > return __testoff ? __off : this->size() - __pos; > } > > > bool > _M_disjunct(const _CharT* __s) const > { > return (less<const _CharT*>()(__s, _M_data()) > || less<const _CharT*>()(_M_data() + this->size(), __s)); > } > > > > static void > _M_copy(_CharT* __d, const _CharT* __s, size_type __n) > { > if (__n == 1) > traits_type::assign(*__d, *__s); > else > traits_type::copy(__d, __s, __n); > } > > static void > _M_move(_CharT* __d, const _CharT* __s, size_type __n) > { > if (__n == 1) > traits_type::assign(*__d, *__s); > else > traits_type::move(__d, __s, __n); > } > > static void > _M_assign(_CharT* __d, size_type __n, _CharT __c) > { > if (__n == 1) > traits_type::assign(*__d, __c); > else > traits_type::assign(__d, __n, __c); > } > > > > template<class _Iterator> > static void > _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) > { > for (; __k1 != __k2; ++__k1, ++__p) > traits_type::assign(*__p, *__k1); > } > > static void > _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) > { _S_copy_chars(__p, __k1.base(), __k2.base()); } > > static void > _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) > { _S_copy_chars(__p, __k1.base(), __k2.base()); } > > static void > _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) > { _M_copy(__p, __k1, __k2 - __k1); } > > static void > _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) > { _M_copy(__p, __k1, __k2 - __k1); } > > static int > _S_compare(size_type __n1, size_type __n2) > { > const difference_type __d = difference_type(__n1 - __n2); > > if (__d > __gnu_cxx::__numeric_traits<int>::__max) > return __gnu_cxx::__numeric_traits<int>::__max; > else if (__d < __gnu_cxx::__numeric_traits<int>::__min) > return __gnu_cxx::__numeric_traits<int>::__min; > else > return int(__d); > } > > void > _M_mutate(size_type __pos, size_type __len1, size_type __len2); > > void > _M_leak_hard(); > > static _Rep& > _S_empty_rep() > { return _Rep::_S_empty_rep(); } > > public: > > > > > > > > basic_string() > > : _M_dataplus(_S_empty_rep()._M_refdata(), _Alloc()) { } > > > > > > > > explicit > basic_string(const _Alloc& __a); > > > > > > > basic_string(const basic_string& __str); > > > > > > > basic_string(const basic_string& __str, size_type __pos, > size_type __n = npos); > > > > > > > > basic_string(const basic_string& __str, size_type __pos, > size_type __n, const _Alloc& __a); ># 483 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string(const _CharT* __s, size_type __n, > const _Alloc& __a = _Alloc()); > > > > > > basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()); > > > > > > > basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()); ># 531 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<class _InputIterator> > basic_string(_InputIterator __beg, _InputIterator __end, > const _Alloc& __a = _Alloc()); > > > > > ~basic_string() > { _M_rep()->_M_dispose(this->get_allocator()); } > > > > > > basic_string& > operator=(const basic_string& __str) > { return this->assign(__str); } > > > > > > basic_string& > operator=(const _CharT* __s) > { return this->assign(__s); } ># 564 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > operator=(_CharT __c) > { > this->assign(1, __c); > return *this; > } ># 604 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > iterator > begin() > { > _M_leak(); > return iterator(_M_data()); > } > > > > > > const_iterator > begin() const > { return const_iterator(_M_data()); } > > > > > > iterator > end() > { > _M_leak(); > return iterator(_M_data() + this->size()); > } > > > > > > const_iterator > end() const > { return const_iterator(_M_data() + this->size()); } > > > > > > > reverse_iterator > rbegin() > { return reverse_iterator(this->end()); } > > > > > > > const_reverse_iterator > rbegin() const > { return const_reverse_iterator(this->end()); } > > > > > > > reverse_iterator > rend() > { return reverse_iterator(this->begin()); } > > > > > > > const_reverse_iterator > rend() const > { return const_reverse_iterator(this->begin()); } ># 710 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > public: > > > > size_type > size() const > { return _M_rep()->_M_length; } > > > > size_type > length() const > { return _M_rep()->_M_length; } > > > size_type > max_size() const > { return _Rep::_S_max_size; } ># 739 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > void > resize(size_type __n, _CharT __c); ># 752 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > void > resize(size_type __n) > { this->resize(__n, _CharT()); } ># 775 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > capacity() const > { return _M_rep()->_M_capacity; } ># 796 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > void > reserve(size_type __res_arg = 0); > > > > > void > clear() > { _M_mutate(0, this->size(), 0); } > > > > > > bool > empty() const > { return this->size() == 0; } ># 825 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > const_reference > operator[] (size_type __pos) const > { > ; > return _M_data()[__pos]; > } ># 842 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > reference > operator[](size_type __pos) > { > > ; > > ; > _M_leak(); > return _M_data()[__pos]; > } ># 863 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > const_reference > at(size_type __n) const > { > if (__n >= this->size()) > __throw_out_of_range(("basic_string::at")); > return _M_data()[__n]; > } ># 882 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > reference > at(size_type __n) > { > if (__n >= size()) > __throw_out_of_range(("basic_string::at")); > _M_leak(); > return _M_data()[__n]; > } ># 931 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > operator+=(const basic_string& __str) > { return this->append(__str); } > > > > > > > basic_string& > operator+=(const _CharT* __s) > { return this->append(__s); } > > > > > > > basic_string& > operator+=(_CharT __c) > { > this->push_back(__c); > return *this; > } ># 972 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > append(const basic_string& __str); ># 988 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > append(const basic_string& __str, size_type __pos, size_type __n); > > > > > > > > basic_string& > append(const _CharT* __s, size_type __n); > > > > > > > basic_string& > append(const _CharT* __s) > { > ; > return this->append(__s, traits_type::length(__s)); > } ># 1020 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > append(size_type __n, _CharT __c); ># 1042 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<class _InputIterator> > basic_string& > append(_InputIterator __first, _InputIterator __last) > { return this->replace(_M_iend(), _M_iend(), __first, __last); } > > > > > > void > push_back(_CharT __c) > { > const size_type __len = 1 + this->size(); > if (__len > this->capacity() || _M_rep()->_M_is_shared()) > this->reserve(__len); > traits_type::assign(_M_data()[this->size()], __c); > _M_rep()->_M_set_length_and_sharable(__len); > } > > > > > > > basic_string& > assign(const basic_string& __str); ># 1099 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > assign(const basic_string& __str, size_type __pos, size_type __n) > { return this->assign(__str._M_data() > + __str._M_check(__pos, "basic_string::assign"), > __str._M_limit(__pos, __n)); } ># 1115 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > assign(const _CharT* __s, size_type __n); ># 1127 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > assign(const _CharT* __s) > { > ; > return this->assign(__s, traits_type::length(__s)); > } ># 1143 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > assign(size_type __n, _CharT __c) > { return _M_replace_aux(size_type(0), this->size(), __n, __c); } ># 1155 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<class _InputIterator> > basic_string& > assign(_InputIterator __first, _InputIterator __last) > { return this->replace(_M_ibegin(), _M_iend(), __first, __last); } ># 1184 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > void > insert(iterator __p, size_type __n, _CharT __c) > { this->replace(__p, __p, __n, __c); } ># 1200 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<class _InputIterator> > void > insert(iterator __p, _InputIterator __beg, _InputIterator __end) > { this->replace(__p, __p, __beg, __end); } ># 1232 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > insert(size_type __pos1, const basic_string& __str) > { return this->insert(__pos1, __str, size_type(0), __str.size()); } ># 1254 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > insert(size_type __pos1, const basic_string& __str, > size_type __pos2, size_type __n) > { return this->insert(__pos1, __str._M_data() > + __str._M_check(__pos2, "basic_string::insert"), > __str._M_limit(__pos2, __n)); } ># 1277 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > insert(size_type __pos, const _CharT* __s, size_type __n); ># 1295 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > insert(size_type __pos, const _CharT* __s) > { > ; > return this->insert(__pos, __s, traits_type::length(__s)); > } ># 1318 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > insert(size_type __pos, size_type __n, _CharT __c) > { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), > size_type(0), __n, __c); } ># 1336 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > iterator > insert(iterator __p, _CharT __c) > { > ; > const size_type __pos = __p - _M_ibegin(); > _M_replace_aux(__pos, size_type(0), size_type(1), __c); > _M_rep()->_M_set_leaked(); > return iterator(_M_data() + __pos); > } ># 1361 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > erase(size_type __pos = 0, size_type __n = npos) > { > _M_mutate(_M_check(__pos, "basic_string::erase"), > _M_limit(__pos, __n), size_type(0)); > return *this; > } ># 1377 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > iterator > erase(iterator __position) > { > > ; > const size_type __pos = __position - _M_ibegin(); > _M_mutate(__pos, size_type(1), size_type(0)); > _M_rep()->_M_set_leaked(); > return iterator(_M_data() + __pos); > } ># 1397 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > iterator > erase(iterator __first, iterator __last); ># 1428 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > replace(size_type __pos, size_type __n, const basic_string& __str) > { return this->replace(__pos, __n, __str._M_data(), __str.size()); } ># 1450 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > replace(size_type __pos1, size_type __n1, const basic_string& __str, > size_type __pos2, size_type __n2) > { return this->replace(__pos1, __n1, __str._M_data() > + __str._M_check(__pos2, "basic_string::replace"), > __str._M_limit(__pos2, __n2)); } ># 1475 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > replace(size_type __pos, size_type __n1, const _CharT* __s, > size_type __n2); ># 1495 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > replace(size_type __pos, size_type __n1, const _CharT* __s) > { > ; > return this->replace(__pos, __n1, __s, traits_type::length(__s)); > } ># 1519 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) > { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), > _M_limit(__pos, __n1), __n2, __c); } ># 1537 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > replace(iterator __i1, iterator __i2, const basic_string& __str) > { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } ># 1556 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > replace(iterator __i1, iterator __i2, const _CharT* __s, size_type __n) > { > > ; > return this->replace(__i1 - _M_ibegin(), __i2 - __i1, __s, __n); > } ># 1577 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > replace(iterator __i1, iterator __i2, const _CharT* __s) > { > ; > return this->replace(__i1, __i2, __s, traits_type::length(__s)); > } ># 1598 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string& > replace(iterator __i1, iterator __i2, size_type __n, _CharT __c) > { > > ; > return _M_replace_aux(__i1 - _M_ibegin(), __i2 - __i1, __n, __c); > } ># 1621 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<class _InputIterator> > basic_string& > replace(iterator __i1, iterator __i2, > _InputIterator __k1, _InputIterator __k2) > { > > ; > ; > typedef typename std::__is_integer<_InputIterator>::__type _Integral; > return _M_replace_dispatch(__i1, __i2, __k1, __k2, _Integral()); > } > > > > basic_string& > replace(iterator __i1, iterator __i2, _CharT* __k1, _CharT* __k2) > { > > ; > ; > return this->replace(__i1 - _M_ibegin(), __i2 - __i1, > __k1, __k2 - __k1); > } > > basic_string& > replace(iterator __i1, iterator __i2, > const _CharT* __k1, const _CharT* __k2) > { > > ; > ; > return this->replace(__i1 - _M_ibegin(), __i2 - __i1, > __k1, __k2 - __k1); > } > > basic_string& > replace(iterator __i1, iterator __i2, iterator __k1, iterator __k2) > { > > ; > ; > return this->replace(__i1 - _M_ibegin(), __i2 - __i1, > __k1.base(), __k2 - __k1); > } > > basic_string& > replace(iterator __i1, iterator __i2, > const_iterator __k1, const_iterator __k2) > { > > ; > ; > return this->replace(__i1 - _M_ibegin(), __i2 - __i1, > __k1.base(), __k2 - __k1); > } ># 1697 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > private: > template<class _Integer> > basic_string& > _M_replace_dispatch(iterator __i1, iterator __i2, _Integer __n, > _Integer __val, __true_type) > { return _M_replace_aux(__i1 - _M_ibegin(), __i2 - __i1, __n, __val); } > > template<class _InputIterator> > basic_string& > _M_replace_dispatch(iterator __i1, iterator __i2, _InputIterator __k1, > _InputIterator __k2, __false_type); > > basic_string& > _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, > _CharT __c); > > basic_string& > _M_replace_safe(size_type __pos1, size_type __n1, const _CharT* __s, > size_type __n2); > > > > template<class _InIterator> > static _CharT* > _S_construct_aux(_InIterator __beg, _InIterator __end, > const _Alloc& __a, __false_type) > { > typedef typename iterator_traits<_InIterator>::iterator_category _Tag; > return _S_construct(__beg, __end, __a, _Tag()); > } > > > > template<class _Integer> > static _CharT* > _S_construct_aux(_Integer __beg, _Integer __end, > const _Alloc& __a, __true_type) > { return _S_construct_aux_2(static_cast<size_type>(__beg), > __end, __a); } > > static _CharT* > _S_construct_aux_2(size_type __req, _CharT __c, const _Alloc& __a) > { return _S_construct(__req, __c, __a); } > > template<class _InIterator> > static _CharT* > _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a) > { > typedef typename std::__is_integer<_InIterator>::__type _Integral; > return _S_construct_aux(__beg, __end, __a, _Integral()); > } > > > template<class _InIterator> > static _CharT* > _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a, > input_iterator_tag); > > > > template<class _FwdIterator> > static _CharT* > _S_construct(_FwdIterator __beg, _FwdIterator __end, const _Alloc& __a, > forward_iterator_tag); > > static _CharT* > _S_construct(size_type __req, _CharT __c, const _Alloc& __a); > > public: ># 1779 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > copy(_CharT* __s, size_type __n, size_type __pos = 0) const; ># 1789 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > void > swap(basic_string& __s); ># 1799 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > const _CharT* > c_str() const > { return _M_data(); } > > > > > > > > const _CharT* > data() const > { return _M_data(); } > > > > > allocator_type > get_allocator() const > { return _M_dataplus; } ># 1832 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find(const _CharT* __s, size_type __pos, size_type __n) const; ># 1845 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find(const basic_string& __str, size_type __pos = 0) const > > { return this->find(__str.data(), __pos, __str.size()); } ># 1860 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find(const _CharT* __s, size_type __pos = 0) const > { > ; > return this->find(__s, __pos, traits_type::length(__s)); > } ># 1877 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find(_CharT __c, size_type __pos = 0) const ; ># 1890 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > rfind(const basic_string& __str, size_type __pos = npos) const > > { return this->rfind(__str.data(), __pos, __str.size()); } ># 1907 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > rfind(const _CharT* __s, size_type __pos, size_type __n) const; ># 1920 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > rfind(const _CharT* __s, size_type __pos = npos) const > { > ; > return this->rfind(__s, __pos, traits_type::length(__s)); > } ># 1937 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > rfind(_CharT __c, size_type __pos = npos) const ; ># 1951 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_first_of(const basic_string& __str, size_type __pos = 0) const > > { return this->find_first_of(__str.data(), __pos, __str.size()); } ># 1968 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_first_of(const _CharT* __s, size_type __pos, size_type __n) const; ># 1981 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_first_of(const _CharT* __s, size_type __pos = 0) const > { > ; > return this->find_first_of(__s, __pos, traits_type::length(__s)); > } ># 2000 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_first_of(_CharT __c, size_type __pos = 0) const > { return this->find(__c, __pos); } ># 2015 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_last_of(const basic_string& __str, size_type __pos = npos) const > > { return this->find_last_of(__str.data(), __pos, __str.size()); } ># 2032 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_last_of(const _CharT* __s, size_type __pos, size_type __n) const; ># 2045 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_last_of(const _CharT* __s, size_type __pos = npos) const > { > ; > return this->find_last_of(__s, __pos, traits_type::length(__s)); > } ># 2064 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_last_of(_CharT __c, size_type __pos = npos) const > { return this->rfind(__c, __pos); } ># 2078 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_first_not_of(const basic_string& __str, size_type __pos = 0) const > > { return this->find_first_not_of(__str.data(), __pos, __str.size()); } ># 2095 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_first_not_of(const _CharT* __s, size_type __pos, > size_type __n) const; ># 2109 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_first_not_of(const _CharT* __s, size_type __pos = 0) const > { > ; > return this->find_first_not_of(__s, __pos, traits_type::length(__s)); > } ># 2126 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_first_not_of(_CharT __c, size_type __pos = 0) const > ; ># 2141 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_last_not_of(const basic_string& __str, size_type __pos = npos) const > > { return this->find_last_not_of(__str.data(), __pos, __str.size()); } ># 2158 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_last_not_of(const _CharT* __s, size_type __pos, > size_type __n) const; ># 2172 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_last_not_of(const _CharT* __s, size_type __pos = npos) const > { > ; > return this->find_last_not_of(__s, __pos, traits_type::length(__s)); > } ># 2189 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > size_type > find_last_not_of(_CharT __c, size_type __pos = npos) const > ; ># 2205 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > basic_string > substr(size_type __pos = 0, size_type __n = npos) const > { return basic_string(*this, > _M_check(__pos, "basic_string::substr"), __n); } ># 2224 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > int > compare(const basic_string& __str) const > { > const size_type __size = this->size(); > const size_type __osize = __str.size(); > const size_type __len = std::min(__size, __osize); > > int __r = traits_type::compare(_M_data(), __str.data(), __len); > if (!__r) > __r = _S_compare(__size, __osize); > return __r; > } ># 2256 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > int > compare(size_type __pos, size_type __n, const basic_string& __str) const; ># 2282 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > int > compare(size_type __pos1, size_type __n1, const basic_string& __str, > size_type __pos2, size_type __n2) const; ># 2300 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > int > compare(const _CharT* __s) const; ># 2324 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > int > compare(size_type __pos, size_type __n1, const _CharT* __s) const; ># 2351 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > int > compare(size_type __pos, size_type __n1, const _CharT* __s, > size_type __n2) const; > }; ># 2363 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc> > operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { > basic_string<_CharT, _Traits, _Alloc> __str(__lhs); > __str.append(__rhs); > return __str; > } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT,_Traits,_Alloc> > operator+(const _CharT* __lhs, > const basic_string<_CharT,_Traits,_Alloc>& __rhs); > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT,_Traits,_Alloc> > operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs); > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline basic_string<_CharT, _Traits, _Alloc> > operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const _CharT* __rhs) > { > basic_string<_CharT, _Traits, _Alloc> __str(__lhs); > __str.append(__rhs); > return __str; > } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline basic_string<_CharT, _Traits, _Alloc> > operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) > { > typedef basic_string<_CharT, _Traits, _Alloc> __string_type; > typedef typename __string_type::size_type __size_type; > __string_type __str(__lhs); > __str.append(__size_type(1), __rhs); > return __str; > } ># 2484 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __lhs.compare(__rhs) == 0; } > > template<typename _CharT> > inline > typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, bool>::__type > operator==(const basic_string<_CharT>& __lhs, > const basic_string<_CharT>& __rhs) > { return (__lhs.size() == __rhs.size() > && !std::char_traits<_CharT>::compare(__lhs.data(), __rhs.data(), > __lhs.size())); } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator==(const _CharT* __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __rhs.compare(__lhs) == 0; } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const _CharT* __rhs) > { return __lhs.compare(__rhs) == 0; } ># 2530 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return !(__lhs == __rhs); } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator!=(const _CharT* __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return !(__lhs == __rhs); } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const _CharT* __rhs) > { return !(__lhs == __rhs); } ># 2567 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __lhs.compare(__rhs) < 0; } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const _CharT* __rhs) > { return __lhs.compare(__rhs) < 0; } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator<(const _CharT* __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __rhs.compare(__lhs) > 0; } ># 2604 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __lhs.compare(__rhs) > 0; } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const _CharT* __rhs) > { return __lhs.compare(__rhs) > 0; } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator>(const _CharT* __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __rhs.compare(__lhs) < 0; } ># 2641 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __lhs.compare(__rhs) <= 0; } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const _CharT* __rhs) > { return __lhs.compare(__rhs) <= 0; } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator<=(const _CharT* __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __rhs.compare(__lhs) >= 0; } ># 2678 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __lhs.compare(__rhs) >= 0; } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, > const _CharT* __rhs) > { return __lhs.compare(__rhs) >= 0; } > > > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > inline bool > operator>=(const _CharT* __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { return __rhs.compare(__lhs) <= 0; } ># 2715 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > inline void > swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, > basic_string<_CharT, _Traits, _Alloc>& __rhs) > { __lhs.swap(__rhs); } ># 2733 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __is, > basic_string<_CharT, _Traits, _Alloc>& __str); > > template<> > basic_istream<char>& > operator>>(basic_istream<char>& __is, basic_string<char>& __str); ># 2751 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __os, > const basic_string<_CharT, _Traits, _Alloc>& __str) > { > > > return __ostream_insert(__os, __str.data(), __str.size()); > } ># 2774 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > basic_istream<_CharT, _Traits>& > getline(basic_istream<_CharT, _Traits>& __is, > basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); ># 2791 "/usr/include/c++/4.8.2/bits/basic_string.h" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > inline basic_istream<_CharT, _Traits>& > getline(basic_istream<_CharT, _Traits>& __is, > basic_string<_CharT, _Traits, _Alloc>& __str) > { return getline(__is, __str, __is.widen('\n')); } > > template<> > basic_istream<char>& > getline(basic_istream<char>& __in, basic_string<char>& __str, > char __delim); > > > template<> > basic_istream<wchar_t>& > getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str, > wchar_t __delim); > > > >} ># 53 "/usr/include/c++/4.8.2/string" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/basic_string.tcc" 1 3 ># 38 "/usr/include/c++/4.8.2/bits/basic_string.tcc" 3 >#define _BASIC_STRING_TCC 1 > > ># 41 "/usr/include/c++/4.8.2/bits/basic_string.tcc" 3 > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _CharT, typename _Traits, typename _Alloc> > const typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > _Rep::_S_max_size = (((npos - sizeof(_Rep_base))/sizeof(_CharT)) - 1) / 4; > > template<typename _CharT, typename _Traits, typename _Alloc> > const _CharT > basic_string<_CharT, _Traits, _Alloc>:: > _Rep::_S_terminal = _CharT(); > > template<typename _CharT, typename _Traits, typename _Alloc> > const typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>::npos; > > > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep_storage[ > (sizeof(_Rep_base) + sizeof(_CharT) + sizeof(size_type) - 1) / > sizeof(size_type)]; > > > > > > template<typename _CharT, typename _Traits, typename _Alloc> > template<typename _InIterator> > _CharT* > basic_string<_CharT, _Traits, _Alloc>:: > _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a, > input_iterator_tag) > { > > if (__beg == __end && __a == _Alloc()) > return _S_empty_rep()._M_refdata(); > > > _CharT __buf[128]; > size_type __len = 0; > while (__beg != __end && __len < sizeof(__buf) / sizeof(_CharT)) > { > __buf[__len++] = *__beg; > ++__beg; > } > _Rep* __r = _Rep::_S_create(__len, size_type(0), __a); > _M_copy(__r->_M_refdata(), __buf, __len); > try > { > while (__beg != __end) > { > if (__len == __r->_M_capacity) > { > > _Rep* __another = _Rep::_S_create(__len + 1, __len, __a); > _M_copy(__another->_M_refdata(), __r->_M_refdata(), __len); > __r->_M_destroy(__a); > __r = __another; > } > __r->_M_refdata()[__len++] = *__beg; > ++__beg; > } > } > catch(...) > { > __r->_M_destroy(__a); > throw; > } > __r->_M_set_length_and_sharable(__len); > return __r->_M_refdata(); > } > > template<typename _CharT, typename _Traits, typename _Alloc> > template <typename _InIterator> > _CharT* > basic_string<_CharT, _Traits, _Alloc>:: > _S_construct(_InIterator __beg, _InIterator __end, const _Alloc& __a, > forward_iterator_tag) > { > > if (__beg == __end && __a == _Alloc()) > return _S_empty_rep()._M_refdata(); > > > if (__gnu_cxx::__is_null_pointer(__beg) && __beg != __end) > __throw_logic_error(("basic_string::_S_construct null not valid")); > > const size_type __dnew = static_cast<size_type>(std::distance(__beg, > __end)); > > _Rep* __r = _Rep::_S_create(__dnew, size_type(0), __a); > try > { _S_copy_chars(__r->_M_refdata(), __beg, __end); } > catch(...) > { > __r->_M_destroy(__a); > throw; > } > __r->_M_set_length_and_sharable(__dnew); > return __r->_M_refdata(); > } > > template<typename _CharT, typename _Traits, typename _Alloc> > _CharT* > basic_string<_CharT, _Traits, _Alloc>:: > _S_construct(size_type __n, _CharT __c, const _Alloc& __a) > { > > if (__n == 0 && __a == _Alloc()) > return _S_empty_rep()._M_refdata(); > > > _Rep* __r = _Rep::_S_create(__n, size_type(0), __a); > if (__n) > _M_assign(__r->_M_refdata(), __n, __c); > > __r->_M_set_length_and_sharable(__n); > return __r->_M_refdata(); > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>:: > basic_string(const basic_string& __str) > : _M_dataplus(__str._M_rep()->_M_grab(_Alloc(__str.get_allocator()), > __str.get_allocator()), > __str.get_allocator()) > { } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>:: > basic_string(const _Alloc& __a) > : _M_dataplus(_S_construct(size_type(), _CharT(), __a), __a) > { } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>:: > basic_string(const basic_string& __str, size_type __pos, size_type __n) > : _M_dataplus(_S_construct(__str._M_data() > + __str._M_check(__pos, > "basic_string::basic_string"), > __str._M_data() + __str._M_limit(__pos, __n) > + __pos, _Alloc()), _Alloc()) > { } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>:: > basic_string(const basic_string& __str, size_type __pos, > size_type __n, const _Alloc& __a) > : _M_dataplus(_S_construct(__str._M_data() > + __str._M_check(__pos, > "basic_string::basic_string"), > __str._M_data() + __str._M_limit(__pos, __n) > + __pos, __a), __a) > { } > > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>:: > basic_string(const _CharT* __s, size_type __n, const _Alloc& __a) > : _M_dataplus(_S_construct(__s, __s + __n, __a), __a) > { } > > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>:: > basic_string(const _CharT* __s, const _Alloc& __a) > : _M_dataplus(_S_construct(__s, __s ? __s + traits_type::length(__s) : > __s + npos, __a), __a) > { } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>:: > basic_string(size_type __n, _CharT __c, const _Alloc& __a) > : _M_dataplus(_S_construct(__n, __c, __a), __a) > { } > > > template<typename _CharT, typename _Traits, typename _Alloc> > template<typename _InputIterator> > basic_string<_CharT, _Traits, _Alloc>:: > basic_string(_InputIterator __beg, _InputIterator __end, const _Alloc& __a) > : _M_dataplus(_S_construct(__beg, __end, __a), __a) > { } ># 240 "/usr/include/c++/4.8.2/bits/basic_string.tcc" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > assign(const basic_string& __str) > { > if (_M_rep() != __str._M_rep()) > { > > const allocator_type __a = this->get_allocator(); > _CharT* __tmp = __str._M_rep()->_M_grab(__a, __str.get_allocator()); > _M_rep()->_M_dispose(__a); > _M_data(__tmp); > } > return *this; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > assign(const _CharT* __s, size_type __n) > { > ; > _M_check_length(this->size(), __n, "basic_string::assign"); > if (_M_disjunct(__s) || _M_rep()->_M_is_shared()) > return _M_replace_safe(size_type(0), this->size(), __s, __n); > else > { > > const size_type __pos = __s - _M_data(); > if (__pos >= __n) > _M_copy(_M_data(), __s, __n); > else if (__pos) > _M_move(_M_data(), __s, __n); > _M_rep()->_M_set_length_and_sharable(__n); > return *this; > } > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > append(size_type __n, _CharT __c) > { > if (__n) > { > _M_check_length(size_type(0), __n, "basic_string::append"); > const size_type __len = __n + this->size(); > if (__len > this->capacity() || _M_rep()->_M_is_shared()) > this->reserve(__len); > _M_assign(_M_data() + this->size(), __n, __c); > _M_rep()->_M_set_length_and_sharable(__len); > } > return *this; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > append(const _CharT* __s, size_type __n) > { > ; > if (__n) > { > _M_check_length(size_type(0), __n, "basic_string::append"); > const size_type __len = __n + this->size(); > if (__len > this->capacity() || _M_rep()->_M_is_shared()) > { > if (_M_disjunct(__s)) > this->reserve(__len); > else > { > const size_type __off = __s - _M_data(); > this->reserve(__len); > __s = _M_data() + __off; > } > } > _M_copy(_M_data() + this->size(), __s, __n); > _M_rep()->_M_set_length_and_sharable(__len); > } > return *this; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > append(const basic_string& __str) > { > const size_type __size = __str.size(); > if (__size) > { > const size_type __len = __size + this->size(); > if (__len > this->capacity() || _M_rep()->_M_is_shared()) > this->reserve(__len); > _M_copy(_M_data() + this->size(), __str._M_data(), __size); > _M_rep()->_M_set_length_and_sharable(__len); > } > return *this; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > append(const basic_string& __str, size_type __pos, size_type __n) > { > __str._M_check(__pos, "basic_string::append"); > __n = __str._M_limit(__pos, __n); > if (__n) > { > const size_type __len = __n + this->size(); > if (__len > this->capacity() || _M_rep()->_M_is_shared()) > this->reserve(__len); > _M_copy(_M_data() + this->size(), __str._M_data() + __pos, __n); > _M_rep()->_M_set_length_and_sharable(__len); > } > return *this; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > insert(size_type __pos, const _CharT* __s, size_type __n) > { > ; > _M_check(__pos, "basic_string::insert"); > _M_check_length(size_type(0), __n, "basic_string::insert"); > if (_M_disjunct(__s) || _M_rep()->_M_is_shared()) > return _M_replace_safe(__pos, size_type(0), __s, __n); > else > { > > const size_type __off = __s - _M_data(); > _M_mutate(__pos, 0, __n); > __s = _M_data() + __off; > _CharT* __p = _M_data() + __pos; > if (__s + __n <= __p) > _M_copy(__p, __s, __n); > else if (__s >= __p) > _M_copy(__p, __s + __n, __n); > else > { > const size_type __nleft = __p - __s; > _M_copy(__p, __s, __nleft); > _M_copy(__p + __nleft, __p + __n, __n - __nleft); > } > return *this; > } > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::iterator > basic_string<_CharT, _Traits, _Alloc>:: > erase(iterator __first, iterator __last) > { > > ; > > > > > const size_type __size = __last - __first; > if (__size) > { > const size_type __pos = __first - _M_ibegin(); > _M_mutate(__pos, __size, size_type(0)); > _M_rep()->_M_set_leaked(); > return iterator(_M_data() + __pos); > } > else > return __first; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > replace(size_type __pos, size_type __n1, const _CharT* __s, > size_type __n2) > { > ; > _M_check(__pos, "basic_string::replace"); > __n1 = _M_limit(__pos, __n1); > _M_check_length(__n1, __n2, "basic_string::replace"); > bool __left; > if (_M_disjunct(__s) || _M_rep()->_M_is_shared()) > return _M_replace_safe(__pos, __n1, __s, __n2); > else if ((__left = __s + __n2 <= _M_data() + __pos) > || _M_data() + __pos + __n1 <= __s) > { > > size_type __off = __s - _M_data(); > __left ? __off : (__off += __n2 - __n1); > _M_mutate(__pos, __n1, __n2); > _M_copy(_M_data() + __pos, _M_data() + __off, __n2); > return *this; > } > else > { > > const basic_string __tmp(__s, __n2); > return _M_replace_safe(__pos, __n1, __tmp._M_data(), __n2); > } > } > > template<typename _CharT, typename _Traits, typename _Alloc> > void > basic_string<_CharT, _Traits, _Alloc>::_Rep:: > _M_destroy(const _Alloc& __a) throw () > { > const size_type __size = sizeof(_Rep_base) + > (this->_M_capacity + 1) * sizeof(_CharT); > _Raw_bytes_alloc(__a).deallocate(reinterpret_cast<char*>(this), __size); > } > > template<typename _CharT, typename _Traits, typename _Alloc> > void > basic_string<_CharT, _Traits, _Alloc>:: > _M_leak_hard() > { > > if (_M_rep() == &_S_empty_rep()) > return; > > if (_M_rep()->_M_is_shared()) > _M_mutate(0, 0, 0); > _M_rep()->_M_set_leaked(); > } > > template<typename _CharT, typename _Traits, typename _Alloc> > void > basic_string<_CharT, _Traits, _Alloc>:: > _M_mutate(size_type __pos, size_type __len1, size_type __len2) > { > const size_type __old_size = this->size(); > const size_type __new_size = __old_size + __len2 - __len1; > const size_type __how_much = __old_size - __pos - __len1; > > if (__new_size > this->capacity() || _M_rep()->_M_is_shared()) > { > > const allocator_type __a = get_allocator(); > _Rep* __r = _Rep::_S_create(__new_size, this->capacity(), __a); > > if (__pos) > _M_copy(__r->_M_refdata(), _M_data(), __pos); > if (__how_much) > _M_copy(__r->_M_refdata() + __pos + __len2, > _M_data() + __pos + __len1, __how_much); > > _M_rep()->_M_dispose(__a); > _M_data(__r->_M_refdata()); > } > else if (__how_much && __len1 != __len2) > { > > _M_move(_M_data() + __pos + __len2, > _M_data() + __pos + __len1, __how_much); > } > _M_rep()->_M_set_length_and_sharable(__new_size); > } > > template<typename _CharT, typename _Traits, typename _Alloc> > void > basic_string<_CharT, _Traits, _Alloc>:: > reserve(size_type __res) > { > if (__res != this->capacity() || _M_rep()->_M_is_shared()) > { > > if (__res < this->size()) > __res = this->size(); > const allocator_type __a = get_allocator(); > _CharT* __tmp = _M_rep()->_M_clone(__a, __res - this->size()); > _M_rep()->_M_dispose(__a); > _M_data(__tmp); > } > } > > template<typename _CharT, typename _Traits, typename _Alloc> > void > basic_string<_CharT, _Traits, _Alloc>:: > swap(basic_string& __s) > { > if (_M_rep()->_M_is_leaked()) > _M_rep()->_M_set_sharable(); > if (__s._M_rep()->_M_is_leaked()) > __s._M_rep()->_M_set_sharable(); > if (this->get_allocator() == __s.get_allocator()) > { > _CharT* __tmp = _M_data(); > _M_data(__s._M_data()); > __s._M_data(__tmp); > } > > else > { > const basic_string __tmp1(_M_ibegin(), _M_iend(), > __s.get_allocator()); > const basic_string __tmp2(__s._M_ibegin(), __s._M_iend(), > this->get_allocator()); > *this = __tmp2; > __s = __tmp1; > } > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::_Rep* > basic_string<_CharT, _Traits, _Alloc>::_Rep:: > _S_create(size_type __capacity, size_type __old_capacity, > const _Alloc& __alloc) > { > > > if (__capacity > _S_max_size) > __throw_length_error(("basic_string::_S_create")); ># 577 "/usr/include/c++/4.8.2/bits/basic_string.tcc" 3 > const size_type __pagesize = 4096; > const size_type __malloc_header_size = 4 * sizeof(void*); > > > > > > > > if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) > __capacity = 2 * __old_capacity; > > > > > size_type __size = (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep); > > const size_type __adj_size = __size + __malloc_header_size; > if (__adj_size > __pagesize && __capacity > __old_capacity) > { > const size_type __extra = __pagesize - __adj_size % __pagesize; > __capacity += __extra / sizeof(_CharT); > > if (__capacity > _S_max_size) > __capacity = _S_max_size; > __size = (__capacity + 1) * sizeof(_CharT) + sizeof(_Rep); > } > > > > void* __place = _Raw_bytes_alloc(__alloc).allocate(__size); > _Rep *__p = new (__place) _Rep; > __p->_M_capacity = __capacity; > > > > > > > > __p->_M_set_sharable(); > return __p; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > _CharT* > basic_string<_CharT, _Traits, _Alloc>::_Rep:: > _M_clone(const _Alloc& __alloc, size_type __res) > { > > const size_type __requested_cap = this->_M_length + __res; > _Rep* __r = _Rep::_S_create(__requested_cap, this->_M_capacity, > __alloc); > if (this->_M_length) > _M_copy(__r->_M_refdata(), _M_refdata(), this->_M_length); > > __r->_M_set_length_and_sharable(this->_M_length); > return __r->_M_refdata(); > } > > template<typename _CharT, typename _Traits, typename _Alloc> > void > basic_string<_CharT, _Traits, _Alloc>:: > resize(size_type __n, _CharT __c) > { > const size_type __size = this->size(); > _M_check_length(__size, __n, "basic_string::resize"); > if (__size < __n) > this->append(__n - __size, __c); > else if (__n < __size) > this->erase(__n); > > } > > template<typename _CharT, typename _Traits, typename _Alloc> > template<typename _InputIterator> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > _M_replace_dispatch(iterator __i1, iterator __i2, _InputIterator __k1, > _InputIterator __k2, __false_type) > { > const basic_string __s(__k1, __k2); > const size_type __n1 = __i2 - __i1; > _M_check_length(__n1, __s.size(), "basic_string::_M_replace_dispatch"); > return _M_replace_safe(__i1 - _M_ibegin(), __n1, __s._M_data(), > __s.size()); > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, > _CharT __c) > { > _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); > _M_mutate(__pos1, __n1, __n2); > if (__n2) > _M_assign(_M_data() + __pos1, __n2, __c); > return *this; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc>& > basic_string<_CharT, _Traits, _Alloc>:: > _M_replace_safe(size_type __pos1, size_type __n1, const _CharT* __s, > size_type __n2) > { > _M_mutate(__pos1, __n1, __n2); > if (__n2) > _M_copy(_M_data() + __pos1, __s, __n2); > return *this; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc> > operator+(const _CharT* __lhs, > const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { > ; > typedef basic_string<_CharT, _Traits, _Alloc> __string_type; > typedef typename __string_type::size_type __size_type; > const __size_type __len = _Traits::length(__lhs); > __string_type __str; > __str.reserve(__len + __rhs.size()); > __str.append(__lhs, __len); > __str.append(__rhs); > return __str; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_string<_CharT, _Traits, _Alloc> > operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) > { > typedef basic_string<_CharT, _Traits, _Alloc> __string_type; > typedef typename __string_type::size_type __size_type; > __string_type __str; > const __size_type __len = __rhs.size(); > __str.reserve(__len + 1); > __str.append(__size_type(1), __lhs); > __str.append(__rhs); > return __str; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > copy(_CharT* __s, size_type __n, size_type __pos) const > { > _M_check(__pos, "basic_string::copy"); > __n = _M_limit(__pos, __n); > ; > if (__n) > _M_copy(__s, _M_data() + __pos, __n); > > return __n; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > find(const _CharT* __s, size_type __pos, size_type __n) const > { > ; > const size_type __size = this->size(); > const _CharT* __data = _M_data(); > > if (__n == 0) > return __pos <= __size ? __pos : npos; > > if (__n <= __size) > { > for (; __pos <= __size - __n; ++__pos) > if (traits_type::eq(__data[__pos], __s[0]) > && traits_type::compare(__data + __pos + 1, > __s + 1, __n - 1) == 0) > return __pos; > } > return npos; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > find(_CharT __c, size_type __pos) const > { > size_type __ret = npos; > const size_type __size = this->size(); > if (__pos < __size) > { > const _CharT* __data = _M_data(); > const size_type __n = __size - __pos; > const _CharT* __p = traits_type::find(__data + __pos, __n, __c); > if (__p) > __ret = __p - __data; > } > return __ret; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > rfind(const _CharT* __s, size_type __pos, size_type __n) const > { > ; > const size_type __size = this->size(); > if (__n <= __size) > { > __pos = std::min(size_type(__size - __n), __pos); > const _CharT* __data = _M_data(); > do > { > if (traits_type::compare(__data + __pos, __s, __n) == 0) > return __pos; > } > while (__pos-- > 0); > } > return npos; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > rfind(_CharT __c, size_type __pos) const > { > size_type __size = this->size(); > if (__size) > { > if (--__size > __pos) > __size = __pos; > for (++__size; __size-- > 0; ) > if (traits_type::eq(_M_data()[__size], __c)) > return __size; > } > return npos; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > find_first_of(const _CharT* __s, size_type __pos, size_type __n) const > { > ; > for (; __n && __pos < this->size(); ++__pos) > { > const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); > if (__p) > return __pos; > } > return npos; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > find_last_of(const _CharT* __s, size_type __pos, size_type __n) const > { > ; > size_type __size = this->size(); > if (__size && __n) > { > if (--__size > __pos) > __size = __pos; > do > { > if (traits_type::find(__s, __n, _M_data()[__size])) > return __size; > } > while (__size-- != 0); > } > return npos; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const > { > ; > for (; __pos < this->size(); ++__pos) > if (!traits_type::find(__s, __n, _M_data()[__pos])) > return __pos; > return npos; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > find_first_not_of(_CharT __c, size_type __pos) const > { > for (; __pos < this->size(); ++__pos) > if (!traits_type::eq(_M_data()[__pos], __c)) > return __pos; > return npos; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const > { > ; > size_type __size = this->size(); > if (__size) > { > if (--__size > __pos) > __size = __pos; > do > { > if (!traits_type::find(__s, __n, _M_data()[__size])) > return __size; > } > while (__size--); > } > return npos; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > typename basic_string<_CharT, _Traits, _Alloc>::size_type > basic_string<_CharT, _Traits, _Alloc>:: > find_last_not_of(_CharT __c, size_type __pos) const > { > size_type __size = this->size(); > if (__size) > { > if (--__size > __pos) > __size = __pos; > do > { > if (!traits_type::eq(_M_data()[__size], __c)) > return __size; > } > while (__size--); > } > return npos; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > int > basic_string<_CharT, _Traits, _Alloc>:: > compare(size_type __pos, size_type __n, const basic_string& __str) const > { > _M_check(__pos, "basic_string::compare"); > __n = _M_limit(__pos, __n); > const size_type __osize = __str.size(); > const size_type __len = std::min(__n, __osize); > int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); > if (!__r) > __r = _S_compare(__n, __osize); > return __r; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > int > basic_string<_CharT, _Traits, _Alloc>:: > compare(size_type __pos1, size_type __n1, const basic_string& __str, > size_type __pos2, size_type __n2) const > { > _M_check(__pos1, "basic_string::compare"); > __str._M_check(__pos2, "basic_string::compare"); > __n1 = _M_limit(__pos1, __n1); > __n2 = __str._M_limit(__pos2, __n2); > const size_type __len = std::min(__n1, __n2); > int __r = traits_type::compare(_M_data() + __pos1, > __str.data() + __pos2, __len); > if (!__r) > __r = _S_compare(__n1, __n2); > return __r; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > int > basic_string<_CharT, _Traits, _Alloc>:: > compare(const _CharT* __s) const > { > ; > const size_type __size = this->size(); > const size_type __osize = traits_type::length(__s); > const size_type __len = std::min(__size, __osize); > int __r = traits_type::compare(_M_data(), __s, __len); > if (!__r) > __r = _S_compare(__size, __osize); > return __r; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > int > basic_string <_CharT, _Traits, _Alloc>:: > compare(size_type __pos, size_type __n1, const _CharT* __s) const > { > ; > _M_check(__pos, "basic_string::compare"); > __n1 = _M_limit(__pos, __n1); > const size_type __osize = traits_type::length(__s); > const size_type __len = std::min(__n1, __osize); > int __r = traits_type::compare(_M_data() + __pos, __s, __len); > if (!__r) > __r = _S_compare(__n1, __osize); > return __r; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > int > basic_string <_CharT, _Traits, _Alloc>:: > compare(size_type __pos, size_type __n1, const _CharT* __s, > size_type __n2) const > { > ; > _M_check(__pos, "basic_string::compare"); > __n1 = _M_limit(__pos, __n1); > const size_type __len = std::min(__n1, __n2); > int __r = traits_type::compare(_M_data() + __pos, __s, __len); > if (!__r) > __r = _S_compare(__n1, __n2); > return __r; > } > > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __in, > basic_string<_CharT, _Traits, _Alloc>& __str) > { > typedef basic_istream<_CharT, _Traits> __istream_type; > typedef basic_string<_CharT, _Traits, _Alloc> __string_type; > typedef typename __istream_type::ios_base __ios_base; > typedef typename __istream_type::int_type __int_type; > typedef typename __string_type::size_type __size_type; > typedef ctype<_CharT> __ctype_type; > typedef typename __ctype_type::ctype_base __ctype_base; > > __size_type __extracted = 0; > typename __ios_base::iostate __err = __ios_base::goodbit; > typename __istream_type::sentry __cerb(__in, false); > if (__cerb) > { > try > { > > __str.erase(); > _CharT __buf[128]; > __size_type __len = 0; > const streamsize __w = __in.width(); > const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) > : __str.max_size(); > const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); > const __int_type __eof = _Traits::eof(); > __int_type __c = __in.rdbuf()->sgetc(); > > while (__extracted < __n > && !_Traits::eq_int_type(__c, __eof) > && !__ct.is(__ctype_base::space, > _Traits::to_char_type(__c))) > { > if (__len == sizeof(__buf) / sizeof(_CharT)) > { > __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); > __len = 0; > } > __buf[__len++] = _Traits::to_char_type(__c); > ++__extracted; > __c = __in.rdbuf()->snextc(); > } > __str.append(__buf, __len); > > if (_Traits::eq_int_type(__c, __eof)) > __err |= __ios_base::eofbit; > __in.width(0); > } > catch(__cxxabiv1::__forced_unwind&) > { > __in._M_setstate(__ios_base::badbit); > throw; > } > catch(...) > { > > > > __in._M_setstate(__ios_base::badbit); > } > } > > if (!__extracted) > __err |= __ios_base::failbit; > if (__err) > __in.setstate(__err); > return __in; > } > > template<typename _CharT, typename _Traits, typename _Alloc> > basic_istream<_CharT, _Traits>& > getline(basic_istream<_CharT, _Traits>& __in, > basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) > { > typedef basic_istream<_CharT, _Traits> __istream_type; > typedef basic_string<_CharT, _Traits, _Alloc> __string_type; > typedef typename __istream_type::ios_base __ios_base; > typedef typename __istream_type::int_type __int_type; > typedef typename __string_type::size_type __size_type; > > __size_type __extracted = 0; > const __size_type __n = __str.max_size(); > typename __ios_base::iostate __err = __ios_base::goodbit; > typename __istream_type::sentry __cerb(__in, true); > if (__cerb) > { > try > { > __str.erase(); > const __int_type __idelim = _Traits::to_int_type(__delim); > const __int_type __eof = _Traits::eof(); > __int_type __c = __in.rdbuf()->sgetc(); > > while (__extracted < __n > && !_Traits::eq_int_type(__c, __eof) > && !_Traits::eq_int_type(__c, __idelim)) > { > __str += _Traits::to_char_type(__c); > ++__extracted; > __c = __in.rdbuf()->snextc(); > } > > if (_Traits::eq_int_type(__c, __eof)) > __err |= __ios_base::eofbit; > else if (_Traits::eq_int_type(__c, __idelim)) > { > ++__extracted; > __in.rdbuf()->sbumpc(); > } > else > __err |= __ios_base::failbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > __in._M_setstate(__ios_base::badbit); > throw; > } > catch(...) > { > > > > __in._M_setstate(__ios_base::badbit); > } > } > if (!__extracted) > __err |= __ios_base::failbit; > if (__err) > __in.setstate(__err); > return __in; > } > > > > > extern template class basic_string<char>; > extern template > basic_istream<char>& > operator>>(basic_istream<char>&, string&); > extern template > basic_ostream<char>& > operator<<(basic_ostream<char>&, const string&); > extern template > basic_istream<char>& > getline(basic_istream<char>&, string&, char); > extern template > basic_istream<char>& > getline(basic_istream<char>&, string&); > > > extern template class basic_string<wchar_t>; > extern template > basic_istream<wchar_t>& > operator>>(basic_istream<wchar_t>&, wstring&); > extern template > basic_ostream<wchar_t>& > operator<<(basic_ostream<wchar_t>&, const wstring&); > extern template > basic_istream<wchar_t>& > getline(basic_istream<wchar_t>&, wstring&, wchar_t); > extern template > basic_istream<wchar_t>& > getline(basic_istream<wchar_t>&, wstring&); > > > > >} ># 54 "/usr/include/c++/4.8.2/string" 2 3 ># 41 "/usr/include/c++/4.8.2/bits/locale_classes.h" 2 3 > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 62 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > class locale > { > public: > > > typedef int category; > > > class facet; > class id; > class _Impl; > > friend class facet; > friend class _Impl; > > template<typename _Facet> > friend bool > has_facet(const locale&) throw(); > > template<typename _Facet> > friend const _Facet& > use_facet(const locale&); > > template<typename _Cache> > friend struct __use_cache; ># 98 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > static const category none = 0; > static const category ctype = 1L << 0; > static const category numeric = 1L << 1; > static const category collate = 1L << 2; > static const category time = 1L << 3; > static const category monetary = 1L << 4; > static const category messages = 1L << 5; > static const category all = (ctype | numeric | collate | > time | monetary | messages); ># 117 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > locale() throw(); ># 126 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > locale(const locale& __other) throw(); ># 136 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > explicit > locale(const char* __s); ># 151 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > locale(const locale& __base, const char* __s, category __cat); ># 164 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > locale(const locale& __base, const locale& __add, category __cat); ># 177 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > template<typename _Facet> > locale(const locale& __other, _Facet* __f); > > > ~locale() throw(); ># 191 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > const locale& > operator=(const locale& __other) throw(); ># 206 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > template<typename _Facet> > locale > combine(const locale& __other) const; > > > > > > > string > name() const; ># 225 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > bool > operator==(const locale& __other) const throw(); > > > > > > > > bool > operator!=(const locale& __other) const throw() > { return !(this->operator==(__other)); } ># 253 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > template<typename _Char, typename _Traits, typename _Alloc> > bool > operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, > const basic_string<_Char, _Traits, _Alloc>& __s2) const; ># 269 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > static locale > global(const locale& __loc); > > > > > static const locale& > classic(); > > private: > > _Impl* _M_impl; > > > static _Impl* _S_classic; > > > static _Impl* _S_global; > > > > > > static const char* const* const _S_categories; ># 304 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > enum { _S_categories_size = 6 + 6 }; > > > static __gthread_once_t _S_once; > > > explicit > locale(_Impl*) throw(); > > static void > _S_initialize(); > > static void > _S_initialize_once() throw(); > > static category > _S_normalize_category(category); > > void > _M_coalesce(const locale& __base, const locale& __add, category __cat); > }; ># 338 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > class locale::facet > { > private: > friend class locale; > friend class locale::_Impl; > > mutable _Atomic_word _M_refcount; > > > static __c_locale _S_c_locale; > > > static const char _S_c_name[2]; > > > static __gthread_once_t _S_once; > > > static void > _S_initialize_once(); > > protected: ># 369 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > explicit > facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) > { } > > > virtual > ~facet(); > > static void > _S_create_c_locale(__c_locale& __cloc, const char* __s, > __c_locale __old = 0); > > static __c_locale > _S_clone_c_locale(__c_locale& __cloc) throw(); > > static void > _S_destroy_c_locale(__c_locale& __cloc); > > static __c_locale > _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); > > > > static __c_locale > _S_get_c_locale(); > > __attribute__ ((__const__)) static const char* > _S_get_c_name() throw(); > > private: > void > _M_add_reference() const throw() > { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } > > void > _M_remove_reference() const throw() > { > > ; > if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) > { > ; > try > { delete this; } > catch(...) > { } > } > } > > facet(const facet&); > > facet& > operator=(const facet&); > }; ># 436 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > class locale::id > { > private: > friend class locale; > friend class locale::_Impl; > > template<typename _Facet> > friend const _Facet& > use_facet(const locale&); > > template<typename _Facet> > friend bool > has_facet(const locale&) throw(); > > > > > mutable size_t _M_index; > > > static _Atomic_word _S_refcount; > > void > operator=(const id&); > > id(const id&); > > public: > > > > id() { } > > size_t > _M_id() const throw(); > }; > > > > class locale::_Impl > { > public: > > friend class locale; > friend class locale::facet; > > template<typename _Facet> > friend bool > has_facet(const locale&) throw(); > > template<typename _Facet> > friend const _Facet& > use_facet(const locale&); > > template<typename _Cache> > friend struct __use_cache; > > private: > > _Atomic_word _M_refcount; > const facet** _M_facets; > size_t _M_facets_size; > const facet** _M_caches; > char** _M_names; > static const locale::id* const _S_id_ctype[]; > static const locale::id* const _S_id_numeric[]; > static const locale::id* const _S_id_collate[]; > static const locale::id* const _S_id_time[]; > static const locale::id* const _S_id_monetary[]; > static const locale::id* const _S_id_messages[]; > static const locale::id* const* const _S_facet_categories[]; > > void > _M_add_reference() throw() > { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } > > void > _M_remove_reference() throw() > { > > ; > if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) > { > ; > try > { delete this; } > catch(...) > { } > } > } > > _Impl(const _Impl&, size_t); > _Impl(const char*, size_t); > _Impl(size_t) throw(); > > ~_Impl() throw(); > > _Impl(const _Impl&); > > void > operator=(const _Impl&); > > bool > _M_check_same_name() > { > bool __ret = true; > if (_M_names[1]) > > for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) > __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; > return __ret; > } > > void > _M_replace_categories(const _Impl*, category); > > void > _M_replace_category(const _Impl*, const locale::id* const*); > > void > _M_replace_facet(const _Impl*, const locale::id*); > > void > _M_install_facet(const locale::id*, const facet*); > > template<typename _Facet> > void > _M_init_facet(_Facet* __facet) > { _M_install_facet(&_Facet::id, __facet); } > > void > _M_install_cache(const facet*, size_t); > }; ># 583 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > template<typename _CharT> > class collate : public locale::facet > { > public: > > > > typedef _CharT char_type; > typedef basic_string<_CharT> string_type; > > > protected: > > > __c_locale _M_c_locale_collate; > > public: > > static locale::id id; ># 610 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > explicit > collate(size_t __refs = 0) > : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) > { } ># 624 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > explicit > collate(__c_locale __cloc, size_t __refs = 0) > : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) > { } ># 641 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > int > compare(const _CharT* __lo1, const _CharT* __hi1, > const _CharT* __lo2, const _CharT* __hi2) const > { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } ># 660 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > string_type > transform(const _CharT* __lo, const _CharT* __hi) const > { return this->do_transform(__lo, __hi); } ># 674 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > long > hash(const _CharT* __lo, const _CharT* __hi) const > { return this->do_hash(__lo, __hi); } > > > int > _M_compare(const _CharT*, const _CharT*) const throw(); > > size_t > _M_transform(_CharT*, const _CharT*, size_t) const throw(); > > protected: > > virtual > ~collate() > { _S_destroy_c_locale(_M_c_locale_collate); } ># 703 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > virtual int > do_compare(const _CharT* __lo1, const _CharT* __hi1, > const _CharT* __lo2, const _CharT* __hi2) const; ># 717 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > virtual string_type > do_transform(const _CharT* __lo, const _CharT* __hi) const; ># 730 "/usr/include/c++/4.8.2/bits/locale_classes.h" 3 > virtual long > do_hash(const _CharT* __lo, const _CharT* __hi) const; > }; > > template<typename _CharT> > locale::id collate<_CharT>::id; > > > template<> > int > collate<char>::_M_compare(const char*, const char*) const throw(); > > template<> > size_t > collate<char>::_M_transform(char*, const char*, size_t) const throw(); > > > template<> > int > collate<wchar_t>::_M_compare(const wchar_t*, const wchar_t*) const throw(); > > template<> > size_t > collate<wchar_t>::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); > > > > template<typename _CharT> > class collate_byname : public collate<_CharT> > { > public: > > > typedef _CharT char_type; > typedef basic_string<_CharT> string_type; > > > explicit > collate_byname(const char* __s, size_t __refs = 0) > : collate<_CharT>(__refs) > { > if (__builtin_strcmp(__s, "C") != 0 > && __builtin_strcmp(__s, "POSIX") != 0) > { > this->_S_destroy_c_locale(this->_M_c_locale_collate); > this->_S_create_c_locale(this->_M_c_locale_collate, __s); > } > } > > protected: > virtual > ~collate_byname() { } > }; > > >} > ># 1 "/usr/include/c++/4.8.2/bits/locale_classes.tcc" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/locale_classes.tcc" 3 >#define _LOCALE_CLASSES_TCC 1 > > ># 38 "/usr/include/c++/4.8.2/bits/locale_classes.tcc" 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _Facet> > locale:: > locale(const locale& __other, _Facet* __f) > { > _M_impl = new _Impl(*__other._M_impl, 1); > > try > { _M_impl->_M_install_facet(&_Facet::id, __f); } > catch(...) > { > _M_impl->_M_remove_reference(); > throw; > } > delete [] _M_impl->_M_names[0]; > _M_impl->_M_names[0] = 0; > } > > template<typename _Facet> > locale > locale:: > combine(const locale& __other) const > { > _Impl* __tmp = new _Impl(*_M_impl, 1); > try > { > __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); > } > catch(...) > { > __tmp->_M_remove_reference(); > throw; > } > return locale(__tmp); > } > > template<typename _CharT, typename _Traits, typename _Alloc> > bool > locale:: > operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, > const basic_string<_CharT, _Traits, _Alloc>& __s2) const > { > typedef std::collate<_CharT> __collate_type; > const __collate_type& __collate = use_facet<__collate_type>(*this); > return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), > __s2.data(), __s2.data() + __s2.length()) < 0); > } ># 102 "/usr/include/c++/4.8.2/bits/locale_classes.tcc" 3 > template<typename _Facet> > bool > has_facet(const locale& __loc) throw() > { > const size_t __i = _Facet::id._M_id(); > const locale::facet** __facets = __loc._M_impl->_M_facets; > return (__i < __loc._M_impl->_M_facets_size > > && dynamic_cast<const _Facet*>(__facets[__i])); > > > > } ># 130 "/usr/include/c++/4.8.2/bits/locale_classes.tcc" 3 > template<typename _Facet> > const _Facet& > use_facet(const locale& __loc) > { > const size_t __i = _Facet::id._M_id(); > const locale::facet** __facets = __loc._M_impl->_M_facets; > if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) > __throw_bad_cast(); > > return dynamic_cast<const _Facet&>(*__facets[__i]); > > > > } > > > > template<typename _CharT> > int > collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () > { return 0; } > > > template<typename _CharT> > size_t > collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () > { return 0; } > > template<typename _CharT> > int > collate<_CharT>:: > do_compare(const _CharT* __lo1, const _CharT* __hi1, > const _CharT* __lo2, const _CharT* __hi2) const > { > > > const string_type __one(__lo1, __hi1); > const string_type __two(__lo2, __hi2); > > const _CharT* __p = __one.c_str(); > const _CharT* __pend = __one.data() + __one.length(); > const _CharT* __q = __two.c_str(); > const _CharT* __qend = __two.data() + __two.length(); > > > > > for (;;) > { > const int __res = _M_compare(__p, __q); > if (__res) > return __res; > > __p += char_traits<_CharT>::length(__p); > __q += char_traits<_CharT>::length(__q); > if (__p == __pend && __q == __qend) > return 0; > else if (__p == __pend) > return -1; > else if (__q == __qend) > return 1; > > __p++; > __q++; > } > } > > template<typename _CharT> > typename collate<_CharT>::string_type > collate<_CharT>:: > do_transform(const _CharT* __lo, const _CharT* __hi) const > { > string_type __ret; > > > const string_type __str(__lo, __hi); > > const _CharT* __p = __str.c_str(); > const _CharT* __pend = __str.data() + __str.length(); > > size_t __len = (__hi - __lo) * 2; > > _CharT* __c = new _CharT[__len]; > > try > { > > > > for (;;) > { > > size_t __res = _M_transform(__c, __p, __len); > > > if (__res >= __len) > { > __len = __res + 1; > delete [] __c, __c = 0; > __c = new _CharT[__len]; > __res = _M_transform(__c, __p, __len); > } > > __ret.append(__c, __res); > __p += char_traits<_CharT>::length(__p); > if (__p == __pend) > break; > > __p++; > __ret.push_back(_CharT()); > } > } > catch(...) > { > delete [] __c; > throw; > } > > delete [] __c; > > return __ret; > } > > template<typename _CharT> > long > collate<_CharT>:: > do_hash(const _CharT* __lo, const _CharT* __hi) const > { > unsigned long __val = 0; > for (; __lo < __hi; ++__lo) > __val = > *__lo + ((__val << 7) > | (__val >> (__gnu_cxx::__numeric_traits<unsigned long>:: > __digits - 7))); > return static_cast<long>(__val); > } > > > > > extern template class collate<char>; > extern template class collate_byname<char>; > > extern template > const collate<char>& > use_facet<collate<char> >(const locale&); > > extern template > bool > has_facet<collate<char> >(const locale&); > > > extern template class collate<wchar_t>; > extern template class collate_byname<wchar_t>; > > extern template > const collate<wchar_t>& > use_facet<collate<wchar_t> >(const locale&); > > extern template > bool > has_facet<collate<wchar_t> >(const locale&); > > > > >} ># 788 "/usr/include/c++/4.8.2/bits/locale_classes.h" 2 3 ># 42 "/usr/include/c++/4.8.2/bits/ios_base.h" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > > > enum _Ios_Fmtflags > { > _S_boolalpha = 1L << 0, > _S_dec = 1L << 1, > _S_fixed = 1L << 2, > _S_hex = 1L << 3, > _S_internal = 1L << 4, > _S_left = 1L << 5, > _S_oct = 1L << 6, > _S_right = 1L << 7, > _S_scientific = 1L << 8, > _S_showbase = 1L << 9, > _S_showpoint = 1L << 10, > _S_showpos = 1L << 11, > _S_skipws = 1L << 12, > _S_unitbuf = 1L << 13, > _S_uppercase = 1L << 14, > _S_adjustfield = _S_left | _S_right | _S_internal, > _S_basefield = _S_dec | _S_oct | _S_hex, > _S_floatfield = _S_scientific | _S_fixed, > _S_ios_fmtflags_end = 1L << 16 > }; > > inline _Ios_Fmtflags > operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) > { return _Ios_Fmtflags(static_cast<int>(__a) & static_cast<int>(__b)); } > > inline _Ios_Fmtflags > operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) > { return _Ios_Fmtflags(static_cast<int>(__a) | static_cast<int>(__b)); } > > inline _Ios_Fmtflags > operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) > { return _Ios_Fmtflags(static_cast<int>(__a) ^ static_cast<int>(__b)); } > > inline _Ios_Fmtflags > operator~(_Ios_Fmtflags __a) > { return _Ios_Fmtflags(~static_cast<int>(__a)); } > > inline const _Ios_Fmtflags& > operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) > { return __a = __a | __b; } > > inline const _Ios_Fmtflags& > operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) > { return __a = __a & __b; } > > inline const _Ios_Fmtflags& > operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) > { return __a = __a ^ __b; } > > > enum _Ios_Openmode > { > _S_app = 1L << 0, > _S_ate = 1L << 1, > _S_bin = 1L << 2, > _S_in = 1L << 3, > _S_out = 1L << 4, > _S_trunc = 1L << 5, > _S_ios_openmode_end = 1L << 16 > }; > > inline _Ios_Openmode > operator&(_Ios_Openmode __a, _Ios_Openmode __b) > { return _Ios_Openmode(static_cast<int>(__a) & static_cast<int>(__b)); } > > inline _Ios_Openmode > operator|(_Ios_Openmode __a, _Ios_Openmode __b) > { return _Ios_Openmode(static_cast<int>(__a) | static_cast<int>(__b)); } > > inline _Ios_Openmode > operator^(_Ios_Openmode __a, _Ios_Openmode __b) > { return _Ios_Openmode(static_cast<int>(__a) ^ static_cast<int>(__b)); } > > inline _Ios_Openmode > operator~(_Ios_Openmode __a) > { return _Ios_Openmode(~static_cast<int>(__a)); } > > inline const _Ios_Openmode& > operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) > { return __a = __a | __b; } > > inline const _Ios_Openmode& > operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) > { return __a = __a & __b; } > > inline const _Ios_Openmode& > operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) > { return __a = __a ^ __b; } > > > enum _Ios_Iostate > { > _S_goodbit = 0, > _S_badbit = 1L << 0, > _S_eofbit = 1L << 1, > _S_failbit = 1L << 2, > _S_ios_iostate_end = 1L << 16 > }; > > inline _Ios_Iostate > operator&(_Ios_Iostate __a, _Ios_Iostate __b) > { return _Ios_Iostate(static_cast<int>(__a) & static_cast<int>(__b)); } > > inline _Ios_Iostate > operator|(_Ios_Iostate __a, _Ios_Iostate __b) > { return _Ios_Iostate(static_cast<int>(__a) | static_cast<int>(__b)); } > > inline _Ios_Iostate > operator^(_Ios_Iostate __a, _Ios_Iostate __b) > { return _Ios_Iostate(static_cast<int>(__a) ^ static_cast<int>(__b)); } > > inline _Ios_Iostate > operator~(_Ios_Iostate __a) > { return _Ios_Iostate(~static_cast<int>(__a)); } > > inline const _Ios_Iostate& > operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) > { return __a = __a | __b; } > > inline const _Ios_Iostate& > operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) > { return __a = __a & __b; } > > inline const _Ios_Iostate& > operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) > { return __a = __a ^ __b; } > > > enum _Ios_Seekdir > { > _S_beg = 0, > _S_cur = 1, > _S_end = 2, > _S_ios_seekdir_end = 1L << 16 > }; ># 199 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > class ios_base > { > public: > > > > > > > > class failure : public exception > { > public: > > > explicit > failure(const string& __str) throw(); > > > > virtual > ~failure() throw(); > > virtual const char* > what() const throw(); > > private: > string _M_msg; > }; ># 255 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > typedef _Ios_Fmtflags fmtflags; > > > static const fmtflags boolalpha = _S_boolalpha; > > > static const fmtflags dec = _S_dec; > > > static const fmtflags fixed = _S_fixed; > > > static const fmtflags hex = _S_hex; > > > > > static const fmtflags internal = _S_internal; > > > > static const fmtflags left = _S_left; > > > static const fmtflags oct = _S_oct; > > > > static const fmtflags right = _S_right; > > > static const fmtflags scientific = _S_scientific; > > > > static const fmtflags showbase = _S_showbase; > > > > static const fmtflags showpoint = _S_showpoint; > > > static const fmtflags showpos = _S_showpos; > > > static const fmtflags skipws = _S_skipws; > > > static const fmtflags unitbuf = _S_unitbuf; > > > > static const fmtflags uppercase = _S_uppercase; > > > static const fmtflags adjustfield = _S_adjustfield; > > > static const fmtflags basefield = _S_basefield; > > > static const fmtflags floatfield = _S_floatfield; ># 330 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > typedef _Ios_Iostate iostate; > > > > static const iostate badbit = _S_badbit; > > > static const iostate eofbit = _S_eofbit; > > > > > static const iostate failbit = _S_failbit; > > > static const iostate goodbit = _S_goodbit; ># 361 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > typedef _Ios_Openmode openmode; > > > static const openmode app = _S_app; > > > static const openmode ate = _S_ate; > > > > > static const openmode binary = _S_bin; > > > static const openmode in = _S_in; > > > static const openmode out = _S_out; > > > static const openmode trunc = _S_trunc; ># 393 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > typedef _Ios_Seekdir seekdir; > > > static const seekdir beg = _S_beg; > > > static const seekdir cur = _S_cur; > > > static const seekdir end = _S_end; > > > typedef int io_state; > typedef int open_mode; > typedef int seek_dir; > > typedef std::streampos streampos; > typedef std::streamoff streamoff; ># 419 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > enum event > { > erase_event, > imbue_event, > copyfmt_event > }; ># 436 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > typedef void (*event_callback) (event __e, ios_base& __b, int __i); ># 448 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > void > register_callback(event_callback __fn, int __index); > > protected: > streamsize _M_precision; > streamsize _M_width; > fmtflags _M_flags; > iostate _M_exception; > iostate _M_streambuf_state; > > > > struct _Callback_list > { > > _Callback_list* _M_next; > ios_base::event_callback _M_fn; > int _M_index; > _Atomic_word _M_refcount; > > _Callback_list(ios_base::event_callback __fn, int __index, > _Callback_list* __cb) > : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } > > void > _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } > > > int > _M_remove_reference() > { > > ; > int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); > if (__res == 0) > { > ; > } > return __res; > } > }; > > _Callback_list* _M_callbacks; > > void > _M_call_callbacks(event __ev) throw(); > > void > _M_dispose_callbacks(void) throw(); > > > struct _Words > { > void* _M_pword; > long _M_iword; > _Words() : _M_pword(0), _M_iword(0) { } > }; > > > _Words _M_word_zero; > > > > enum { _S_local_word_size = 8 }; > _Words _M_local_word[_S_local_word_size]; > > > int _M_word_size; > _Words* _M_word; > > _Words& > _M_grow_words(int __index, bool __iword); > > > locale _M_ios_locale; > > void > _M_init() throw(); > > public: > > > > > > class Init > { > friend class ios_base; > public: > Init(); > ~Init(); > > private: > static _Atomic_word _S_refcount; > static bool _S_synced_with_stdio; > }; > > > > > > > fmtflags > flags() const > { return _M_flags; } ># 561 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > fmtflags > flags(fmtflags __fmtfl) > { > fmtflags __old = _M_flags; > _M_flags = __fmtfl; > return __old; > } ># 577 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > fmtflags > setf(fmtflags __fmtfl) > { > fmtflags __old = _M_flags; > _M_flags |= __fmtfl; > return __old; > } ># 594 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > fmtflags > setf(fmtflags __fmtfl, fmtflags __mask) > { > fmtflags __old = _M_flags; > _M_flags &= ~__mask; > _M_flags |= (__fmtfl & __mask); > return __old; > } > > > > > > > > void > unsetf(fmtflags __mask) > { _M_flags &= ~__mask; } ># 620 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > streamsize > precision() const > { return _M_precision; } > > > > > > > streamsize > precision(streamsize __prec) > { > streamsize __old = _M_precision; > _M_precision = __prec; > return __old; > } > > > > > > > > streamsize > width() const > { return _M_width; } > > > > > > > streamsize > width(streamsize __wide) > { > streamsize __old = _M_width; > _M_width = __wide; > return __old; > } ># 671 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > static bool > sync_with_stdio(bool __sync = true); ># 683 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > locale > imbue(const locale& __loc) throw(); ># 694 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > locale > getloc() const > { return _M_ios_locale; } ># 705 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > const locale& > _M_getloc() const > { return _M_ios_locale; } ># 724 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > static int > xalloc() throw(); ># 740 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > long& > iword(int __ix) > { > _Words& __word = (__ix < _M_word_size) > ? _M_word[__ix] : _M_grow_words(__ix, true); > return __word._M_iword; > } ># 761 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > void*& > pword(int __ix) > { > _Words& __word = (__ix < _M_word_size) > ? _M_word[__ix] : _M_grow_words(__ix, false); > return __word._M_pword; > } ># 778 "/usr/include/c++/4.8.2/bits/ios_base.h" 3 > virtual ~ios_base(); > > protected: > ios_base() throw (); > > > > private: > ios_base(const ios_base&); > > ios_base& > operator=(const ios_base&); > }; > > > > inline ios_base& > boolalpha(ios_base& __base) > { > __base.setf(ios_base::boolalpha); > return __base; > } > > > inline ios_base& > noboolalpha(ios_base& __base) > { > __base.unsetf(ios_base::boolalpha); > return __base; > } > > > inline ios_base& > showbase(ios_base& __base) > { > __base.setf(ios_base::showbase); > return __base; > } > > > inline ios_base& > noshowbase(ios_base& __base) > { > __base.unsetf(ios_base::showbase); > return __base; > } > > > inline ios_base& > showpoint(ios_base& __base) > { > __base.setf(ios_base::showpoint); > return __base; > } > > > inline ios_base& > noshowpoint(ios_base& __base) > { > __base.unsetf(ios_base::showpoint); > return __base; > } > > > inline ios_base& > showpos(ios_base& __base) > { > __base.setf(ios_base::showpos); > return __base; > } > > > inline ios_base& > noshowpos(ios_base& __base) > { > __base.unsetf(ios_base::showpos); > return __base; > } > > > inline ios_base& > skipws(ios_base& __base) > { > __base.setf(ios_base::skipws); > return __base; > } > > > inline ios_base& > noskipws(ios_base& __base) > { > __base.unsetf(ios_base::skipws); > return __base; > } > > > inline ios_base& > uppercase(ios_base& __base) > { > __base.setf(ios_base::uppercase); > return __base; > } > > > inline ios_base& > nouppercase(ios_base& __base) > { > __base.unsetf(ios_base::uppercase); > return __base; > } > > > inline ios_base& > unitbuf(ios_base& __base) > { > __base.setf(ios_base::unitbuf); > return __base; > } > > > inline ios_base& > nounitbuf(ios_base& __base) > { > __base.unsetf(ios_base::unitbuf); > return __base; > } > > > > inline ios_base& > internal(ios_base& __base) > { > __base.setf(ios_base::internal, ios_base::adjustfield); > return __base; > } > > > inline ios_base& > left(ios_base& __base) > { > __base.setf(ios_base::left, ios_base::adjustfield); > return __base; > } > > > inline ios_base& > right(ios_base& __base) > { > __base.setf(ios_base::right, ios_base::adjustfield); > return __base; > } > > > > inline ios_base& > dec(ios_base& __base) > { > __base.setf(ios_base::dec, ios_base::basefield); > return __base; > } > > > inline ios_base& > hex(ios_base& __base) > { > __base.setf(ios_base::hex, ios_base::basefield); > return __base; > } > > > inline ios_base& > oct(ios_base& __base) > { > __base.setf(ios_base::oct, ios_base::basefield); > return __base; > } > > > > inline ios_base& > fixed(ios_base& __base) > { > __base.setf(ios_base::fixed, ios_base::floatfield); > return __base; > } > > > inline ios_base& > scientific(ios_base& __base) > { > __base.setf(ios_base::scientific, ios_base::floatfield); > return __base; > } > > >} ># 43 "/usr/include/c++/4.8.2/ios" 2 3 ># 1 "/usr/include/c++/4.8.2/streambuf" 1 3 ># 34 "/usr/include/c++/4.8.2/streambuf" 3 >#define _GLIBXX_STREAMBUF 1 > > ># 37 "/usr/include/c++/4.8.2/streambuf" 3 ># 45 "/usr/include/c++/4.8.2/streambuf" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _CharT, typename _Traits> > streamsize > __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, > basic_streambuf<_CharT, _Traits>*, bool&); ># 119 "/usr/include/c++/4.8.2/streambuf" 3 > template<typename _CharT, typename _Traits> > class basic_streambuf > { > public: > > > > > > > typedef _CharT char_type; > typedef _Traits traits_type; > typedef typename traits_type::int_type int_type; > typedef typename traits_type::pos_type pos_type; > typedef typename traits_type::off_type off_type; > > > > > typedef basic_streambuf<char_type, traits_type> __streambuf_type; > > > friend class basic_ios<char_type, traits_type>; > friend class basic_istream<char_type, traits_type>; > friend class basic_ostream<char_type, traits_type>; > friend class istreambuf_iterator<char_type, traits_type>; > friend class ostreambuf_iterator<char_type, traits_type>; > > friend streamsize > __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); > > template<bool _IsMove, typename _CharT2> > friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, > _CharT2*>::__type > __copy_move_a2(istreambuf_iterator<_CharT2>, > istreambuf_iterator<_CharT2>, _CharT2*); > > template<typename _CharT2> > friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, > istreambuf_iterator<_CharT2> >::__type > find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, > const _CharT2&); > > template<typename _CharT2, typename _Traits2> > friend basic_istream<_CharT2, _Traits2>& > operator>>(basic_istream<_CharT2, _Traits2>&, _CharT2*); > > template<typename _CharT2, typename _Traits2, typename _Alloc> > friend basic_istream<_CharT2, _Traits2>& > operator>>(basic_istream<_CharT2, _Traits2>&, > basic_string<_CharT2, _Traits2, _Alloc>&); > > template<typename _CharT2, typename _Traits2, typename _Alloc> > friend basic_istream<_CharT2, _Traits2>& > getline(basic_istream<_CharT2, _Traits2>&, > basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); > > protected: > > > > > > > > char_type* _M_in_beg; > char_type* _M_in_cur; > char_type* _M_in_end; > char_type* _M_out_beg; > char_type* _M_out_cur; > char_type* _M_out_end; > > > locale _M_buf_locale; > > public: > > virtual > ~basic_streambuf() > { } ># 208 "/usr/include/c++/4.8.2/streambuf" 3 > locale > pubimbue(const locale& __loc) > { > locale __tmp(this->getloc()); > this->imbue(__loc); > _M_buf_locale = __loc; > return __tmp; > } ># 225 "/usr/include/c++/4.8.2/streambuf" 3 > locale > getloc() const > { return _M_buf_locale; } ># 238 "/usr/include/c++/4.8.2/streambuf" 3 > basic_streambuf* > pubsetbuf(char_type* __s, streamsize __n) > { return this->setbuf(__s, __n); } ># 250 "/usr/include/c++/4.8.2/streambuf" 3 > pos_type > pubseekoff(off_type __off, ios_base::seekdir __way, > ios_base::openmode __mode = ios_base::in | ios_base::out) > { return this->seekoff(__off, __way, __mode); } ># 262 "/usr/include/c++/4.8.2/streambuf" 3 > pos_type > pubseekpos(pos_type __sp, > ios_base::openmode __mode = ios_base::in | ios_base::out) > { return this->seekpos(__sp, __mode); } > > > > > int > pubsync() { return this->sync(); } ># 283 "/usr/include/c++/4.8.2/streambuf" 3 > streamsize > in_avail() > { > const streamsize __ret = this->egptr() - this->gptr(); > return __ret ? __ret : this->showmanyc(); > } ># 297 "/usr/include/c++/4.8.2/streambuf" 3 > int_type > snextc() > { > int_type __ret = traits_type::eof(); > if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), > __ret), true)) > __ret = this->sgetc(); > return __ret; > } ># 315 "/usr/include/c++/4.8.2/streambuf" 3 > int_type > sbumpc() > { > int_type __ret; > if (__builtin_expect(this->gptr() < this->egptr(), true)) > { > __ret = traits_type::to_int_type(*this->gptr()); > this->gbump(1); > } > else > __ret = this->uflow(); > return __ret; > } ># 337 "/usr/include/c++/4.8.2/streambuf" 3 > int_type > sgetc() > { > int_type __ret; > if (__builtin_expect(this->gptr() < this->egptr(), true)) > __ret = traits_type::to_int_type(*this->gptr()); > else > __ret = this->underflow(); > return __ret; > } ># 356 "/usr/include/c++/4.8.2/streambuf" 3 > streamsize > sgetn(char_type* __s, streamsize __n) > { return this->xsgetn(__s, __n); } ># 371 "/usr/include/c++/4.8.2/streambuf" 3 > int_type > sputbackc(char_type __c) > { > int_type __ret; > const bool __testpos = this->eback() < this->gptr(); > if (__builtin_expect(!__testpos || > !traits_type::eq(__c, this->gptr()[-1]), false)) > __ret = this->pbackfail(traits_type::to_int_type(__c)); > else > { > this->gbump(-1); > __ret = traits_type::to_int_type(*this->gptr()); > } > return __ret; > } ># 396 "/usr/include/c++/4.8.2/streambuf" 3 > int_type > sungetc() > { > int_type __ret; > if (__builtin_expect(this->eback() < this->gptr(), true)) > { > this->gbump(-1); > __ret = traits_type::to_int_type(*this->gptr()); > } > else > __ret = this->pbackfail(); > return __ret; > } ># 423 "/usr/include/c++/4.8.2/streambuf" 3 > int_type > sputc(char_type __c) > { > int_type __ret; > if (__builtin_expect(this->pptr() < this->epptr(), true)) > { > *this->pptr() = __c; > this->pbump(1); > __ret = traits_type::to_int_type(__c); > } > else > __ret = this->overflow(traits_type::to_int_type(__c)); > return __ret; > } ># 449 "/usr/include/c++/4.8.2/streambuf" 3 > streamsize > sputn(const char_type* __s, streamsize __n) > { return this->xsputn(__s, __n); } > > protected: ># 463 "/usr/include/c++/4.8.2/streambuf" 3 > basic_streambuf() > : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), > _M_out_beg(0), _M_out_cur(0), _M_out_end(0), > _M_buf_locale(locale()) > { } ># 481 "/usr/include/c++/4.8.2/streambuf" 3 > char_type* > eback() const { return _M_in_beg; } > > char_type* > gptr() const { return _M_in_cur; } > > char_type* > egptr() const { return _M_in_end; } ># 497 "/usr/include/c++/4.8.2/streambuf" 3 > void > gbump(int __n) { _M_in_cur += __n; } ># 508 "/usr/include/c++/4.8.2/streambuf" 3 > void > setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) > { > _M_in_beg = __gbeg; > _M_in_cur = __gnext; > _M_in_end = __gend; > } ># 528 "/usr/include/c++/4.8.2/streambuf" 3 > char_type* > pbase() const { return _M_out_beg; } > > char_type* > pptr() const { return _M_out_cur; } > > char_type* > epptr() const { return _M_out_end; } ># 544 "/usr/include/c++/4.8.2/streambuf" 3 > void > pbump(int __n) { _M_out_cur += __n; } ># 554 "/usr/include/c++/4.8.2/streambuf" 3 > void > setp(char_type* __pbeg, char_type* __pend) > { > _M_out_beg = _M_out_cur = __pbeg; > _M_out_end = __pend; > } ># 575 "/usr/include/c++/4.8.2/streambuf" 3 > virtual void > imbue(const locale& __loc) > { } ># 590 "/usr/include/c++/4.8.2/streambuf" 3 > virtual basic_streambuf<char_type,_Traits>* > setbuf(char_type*, streamsize) > { return this; } ># 601 "/usr/include/c++/4.8.2/streambuf" 3 > virtual pos_type > seekoff(off_type, ios_base::seekdir, > ios_base::openmode = ios_base::in | ios_base::out) > { return pos_type(off_type(-1)); } ># 613 "/usr/include/c++/4.8.2/streambuf" 3 > virtual pos_type > seekpos(pos_type, > ios_base::openmode = ios_base::in | ios_base::out) > { return pos_type(off_type(-1)); } ># 626 "/usr/include/c++/4.8.2/streambuf" 3 > virtual int > sync() { return 0; } ># 648 "/usr/include/c++/4.8.2/streambuf" 3 > virtual streamsize > showmanyc() { return 0; } ># 664 "/usr/include/c++/4.8.2/streambuf" 3 > virtual streamsize > xsgetn(char_type* __s, streamsize __n); ># 686 "/usr/include/c++/4.8.2/streambuf" 3 > virtual int_type > underflow() > { return traits_type::eof(); } ># 699 "/usr/include/c++/4.8.2/streambuf" 3 > virtual int_type > uflow() > { > int_type __ret = traits_type::eof(); > const bool __testeof = traits_type::eq_int_type(this->underflow(), > __ret); > if (!__testeof) > { > __ret = traits_type::to_int_type(*this->gptr()); > this->gbump(1); > } > return __ret; > } ># 723 "/usr/include/c++/4.8.2/streambuf" 3 > virtual int_type > pbackfail(int_type __c = traits_type::eof()) > { return traits_type::eof(); } ># 741 "/usr/include/c++/4.8.2/streambuf" 3 > virtual streamsize > xsputn(const char_type* __s, streamsize __n); ># 767 "/usr/include/c++/4.8.2/streambuf" 3 > virtual int_type > overflow(int_type __c = traits_type::eof()) > { return traits_type::eof(); } > > > > public: ># 782 "/usr/include/c++/4.8.2/streambuf" 3 > void > stossc() > { > if (this->gptr() < this->egptr()) > this->gbump(1); > else > this->uflow(); > } > > > > void > __safe_gbump(streamsize __n) { _M_in_cur += __n; } > > void > __safe_pbump(streamsize __n) { _M_out_cur += __n; } > > private: > > > basic_streambuf(const basic_streambuf& __sb) > : _M_in_beg(__sb._M_in_beg), _M_in_cur(__sb._M_in_cur), > _M_in_end(__sb._M_in_end), _M_out_beg(__sb._M_out_beg), > _M_out_cur(__sb._M_out_cur), _M_out_end(__sb._M_out_cur), > _M_buf_locale(__sb._M_buf_locale) > { } > > basic_streambuf& > operator=(const basic_streambuf&) { return *this; }; > }; > > > template<> > streamsize > __copy_streambufs_eof(basic_streambuf<char>* __sbin, > basic_streambuf<char>* __sbout, bool& __ineof); > > template<> > streamsize > __copy_streambufs_eof(basic_streambuf<wchar_t>* __sbin, > basic_streambuf<wchar_t>* __sbout, bool& __ineof); > > > >} > ># 1 "/usr/include/c++/4.8.2/bits/streambuf.tcc" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/streambuf.tcc" 3 >#define _STREAMBUF_TCC 1 > > ># 38 "/usr/include/c++/4.8.2/bits/streambuf.tcc" 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _CharT, typename _Traits> > streamsize > basic_streambuf<_CharT, _Traits>:: > xsgetn(char_type* __s, streamsize __n) > { > streamsize __ret = 0; > while (__ret < __n) > { > const streamsize __buf_len = this->egptr() - this->gptr(); > if (__buf_len) > { > const streamsize __remaining = __n - __ret; > const streamsize __len = std::min(__buf_len, __remaining); > traits_type::copy(__s, this->gptr(), __len); > __ret += __len; > __s += __len; > this->__safe_gbump(__len); > } > > if (__ret < __n) > { > const int_type __c = this->uflow(); > if (!traits_type::eq_int_type(__c, traits_type::eof())) > { > traits_type::assign(*__s++, traits_type::to_char_type(__c)); > ++__ret; > } > else > break; > } > } > return __ret; > } > > template<typename _CharT, typename _Traits> > streamsize > basic_streambuf<_CharT, _Traits>:: > xsputn(const char_type* __s, streamsize __n) > { > streamsize __ret = 0; > while (__ret < __n) > { > const streamsize __buf_len = this->epptr() - this->pptr(); > if (__buf_len) > { > const streamsize __remaining = __n - __ret; > const streamsize __len = std::min(__buf_len, __remaining); > traits_type::copy(this->pptr(), __s, __len); > __ret += __len; > __s += __len; > this->__safe_pbump(__len); > } > > if (__ret < __n) > { > int_type __c = this->overflow(traits_type::to_int_type(*__s)); > if (!traits_type::eq_int_type(__c, traits_type::eof())) > { > ++__ret; > ++__s; > } > else > break; > } > } > return __ret; > } > > > > > template<typename _CharT, typename _Traits> > streamsize > __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, > basic_streambuf<_CharT, _Traits>* __sbout, > bool& __ineof) > { > streamsize __ret = 0; > __ineof = true; > typename _Traits::int_type __c = __sbin->sgetc(); > while (!_Traits::eq_int_type(__c, _Traits::eof())) > { > __c = __sbout->sputc(_Traits::to_char_type(__c)); > if (_Traits::eq_int_type(__c, _Traits::eof())) > { > __ineof = false; > break; > } > ++__ret; > __c = __sbin->snextc(); > } > return __ret; > } > > template<typename _CharT, typename _Traits> > inline streamsize > __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, > basic_streambuf<_CharT, _Traits>* __sbout) > { > bool __ineof; > return __copy_streambufs_eof(__sbin, __sbout, __ineof); > } > > > > > extern template class basic_streambuf<char>; > extern template > streamsize > __copy_streambufs(basic_streambuf<char>*, > basic_streambuf<char>*); > extern template > streamsize > __copy_streambufs_eof(basic_streambuf<char>*, > basic_streambuf<char>*, bool&); > > > extern template class basic_streambuf<wchar_t>; > extern template > streamsize > __copy_streambufs(basic_streambuf<wchar_t>*, > basic_streambuf<wchar_t>*); > extern template > streamsize > __copy_streambufs_eof(basic_streambuf<wchar_t>*, > basic_streambuf<wchar_t>*, bool&); > > > > >} ># 829 "/usr/include/c++/4.8.2/streambuf" 2 3 ># 44 "/usr/include/c++/4.8.2/ios" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/basic_ios.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 >#define _BASIC_IOS_H 1 > > ># 34 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > > > ># 1 "/usr/include/c++/4.8.2/bits/locale_facets.h" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 >#define _LOCALE_FACETS_H 1 > > ># 38 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > ># 1 "/usr/include/c++/4.8.2/cwctype" 1 3 ># 39 "/usr/include/c++/4.8.2/cwctype" 3 > ># 40 "/usr/include/c++/4.8.2/cwctype" 3 ># 50 "/usr/include/c++/4.8.2/cwctype" 3 ># 1 "/usr/include/wctype.h" 1 3 4 ># 29 "/usr/include/wctype.h" 3 4 >#define _WCTYPE_H 1 > > >#define __need_wint_t ># 1 "/usr/include/wchar.h" 1 3 4 ># 899 "/usr/include/wchar.h" 3 4 >#undef __need_mbstate_t >#undef __need_wint_t ># 34 "/usr/include/wctype.h" 2 3 4 > > > > > > > >#undef __need_iswxxx > > > > > >#define __iswxxx_defined 1 > > > > >typedef unsigned long int wctype_t; > ># 64 "/usr/include/wctype.h" 3 4 >#define _ISwbit(bit) ((bit) < 8 ? (int) ((1UL << (bit)) << 24) : ((bit) < 16 ? (int) ((1UL << (bit)) << 8) : ((bit) < 24 ? (int) ((1UL << (bit)) >> 8) : (int) ((1UL << (bit)) >> 24)))) > > > > > > >enum >{ > __ISwupper = 0, > __ISwlower = 1, > __ISwalpha = 2, > __ISwdigit = 3, > __ISwxdigit = 4, > __ISwspace = 5, > __ISwprint = 6, > __ISwgraph = 7, > __ISwblank = 8, > __ISwcntrl = 9, > __ISwpunct = 10, > __ISwalnum = 11, > > _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), > _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), > _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), > _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), > _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), > _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), > _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), > _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), > _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), > _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), > _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), > _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) >}; > > > >extern "C" { > > > > > > > > >extern int iswalnum (wint_t __wc) throw (); > > > > > >extern int iswalpha (wint_t __wc) throw (); > > >extern int iswcntrl (wint_t __wc) throw (); > > > >extern int iswdigit (wint_t __wc) throw (); > > > >extern int iswgraph (wint_t __wc) throw (); > > > > >extern int iswlower (wint_t __wc) throw (); > > >extern int iswprint (wint_t __wc) throw (); > > > > >extern int iswpunct (wint_t __wc) throw (); > > > > >extern int iswspace (wint_t __wc) throw (); > > > > >extern int iswupper (wint_t __wc) throw (); > > > > >extern int iswxdigit (wint_t __wc) throw (); > > > > > >extern int iswblank (wint_t __wc) throw (); ># 171 "/usr/include/wctype.h" 3 4 >extern wctype_t wctype (const char *__property) throw (); > > > >extern int iswctype (wint_t __wc, wctype_t __desc) throw (); > > > > > > > > > > >typedef const __int32_t *wctrans_t; > > > > > > > >extern wint_t towlower (wint_t __wc) throw (); > > >extern wint_t towupper (wint_t __wc) throw (); > > >} ># 213 "/usr/include/wctype.h" 3 4 >extern "C" { > > > > >extern wctrans_t wctrans (const char *__property) throw (); > > >extern wint_t towctrans (wint_t __wc, wctrans_t __desc) throw (); > > > > > > > > >extern int iswalnum_l (wint_t __wc, __locale_t __locale) throw (); > > > > > >extern int iswalpha_l (wint_t __wc, __locale_t __locale) throw (); > > >extern int iswcntrl_l (wint_t __wc, __locale_t __locale) throw (); > > > >extern int iswdigit_l (wint_t __wc, __locale_t __locale) throw (); > > > >extern int iswgraph_l (wint_t __wc, __locale_t __locale) throw (); > > > > >extern int iswlower_l (wint_t __wc, __locale_t __locale) throw (); > > >extern int iswprint_l (wint_t __wc, __locale_t __locale) throw (); > > > > >extern int iswpunct_l (wint_t __wc, __locale_t __locale) throw (); > > > > >extern int iswspace_l (wint_t __wc, __locale_t __locale) throw (); > > > > >extern int iswupper_l (wint_t __wc, __locale_t __locale) throw (); > > > > >extern int iswxdigit_l (wint_t __wc, __locale_t __locale) throw (); > > > > >extern int iswblank_l (wint_t __wc, __locale_t __locale) throw (); > > > >extern wctype_t wctype_l (const char *__property, __locale_t __locale) > throw (); > > > >extern int iswctype_l (wint_t __wc, wctype_t __desc, __locale_t __locale) > throw (); > > > > > > > >extern wint_t towlower_l (wint_t __wc, __locale_t __locale) throw (); > > >extern wint_t towupper_l (wint_t __wc, __locale_t __locale) throw (); > > > >extern wctrans_t wctrans_l (const char *__property, __locale_t __locale) > throw (); > > >extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, > __locale_t __locale) throw (); > > > >} ># 51 "/usr/include/c++/4.8.2/cwctype" 2 3 > > > >#define _GLIBCXX_CWCTYPE 1 > > >#undef iswalnum >#undef iswalpha > >#undef iswblank > >#undef iswcntrl >#undef iswctype >#undef iswdigit >#undef iswgraph >#undef iswlower >#undef iswprint >#undef iswpunct >#undef iswspace >#undef iswupper >#undef iswxdigit >#undef towctrans >#undef towlower >#undef towupper >#undef wctrans >#undef wctype > > > >namespace std >{ > using ::wctrans_t; > using ::wctype_t; > using ::wint_t; > > using ::iswalnum; > using ::iswalpha; > > using ::iswblank; > > using ::iswcntrl; > using ::iswctype; > using ::iswdigit; > using ::iswgraph; > using ::iswlower; > using ::iswprint; > using ::iswpunct; > using ::iswspace; > using ::iswupper; > using ::iswxdigit; > using ::towctrans; > using ::towlower; > using ::towupper; > using ::wctrans; > using ::wctype; >} ># 40 "/usr/include/c++/4.8.2/bits/locale_facets.h" 2 3 ># 1 "/usr/include/c++/4.8.2/cctype" 1 3 ># 39 "/usr/include/c++/4.8.2/cctype" 3 > ># 40 "/usr/include/c++/4.8.2/cctype" 3 ># 41 "/usr/include/c++/4.8.2/bits/locale_facets.h" 2 3 ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/ctype_base.h" 1 3 ># 36 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/ctype_base.h" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > struct ctype_base > { > > typedef const int* __to_type; > > > > typedef unsigned short mask; > static const mask upper = _ISupper; > static const mask lower = _ISlower; > static const mask alpha = _ISalpha; > static const mask digit = _ISdigit; > static const mask xdigit = _ISxdigit; > static const mask space = _ISspace; > static const mask print = _ISprint; > static const mask graph = _ISalpha | _ISdigit | _ISpunct; > static const mask cntrl = _IScntrl; > static const mask punct = _ISpunct; > static const mask alnum = _ISalpha | _ISdigit; > }; > > >} ># 42 "/usr/include/c++/4.8.2/bits/locale_facets.h" 2 3 > > > > > > ># 1 "/usr/include/c++/4.8.2/bits/streambuf_iterator.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/streambuf_iterator.h" 3 >#define _STREAMBUF_ITERATOR_H 1 > > ># 34 "/usr/include/c++/4.8.2/bits/streambuf_iterator.h" 3 > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 49 "/usr/include/c++/4.8.2/bits/streambuf_iterator.h" 3 > template<typename _CharT, typename _Traits> > class istreambuf_iterator > : public iterator<input_iterator_tag, _CharT, typename _Traits::off_type, > _CharT*, > > > > > _CharT&> > > { > public: > > > > typedef _CharT char_type; > typedef _Traits traits_type; > typedef typename _Traits::int_type int_type; > typedef basic_streambuf<_CharT, _Traits> streambuf_type; > typedef basic_istream<_CharT, _Traits> istream_type; > > > template<typename _CharT2> > friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, > ostreambuf_iterator<_CharT2> >::__type > copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, > ostreambuf_iterator<_CharT2>); > > template<bool _IsMove, typename _CharT2> > friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, > _CharT2*>::__type > __copy_move_a2(istreambuf_iterator<_CharT2>, > istreambuf_iterator<_CharT2>, _CharT2*); > > template<typename _CharT2> > friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, > istreambuf_iterator<_CharT2> >::__type > find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, > const _CharT2&); > > private: > > > > > > > > mutable streambuf_type* _M_sbuf; > mutable int_type _M_c; > > public: > > istreambuf_iterator() throw() > : _M_sbuf(0), _M_c(traits_type::eof()) { } ># 112 "/usr/include/c++/4.8.2/bits/streambuf_iterator.h" 3 > istreambuf_iterator(istream_type& __s) throw() > : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } > > > istreambuf_iterator(streambuf_type* __s) throw() > : _M_sbuf(__s), _M_c(traits_type::eof()) { } > > > > > char_type > operator*() const > { > > > > > > > > return traits_type::to_char_type(_M_get()); > } > > > istreambuf_iterator& > operator++() > { > > > ; > if (_M_sbuf) > { > _M_sbuf->sbumpc(); > _M_c = traits_type::eof(); > } > return *this; > } > > > istreambuf_iterator > operator++(int) > { > > > ; > > istreambuf_iterator __old = *this; > if (_M_sbuf) > { > __old._M_c = _M_sbuf->sbumpc(); > _M_c = traits_type::eof(); > } > return __old; > } > > > > > > bool > equal(const istreambuf_iterator& __b) const > { return _M_at_eof() == __b._M_at_eof(); } > > private: > int_type > _M_get() const > { > const int_type __eof = traits_type::eof(); > int_type __ret = __eof; > if (_M_sbuf) > { > if (!traits_type::eq_int_type(_M_c, __eof)) > __ret = _M_c; > else if (!traits_type::eq_int_type((__ret = _M_sbuf->sgetc()), > __eof)) > _M_c = __ret; > else > _M_sbuf = 0; > } > return __ret; > } > > bool > _M_at_eof() const > { > const int_type __eof = traits_type::eof(); > return traits_type::eq_int_type(_M_get(), __eof); > } > }; > > template<typename _CharT, typename _Traits> > inline bool > operator==(const istreambuf_iterator<_CharT, _Traits>& __a, > const istreambuf_iterator<_CharT, _Traits>& __b) > { return __a.equal(__b); } > > template<typename _CharT, typename _Traits> > inline bool > operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, > const istreambuf_iterator<_CharT, _Traits>& __b) > { return !__a.equal(__b); } > > > template<typename _CharT, typename _Traits> > class ostreambuf_iterator > : public iterator<output_iterator_tag, void, void, void, void> > { > public: > > > > typedef _CharT char_type; > typedef _Traits traits_type; > typedef basic_streambuf<_CharT, _Traits> streambuf_type; > typedef basic_ostream<_CharT, _Traits> ostream_type; > > > template<typename _CharT2> > friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, > ostreambuf_iterator<_CharT2> >::__type > copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, > ostreambuf_iterator<_CharT2>); > > private: > streambuf_type* _M_sbuf; > bool _M_failed; > > public: > > ostreambuf_iterator(ostream_type& __s) throw() > : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } > > > ostreambuf_iterator(streambuf_type* __s) throw() > : _M_sbuf(__s), _M_failed(!_M_sbuf) { } > > > ostreambuf_iterator& > operator=(_CharT __c) > { > if (!_M_failed && > _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) > _M_failed = true; > return *this; > } > > > ostreambuf_iterator& > operator*() > { return *this; } > > > ostreambuf_iterator& > operator++(int) > { return *this; } > > > ostreambuf_iterator& > operator++() > { return *this; } > > > bool > failed() const throw() > { return _M_failed; } > > ostreambuf_iterator& > _M_put(const _CharT* __ws, streamsize __len) > { > if (__builtin_expect(!_M_failed, true) > && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, > false)) > _M_failed = true; > return *this; > } > }; > > > template<typename _CharT> > typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, > ostreambuf_iterator<_CharT> >::__type > copy(istreambuf_iterator<_CharT> __first, > istreambuf_iterator<_CharT> __last, > ostreambuf_iterator<_CharT> __result) > { > if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) > { > bool __ineof; > __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); > if (!__ineof) > __result._M_failed = true; > } > return __result; > } > > template<bool _IsMove, typename _CharT> > typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, > ostreambuf_iterator<_CharT> >::__type > __copy_move_a2(_CharT* __first, _CharT* __last, > ostreambuf_iterator<_CharT> __result) > { > const streamsize __num = __last - __first; > if (__num > 0) > __result._M_put(__first, __num); > return __result; > } > > template<bool _IsMove, typename _CharT> > typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, > ostreambuf_iterator<_CharT> >::__type > __copy_move_a2(const _CharT* __first, const _CharT* __last, > ostreambuf_iterator<_CharT> __result) > { > const streamsize __num = __last - __first; > if (__num > 0) > __result._M_put(__first, __num); > return __result; > } > > template<bool _IsMove, typename _CharT> > typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, > _CharT*>::__type > __copy_move_a2(istreambuf_iterator<_CharT> __first, > istreambuf_iterator<_CharT> __last, _CharT* __result) > { > typedef istreambuf_iterator<_CharT> __is_iterator_type; > typedef typename __is_iterator_type::traits_type traits_type; > typedef typename __is_iterator_type::streambuf_type streambuf_type; > typedef typename traits_type::int_type int_type; > > if (__first._M_sbuf && !__last._M_sbuf) > { > streambuf_type* __sb = __first._M_sbuf; > int_type __c = __sb->sgetc(); > while (!traits_type::eq_int_type(__c, traits_type::eof())) > { > const streamsize __n = __sb->egptr() - __sb->gptr(); > if (__n > 1) > { > traits_type::copy(__result, __sb->gptr(), __n); > __sb->__safe_gbump(__n); > __result += __n; > __c = __sb->underflow(); > } > else > { > *__result++ = traits_type::to_char_type(__c); > __c = __sb->snextc(); > } > } > } > return __result; > } > > template<typename _CharT> > typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, > istreambuf_iterator<_CharT> >::__type > find(istreambuf_iterator<_CharT> __first, > istreambuf_iterator<_CharT> __last, const _CharT& __val) > { > typedef istreambuf_iterator<_CharT> __is_iterator_type; > typedef typename __is_iterator_type::traits_type traits_type; > typedef typename __is_iterator_type::streambuf_type streambuf_type; > typedef typename traits_type::int_type int_type; > > if (__first._M_sbuf && !__last._M_sbuf) > { > const int_type __ival = traits_type::to_int_type(__val); > streambuf_type* __sb = __first._M_sbuf; > int_type __c = __sb->sgetc(); > while (!traits_type::eq_int_type(__c, traits_type::eof()) > && !traits_type::eq_int_type(__c, __ival)) > { > streamsize __n = __sb->egptr() - __sb->gptr(); > if (__n > 1) > { > const _CharT* __p = traits_type::find(__sb->gptr(), > __n, __val); > if (__p) > __n = __p - __sb->gptr(); > __sb->__safe_gbump(__n); > __c = __sb->sgetc(); > } > else > __c = __sb->snextc(); > } > > if (!traits_type::eq_int_type(__c, traits_type::eof())) > __first._M_c = __c; > else > __first._M_sbuf = 0; > } > return __first; > } > > > > >} ># 49 "/usr/include/c++/4.8.2/bits/locale_facets.h" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > >#define _GLIBCXX_NUM_FACETS 28 > > > > > > > > template<typename _Tp> > void > __convert_to_v(const char*, _Tp&, ios_base::iostate&, > const __c_locale&) throw(); > > > template<> > void > __convert_to_v(const char*, float&, ios_base::iostate&, > const __c_locale&) throw(); > > template<> > void > __convert_to_v(const char*, double&, ios_base::iostate&, > const __c_locale&) throw(); > > template<> > void > __convert_to_v(const char*, long double&, ios_base::iostate&, > const __c_locale&) throw(); > > > > template<typename _CharT, typename _Traits> > struct __pad > { > static void > _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, > const _CharT* __olds, streamsize __newlen, streamsize __oldlen); > }; > > > > > > > template<typename _CharT> > _CharT* > __add_grouping(_CharT* __s, _CharT __sep, > const char* __gbeg, size_t __gsize, > const _CharT* __first, const _CharT* __last); > > > > > template<typename _CharT> > inline > ostreambuf_iterator<_CharT> > __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) > { > __s._M_put(__ws, __len); > return __s; > } > > > template<typename _CharT, typename _OutIter> > inline > _OutIter > __write(_OutIter __s, const _CharT* __ws, int __len) > { > for (int __j = 0; __j < __len; __j++, ++__s) > *__s = __ws[__j]; > return __s; > } ># 142 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > template<typename _CharT> > class __ctype_abstract_base : public locale::facet, public ctype_base > { > public: > > > typedef _CharT char_type; ># 161 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > bool > is(mask __m, char_type __c) const > { return this->do_is(__m, __c); } ># 178 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char_type* > is(const char_type *__lo, const char_type *__hi, mask *__vec) const > { return this->do_is(__lo, __hi, __vec); } ># 194 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char_type* > scan_is(mask __m, const char_type* __lo, const char_type* __hi) const > { return this->do_scan_is(__m, __lo, __hi); } ># 210 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char_type* > scan_not(mask __m, const char_type* __lo, const char_type* __hi) const > { return this->do_scan_not(__m, __lo, __hi); } ># 224 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char_type > toupper(char_type __c) const > { return this->do_toupper(__c); } ># 239 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char_type* > toupper(char_type *__lo, const char_type* __hi) const > { return this->do_toupper(__lo, __hi); } ># 253 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char_type > tolower(char_type __c) const > { return this->do_tolower(__c); } ># 268 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char_type* > tolower(char_type* __lo, const char_type* __hi) const > { return this->do_tolower(__lo, __hi); } ># 285 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char_type > widen(char __c) const > { return this->do_widen(__c); } ># 304 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char* > widen(const char* __lo, const char* __hi, char_type* __to) const > { return this->do_widen(__lo, __hi, __to); } ># 323 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char > narrow(char_type __c, char __dfault) const > { return this->do_narrow(__c, __dfault); } ># 345 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char_type* > narrow(const char_type* __lo, const char_type* __hi, > char __dfault, char* __to) const > { return this->do_narrow(__lo, __hi, __dfault, __to); } > > protected: > explicit > __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } > > virtual > ~__ctype_abstract_base() { } ># 370 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual bool > do_is(mask __m, char_type __c) const = 0; ># 389 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_is(const char_type* __lo, const char_type* __hi, > mask* __vec) const = 0; ># 408 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_scan_is(mask __m, const char_type* __lo, > const char_type* __hi) const = 0; ># 427 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_scan_not(mask __m, const char_type* __lo, > const char_type* __hi) const = 0; ># 445 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_toupper(char_type __c) const = 0; ># 462 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_toupper(char_type* __lo, const char_type* __hi) const = 0; ># 478 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_tolower(char_type __c) const = 0; ># 495 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_tolower(char_type* __lo, const char_type* __hi) const = 0; ># 514 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_widen(char __c) const = 0; ># 535 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char* > do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; ># 556 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char > do_narrow(char_type __c, char __dfault) const = 0; ># 581 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_narrow(const char_type* __lo, const char_type* __hi, > char __dfault, char* __to) const = 0; > }; ># 604 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > template<typename _CharT> > class ctype : public __ctype_abstract_base<_CharT> > { > public: > > typedef _CharT char_type; > typedef typename __ctype_abstract_base<_CharT>::mask mask; > > > static locale::id id; > > explicit > ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } > > protected: > virtual > ~ctype(); > > virtual bool > do_is(mask __m, char_type __c) const; > > virtual const char_type* > do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; > > virtual const char_type* > do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; > > virtual const char_type* > do_scan_not(mask __m, const char_type* __lo, > const char_type* __hi) const; > > virtual char_type > do_toupper(char_type __c) const; > > virtual const char_type* > do_toupper(char_type* __lo, const char_type* __hi) const; > > virtual char_type > do_tolower(char_type __c) const; > > virtual const char_type* > do_tolower(char_type* __lo, const char_type* __hi) const; > > virtual char_type > do_widen(char __c) const; > > virtual const char* > do_widen(const char* __lo, const char* __hi, char_type* __dest) const; > > virtual char > do_narrow(char_type, char __dfault) const; > > virtual const char_type* > do_narrow(const char_type* __lo, const char_type* __hi, > char __dfault, char* __to) const; > }; > > template<typename _CharT> > locale::id ctype<_CharT>::id; ># 673 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > template<> > class ctype<char> : public locale::facet, public ctype_base > { > public: > > > typedef char char_type; > > protected: > > __c_locale _M_c_locale_ctype; > bool _M_del; > __to_type _M_toupper; > __to_type _M_tolower; > const mask* _M_table; > mutable char _M_widen_ok; > mutable char _M_widen[1 + static_cast<unsigned char>(-1)]; > mutable char _M_narrow[1 + static_cast<unsigned char>(-1)]; > mutable char _M_narrow_ok; > > > public: > > static locale::id id; > > static const size_t table_size = 1 + static_cast<unsigned char>(-1); ># 710 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > explicit > ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); ># 723 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > explicit > ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, > size_t __refs = 0); ># 736 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > inline bool > is(mask __m, char __c) const; ># 751 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > inline const char* > is(const char* __lo, const char* __hi, mask* __vec) const; ># 765 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > inline const char* > scan_is(mask __m, const char* __lo, const char* __hi) const; ># 779 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > inline const char* > scan_not(mask __m, const char* __lo, const char* __hi) const; ># 794 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char_type > toupper(char_type __c) const > { return this->do_toupper(__c); } ># 811 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char_type* > toupper(char_type *__lo, const char_type* __hi) const > { return this->do_toupper(__lo, __hi); } ># 827 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char_type > tolower(char_type __c) const > { return this->do_tolower(__c); } ># 844 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char_type* > tolower(char_type* __lo, const char_type* __hi) const > { return this->do_tolower(__lo, __hi); } ># 864 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char_type > widen(char __c) const > { > if (_M_widen_ok) > return _M_widen[static_cast<unsigned char>(__c)]; > this->_M_widen_init(); > return this->do_widen(__c); > } ># 891 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char* > widen(const char* __lo, const char* __hi, char_type* __to) const > { > if (_M_widen_ok == 1) > { > __builtin_memcpy(__to, __lo, __hi - __lo); > return __hi; > } > if (!_M_widen_ok) > _M_widen_init(); > return this->do_widen(__lo, __hi, __to); > } ># 922 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char > narrow(char_type __c, char __dfault) const > { > if (_M_narrow[static_cast<unsigned char>(__c)]) > return _M_narrow[static_cast<unsigned char>(__c)]; > const char __t = do_narrow(__c, __dfault); > if (__t != __dfault) > _M_narrow[static_cast<unsigned char>(__c)] = __t; > return __t; > } ># 955 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > const char_type* > narrow(const char_type* __lo, const char_type* __hi, > char __dfault, char* __to) const > { > if (__builtin_expect(_M_narrow_ok == 1, true)) > { > __builtin_memcpy(__to, __lo, __hi - __lo); > return __hi; > } > if (!_M_narrow_ok) > _M_narrow_init(); > return this->do_narrow(__lo, __hi, __dfault, __to); > } > > > > > > const mask* > table() const throw() > { return _M_table; } > > > static const mask* > classic_table() throw(); > protected: > > > > > > > > virtual > ~ctype(); ># 1004 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_toupper(char_type __c) const; ># 1021 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_toupper(char_type* __lo, const char_type* __hi) const; ># 1037 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_tolower(char_type __c) const; ># 1054 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_tolower(char_type* __lo, const char_type* __hi) const; ># 1074 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_widen(char __c) const > { return __c; } ># 1097 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char* > do_widen(const char* __lo, const char* __hi, char_type* __to) const > { > __builtin_memcpy(__to, __lo, __hi - __lo); > return __hi; > } ># 1123 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char > do_narrow(char_type __c, char __dfault) const > { return __c; } ># 1149 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_narrow(const char_type* __lo, const char_type* __hi, > char __dfault, char* __to) const > { > __builtin_memcpy(__to, __lo, __hi - __lo); > return __hi; > } > > private: > void _M_narrow_init() const; > void _M_widen_init() const; > }; ># 1174 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > template<> > class ctype<wchar_t> : public __ctype_abstract_base<wchar_t> > { > public: > > > typedef wchar_t char_type; > typedef wctype_t __wmask_type; > > protected: > __c_locale _M_c_locale_ctype; > > > bool _M_narrow_ok; > char _M_narrow[128]; > wint_t _M_widen[1 + static_cast<unsigned char>(-1)]; > > > mask _M_bit[16]; > __wmask_type _M_wmask[16]; > > public: > > > static locale::id id; ># 1207 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > explicit > ctype(size_t __refs = 0); ># 1218 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > explicit > ctype(__c_locale __cloc, size_t __refs = 0); > > protected: > __wmask_type > _M_convert_to_wmask(const mask __m) const throw(); > > > virtual > ~ctype(); ># 1242 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual bool > do_is(mask __m, char_type __c) const; ># 1261 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; ># 1279 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; ># 1297 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_scan_not(mask __m, const char_type* __lo, > const char_type* __hi) const; ># 1314 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_toupper(char_type __c) const; ># 1331 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_toupper(char_type* __lo, const char_type* __hi) const; ># 1347 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_tolower(char_type __c) const; ># 1364 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_tolower(char_type* __lo, const char_type* __hi) const; ># 1384 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_widen(char __c) const; ># 1406 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char* > do_widen(const char* __lo, const char* __hi, char_type* __to) const; ># 1429 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char > do_narrow(char_type __c, char __dfault) const; ># 1455 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual const char_type* > do_narrow(const char_type* __lo, const char_type* __hi, > char __dfault, char* __to) const; > > > void > _M_initialize_ctype() throw(); > }; > > > > template<typename _CharT> > class ctype_byname : public ctype<_CharT> > { > public: > typedef typename ctype<_CharT>::mask mask; > > explicit > ctype_byname(const char* __s, size_t __refs = 0); > > protected: > virtual > ~ctype_byname() { }; > }; > > > template<> > class ctype_byname<char> : public ctype<char> > { > public: > explicit > ctype_byname(const char* __s, size_t __refs = 0); > > protected: > virtual > ~ctype_byname(); > }; > > > template<> > class ctype_byname<wchar_t> : public ctype<wchar_t> > { > public: > explicit > ctype_byname(const char* __s, size_t __refs = 0); > > protected: > virtual > ~ctype_byname(); > }; > > > >} > > ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/ctype_inline.h" 1 3 ># 37 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/ctype_inline.h" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > bool > ctype<char>:: > is(mask __m, char __c) const > { return _M_table[static_cast<unsigned char>(__c)] & __m; } > > const char* > ctype<char>:: > is(const char* __low, const char* __high, mask* __vec) const > { > while (__low < __high) > *__vec++ = _M_table[static_cast<unsigned char>(*__low++)]; > return __high; > } > > const char* > ctype<char>:: > scan_is(mask __m, const char* __low, const char* __high) const > { > while (__low < __high > && !(_M_table[static_cast<unsigned char>(*__low)] & __m)) > ++__low; > return __low; > } > > const char* > ctype<char>:: > scan_not(mask __m, const char* __low, const char* __high) const > { > while (__low < __high > && (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0) > ++__low; > return __low; > } > > >} ># 1512 "/usr/include/c++/4.8.2/bits/locale_facets.h" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > class __num_base > { > public: > > > enum > { > _S_ominus, > _S_oplus, > _S_ox, > _S_oX, > _S_odigits, > _S_odigits_end = _S_odigits + 16, > _S_oudigits = _S_odigits_end, > _S_oudigits_end = _S_oudigits + 16, > _S_oe = _S_odigits + 14, > _S_oE = _S_oudigits + 14, > _S_oend = _S_oudigits_end > }; > > > > > > > static const char* _S_atoms_out; > > > > static const char* _S_atoms_in; > > enum > { > _S_iminus, > _S_iplus, > _S_ix, > _S_iX, > _S_izero, > _S_ie = _S_izero + 14, > _S_iE = _S_izero + 20, > _S_iend = 26 > }; > > > > static void > _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); > }; > > template<typename _CharT> > struct __numpunct_cache : public locale::facet > { > const char* _M_grouping; > size_t _M_grouping_size; > bool _M_use_grouping; > const _CharT* _M_truename; > size_t _M_truename_size; > const _CharT* _M_falsename; > size_t _M_falsename_size; > _CharT _M_decimal_point; > _CharT _M_thousands_sep; > > > > > > _CharT _M_atoms_out[__num_base::_S_oend]; > > > > > > _CharT _M_atoms_in[__num_base::_S_iend]; > > bool _M_allocated; > > __numpunct_cache(size_t __refs = 0) > : facet(__refs), _M_grouping(0), _M_grouping_size(0), > _M_use_grouping(false), > _M_truename(0), _M_truename_size(0), _M_falsename(0), > _M_falsename_size(0), _M_decimal_point(_CharT()), > _M_thousands_sep(_CharT()), _M_allocated(false) > { } > > ~__numpunct_cache(); > > void > _M_cache(const locale& __loc); > > private: > __numpunct_cache& > operator=(const __numpunct_cache&); > > explicit > __numpunct_cache(const __numpunct_cache&); > }; > > template<typename _CharT> > __numpunct_cache<_CharT>::~__numpunct_cache() > { > if (_M_allocated) > { > delete [] _M_grouping; > delete [] _M_truename; > delete [] _M_falsename; > } > } ># 1640 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > template<typename _CharT> > class numpunct : public locale::facet > { > public: > > > > typedef _CharT char_type; > typedef basic_string<_CharT> string_type; > > typedef __numpunct_cache<_CharT> __cache_type; > > protected: > __cache_type* _M_data; > > public: > > static locale::id id; > > > > > > > explicit > numpunct(size_t __refs = 0) > : facet(__refs), _M_data(0) > { _M_initialize_numpunct(); } ># 1678 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > explicit > numpunct(__cache_type* __cache, size_t __refs = 0) > : facet(__refs), _M_data(__cache) > { _M_initialize_numpunct(); } ># 1692 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > explicit > numpunct(__c_locale __cloc, size_t __refs = 0) > : facet(__refs), _M_data(0) > { _M_initialize_numpunct(__cloc); } ># 1706 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char_type > decimal_point() const > { return this->do_decimal_point(); } ># 1719 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > char_type > thousands_sep() const > { return this->do_thousands_sep(); } ># 1750 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > string > grouping() const > { return this->do_grouping(); } ># 1763 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > string_type > truename() const > { return this->do_truename(); } ># 1776 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > string_type > falsename() const > { return this->do_falsename(); } > > protected: > > virtual > ~numpunct(); ># 1793 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_decimal_point() const > { return _M_data->_M_decimal_point; } ># 1805 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual char_type > do_thousands_sep() const > { return _M_data->_M_thousands_sep; } ># 1818 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual string > do_grouping() const > { return _M_data->_M_grouping; } ># 1831 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual string_type > do_truename() const > { return _M_data->_M_truename; } ># 1844 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual string_type > do_falsename() const > { return _M_data->_M_falsename; } > > > void > _M_initialize_numpunct(__c_locale __cloc = 0); > }; > > template<typename _CharT> > locale::id numpunct<_CharT>::id; > > template<> > numpunct<char>::~numpunct(); > > template<> > void > numpunct<char>::_M_initialize_numpunct(__c_locale __cloc); > > > template<> > numpunct<wchar_t>::~numpunct(); > > template<> > void > numpunct<wchar_t>::_M_initialize_numpunct(__c_locale __cloc); > > > > template<typename _CharT> > class numpunct_byname : public numpunct<_CharT> > { > public: > typedef _CharT char_type; > typedef basic_string<_CharT> string_type; > > explicit > numpunct_byname(const char* __s, size_t __refs = 0) > : numpunct<_CharT>(__refs) > { > if (__builtin_strcmp(__s, "C") != 0 > && __builtin_strcmp(__s, "POSIX") != 0) > { > __c_locale __tmp; > this->_S_create_c_locale(__tmp, __s); > this->_M_initialize_numpunct(__tmp); > this->_S_destroy_c_locale(__tmp); > } > } > > protected: > virtual > ~numpunct_byname() { } > }; > > ># 1914 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > template<typename _CharT, typename _InIter> > class num_get : public locale::facet > { > public: > > > > typedef _CharT char_type; > typedef _InIter iter_type; > > > > static locale::id id; ># 1935 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > explicit > num_get(size_t __refs = 0) : facet(__refs) { } ># 1961 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, bool& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } ># 1998 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, long& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } > > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, unsigned short& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } > > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, unsigned int& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } > > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, unsigned long& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } > > > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, long long& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } > > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, unsigned long long& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } ># 2058 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, float& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } > > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, double& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } > > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, long double& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } ># 2101 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > iter_type > get(iter_type __in, iter_type __end, ios_base& __io, > ios_base::iostate& __err, void*& __v) const > { return this->do_get(__in, __end, __io, __err, __v); } > > protected: > > virtual ~num_get() { } > > iter_type > _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, > string&) const; > > template<typename _ValueT> > iter_type > _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, > _ValueT&) const; > > template<typename _CharT2> > typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type > _M_find(const _CharT2*, size_t __len, _CharT2 __c) const > { > int __ret = -1; > if (__len <= 10) > { > if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) > __ret = __c - _CharT2('0'); > } > else > { > if (__c >= _CharT2('0') && __c <= _CharT2('9')) > __ret = __c - _CharT2('0'); > else if (__c >= _CharT2('a') && __c <= _CharT2('f')) > __ret = 10 + (__c - _CharT2('a')); > else if (__c >= _CharT2('A') && __c <= _CharT2('F')) > __ret = 10 + (__c - _CharT2('A')); > } > return __ret; > } > > template<typename _CharT2> > typename __gnu_cxx::__enable_if<!__is_char<_CharT2>::__value, > int>::__type > _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const > { > int __ret = -1; > const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); > if (__q) > { > __ret = __q - __zero; > if (__ret > 15) > __ret -= 6; > } > return __ret; > } ># 2172 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual iter_type > do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; > > virtual iter_type > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, long& __v) const > { return _M_extract_int(__beg, __end, __io, __err, __v); } > > virtual iter_type > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, unsigned short& __v) const > { return _M_extract_int(__beg, __end, __io, __err, __v); } > > virtual iter_type > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, unsigned int& __v) const > { return _M_extract_int(__beg, __end, __io, __err, __v); } > > virtual iter_type > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, unsigned long& __v) const > { return _M_extract_int(__beg, __end, __io, __err, __v); } > > > virtual iter_type > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, long long& __v) const > { return _M_extract_int(__beg, __end, __io, __err, __v); } > > virtual iter_type > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, unsigned long long& __v) const > { return _M_extract_int(__beg, __end, __io, __err, __v); } > > > virtual iter_type > do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; > > virtual iter_type > do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, > double&) const; > > > > > > > > virtual iter_type > do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, > long double&) const; > > > virtual iter_type > do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; ># 2235 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > }; > > template<typename _CharT, typename _InIter> > locale::id num_get<_CharT, _InIter>::id; ># 2253 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > template<typename _CharT, typename _OutIter> > class num_put : public locale::facet > { > public: > > > > typedef _CharT char_type; > typedef _OutIter iter_type; > > > > static locale::id id; ># 2274 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > explicit > num_put(size_t __refs = 0) : facet(__refs) { } ># 2292 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > iter_type > put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const > { return this->do_put(__s, __io, __fill, __v); } ># 2334 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > iter_type > put(iter_type __s, ios_base& __io, char_type __fill, long __v) const > { return this->do_put(__s, __io, __fill, __v); } > > iter_type > put(iter_type __s, ios_base& __io, char_type __fill, > unsigned long __v) const > { return this->do_put(__s, __io, __fill, __v); } > > > iter_type > put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const > { return this->do_put(__s, __io, __fill, __v); } > > iter_type > put(iter_type __s, ios_base& __io, char_type __fill, > unsigned long long __v) const > { return this->do_put(__s, __io, __fill, __v); } ># 2397 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > iter_type > put(iter_type __s, ios_base& __io, char_type __fill, double __v) const > { return this->do_put(__s, __io, __fill, __v); } > > iter_type > put(iter_type __s, ios_base& __io, char_type __fill, > long double __v) const > { return this->do_put(__s, __io, __fill, __v); } ># 2422 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > iter_type > put(iter_type __s, ios_base& __io, char_type __fill, > const void* __v) const > { return this->do_put(__s, __io, __fill, __v); } > > protected: > template<typename _ValueT> > iter_type > _M_insert_float(iter_type, ios_base& __io, char_type __fill, > char __mod, _ValueT __v) const; > > void > _M_group_float(const char* __grouping, size_t __grouping_size, > char_type __sep, const char_type* __p, char_type* __new, > char_type* __cs, int& __len) const; > > template<typename _ValueT> > iter_type > _M_insert_int(iter_type, ios_base& __io, char_type __fill, > _ValueT __v) const; > > void > _M_group_int(const char* __grouping, size_t __grouping_size, > char_type __sep, ios_base& __io, char_type* __new, > char_type* __cs, int& __len) const; > > void > _M_pad(char_type __fill, streamsize __w, ios_base& __io, > char_type* __new, const char_type* __cs, int& __len) const; > > > virtual > ~num_put() { }; ># 2470 "/usr/include/c++/4.8.2/bits/locale_facets.h" 3 > virtual iter_type > do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; > > virtual iter_type > do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const > { return _M_insert_int(__s, __io, __fill, __v); } > > virtual iter_type > do_put(iter_type __s, ios_base& __io, char_type __fill, > unsigned long __v) const > { return _M_insert_int(__s, __io, __fill, __v); } > > > virtual iter_type > do_put(iter_type __s, ios_base& __io, char_type __fill, > long long __v) const > { return _M_insert_int(__s, __io, __fill, __v); } > > virtual iter_type > do_put(iter_type __s, ios_base& __io, char_type __fill, > unsigned long long __v) const > { return _M_insert_int(__s, __io, __fill, __v); } > > > virtual iter_type > do_put(iter_type, ios_base&, char_type, double) const; > > > > > > > virtual iter_type > do_put(iter_type, ios_base&, char_type, long double) const; > > > virtual iter_type > do_put(iter_type, ios_base&, char_type, const void*) const; > > > > > > > > }; > > template <typename _CharT, typename _OutIter> > locale::id num_put<_CharT, _OutIter>::id; > > > > > > > > > > template<typename _CharT> > inline bool > isspace(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::space, __c); } > > > template<typename _CharT> > inline bool > isprint(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::print, __c); } > > > template<typename _CharT> > inline bool > iscntrl(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c); } > > > template<typename _CharT> > inline bool > isupper(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, __c); } > > > template<typename _CharT> > inline bool > islower(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::lower, __c); } > > > template<typename _CharT> > inline bool > isalpha(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alpha, __c); } > > > template<typename _CharT> > inline bool > isdigit(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::digit, __c); } > > > template<typename _CharT> > inline bool > ispunct(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::punct, __c); } > > > template<typename _CharT> > inline bool > isxdigit(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::xdigit, __c); } > > > template<typename _CharT> > inline bool > isalnum(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alnum, __c); } > > > template<typename _CharT> > inline bool > isgraph(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::graph, __c); } > > > template<typename _CharT> > inline _CharT > toupper(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).toupper(__c); } > > > template<typename _CharT> > inline _CharT > tolower(_CharT __c, const locale& __loc) > { return use_facet<ctype<_CharT> >(__loc).tolower(__c); } > > >} > ># 1 "/usr/include/c++/4.8.2/bits/locale_facets.tcc" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/locale_facets.tcc" 3 >#define _LOCALE_FACETS_TCC 1 > > ># 34 "/usr/include/c++/4.8.2/bits/locale_facets.tcc" 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > template<typename _Facet> > struct __use_cache > { > const _Facet* > operator() (const locale& __loc) const; > }; > > > template<typename _CharT> > struct __use_cache<__numpunct_cache<_CharT> > > { > const __numpunct_cache<_CharT>* > operator() (const locale& __loc) const > { > const size_t __i = numpunct<_CharT>::id._M_id(); > const locale::facet** __caches = __loc._M_impl->_M_caches; > if (!__caches[__i]) > { > __numpunct_cache<_CharT>* __tmp = 0; > try > { > __tmp = new __numpunct_cache<_CharT>; > __tmp->_M_cache(__loc); > } > catch(...) > { > delete __tmp; > throw; > } > __loc._M_impl->_M_install_cache(__tmp, __i); > } > return static_cast<const __numpunct_cache<_CharT>*>(__caches[__i]); > } > }; > > template<typename _CharT> > void > __numpunct_cache<_CharT>::_M_cache(const locale& __loc) > { > _M_allocated = true; > > const numpunct<_CharT>& __np = use_facet<numpunct<_CharT> >(__loc); > > char* __grouping = 0; > _CharT* __truename = 0; > _CharT* __falsename = 0; > try > { > _M_grouping_size = __np.grouping().size(); > __grouping = new char[_M_grouping_size]; > __np.grouping().copy(__grouping, _M_grouping_size); > _M_grouping = __grouping; > _M_use_grouping = (_M_grouping_size > && static_cast<signed char>(_M_grouping[0]) > 0 > && (_M_grouping[0] > != __gnu_cxx::__numeric_traits<char>::__max)); > > _M_truename_size = __np.truename().size(); > __truename = new _CharT[_M_truename_size]; > __np.truename().copy(__truename, _M_truename_size); > _M_truename = __truename; > > _M_falsename_size = __np.falsename().size(); > __falsename = new _CharT[_M_falsename_size]; > __np.falsename().copy(__falsename, _M_falsename_size); > _M_falsename = __falsename; > > _M_decimal_point = __np.decimal_point(); > _M_thousands_sep = __np.thousands_sep(); > > const ctype<_CharT>& __ct = use_facet<ctype<_CharT> >(__loc); > __ct.widen(__num_base::_S_atoms_out, > __num_base::_S_atoms_out > + __num_base::_S_oend, _M_atoms_out); > __ct.widen(__num_base::_S_atoms_in, > __num_base::_S_atoms_in > + __num_base::_S_iend, _M_atoms_in); > } > catch(...) > { > delete [] __grouping; > delete [] __truename; > delete [] __falsename; > throw; > } > } ># 136 "/usr/include/c++/4.8.2/bits/locale_facets.tcc" 3 > __attribute__ ((__pure__)) bool > __verify_grouping(const char* __grouping, size_t __grouping_size, > const string& __grouping_tmp) throw (); > > > > template<typename _CharT, typename _InIter> > _InIter > num_get<_CharT, _InIter>:: > _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, > ios_base::iostate& __err, string& __xtrc) const > { > typedef char_traits<_CharT> __traits_type; > typedef __numpunct_cache<_CharT> __cache_type; > __use_cache<__cache_type> __uc; > const locale& __loc = __io._M_getloc(); > const __cache_type* __lc = __uc(__loc); > const _CharT* __lit = __lc->_M_atoms_in; > char_type __c = char_type(); > > > bool __testeof = __beg == __end; > > > if (!__testeof) > { > __c = *__beg; > const bool __plus = __c == __lit[__num_base::_S_iplus]; > if ((__plus || __c == __lit[__num_base::_S_iminus]) > && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) > && !(__c == __lc->_M_decimal_point)) > { > __xtrc += __plus ? '+' : '-'; > if (++__beg != __end) > __c = *__beg; > else > __testeof = true; > } > } > > > bool __found_mantissa = false; > int __sep_pos = 0; > while (!__testeof) > { > if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) > || __c == __lc->_M_decimal_point) > break; > else if (__c == __lit[__num_base::_S_izero]) > { > if (!__found_mantissa) > { > __xtrc += '0'; > __found_mantissa = true; > } > ++__sep_pos; > > if (++__beg != __end) > __c = *__beg; > else > __testeof = true; > } > else > break; > } > > > bool __found_dec = false; > bool __found_sci = false; > string __found_grouping; > if (__lc->_M_use_grouping) > __found_grouping.reserve(32); > const char_type* __lit_zero = __lit + __num_base::_S_izero; > > if (!__lc->_M_allocated) > > while (!__testeof) > { > const int __digit = _M_find(__lit_zero, 10, __c); > if (__digit != -1) > { > __xtrc += '0' + __digit; > __found_mantissa = true; > } > else if (__c == __lc->_M_decimal_point > && !__found_dec && !__found_sci) > { > __xtrc += '.'; > __found_dec = true; > } > else if ((__c == __lit[__num_base::_S_ie] > || __c == __lit[__num_base::_S_iE]) > && !__found_sci && __found_mantissa) > { > > __xtrc += 'e'; > __found_sci = true; > > > if (++__beg != __end) > { > __c = *__beg; > const bool __plus = __c == __lit[__num_base::_S_iplus]; > if (__plus || __c == __lit[__num_base::_S_iminus]) > __xtrc += __plus ? '+' : '-'; > else > continue; > } > else > { > __testeof = true; > break; > } > } > else > break; > > if (++__beg != __end) > __c = *__beg; > else > __testeof = true; > } > else > while (!__testeof) > { > > > if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) > { > if (!__found_dec && !__found_sci) > { > > > if (__sep_pos) > { > __found_grouping += static_cast<char>(__sep_pos); > __sep_pos = 0; > } > else > { > > > __xtrc.clear(); > break; > } > } > else > break; > } > else if (__c == __lc->_M_decimal_point) > { > if (!__found_dec && !__found_sci) > { > > > > if (__found_grouping.size()) > __found_grouping += static_cast<char>(__sep_pos); > __xtrc += '.'; > __found_dec = true; > } > else > break; > } > else > { > const char_type* __q = > __traits_type::find(__lit_zero, 10, __c); > if (__q) > { > __xtrc += '0' + (__q - __lit_zero); > __found_mantissa = true; > ++__sep_pos; > } > else if ((__c == __lit[__num_base::_S_ie] > || __c == __lit[__num_base::_S_iE]) > && !__found_sci && __found_mantissa) > { > > if (__found_grouping.size() && !__found_dec) > __found_grouping += static_cast<char>(__sep_pos); > __xtrc += 'e'; > __found_sci = true; > > > if (++__beg != __end) > { > __c = *__beg; > const bool __plus = __c == __lit[__num_base::_S_iplus]; > if ((__plus || __c == __lit[__num_base::_S_iminus]) > && !(__lc->_M_use_grouping > && __c == __lc->_M_thousands_sep) > && !(__c == __lc->_M_decimal_point)) > __xtrc += __plus ? '+' : '-'; > else > continue; > } > else > { > __testeof = true; > break; > } > } > else > break; > } > > if (++__beg != __end) > __c = *__beg; > else > __testeof = true; > } > > > > if (__found_grouping.size()) > { > > if (!__found_dec && !__found_sci) > __found_grouping += static_cast<char>(__sep_pos); > > if (!std::__verify_grouping(__lc->_M_grouping, > __lc->_M_grouping_size, > __found_grouping)) > __err = ios_base::failbit; > } > > return __beg; > } > > template<typename _CharT, typename _InIter> > template<typename _ValueT> > _InIter > num_get<_CharT, _InIter>:: > _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, > ios_base::iostate& __err, _ValueT& __v) const > { > typedef char_traits<_CharT> __traits_type; > using __gnu_cxx::__add_unsigned; > typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; > typedef __numpunct_cache<_CharT> __cache_type; > __use_cache<__cache_type> __uc; > const locale& __loc = __io._M_getloc(); > const __cache_type* __lc = __uc(__loc); > const _CharT* __lit = __lc->_M_atoms_in; > char_type __c = char_type(); > > > const ios_base::fmtflags __basefield = __io.flags() > & ios_base::basefield; > const bool __oct = __basefield == ios_base::oct; > int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); > > > bool __testeof = __beg == __end; > > > bool __negative = false; > if (!__testeof) > { > __c = *__beg; > __negative = __c == __lit[__num_base::_S_iminus]; > if ((__negative || __c == __lit[__num_base::_S_iplus]) > && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) > && !(__c == __lc->_M_decimal_point)) > { > if (++__beg != __end) > __c = *__beg; > else > __testeof = true; > } > } > > > > bool __found_zero = false; > int __sep_pos = 0; > while (!__testeof) > { > if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) > || __c == __lc->_M_decimal_point) > break; > else if (__c == __lit[__num_base::_S_izero] > && (!__found_zero || __base == 10)) > { > __found_zero = true; > ++__sep_pos; > if (__basefield == 0) > __base = 8; > if (__base == 8) > __sep_pos = 0; > } > else if (__found_zero > && (__c == __lit[__num_base::_S_ix] > || __c == __lit[__num_base::_S_iX])) > { > if (__basefield == 0) > __base = 16; > if (__base == 16) > { > __found_zero = false; > __sep_pos = 0; > } > else > break; > } > else > break; > > if (++__beg != __end) > { > __c = *__beg; > if (!__found_zero) > break; > } > else > __testeof = true; > } > > > > const size_t __len = (__base == 16 ? __num_base::_S_iend > - __num_base::_S_izero : __base); > > > string __found_grouping; > if (__lc->_M_use_grouping) > __found_grouping.reserve(32); > bool __testfail = false; > bool __testoverflow = false; > const __unsigned_type __max = > (__negative && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) > ? -__gnu_cxx::__numeric_traits<_ValueT>::__min > : __gnu_cxx::__numeric_traits<_ValueT>::__max; > const __unsigned_type __smax = __max / __base; > __unsigned_type __result = 0; > int __digit = 0; > const char_type* __lit_zero = __lit + __num_base::_S_izero; > > if (!__lc->_M_allocated) > > while (!__testeof) > { > __digit = _M_find(__lit_zero, __len, __c); > if (__digit == -1) > break; > > if (__result > __smax) > __testoverflow = true; > else > { > __result *= __base; > __testoverflow |= __result > __max - __digit; > __result += __digit; > ++__sep_pos; > } > > if (++__beg != __end) > __c = *__beg; > else > __testeof = true; > } > else > while (!__testeof) > { > > > if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) > { > > > if (__sep_pos) > { > __found_grouping += static_cast<char>(__sep_pos); > __sep_pos = 0; > } > else > { > __testfail = true; > break; > } > } > else if (__c == __lc->_M_decimal_point) > break; > else > { > const char_type* __q = > __traits_type::find(__lit_zero, __len, __c); > if (!__q) > break; > > __digit = __q - __lit_zero; > if (__digit > 15) > __digit -= 6; > if (__result > __smax) > __testoverflow = true; > else > { > __result *= __base; > __testoverflow |= __result > __max - __digit; > __result += __digit; > ++__sep_pos; > } > } > > if (++__beg != __end) > __c = *__beg; > else > __testeof = true; > } > > > > if (__found_grouping.size()) > { > > __found_grouping += static_cast<char>(__sep_pos); > > if (!std::__verify_grouping(__lc->_M_grouping, > __lc->_M_grouping_size, > __found_grouping)) > __err = ios_base::failbit; > } > > > > if ((!__sep_pos && !__found_zero && !__found_grouping.size()) > || __testfail) > { > __v = 0; > __err = ios_base::failbit; > } > else if (__testoverflow) > { > if (__negative > && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) > __v = __gnu_cxx::__numeric_traits<_ValueT>::__min; > else > __v = __gnu_cxx::__numeric_traits<_ValueT>::__max; > __err = ios_base::failbit; > } > else > __v = __negative ? -__result : __result; > > if (__testeof) > __err |= ios_base::eofbit; > return __beg; > } > > > > template<typename _CharT, typename _InIter> > _InIter > num_get<_CharT, _InIter>:: > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, bool& __v) const > { > if (!(__io.flags() & ios_base::boolalpha)) > { > > > > long __l = -1; > __beg = _M_extract_int(__beg, __end, __io, __err, __l); > if (__l == 0 || __l == 1) > __v = bool(__l); > else > { > > > __v = true; > __err = ios_base::failbit; > if (__beg == __end) > __err |= ios_base::eofbit; > } > } > else > { > > typedef __numpunct_cache<_CharT> __cache_type; > __use_cache<__cache_type> __uc; > const locale& __loc = __io._M_getloc(); > const __cache_type* __lc = __uc(__loc); > > bool __testf = true; > bool __testt = true; > bool __donef = __lc->_M_falsename_size == 0; > bool __donet = __lc->_M_truename_size == 0; > bool __testeof = false; > size_t __n = 0; > while (!__donef || !__donet) > { > if (__beg == __end) > { > __testeof = true; > break; > } > > const char_type __c = *__beg; > > if (!__donef) > __testf = __c == __lc->_M_falsename[__n]; > > if (!__testf && __donet) > break; > > if (!__donet) > __testt = __c == __lc->_M_truename[__n]; > > if (!__testt && __donef) > break; > > if (!__testt && !__testf) > break; > > ++__n; > ++__beg; > > __donef = !__testf || __n >= __lc->_M_falsename_size; > __donet = !__testt || __n >= __lc->_M_truename_size; > } > if (__testf && __n == __lc->_M_falsename_size && __n) > { > __v = false; > if (__testt && __n == __lc->_M_truename_size) > __err = ios_base::failbit; > else > __err = __testeof ? ios_base::eofbit : ios_base::goodbit; > } > else if (__testt && __n == __lc->_M_truename_size && __n) > { > __v = true; > __err = __testeof ? ios_base::eofbit : ios_base::goodbit; > } > else > { > > > __v = false; > __err = ios_base::failbit; > if (__testeof) > __err |= ios_base::eofbit; > } > } > return __beg; > } > > template<typename _CharT, typename _InIter> > _InIter > num_get<_CharT, _InIter>:: > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, float& __v) const > { > string __xtrc; > __xtrc.reserve(32); > __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); > std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); > if (__beg == __end) > __err |= ios_base::eofbit; > return __beg; > } > > template<typename _CharT, typename _InIter> > _InIter > num_get<_CharT, _InIter>:: > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, double& __v) const > { > string __xtrc; > __xtrc.reserve(32); > __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); > std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); > if (__beg == __end) > __err |= ios_base::eofbit; > return __beg; > } ># 730 "/usr/include/c++/4.8.2/bits/locale_facets.tcc" 3 > template<typename _CharT, typename _InIter> > _InIter > num_get<_CharT, _InIter>:: > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, long double& __v) const > { > string __xtrc; > __xtrc.reserve(32); > __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); > std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); > if (__beg == __end) > __err |= ios_base::eofbit; > return __beg; > } > > template<typename _CharT, typename _InIter> > _InIter > num_get<_CharT, _InIter>:: > do_get(iter_type __beg, iter_type __end, ios_base& __io, > ios_base::iostate& __err, void*& __v) const > { > > typedef ios_base::fmtflags fmtflags; > const fmtflags __fmt = __io.flags(); > __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); > > typedef __gnu_cxx::__conditional_type<(sizeof(void*) > <= sizeof(unsigned long)), > unsigned long, unsigned long long>::__type _UIntPtrType; > > _UIntPtrType __ul; > __beg = _M_extract_int(__beg, __end, __io, __err, __ul); > > > __io.flags(__fmt); > > __v = reinterpret_cast<void*>(__ul); > return __beg; > } > > > > template<typename _CharT, typename _OutIter> > void > num_put<_CharT, _OutIter>:: > _M_pad(_CharT __fill, streamsize __w, ios_base& __io, > _CharT* __new, const _CharT* __cs, int& __len) const > { > > > __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, > __cs, __w, __len); > __len = static_cast<int>(__w); > } > > > > template<typename _CharT, typename _ValueT> > int > __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, > ios_base::fmtflags __flags, bool __dec) > { > _CharT* __buf = __bufend; > if (__builtin_expect(__dec, true)) > { > > do > { > *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; > __v /= 10; > } > while (__v != 0); > } > else if ((__flags & ios_base::basefield) == ios_base::oct) > { > > do > { > *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; > __v >>= 3; > } > while (__v != 0); > } > else > { > > const bool __uppercase = __flags & ios_base::uppercase; > const int __case_offset = __uppercase ? __num_base::_S_oudigits > : __num_base::_S_odigits; > do > { > *--__buf = __lit[(__v & 0xf) + __case_offset]; > __v >>= 4; > } > while (__v != 0); > } > return __bufend - __buf; > } > > > > template<typename _CharT, typename _OutIter> > void > num_put<_CharT, _OutIter>:: > _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, > ios_base&, _CharT* __new, _CharT* __cs, int& __len) const > { > _CharT* __p = std::__add_grouping(__new, __sep, __grouping, > __grouping_size, __cs, __cs + __len); > __len = __p - __new; > } > > template<typename _CharT, typename _OutIter> > template<typename _ValueT> > _OutIter > num_put<_CharT, _OutIter>:: > _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, > _ValueT __v) const > { > using __gnu_cxx::__add_unsigned; > typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; > typedef __numpunct_cache<_CharT> __cache_type; > __use_cache<__cache_type> __uc; > const locale& __loc = __io._M_getloc(); > const __cache_type* __lc = __uc(__loc); > const _CharT* __lit = __lc->_M_atoms_out; > const ios_base::fmtflags __flags = __io.flags(); > > > const int __ilen = 5 * sizeof(_ValueT); > _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) > * __ilen)); > > > > const ios_base::fmtflags __basefield = __flags & ios_base::basefield; > const bool __dec = (__basefield != ios_base::oct > && __basefield != ios_base::hex); > const __unsigned_type __u = ((__v > 0 || !__dec) > ? __unsigned_type(__v) > : -__unsigned_type(__v)); > int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); > __cs += __ilen - __len; > > > if (__lc->_M_use_grouping) > { > > > _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) > * (__len + 1) > * 2)); > _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, > __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); > __cs = __cs2 + 2; > } > > > if (__builtin_expect(__dec, true)) > { > > if (__v >= 0) > { > if (bool(__flags & ios_base::showpos) > && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) > *--__cs = __lit[__num_base::_S_oplus], ++__len; > } > else > *--__cs = __lit[__num_base::_S_ominus], ++__len; > } > else if (bool(__flags & ios_base::showbase) && __v) > { > if (__basefield == ios_base::oct) > *--__cs = __lit[__num_base::_S_odigits], ++__len; > else > { > > const bool __uppercase = __flags & ios_base::uppercase; > *--__cs = __lit[__num_base::_S_ox + __uppercase]; > > *--__cs = __lit[__num_base::_S_odigits]; > __len += 2; > } > } > > > const streamsize __w = __io.width(); > if (__w > static_cast<streamsize>(__len)) > { > _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) > * __w)); > _M_pad(__fill, __w, __io, __cs3, __cs, __len); > __cs = __cs3; > } > __io.width(0); > > > > return std::__write(__s, __cs, __len); > } > > template<typename _CharT, typename _OutIter> > void > num_put<_CharT, _OutIter>:: > _M_group_float(const char* __grouping, size_t __grouping_size, > _CharT __sep, const _CharT* __p, _CharT* __new, > _CharT* __cs, int& __len) const > { > > > > const int __declen = __p ? __p - __cs : __len; > _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, > __grouping_size, > __cs, __cs + __declen); > > > int __newlen = __p2 - __new; > if (__p) > { > char_traits<_CharT>::copy(__p2, __p, __len - __declen); > __newlen += __len - __declen; > } > __len = __newlen; > } ># 966 "/usr/include/c++/4.8.2/bits/locale_facets.tcc" 3 > template<typename _CharT, typename _OutIter> > template<typename _ValueT> > _OutIter > num_put<_CharT, _OutIter>:: > _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, > _ValueT __v) const > { > typedef __numpunct_cache<_CharT> __cache_type; > __use_cache<__cache_type> __uc; > const locale& __loc = __io._M_getloc(); > const __cache_type* __lc = __uc(__loc); > > > const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); > > const int __max_digits = > __gnu_cxx::__numeric_traits<_ValueT>::__digits10; > > > int __len; > > char __fbuf[16]; > __num_base::_S_format_float(__io, __fbuf, __mod); > > > > > int __cs_size = __max_digits * 3; > char* __cs = static_cast<char*>(__builtin_alloca(__cs_size)); > __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, > __fbuf, __prec, __v); > > > if (__len >= __cs_size) > { > __cs_size = __len + 1; > __cs = static_cast<char*>(__builtin_alloca(__cs_size)); > __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, > __fbuf, __prec, __v); > } ># 1027 "/usr/include/c++/4.8.2/bits/locale_facets.tcc" 3 > const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); > > _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) > * __len)); > __ctype.widen(__cs, __cs + __len, __ws); > > > _CharT* __wp = 0; > const char* __p = char_traits<char>::find(__cs, __len, '.'); > if (__p) > { > __wp = __ws + (__p - __cs); > *__wp = __lc->_M_decimal_point; > } > > > > > if (__lc->_M_use_grouping > && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' > && __cs[1] >= '0' && __cs[2] >= '0'))) > { > > > _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) > * __len * 2)); > > streamsize __off = 0; > if (__cs[0] == '-' || __cs[0] == '+') > { > __off = 1; > __ws2[0] = __ws[0]; > __len -= 1; > } > > _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, > __lc->_M_thousands_sep, __wp, __ws2 + __off, > __ws + __off, __len); > __len += __off; > > __ws = __ws2; > } > > > const streamsize __w = __io.width(); > if (__w > static_cast<streamsize>(__len)) > { > _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) > * __w)); > _M_pad(__fill, __w, __io, __ws3, __ws, __len); > __ws = __ws3; > } > __io.width(0); > > > > return std::__write(__s, __ws, __len); > } > > template<typename _CharT, typename _OutIter> > _OutIter > num_put<_CharT, _OutIter>:: > do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const > { > const ios_base::fmtflags __flags = __io.flags(); > if ((__flags & ios_base::boolalpha) == 0) > { > const long __l = __v; > __s = _M_insert_int(__s, __io, __fill, __l); > } > else > { > typedef __numpunct_cache<_CharT> __cache_type; > __use_cache<__cache_type> __uc; > const locale& __loc = __io._M_getloc(); > const __cache_type* __lc = __uc(__loc); > > const _CharT* __name = __v ? __lc->_M_truename > : __lc->_M_falsename; > int __len = __v ? __lc->_M_truename_size > : __lc->_M_falsename_size; > > const streamsize __w = __io.width(); > if (__w > static_cast<streamsize>(__len)) > { > const streamsize __plen = __w - __len; > _CharT* __ps > = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) > * __plen)); > > char_traits<_CharT>::assign(__ps, __plen, __fill); > __io.width(0); > > if ((__flags & ios_base::adjustfield) == ios_base::left) > { > __s = std::__write(__s, __name, __len); > __s = std::__write(__s, __ps, __plen); > } > else > { > __s = std::__write(__s, __ps, __plen); > __s = std::__write(__s, __name, __len); > } > return __s; > } > __io.width(0); > __s = std::__write(__s, __name, __len); > } > return __s; > } > > template<typename _CharT, typename _OutIter> > _OutIter > num_put<_CharT, _OutIter>:: > do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const > { return _M_insert_float(__s, __io, __fill, char(), __v); } ># 1152 "/usr/include/c++/4.8.2/bits/locale_facets.tcc" 3 > template<typename _CharT, typename _OutIter> > _OutIter > num_put<_CharT, _OutIter>:: > do_put(iter_type __s, ios_base& __io, char_type __fill, > long double __v) const > { return _M_insert_float(__s, __io, __fill, 'L', __v); } > > template<typename _CharT, typename _OutIter> > _OutIter > num_put<_CharT, _OutIter>:: > do_put(iter_type __s, ios_base& __io, char_type __fill, > const void* __v) const > { > const ios_base::fmtflags __flags = __io.flags(); > const ios_base::fmtflags __fmt = ~(ios_base::basefield > | ios_base::uppercase); > __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); > > typedef __gnu_cxx::__conditional_type<(sizeof(const void*) > <= sizeof(unsigned long)), > unsigned long, unsigned long long>::__type _UIntPtrType; > > __s = _M_insert_int(__s, __io, __fill, > reinterpret_cast<_UIntPtrType>(__v)); > __io.flags(__flags); > return __s; > } > > ># 1189 "/usr/include/c++/4.8.2/bits/locale_facets.tcc" 3 > template<typename _CharT, typename _Traits> > void > __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, > _CharT* __news, const _CharT* __olds, > streamsize __newlen, streamsize __oldlen) > { > const size_t __plen = static_cast<size_t>(__newlen - __oldlen); > const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; > > > if (__adjust == ios_base::left) > { > _Traits::copy(__news, __olds, __oldlen); > _Traits::assign(__news + __oldlen, __plen, __fill); > return; > } > > size_t __mod = 0; > if (__adjust == ios_base::internal) > { > > > > const locale& __loc = __io._M_getloc(); > const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); > > if (__ctype.widen('-') == __olds[0] > || __ctype.widen('+') == __olds[0]) > { > __news[0] = __olds[0]; > __mod = 1; > ++__news; > } > else if (__ctype.widen('0') == __olds[0] > && __oldlen > 1 > && (__ctype.widen('x') == __olds[1] > || __ctype.widen('X') == __olds[1])) > { > __news[0] = __olds[0]; > __news[1] = __olds[1]; > __mod = 2; > __news += 2; > } > > } > _Traits::assign(__news, __plen, __fill); > _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); > } > > template<typename _CharT> > _CharT* > __add_grouping(_CharT* __s, _CharT __sep, > const char* __gbeg, size_t __gsize, > const _CharT* __first, const _CharT* __last) > { > size_t __idx = 0; > size_t __ctr = 0; > > while (__last - __first > __gbeg[__idx] > && static_cast<signed char>(__gbeg[__idx]) > 0 > && __gbeg[__idx] != __gnu_cxx::__numeric_traits<char>::__max) > { > __last -= __gbeg[__idx]; > __idx < __gsize - 1 ? ++__idx : ++__ctr; > } > > while (__first != __last) > *__s++ = *__first++; > > while (__ctr--) > { > *__s++ = __sep; > for (char __i = __gbeg[__idx]; __i > 0; --__i) > *__s++ = *__first++; > } > > while (__idx--) > { > *__s++ = __sep; > for (char __i = __gbeg[__idx]; __i > 0; --__i) > *__s++ = *__first++; > } > > return __s; > } > > > > > extern template class numpunct<char>; > extern template class numpunct_byname<char>; > extern template class num_get<char>; > extern template class num_put<char>; > extern template class ctype_byname<char>; > > extern template > const ctype<char>& > use_facet<ctype<char> >(const locale&); > > extern template > const numpunct<char>& > use_facet<numpunct<char> >(const locale&); > > extern template > const num_put<char>& > use_facet<num_put<char> >(const locale&); > > extern template > const num_get<char>& > use_facet<num_get<char> >(const locale&); > > extern template > bool > has_facet<ctype<char> >(const locale&); > > extern template > bool > has_facet<numpunct<char> >(const locale&); > > extern template > bool > has_facet<num_put<char> >(const locale&); > > extern template > bool > has_facet<num_get<char> >(const locale&); > > > extern template class numpunct<wchar_t>; > extern template class numpunct_byname<wchar_t>; > extern template class num_get<wchar_t>; > extern template class num_put<wchar_t>; > extern template class ctype_byname<wchar_t>; > > extern template > const ctype<wchar_t>& > use_facet<ctype<wchar_t> >(const locale&); > > extern template > const numpunct<wchar_t>& > use_facet<numpunct<wchar_t> >(const locale&); > > extern template > const num_put<wchar_t>& > use_facet<num_put<wchar_t> >(const locale&); > > extern template > const num_get<wchar_t>& > use_facet<num_get<wchar_t> >(const locale&); > > extern template > bool > has_facet<ctype<wchar_t> >(const locale&); > > extern template > bool > has_facet<numpunct<wchar_t> >(const locale&); > > extern template > bool > has_facet<num_put<wchar_t> >(const locale&); > > extern template > bool > has_facet<num_get<wchar_t> >(const locale&); > > > > >} ># 2609 "/usr/include/c++/4.8.2/bits/locale_facets.h" 2 3 ># 38 "/usr/include/c++/4.8.2/bits/basic_ios.h" 2 3 > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _Facet> > inline const _Facet& > __check_facet(const _Facet* __f) > { > if (!__f) > __throw_bad_cast(); > return *__f; > } ># 65 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > template<typename _CharT, typename _Traits> > class basic_ios : public ios_base > { > public: > > > > > > > typedef _CharT char_type; > typedef typename _Traits::int_type int_type; > typedef typename _Traits::pos_type pos_type; > typedef typename _Traits::off_type off_type; > typedef _Traits traits_type; > > > > > > > typedef ctype<_CharT> __ctype_type; > typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > > __num_put_type; > typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > > __num_get_type; > > > > protected: > basic_ostream<_CharT, _Traits>* _M_tie; > mutable char_type _M_fill; > mutable bool _M_fill_init; > basic_streambuf<_CharT, _Traits>* _M_streambuf; > > > const __ctype_type* _M_ctype; > > const __num_put_type* _M_num_put; > > const __num_get_type* _M_num_get; > > public: > > > > > > > > operator void*() const > { return this->fail() ? 0 : const_cast<basic_ios*>(this); } > > bool > operator!() const > { return this->fail(); } ># 130 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > iostate > rdstate() const > { return _M_streambuf_state; } ># 141 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > void > clear(iostate __state = goodbit); > > > > > > > > void > setstate(iostate __state) > { this->clear(this->rdstate() | __state); } > > > > > void > _M_setstate(iostate __state) > { > > > _M_streambuf_state |= __state; > if (this->exceptions() & __state) > throw; > } > > > > > > > > bool > good() const > { return this->rdstate() == 0; } > > > > > > > > bool > eof() const > { return (this->rdstate() & eofbit) != 0; } ># 194 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > bool > fail() const > { return (this->rdstate() & (badbit | failbit)) != 0; } > > > > > > > > bool > bad() const > { return (this->rdstate() & badbit) != 0; } ># 215 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > iostate > exceptions() const > { return _M_exception; } ># 250 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > void > exceptions(iostate __except) > { > _M_exception = __except; > this->clear(_M_streambuf_state); > } > > > > > > > > explicit > basic_ios(basic_streambuf<_CharT, _Traits>* __sb) > : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), > _M_ctype(0), _M_num_put(0), _M_num_get(0) > { this->init(__sb); } > > > > > > > > virtual > ~basic_ios() { } ># 288 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > basic_ostream<_CharT, _Traits>* > tie() const > { return _M_tie; } ># 300 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > basic_ostream<_CharT, _Traits>* > tie(basic_ostream<_CharT, _Traits>* __tiestr) > { > basic_ostream<_CharT, _Traits>* __old = _M_tie; > _M_tie = __tiestr; > return __old; > } > > > > > > > > basic_streambuf<_CharT, _Traits>* > rdbuf() const > { return _M_streambuf; } ># 340 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > basic_streambuf<_CharT, _Traits>* > rdbuf(basic_streambuf<_CharT, _Traits>* __sb); ># 354 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > basic_ios& > copyfmt(const basic_ios& __rhs); > > > > > > > > char_type > fill() const > { > if (!_M_fill_init) > { > _M_fill = this->widen(' '); > _M_fill_init = true; > } > return _M_fill; > } ># 383 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > char_type > fill(char_type __ch) > { > char_type __old = this->fill(); > _M_fill = __ch; > return __old; > } ># 403 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > locale > imbue(const locale& __loc); ># 423 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > char > narrow(char_type __c, char __dfault) const > { return __check_facet(_M_ctype).narrow(__c, __dfault); } ># 442 "/usr/include/c++/4.8.2/bits/basic_ios.h" 3 > char_type > widen(char __c) const > { return __check_facet(_M_ctype).widen(__c); } > > protected: > > > > > > > > basic_ios() > : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), > _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) > { } > > > > > > > > void > init(basic_streambuf<_CharT, _Traits>* __sb); > > void > _M_cache_locale(const locale& __loc); > }; > > >} > ># 1 "/usr/include/c++/4.8.2/bits/basic_ios.tcc" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/basic_ios.tcc" 3 >#define _BASIC_IOS_TCC 1 > > ># 34 "/usr/include/c++/4.8.2/bits/basic_ios.tcc" 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _CharT, typename _Traits> > void > basic_ios<_CharT, _Traits>::clear(iostate __state) > { > if (this->rdbuf()) > _M_streambuf_state = __state; > else > _M_streambuf_state = __state | badbit; > if (this->exceptions() & this->rdstate()) > __throw_ios_failure(("basic_ios::clear")); > } > > template<typename _CharT, typename _Traits> > basic_streambuf<_CharT, _Traits>* > basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) > { > basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; > _M_streambuf = __sb; > this->clear(); > return __old; > } > > template<typename _CharT, typename _Traits> > basic_ios<_CharT, _Traits>& > basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) > { > > > if (this != &__rhs) > { > > > > > _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? > _M_local_word : new _Words[__rhs._M_word_size]; > > > _Callback_list* __cb = __rhs._M_callbacks; > if (__cb) > __cb->_M_add_reference(); > _M_call_callbacks(erase_event); > if (_M_word != _M_local_word) > { > delete [] _M_word; > _M_word = 0; > } > _M_dispose_callbacks(); > > > _M_callbacks = __cb; > for (int __i = 0; __i < __rhs._M_word_size; ++__i) > __words[__i] = __rhs._M_word[__i]; > _M_word = __words; > _M_word_size = __rhs._M_word_size; > > this->flags(__rhs.flags()); > this->width(__rhs.width()); > this->precision(__rhs.precision()); > this->tie(__rhs.tie()); > this->fill(__rhs.fill()); > _M_ios_locale = __rhs.getloc(); > _M_cache_locale(_M_ios_locale); > > _M_call_callbacks(copyfmt_event); > > > this->exceptions(__rhs.exceptions()); > } > return *this; > } > > > template<typename _CharT, typename _Traits> > locale > basic_ios<_CharT, _Traits>::imbue(const locale& __loc) > { > locale __old(this->getloc()); > ios_base::imbue(__loc); > _M_cache_locale(__loc); > if (this->rdbuf() != 0) > this->rdbuf()->pubimbue(__loc); > return __old; > } > > template<typename _CharT, typename _Traits> > void > basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) > { > > ios_base::_M_init(); > > > _M_cache_locale(_M_ios_locale); ># 146 "/usr/include/c++/4.8.2/bits/basic_ios.tcc" 3 > _M_fill = _CharT(); > _M_fill_init = false; > > _M_tie = 0; > _M_exception = goodbit; > _M_streambuf = __sb; > _M_streambuf_state = __sb ? goodbit : badbit; > } > > template<typename _CharT, typename _Traits> > void > basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) > { > if (__builtin_expect(has_facet<__ctype_type>(__loc), true)) > _M_ctype = &use_facet<__ctype_type>(__loc); > else > _M_ctype = 0; > > if (__builtin_expect(has_facet<__num_put_type>(__loc), true)) > _M_num_put = &use_facet<__num_put_type>(__loc); > else > _M_num_put = 0; > > if (__builtin_expect(has_facet<__num_get_type>(__loc), true)) > _M_num_get = &use_facet<__num_get_type>(__loc); > else > _M_num_get = 0; > } > > > > > extern template class basic_ios<char>; > > > extern template class basic_ios<wchar_t>; > > > > >} ># 476 "/usr/include/c++/4.8.2/bits/basic_ios.h" 2 3 ># 45 "/usr/include/c++/4.8.2/ios" 2 3 ># 39 "/usr/include/c++/4.8.2/ostream" 2 3 > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 57 "/usr/include/c++/4.8.2/ostream" 3 > template<typename _CharT, typename _Traits> > class basic_ostream : virtual public basic_ios<_CharT, _Traits> > { > public: > > typedef _CharT char_type; > typedef typename _Traits::int_type int_type; > typedef typename _Traits::pos_type pos_type; > typedef typename _Traits::off_type off_type; > typedef _Traits traits_type; > > > typedef basic_streambuf<_CharT, _Traits> __streambuf_type; > typedef basic_ios<_CharT, _Traits> __ios_type; > typedef basic_ostream<_CharT, _Traits> __ostream_type; > typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > > __num_put_type; > typedef ctype<_CharT> __ctype_type; ># 83 "/usr/include/c++/4.8.2/ostream" 3 > explicit > basic_ostream(__streambuf_type* __sb) > { this->init(__sb); } > > > > > > > virtual > ~basic_ostream() { } > > > class sentry; > friend class sentry; ># 107 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > operator<<(__ostream_type& (*__pf)(__ostream_type&)) > { > > > > return __pf(*this); > } > > __ostream_type& > operator<<(__ios_type& (*__pf)(__ios_type&)) > { > > > > __pf(*this); > return *this; > } > > __ostream_type& > operator<<(ios_base& (*__pf) (ios_base&)) > { > > > > __pf(*this); > return *this; > } ># 165 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > operator<<(long __n) > { return _M_insert(__n); } > > __ostream_type& > operator<<(unsigned long __n) > { return _M_insert(__n); } > > __ostream_type& > operator<<(bool __n) > { return _M_insert(__n); } > > __ostream_type& > operator<<(short __n); > > __ostream_type& > operator<<(unsigned short __n) > { > > > return _M_insert(static_cast<unsigned long>(__n)); > } > > __ostream_type& > operator<<(int __n); > > __ostream_type& > operator<<(unsigned int __n) > { > > > return _M_insert(static_cast<unsigned long>(__n)); > } > > > __ostream_type& > operator<<(long long __n) > { return _M_insert(__n); } > > __ostream_type& > operator<<(unsigned long long __n) > { return _M_insert(__n); } ># 219 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > operator<<(double __f) > { return _M_insert(__f); } > > __ostream_type& > operator<<(float __f) > { > > > return _M_insert(static_cast<double>(__f)); > } > > __ostream_type& > operator<<(long double __f) > { return _M_insert(__f); } ># 244 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > operator<<(const void* __p) > { return _M_insert(__p); } ># 269 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > operator<<(__streambuf_type* __sb); ># 302 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > put(char_type __c); > > > > > > > void > _M_write(const char_type* __s, streamsize __n) > { > const streamsize __put = this->rdbuf()->sputn(__s, __n); > if (__put != __n) > this->setstate(ios_base::badbit); > } ># 334 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > write(const char_type* __s, streamsize __n); ># 347 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > flush(); ># 357 "/usr/include/c++/4.8.2/ostream" 3 > pos_type > tellp(); ># 368 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > seekp(pos_type); ># 380 "/usr/include/c++/4.8.2/ostream" 3 > __ostream_type& > seekp(off_type, ios_base::seekdir); > > protected: > basic_ostream() > { this->init(0); } > > template<typename _ValueT> > __ostream_type& > _M_insert(_ValueT __v); > }; ># 399 "/usr/include/c++/4.8.2/ostream" 3 > template <typename _CharT, typename _Traits> > class basic_ostream<_CharT, _Traits>::sentry > { > > bool _M_ok; > basic_ostream<_CharT, _Traits>& _M_os; > > public: ># 418 "/usr/include/c++/4.8.2/ostream" 3 > explicit > sentry(basic_ostream<_CharT, _Traits>& __os); ># 428 "/usr/include/c++/4.8.2/ostream" 3 > ~sentry() > { > > if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) > { > > if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) > _M_os.setstate(ios_base::badbit); > } > } ># 449 "/usr/include/c++/4.8.2/ostream" 3 > operator bool() const > { return _M_ok; } > }; ># 469 "/usr/include/c++/4.8.2/ostream" 3 > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) > { return __ostream_insert(__out, &__c, 1); } > > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) > { return (__out << __out.widen(__c)); } > > > template <class _Traits> > inline basic_ostream<char, _Traits>& > operator<<(basic_ostream<char, _Traits>& __out, char __c) > { return __ostream_insert(__out, &__c, 1); } > > > template<class _Traits> > inline basic_ostream<char, _Traits>& > operator<<(basic_ostream<char, _Traits>& __out, signed char __c) > { return (__out << static_cast<char>(__c)); } > > template<class _Traits> > inline basic_ostream<char, _Traits>& > operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) > { return (__out << static_cast<char>(__c)); } ># 511 "/usr/include/c++/4.8.2/ostream" 3 > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) > { > if (!__s) > __out.setstate(ios_base::badbit); > else > __ostream_insert(__out, __s, > static_cast<streamsize>(_Traits::length(__s))); > return __out; > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits> & > operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); > > > template<class _Traits> > inline basic_ostream<char, _Traits>& > operator<<(basic_ostream<char, _Traits>& __out, const char* __s) > { > if (!__s) > __out.setstate(ios_base::badbit); > else > __ostream_insert(__out, __s, > static_cast<streamsize>(_Traits::length(__s))); > return __out; > } > > > template<class _Traits> > inline basic_ostream<char, _Traits>& > operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s) > { return (__out << reinterpret_cast<const char*>(__s)); } > > template<class _Traits> > inline basic_ostream<char, _Traits> & > operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s) > { return (__out << reinterpret_cast<const char*>(__s)); } ># 562 "/usr/include/c++/4.8.2/ostream" 3 > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > endl(basic_ostream<_CharT, _Traits>& __os) > { return flush(__os.put(__os.widen('\n'))); } ># 574 "/usr/include/c++/4.8.2/ostream" 3 > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > ends(basic_ostream<_CharT, _Traits>& __os) > { return __os.put(_CharT()); } > > > > > > > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > flush(basic_ostream<_CharT, _Traits>& __os) > { return __os.flush(); } ># 606 "/usr/include/c++/4.8.2/ostream" 3 > >} > ># 1 "/usr/include/c++/4.8.2/bits/ostream.tcc" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/ostream.tcc" 3 >#define _OSTREAM_TCC 1 > > ># 38 "/usr/include/c++/4.8.2/bits/ostream.tcc" 3 > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>::sentry:: > sentry(basic_ostream<_CharT, _Traits>& __os) > : _M_ok(false), _M_os(__os) > { > > if (__os.tie() && __os.good()) > __os.tie()->flush(); > > if (__os.good()) > _M_ok = true; > else > __os.setstate(ios_base::failbit); > } > > template<typename _CharT, typename _Traits> > template<typename _ValueT> > basic_ostream<_CharT, _Traits>& > basic_ostream<_CharT, _Traits>:: > _M_insert(_ValueT __v) > { > sentry __cerb(*this); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > const __num_put_type& __np = __check_facet(this->_M_num_put); > if (__np.put(*this, *this, this->fill(), __v).failed()) > __err |= ios_base::badbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > basic_ostream<_CharT, _Traits>:: > operator<<(short __n) > { > > > const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; > if (__fmt == ios_base::oct || __fmt == ios_base::hex) > return _M_insert(static_cast<long>(static_cast<unsigned short>(__n))); > else > return _M_insert(static_cast<long>(__n)); > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > basic_ostream<_CharT, _Traits>:: > operator<<(int __n) > { > > > const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; > if (__fmt == ios_base::oct || __fmt == ios_base::hex) > return _M_insert(static_cast<long>(static_cast<unsigned int>(__n))); > else > return _M_insert(static_cast<long>(__n)); > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > basic_ostream<_CharT, _Traits>:: > operator<<(__streambuf_type* __sbin) > { > ios_base::iostate __err = ios_base::goodbit; > sentry __cerb(*this); > if (__cerb && __sbin) > { > try > { > if (!__copy_streambufs(__sbin, this->rdbuf())) > __err |= ios_base::failbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::failbit); } > } > else if (!__sbin) > __err |= ios_base::badbit; > if (__err) > this->setstate(__err); > return *this; > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > basic_ostream<_CharT, _Traits>:: > put(char_type __c) > { > > > > > > > sentry __cerb(*this); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > const int_type __put = this->rdbuf()->sputc(__c); > if (traits_type::eq_int_type(__put, traits_type::eof())) > __err |= ios_base::badbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > basic_ostream<_CharT, _Traits>:: > write(const _CharT* __s, streamsize __n) > { > > > > > > > > sentry __cerb(*this); > if (__cerb) > { > try > { _M_write(__s, __n); } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > basic_ostream<_CharT, _Traits>:: > flush() > { > > > > ios_base::iostate __err = ios_base::goodbit; > try > { > if (this->rdbuf() && this->rdbuf()->pubsync() == -1) > __err |= ios_base::badbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > return *this; > } > > template<typename _CharT, typename _Traits> > typename basic_ostream<_CharT, _Traits>::pos_type > basic_ostream<_CharT, _Traits>:: > tellp() > { > pos_type __ret = pos_type(-1); > try > { > if (!this->fail()) > __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > return __ret; > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > basic_ostream<_CharT, _Traits>:: > seekp(pos_type __pos) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > if (!this->fail()) > { > > > const pos_type __p = this->rdbuf()->pubseekpos(__pos, > ios_base::out); > > > if (__p == pos_type(off_type(-1))) > __err |= ios_base::failbit; > } > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > return *this; > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > basic_ostream<_CharT, _Traits>:: > seekp(off_type __off, ios_base::seekdir __dir) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > if (!this->fail()) > { > > > const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, > ios_base::out); > > > if (__p == pos_type(off_type(-1))) > __err |= ios_base::failbit; > } > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > return *this; > } > > template<typename _CharT, typename _Traits> > basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) > { > if (!__s) > __out.setstate(ios_base::badbit); > else > { > > > const size_t __clen = char_traits<char>::length(__s); > try > { > struct __ptr_guard > { > _CharT *__p; > __ptr_guard (_CharT *__ip): __p(__ip) { } > ~__ptr_guard() { delete[] __p; } > _CharT* __get() { return __p; } > } __pg (new _CharT[__clen]); > > _CharT *__ws = __pg.__get(); > for (size_t __i = 0; __i < __clen; ++__i) > __ws[__i] = __out.widen(__s[__i]); > __ostream_insert(__out, __ws, __clen); > } > catch(__cxxabiv1::__forced_unwind&) > { > __out._M_setstate(ios_base::badbit); > throw; > } > catch(...) > { __out._M_setstate(ios_base::badbit); } > } > return __out; > } > > > > > extern template class basic_ostream<char>; > extern template ostream& endl(ostream&); > extern template ostream& ends(ostream&); > extern template ostream& flush(ostream&); > extern template ostream& operator<<(ostream&, char); > extern template ostream& operator<<(ostream&, unsigned char); > extern template ostream& operator<<(ostream&, signed char); > extern template ostream& operator<<(ostream&, const char*); > extern template ostream& operator<<(ostream&, const unsigned char*); > extern template ostream& operator<<(ostream&, const signed char*); > > extern template ostream& ostream::_M_insert(long); > extern template ostream& ostream::_M_insert(unsigned long); > extern template ostream& ostream::_M_insert(bool); > > extern template ostream& ostream::_M_insert(long long); > extern template ostream& ostream::_M_insert(unsigned long long); > > extern template ostream& ostream::_M_insert(double); > extern template ostream& ostream::_M_insert(long double); > extern template ostream& ostream::_M_insert(const void*); > > > extern template class basic_ostream<wchar_t>; > extern template wostream& endl(wostream&); > extern template wostream& ends(wostream&); > extern template wostream& flush(wostream&); > extern template wostream& operator<<(wostream&, wchar_t); > extern template wostream& operator<<(wostream&, char); > extern template wostream& operator<<(wostream&, const wchar_t*); > extern template wostream& operator<<(wostream&, const char*); > > extern template wostream& wostream::_M_insert(long); > extern template wostream& wostream::_M_insert(unsigned long); > extern template wostream& wostream::_M_insert(bool); > > extern template wostream& wostream::_M_insert(long long); > extern template wostream& wostream::_M_insert(unsigned long long); > > extern template wostream& wostream::_M_insert(double); > extern template wostream& wostream::_M_insert(long double); > extern template wostream& wostream::_M_insert(const void*); > > > > >} ># 610 "/usr/include/c++/4.8.2/ostream" 2 3 ># 40 "/usr/include/c++/4.8.2/iostream" 2 3 ># 1 "/usr/include/c++/4.8.2/istream" 1 3 ># 34 "/usr/include/c++/4.8.2/istream" 3 >#define _GLIBCXX_ISTREAM 1 > > ># 37 "/usr/include/c++/4.8.2/istream" 3 > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 57 "/usr/include/c++/4.8.2/istream" 3 > template<typename _CharT, typename _Traits> > class basic_istream : virtual public basic_ios<_CharT, _Traits> > { > public: > > typedef _CharT char_type; > typedef typename _Traits::int_type int_type; > typedef typename _Traits::pos_type pos_type; > typedef typename _Traits::off_type off_type; > typedef _Traits traits_type; > > > typedef basic_streambuf<_CharT, _Traits> __streambuf_type; > typedef basic_ios<_CharT, _Traits> __ios_type; > typedef basic_istream<_CharT, _Traits> __istream_type; > typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > > __num_get_type; > typedef ctype<_CharT> __ctype_type; > > protected: > > > > > > streamsize _M_gcount; > > public: > > > > > > > > explicit > basic_istream(__streambuf_type* __sb) > : _M_gcount(streamsize(0)) > { this->init(__sb); } > > > > > > > virtual > ~basic_istream() > { _M_gcount = streamsize(0); } > > > class sentry; > friend class sentry; ># 119 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > operator>>(__istream_type& (*__pf)(__istream_type&)) > { return __pf(*this); } > > __istream_type& > operator>>(__ios_type& (*__pf)(__ios_type&)) > { > __pf(*this); > return *this; > } > > __istream_type& > operator>>(ios_base& (*__pf)(ios_base&)) > { > __pf(*this); > return *this; > } ># 167 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > operator>>(bool& __n) > { return _M_extract(__n); } > > __istream_type& > operator>>(short& __n); > > __istream_type& > operator>>(unsigned short& __n) > { return _M_extract(__n); } > > __istream_type& > operator>>(int& __n); > > __istream_type& > operator>>(unsigned int& __n) > { return _M_extract(__n); } > > __istream_type& > operator>>(long& __n) > { return _M_extract(__n); } > > __istream_type& > operator>>(unsigned long& __n) > { return _M_extract(__n); } > > > __istream_type& > operator>>(long long& __n) > { return _M_extract(__n); } > > __istream_type& > operator>>(unsigned long long& __n) > { return _M_extract(__n); } ># 213 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > operator>>(float& __f) > { return _M_extract(__f); } > > __istream_type& > operator>>(double& __f) > { return _M_extract(__f); } > > __istream_type& > operator>>(long double& __f) > { return _M_extract(__f); } ># 234 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > operator>>(void*& __p) > { return _M_extract(__p); } ># 258 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > operator>>(__streambuf_type* __sb); ># 268 "/usr/include/c++/4.8.2/istream" 3 > streamsize > gcount() const > { return _M_gcount; } ># 301 "/usr/include/c++/4.8.2/istream" 3 > int_type > get(); ># 315 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > get(char_type& __c); ># 342 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > get(char_type* __s, streamsize __n, char_type __delim); ># 353 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > get(char_type* __s, streamsize __n) > { return this->get(__s, __n, this->widen('\n')); } ># 376 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > get(__streambuf_type& __sb, char_type __delim); ># 386 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > get(__streambuf_type& __sb) > { return this->get(__sb, this->widen('\n')); } ># 415 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > getline(char_type* __s, streamsize __n, char_type __delim); ># 426 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > getline(char_type* __s, streamsize __n) > { return this->getline(__s, __n, this->widen('\n')); } ># 450 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > ignore(streamsize __n, int_type __delim); > > __istream_type& > ignore(streamsize __n); > > __istream_type& > ignore(); ># 467 "/usr/include/c++/4.8.2/istream" 3 > int_type > peek(); ># 485 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > read(char_type* __s, streamsize __n); ># 504 "/usr/include/c++/4.8.2/istream" 3 > streamsize > readsome(char_type* __s, streamsize __n); ># 521 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > putback(char_type __c); ># 537 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > unget(); ># 555 "/usr/include/c++/4.8.2/istream" 3 > int > sync(); ># 570 "/usr/include/c++/4.8.2/istream" 3 > pos_type > tellg(); ># 585 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > seekg(pos_type); ># 601 "/usr/include/c++/4.8.2/istream" 3 > __istream_type& > seekg(off_type, ios_base::seekdir); > > > protected: > basic_istream() > : _M_gcount(streamsize(0)) > { this->init(0); } > > template<typename _ValueT> > __istream_type& > _M_extract(_ValueT& __v); > }; > > > template<> > basic_istream<char>& > basic_istream<char>:: > getline(char_type* __s, streamsize __n, char_type __delim); > > template<> > basic_istream<char>& > basic_istream<char>:: > ignore(streamsize __n); > > template<> > basic_istream<char>& > basic_istream<char>:: > ignore(streamsize __n, int_type __delim); > > > template<> > basic_istream<wchar_t>& > basic_istream<wchar_t>:: > getline(char_type* __s, streamsize __n, char_type __delim); > > template<> > basic_istream<wchar_t>& > basic_istream<wchar_t>:: > ignore(streamsize __n); > > template<> > basic_istream<wchar_t>& > basic_istream<wchar_t>:: > ignore(streamsize __n, int_type __delim); ># 656 "/usr/include/c++/4.8.2/istream" 3 > template<typename _CharT, typename _Traits> > class basic_istream<_CharT, _Traits>::sentry > { > > bool _M_ok; > > public: > > typedef _Traits traits_type; > typedef basic_streambuf<_CharT, _Traits> __streambuf_type; > typedef basic_istream<_CharT, _Traits> __istream_type; > typedef typename __istream_type::__ctype_type __ctype_type; > typedef typename _Traits::int_type __int_type; ># 692 "/usr/include/c++/4.8.2/istream" 3 > explicit > sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); ># 705 "/usr/include/c++/4.8.2/istream" 3 > operator bool() const > { return _M_ok; } > }; ># 721 "/usr/include/c++/4.8.2/istream" 3 > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); > > template<class _Traits> > inline basic_istream<char, _Traits>& > operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) > { return (__in >> reinterpret_cast<char&>(__c)); } > > template<class _Traits> > inline basic_istream<char, _Traits>& > operator>>(basic_istream<char, _Traits>& __in, signed char& __c) > { return (__in >> reinterpret_cast<char&>(__c)); } ># 763 "/usr/include/c++/4.8.2/istream" 3 > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s); > > > template<> > basic_istream<char>& > operator>>(basic_istream<char>& __in, char* __s); > > template<class _Traits> > inline basic_istream<char, _Traits>& > operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) > { return (__in >> reinterpret_cast<char*>(__s)); } > > template<class _Traits> > inline basic_istream<char, _Traits>& > operator>>(basic_istream<char, _Traits>& __in, signed char* __s) > { return (__in >> reinterpret_cast<char*>(__s)); } ># 794 "/usr/include/c++/4.8.2/istream" 3 > template<typename _CharT, typename _Traits> > class basic_iostream > : public basic_istream<_CharT, _Traits>, > public basic_ostream<_CharT, _Traits> > { > public: > > > > typedef _CharT char_type; > typedef typename _Traits::int_type int_type; > typedef typename _Traits::pos_type pos_type; > typedef typename _Traits::off_type off_type; > typedef _Traits traits_type; > > > typedef basic_istream<_CharT, _Traits> __istream_type; > typedef basic_ostream<_CharT, _Traits> __ostream_type; > > > > > > > > explicit > basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) > : __istream_type(__sb), __ostream_type(__sb) { } > > > > > virtual > ~basic_iostream() { } > > protected: > basic_iostream() > : __istream_type(), __ostream_type() { } > }; ># 854 "/usr/include/c++/4.8.2/istream" 3 > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > ws(basic_istream<_CharT, _Traits>& __is); ># 876 "/usr/include/c++/4.8.2/istream" 3 > >} > ># 1 "/usr/include/c++/4.8.2/bits/istream.tcc" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/istream.tcc" 3 >#define _ISTREAM_TCC 1 > > ># 38 "/usr/include/c++/4.8.2/bits/istream.tcc" 3 > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>::sentry:: > sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) > { > ios_base::iostate __err = ios_base::goodbit; > if (__in.good()) > { > if (__in.tie()) > __in.tie()->flush(); > if (!__noskip && bool(__in.flags() & ios_base::skipws)) > { > const __int_type __eof = traits_type::eof(); > __streambuf_type* __sb = __in.rdbuf(); > __int_type __c = __sb->sgetc(); > > const __ctype_type& __ct = __check_facet(__in._M_ctype); > while (!traits_type::eq_int_type(__c, __eof) > && __ct.is(ctype_base::space, > traits_type::to_char_type(__c))) > __c = __sb->snextc(); > > > > > if (traits_type::eq_int_type(__c, __eof)) > __err |= ios_base::eofbit; > } > } > > if (__in.good() && __err == ios_base::goodbit) > _M_ok = true; > else > { > __err |= ios_base::failbit; > __in.setstate(__err); > } > } > > template<typename _CharT, typename _Traits> > template<typename _ValueT> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > _M_extract(_ValueT& __v) > { > sentry __cerb(*this, false); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > const __num_get_type& __ng = __check_facet(this->_M_num_get); > __ng.get(*this, 0, *this, __err, __v); > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > operator>>(short& __n) > { > > > sentry __cerb(*this, false); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > long __l; > const __num_get_type& __ng = __check_facet(this->_M_num_get); > __ng.get(*this, 0, *this, __err, __l); > > > > if (__l < __gnu_cxx::__numeric_traits<short>::__min) > { > __err |= ios_base::failbit; > __n = __gnu_cxx::__numeric_traits<short>::__min; > } > else if (__l > __gnu_cxx::__numeric_traits<short>::__max) > { > __err |= ios_base::failbit; > __n = __gnu_cxx::__numeric_traits<short>::__max; > } > else > __n = short(__l); > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > operator>>(int& __n) > { > > > sentry __cerb(*this, false); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > long __l; > const __num_get_type& __ng = __check_facet(this->_M_num_get); > __ng.get(*this, 0, *this, __err, __l); > > > > if (__l < __gnu_cxx::__numeric_traits<int>::__min) > { > __err |= ios_base::failbit; > __n = __gnu_cxx::__numeric_traits<int>::__min; > } > else if (__l > __gnu_cxx::__numeric_traits<int>::__max) > { > __err |= ios_base::failbit; > __n = __gnu_cxx::__numeric_traits<int>::__max; > } > else > __n = int(__l); > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > operator>>(__streambuf_type* __sbout) > { > ios_base::iostate __err = ios_base::goodbit; > sentry __cerb(*this, false); > if (__cerb && __sbout) > { > try > { > bool __ineof; > if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) > __err |= ios_base::failbit; > if (__ineof) > __err |= ios_base::eofbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::failbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::failbit); } > } > else if (!__sbout) > __err |= ios_base::failbit; > if (__err) > this->setstate(__err); > return *this; > } > > template<typename _CharT, typename _Traits> > typename basic_istream<_CharT, _Traits>::int_type > basic_istream<_CharT, _Traits>:: > get(void) > { > const int_type __eof = traits_type::eof(); > int_type __c = __eof; > _M_gcount = 0; > ios_base::iostate __err = ios_base::goodbit; > sentry __cerb(*this, true); > if (__cerb) > { > try > { > __c = this->rdbuf()->sbumpc(); > > if (!traits_type::eq_int_type(__c, __eof)) > _M_gcount = 1; > else > __err |= ios_base::eofbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > } > if (!_M_gcount) > __err |= ios_base::failbit; > if (__err) > this->setstate(__err); > return __c; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > get(char_type& __c) > { > _M_gcount = 0; > ios_base::iostate __err = ios_base::goodbit; > sentry __cerb(*this, true); > if (__cerb) > { > try > { > const int_type __cb = this->rdbuf()->sbumpc(); > > if (!traits_type::eq_int_type(__cb, traits_type::eof())) > { > _M_gcount = 1; > __c = traits_type::to_char_type(__cb); > } > else > __err |= ios_base::eofbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > } > if (!_M_gcount) > __err |= ios_base::failbit; > if (__err) > this->setstate(__err); > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > get(char_type* __s, streamsize __n, char_type __delim) > { > _M_gcount = 0; > ios_base::iostate __err = ios_base::goodbit; > sentry __cerb(*this, true); > if (__cerb) > { > try > { > const int_type __idelim = traits_type::to_int_type(__delim); > const int_type __eof = traits_type::eof(); > __streambuf_type* __sb = this->rdbuf(); > int_type __c = __sb->sgetc(); > > while (_M_gcount + 1 < __n > && !traits_type::eq_int_type(__c, __eof) > && !traits_type::eq_int_type(__c, __idelim)) > { > *__s++ = traits_type::to_char_type(__c); > ++_M_gcount; > __c = __sb->snextc(); > } > if (traits_type::eq_int_type(__c, __eof)) > __err |= ios_base::eofbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > } > > > if (__n > 0) > *__s = char_type(); > if (!_M_gcount) > __err |= ios_base::failbit; > if (__err) > this->setstate(__err); > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > get(__streambuf_type& __sb, char_type __delim) > { > _M_gcount = 0; > ios_base::iostate __err = ios_base::goodbit; > sentry __cerb(*this, true); > if (__cerb) > { > try > { > const int_type __idelim = traits_type::to_int_type(__delim); > const int_type __eof = traits_type::eof(); > __streambuf_type* __this_sb = this->rdbuf(); > int_type __c = __this_sb->sgetc(); > char_type __c2 = traits_type::to_char_type(__c); > > while (!traits_type::eq_int_type(__c, __eof) > && !traits_type::eq_int_type(__c, __idelim) > && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) > { > ++_M_gcount; > __c = __this_sb->snextc(); > __c2 = traits_type::to_char_type(__c); > } > if (traits_type::eq_int_type(__c, __eof)) > __err |= ios_base::eofbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > } > if (!_M_gcount) > __err |= ios_base::failbit; > if (__err) > this->setstate(__err); > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > getline(char_type* __s, streamsize __n, char_type __delim) > { > _M_gcount = 0; > ios_base::iostate __err = ios_base::goodbit; > sentry __cerb(*this, true); > if (__cerb) > { > try > { > const int_type __idelim = traits_type::to_int_type(__delim); > const int_type __eof = traits_type::eof(); > __streambuf_type* __sb = this->rdbuf(); > int_type __c = __sb->sgetc(); > > while (_M_gcount + 1 < __n > && !traits_type::eq_int_type(__c, __eof) > && !traits_type::eq_int_type(__c, __idelim)) > { > *__s++ = traits_type::to_char_type(__c); > __c = __sb->snextc(); > ++_M_gcount; > } > if (traits_type::eq_int_type(__c, __eof)) > __err |= ios_base::eofbit; > else > { > if (traits_type::eq_int_type(__c, __idelim)) > { > __sb->sbumpc(); > ++_M_gcount; > } > else > __err |= ios_base::failbit; > } > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > } > > > if (__n > 0) > *__s = char_type(); > if (!_M_gcount) > __err |= ios_base::failbit; > if (__err) > this->setstate(__err); > return *this; > } > > > > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > ignore(void) > { > _M_gcount = 0; > sentry __cerb(*this, true); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > const int_type __eof = traits_type::eof(); > __streambuf_type* __sb = this->rdbuf(); > > if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) > __err |= ios_base::eofbit; > else > _M_gcount = 1; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > ignore(streamsize __n) > { > _M_gcount = 0; > sentry __cerb(*this, true); > if (__cerb && __n > 0) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > const int_type __eof = traits_type::eof(); > __streambuf_type* __sb = this->rdbuf(); > int_type __c = __sb->sgetc(); ># 513 "/usr/include/c++/4.8.2/bits/istream.tcc" 3 > bool __large_ignore = false; > while (true) > { > while (_M_gcount < __n > && !traits_type::eq_int_type(__c, __eof)) > { > ++_M_gcount; > __c = __sb->snextc(); > } > if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max > && !traits_type::eq_int_type(__c, __eof)) > { > _M_gcount = > __gnu_cxx::__numeric_traits<streamsize>::__min; > __large_ignore = true; > } > else > break; > } > > if (__large_ignore) > _M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__max; > > if (traits_type::eq_int_type(__c, __eof)) > __err |= ios_base::eofbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > ignore(streamsize __n, int_type __delim) > { > _M_gcount = 0; > sentry __cerb(*this, true); > if (__cerb && __n > 0) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > const int_type __eof = traits_type::eof(); > __streambuf_type* __sb = this->rdbuf(); > int_type __c = __sb->sgetc(); > > > bool __large_ignore = false; > while (true) > { > while (_M_gcount < __n > && !traits_type::eq_int_type(__c, __eof) > && !traits_type::eq_int_type(__c, __delim)) > { > ++_M_gcount; > __c = __sb->snextc(); > } > if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max > && !traits_type::eq_int_type(__c, __eof) > && !traits_type::eq_int_type(__c, __delim)) > { > _M_gcount = > __gnu_cxx::__numeric_traits<streamsize>::__min; > __large_ignore = true; > } > else > break; > } > > if (__large_ignore) > _M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__max; > > if (traits_type::eq_int_type(__c, __eof)) > __err |= ios_base::eofbit; > else if (traits_type::eq_int_type(__c, __delim)) > { > if (_M_gcount > < __gnu_cxx::__numeric_traits<streamsize>::__max) > ++_M_gcount; > __sb->sbumpc(); > } > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > typename basic_istream<_CharT, _Traits>::int_type > basic_istream<_CharT, _Traits>:: > peek(void) > { > int_type __c = traits_type::eof(); > _M_gcount = 0; > sentry __cerb(*this, true); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > __c = this->rdbuf()->sgetc(); > if (traits_type::eq_int_type(__c, traits_type::eof())) > __err |= ios_base::eofbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return __c; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > read(char_type* __s, streamsize __n) > { > _M_gcount = 0; > sentry __cerb(*this, true); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > _M_gcount = this->rdbuf()->sgetn(__s, __n); > if (_M_gcount != __n) > __err |= (ios_base::eofbit | ios_base::failbit); > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > streamsize > basic_istream<_CharT, _Traits>:: > readsome(char_type* __s, streamsize __n) > { > _M_gcount = 0; > sentry __cerb(*this, true); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > > const streamsize __num = this->rdbuf()->in_avail(); > if (__num > 0) > _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); > else if (__num == -1) > __err |= ios_base::eofbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return _M_gcount; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > putback(char_type __c) > { > > > _M_gcount = 0; > > this->clear(this->rdstate() & ~ios_base::eofbit); > sentry __cerb(*this, true); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > const int_type __eof = traits_type::eof(); > __streambuf_type* __sb = this->rdbuf(); > if (!__sb > || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) > __err |= ios_base::badbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > unget(void) > { > > > _M_gcount = 0; > > this->clear(this->rdstate() & ~ios_base::eofbit); > sentry __cerb(*this, true); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > const int_type __eof = traits_type::eof(); > __streambuf_type* __sb = this->rdbuf(); > if (!__sb > || traits_type::eq_int_type(__sb->sungetc(), __eof)) > __err |= ios_base::badbit; > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > int > basic_istream<_CharT, _Traits>:: > sync(void) > { > > > int __ret = -1; > sentry __cerb(*this, true); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > __streambuf_type* __sb = this->rdbuf(); > if (__sb) > { > if (__sb->pubsync() == -1) > __err |= ios_base::badbit; > else > __ret = 0; > } > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return __ret; > } > > template<typename _CharT, typename _Traits> > typename basic_istream<_CharT, _Traits>::pos_type > basic_istream<_CharT, _Traits>:: > tellg(void) > { > > > pos_type __ret = pos_type(-1); > sentry __cerb(*this, true); > if (__cerb) > { > try > { > if (!this->fail()) > __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, > ios_base::in); > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > } > return __ret; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > seekg(pos_type __pos) > { > > > > this->clear(this->rdstate() & ~ios_base::eofbit); > sentry __cerb(*this, true); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > if (!this->fail()) > { > > const pos_type __p = this->rdbuf()->pubseekpos(__pos, > ios_base::in); > > > if (__p == pos_type(off_type(-1))) > __err |= ios_base::failbit; > } > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > basic_istream<_CharT, _Traits>:: > seekg(off_type __off, ios_base::seekdir __dir) > { > > > > this->clear(this->rdstate() & ~ios_base::eofbit); > sentry __cerb(*this, true); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > if (!this->fail()) > { > > const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, > ios_base::in); > > > if (__p == pos_type(off_type(-1))) > __err |= ios_base::failbit; > } > } > catch(__cxxabiv1::__forced_unwind&) > { > this->_M_setstate(ios_base::badbit); > throw; > } > catch(...) > { this->_M_setstate(ios_base::badbit); } > if (__err) > this->setstate(__err); > } > return *this; > } > > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) > { > typedef basic_istream<_CharT, _Traits> __istream_type; > typedef typename __istream_type::int_type __int_type; > > typename __istream_type::sentry __cerb(__in, false); > if (__cerb) > { > ios_base::iostate __err = ios_base::goodbit; > try > { > const __int_type __cb = __in.rdbuf()->sbumpc(); > if (!_Traits::eq_int_type(__cb, _Traits::eof())) > __c = _Traits::to_char_type(__cb); > else > __err |= (ios_base::eofbit | ios_base::failbit); > } > catch(__cxxabiv1::__forced_unwind&) > { > __in._M_setstate(ios_base::badbit); > throw; > } > catch(...) > { __in._M_setstate(ios_base::badbit); } > if (__err) > __in.setstate(__err); > } > return __in; > } > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) > { > typedef basic_istream<_CharT, _Traits> __istream_type; > typedef basic_streambuf<_CharT, _Traits> __streambuf_type; > typedef typename _Traits::int_type int_type; > typedef _CharT char_type; > typedef ctype<_CharT> __ctype_type; > > streamsize __extracted = 0; > ios_base::iostate __err = ios_base::goodbit; > typename __istream_type::sentry __cerb(__in, false); > if (__cerb) > { > try > { > > streamsize __num = __in.width(); > if (__num <= 0) > __num = __gnu_cxx::__numeric_traits<streamsize>::__max; > > const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); > > const int_type __eof = _Traits::eof(); > __streambuf_type* __sb = __in.rdbuf(); > int_type __c = __sb->sgetc(); > > while (__extracted < __num - 1 > && !_Traits::eq_int_type(__c, __eof) > && !__ct.is(ctype_base::space, > _Traits::to_char_type(__c))) > { > *__s++ = _Traits::to_char_type(__c); > ++__extracted; > __c = __sb->snextc(); > } > if (_Traits::eq_int_type(__c, __eof)) > __err |= ios_base::eofbit; > > > > *__s = char_type(); > __in.width(0); > } > catch(__cxxabiv1::__forced_unwind&) > { > __in._M_setstate(ios_base::badbit); > throw; > } > catch(...) > { __in._M_setstate(ios_base::badbit); } > } > if (!__extracted) > __err |= ios_base::failbit; > if (__err) > __in.setstate(__err); > return __in; > } > > > template<typename _CharT, typename _Traits> > basic_istream<_CharT, _Traits>& > ws(basic_istream<_CharT, _Traits>& __in) > { > typedef basic_istream<_CharT, _Traits> __istream_type; > typedef basic_streambuf<_CharT, _Traits> __streambuf_type; > typedef typename __istream_type::int_type __int_type; > typedef ctype<_CharT> __ctype_type; > > const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); > const __int_type __eof = _Traits::eof(); > __streambuf_type* __sb = __in.rdbuf(); > __int_type __c = __sb->sgetc(); > > while (!_Traits::eq_int_type(__c, __eof) > && __ct.is(ctype_base::space, _Traits::to_char_type(__c))) > __c = __sb->snextc(); > > if (_Traits::eq_int_type(__c, __eof)) > __in.setstate(ios_base::eofbit); > return __in; > } > > > > > extern template class basic_istream<char>; > extern template istream& ws(istream&); > extern template istream& operator>>(istream&, char&); > extern template istream& operator>>(istream&, char*); > extern template istream& operator>>(istream&, unsigned char&); > extern template istream& operator>>(istream&, signed char&); > extern template istream& operator>>(istream&, unsigned char*); > extern template istream& operator>>(istream&, signed char*); > > extern template istream& istream::_M_extract(unsigned short&); > extern template istream& istream::_M_extract(unsigned int&); > extern template istream& istream::_M_extract(long&); > extern template istream& istream::_M_extract(unsigned long&); > extern template istream& istream::_M_extract(bool&); > > extern template istream& istream::_M_extract(long long&); > extern template istream& istream::_M_extract(unsigned long long&); > > extern template istream& istream::_M_extract(float&); > extern template istream& istream::_M_extract(double&); > extern template istream& istream::_M_extract(long double&); > extern template istream& istream::_M_extract(void*&); > > extern template class basic_iostream<char>; > > > extern template class basic_istream<wchar_t>; > extern template wistream& ws(wistream&); > extern template wistream& operator>>(wistream&, wchar_t&); > extern template wistream& operator>>(wistream&, wchar_t*); > > extern template wistream& wistream::_M_extract(unsigned short&); > extern template wistream& wistream::_M_extract(unsigned int&); > extern template wistream& wistream::_M_extract(long&); > extern template wistream& wistream::_M_extract(unsigned long&); > extern template wistream& wistream::_M_extract(bool&); > > extern template wistream& wistream::_M_extract(long long&); > extern template wistream& wistream::_M_extract(unsigned long long&); > > extern template wistream& wistream::_M_extract(float&); > extern template wistream& wistream::_M_extract(double&); > extern template wistream& wistream::_M_extract(long double&); > extern template wistream& wistream::_M_extract(void*&); > > extern template class basic_iostream<wchar_t>; > > > > >} ># 880 "/usr/include/c++/4.8.2/istream" 2 3 ># 41 "/usr/include/c++/4.8.2/iostream" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 60 "/usr/include/c++/4.8.2/iostream" 3 > extern istream cin; > extern ostream cout; > extern ostream cerr; > extern ostream clog; > > > extern wistream wcin; > extern wostream wcout; > extern wostream wcerr; > extern wostream wclog; > > > > > static ios_base::Init __ioinit; > > >} ># 292 "../gtest_contrib/gtest/gtest.h" 2 ># 1 "/usr/include/c++/4.8.2/sstream" 1 3 ># 34 "/usr/include/c++/4.8.2/sstream" 3 >#define _GLIBCXX_SSTREAM 1 > > ># 37 "/usr/include/c++/4.8.2/sstream" 3 > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 63 "/usr/include/c++/4.8.2/sstream" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > class basic_stringbuf : public basic_streambuf<_CharT, _Traits> > { > public: > > typedef _CharT char_type; > typedef _Traits traits_type; > > > typedef _Alloc allocator_type; > typedef typename traits_type::int_type int_type; > typedef typename traits_type::pos_type pos_type; > typedef typename traits_type::off_type off_type; > > typedef basic_streambuf<char_type, traits_type> __streambuf_type; > typedef basic_string<char_type, _Traits, _Alloc> __string_type; > typedef typename __string_type::size_type __size_type; > > protected: > > ios_base::openmode _M_mode; > > > __string_type _M_string; > > public: ># 97 "/usr/include/c++/4.8.2/sstream" 3 > explicit > basic_stringbuf(ios_base::openmode __mode = ios_base::in | ios_base::out) > : __streambuf_type(), _M_mode(__mode), _M_string() > { } ># 110 "/usr/include/c++/4.8.2/sstream" 3 > explicit > basic_stringbuf(const __string_type& __str, > ios_base::openmode __mode = ios_base::in | ios_base::out) > : __streambuf_type(), _M_mode(), _M_string(__str.data(), __str.size()) > { _M_stringbuf_init(__mode); } ># 125 "/usr/include/c++/4.8.2/sstream" 3 > __string_type > str() const > { > __string_type __ret; > if (this->pptr()) > { > > if (this->pptr() > this->egptr()) > __ret = __string_type(this->pbase(), this->pptr()); > else > __ret = __string_type(this->pbase(), this->egptr()); > } > else > __ret = _M_string; > return __ret; > } ># 149 "/usr/include/c++/4.8.2/sstream" 3 > void > str(const __string_type& __s) > { > > _M_string.assign(__s.data(), __s.size()); > _M_stringbuf_init(_M_mode); > } > > protected: > > void > _M_stringbuf_init(ios_base::openmode __mode) > { > _M_mode = __mode; > __size_type __len = 0; > if (_M_mode & (ios_base::ate | ios_base::app)) > __len = _M_string.size(); > _M_sync(const_cast<char_type*>(_M_string.data()), 0, __len); > } > > virtual streamsize > showmanyc() > { > streamsize __ret = -1; > if (_M_mode & ios_base::in) > { > _M_update_egptr(); > __ret = this->egptr() - this->gptr(); > } > return __ret; > } > > virtual int_type > underflow(); > > virtual int_type > pbackfail(int_type __c = traits_type::eof()); > > virtual int_type > overflow(int_type __c = traits_type::eof()); ># 201 "/usr/include/c++/4.8.2/sstream" 3 > virtual __streambuf_type* > setbuf(char_type* __s, streamsize __n) > { > if (__s && __n >= 0) > { > > > > > > > _M_string.clear(); > > > _M_sync(__s, __n, 0); > } > return this; > } > > virtual pos_type > seekoff(off_type __off, ios_base::seekdir __way, > ios_base::openmode __mode = ios_base::in | ios_base::out); > > virtual pos_type > seekpos(pos_type __sp, > ios_base::openmode __mode = ios_base::in | ios_base::out); > > > > > void > _M_sync(char_type* __base, __size_type __i, __size_type __o); > > > > void > _M_update_egptr() > { > const bool __testin = _M_mode & ios_base::in; > if (this->pptr() && this->pptr() > this->egptr()) > { > if (__testin) > this->setg(this->eback(), this->gptr(), this->pptr()); > else > this->setg(this->pptr(), this->pptr(), this->pptr()); > } > } > > > > void > _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); > }; ># 271 "/usr/include/c++/4.8.2/sstream" 3 > template<typename _CharT, typename _Traits, typename _Alloc> > class basic_istringstream : public basic_istream<_CharT, _Traits> > { > public: > > typedef _CharT char_type; > typedef _Traits traits_type; > > > typedef _Alloc allocator_type; > typedef typename traits_type::int_type int_type; > typedef typename traits_type::pos_type pos_type; > typedef typename traits_type::off_type off_type; > > > typedef basic_string<_CharT, _Traits, _Alloc> __string_type; > typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; > typedef basic_istream<char_type, traits_type> __istream_type; > > private: > __stringbuf_type _M_stringbuf; > > public: ># 307 "/usr/include/c++/4.8.2/sstream" 3 > explicit > basic_istringstream(ios_base::openmode __mode = ios_base::in) > : __istream_type(), _M_stringbuf(__mode | ios_base::in) > { this->init(&_M_stringbuf); } ># 325 "/usr/include/c++/4.8.2/sstream" 3 > explicit > basic_istringstream(const __string_type& __str, > ios_base::openmode __mode = ios_base::in) > : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) > { this->init(&_M_stringbuf); } > > > > > > > > ~basic_istringstream() > { } ># 347 "/usr/include/c++/4.8.2/sstream" 3 > __stringbuf_type* > rdbuf() const > { return const_cast<__stringbuf_type*>(&_M_stringbuf); } > > > > > > __string_type > str() const > { return _M_stringbuf.str(); } > > > > > > > > void > str(const __string_type& __s) > { _M_stringbuf.str(__s); } > }; ># 386 "/usr/include/c++/4.8.2/sstream" 3 > template <typename _CharT, typename _Traits, typename _Alloc> > class basic_ostringstream : public basic_ostream<_CharT, _Traits> > { > public: > > typedef _CharT char_type; > typedef _Traits traits_type; > > > typedef _Alloc allocator_type; > typedef typename traits_type::int_type int_type; > typedef typename traits_type::pos_type pos_type; > typedef typename traits_type::off_type off_type; > > > typedef basic_string<_CharT, _Traits, _Alloc> __string_type; > typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; > typedef basic_ostream<char_type, traits_type> __ostream_type; > > private: > __stringbuf_type _M_stringbuf; > > public: ># 422 "/usr/include/c++/4.8.2/sstream" 3 > explicit > basic_ostringstream(ios_base::openmode __mode = ios_base::out) > : __ostream_type(), _M_stringbuf(__mode | ios_base::out) > { this->init(&_M_stringbuf); } ># 440 "/usr/include/c++/4.8.2/sstream" 3 > explicit > basic_ostringstream(const __string_type& __str, > ios_base::openmode __mode = ios_base::out) > : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) > { this->init(&_M_stringbuf); } > > > > > > > > ~basic_ostringstream() > { } ># 462 "/usr/include/c++/4.8.2/sstream" 3 > __stringbuf_type* > rdbuf() const > { return const_cast<__stringbuf_type*>(&_M_stringbuf); } > > > > > > __string_type > str() const > { return _M_stringbuf.str(); } > > > > > > > > void > str(const __string_type& __s) > { _M_stringbuf.str(__s); } > }; ># 501 "/usr/include/c++/4.8.2/sstream" 3 > template <typename _CharT, typename _Traits, typename _Alloc> > class basic_stringstream : public basic_iostream<_CharT, _Traits> > { > public: > > typedef _CharT char_type; > typedef _Traits traits_type; > > > typedef _Alloc allocator_type; > typedef typename traits_type::int_type int_type; > typedef typename traits_type::pos_type pos_type; > typedef typename traits_type::off_type off_type; > > > typedef basic_string<_CharT, _Traits, _Alloc> __string_type; > typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; > typedef basic_iostream<char_type, traits_type> __iostream_type; > > private: > __stringbuf_type _M_stringbuf; > > public: ># 536 "/usr/include/c++/4.8.2/sstream" 3 > explicit > basic_stringstream(ios_base::openmode __m = ios_base::out | ios_base::in) > : __iostream_type(), _M_stringbuf(__m) > { this->init(&_M_stringbuf); } ># 552 "/usr/include/c++/4.8.2/sstream" 3 > explicit > basic_stringstream(const __string_type& __str, > ios_base::openmode __m = ios_base::out | ios_base::in) > : __iostream_type(), _M_stringbuf(__str, __m) > { this->init(&_M_stringbuf); } > > > > > > > > ~basic_stringstream() > { } ># 574 "/usr/include/c++/4.8.2/sstream" 3 > __stringbuf_type* > rdbuf() const > { return const_cast<__stringbuf_type*>(&_M_stringbuf); } > > > > > > __string_type > str() const > { return _M_stringbuf.str(); } > > > > > > > > void > str(const __string_type& __s) > { _M_stringbuf.str(__s); } > }; > > >} > ># 1 "/usr/include/c++/4.8.2/bits/sstream.tcc" 1 3 ># 35 "/usr/include/c++/4.8.2/bits/sstream.tcc" 3 >#define _SSTREAM_TCC 1 > > ># 38 "/usr/include/c++/4.8.2/bits/sstream.tcc" 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > template <class _CharT, class _Traits, class _Alloc> > typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type > basic_stringbuf<_CharT, _Traits, _Alloc>:: > pbackfail(int_type __c) > { > int_type __ret = traits_type::eof(); > if (this->eback() < this->gptr()) > { > > > const bool __testeof = traits_type::eq_int_type(__c, __ret); > if (!__testeof) > { > const bool __testeq = traits_type::eq(traits_type:: > to_char_type(__c), > this->gptr()[-1]); > const bool __testout = this->_M_mode & ios_base::out; > if (__testeq || __testout) > { > this->gbump(-1); > if (!__testeq) > *this->gptr() = traits_type::to_char_type(__c); > __ret = __c; > } > } > else > { > this->gbump(-1); > __ret = traits_type::not_eof(__c); > } > } > return __ret; > } > > template <class _CharT, class _Traits, class _Alloc> > typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type > basic_stringbuf<_CharT, _Traits, _Alloc>:: > overflow(int_type __c) > { > const bool __testout = this->_M_mode & ios_base::out; > if (__builtin_expect(!__testout, false)) > return traits_type::eof(); > > const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); > if (__builtin_expect(__testeof, false)) > return traits_type::not_eof(__c); > > const __size_type __capacity = _M_string.capacity(); > const __size_type __max_size = _M_string.max_size(); > const bool __testput = this->pptr() < this->epptr(); > if (__builtin_expect(!__testput && __capacity == __max_size, false)) > return traits_type::eof(); > > > > const char_type __conv = traits_type::to_char_type(__c); > if (!__testput) > { ># 110 "/usr/include/c++/4.8.2/bits/sstream.tcc" 3 > const __size_type __opt_len = std::max(__size_type(2 * __capacity), > __size_type(512)); > const __size_type __len = std::min(__opt_len, __max_size); > __string_type __tmp; > __tmp.reserve(__len); > if (this->pbase()) > __tmp.assign(this->pbase(), this->epptr() - this->pbase()); > __tmp.push_back(__conv); > _M_string.swap(__tmp); > _M_sync(const_cast<char_type*>(_M_string.data()), > this->gptr() - this->eback(), this->pptr() - this->pbase()); > } > else > *this->pptr() = __conv; > this->pbump(1); > return __c; > } > > template <class _CharT, class _Traits, class _Alloc> > typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type > basic_stringbuf<_CharT, _Traits, _Alloc>:: > underflow() > { > int_type __ret = traits_type::eof(); > const bool __testin = this->_M_mode & ios_base::in; > if (__testin) > { > > _M_update_egptr(); > > if (this->gptr() < this->egptr()) > __ret = traits_type::to_int_type(*this->gptr()); > } > return __ret; > } > > template <class _CharT, class _Traits, class _Alloc> > typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type > basic_stringbuf<_CharT, _Traits, _Alloc>:: > seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) > { > pos_type __ret = pos_type(off_type(-1)); > bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; > bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; > const bool __testboth = __testin && __testout && __way != ios_base::cur; > __testin &= !(__mode & ios_base::out); > __testout &= !(__mode & ios_base::in); > > > > const char_type* __beg = __testin ? this->eback() : this->pbase(); > if ((__beg || !__off) && (__testin || __testout || __testboth)) > { > _M_update_egptr(); > > off_type __newoffi = __off; > off_type __newoffo = __newoffi; > if (__way == ios_base::cur) > { > __newoffi += this->gptr() - __beg; > __newoffo += this->pptr() - __beg; > } > else if (__way == ios_base::end) > __newoffo = __newoffi += this->egptr() - __beg; > > if ((__testin || __testboth) > && __newoffi >= 0 > && this->egptr() - __beg >= __newoffi) > { > this->setg(this->eback(), this->eback() + __newoffi, > this->egptr()); > __ret = pos_type(__newoffi); > } > if ((__testout || __testboth) > && __newoffo >= 0 > && this->egptr() - __beg >= __newoffo) > { > _M_pbump(this->pbase(), this->epptr(), __newoffo); > __ret = pos_type(__newoffo); > } > } > return __ret; > } > > template <class _CharT, class _Traits, class _Alloc> > typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type > basic_stringbuf<_CharT, _Traits, _Alloc>:: > seekpos(pos_type __sp, ios_base::openmode __mode) > { > pos_type __ret = pos_type(off_type(-1)); > const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; > const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; > > const char_type* __beg = __testin ? this->eback() : this->pbase(); > if ((__beg || !off_type(__sp)) && (__testin || __testout)) > { > _M_update_egptr(); > > const off_type __pos(__sp); > const bool __testpos = (0 <= __pos > && __pos <= this->egptr() - __beg); > if (__testpos) > { > if (__testin) > this->setg(this->eback(), this->eback() + __pos, > this->egptr()); > if (__testout) > _M_pbump(this->pbase(), this->epptr(), __pos); > __ret = __sp; > } > } > return __ret; > } > > template <class _CharT, class _Traits, class _Alloc> > void > basic_stringbuf<_CharT, _Traits, _Alloc>:: > _M_sync(char_type* __base, __size_type __i, __size_type __o) > { > const bool __testin = _M_mode & ios_base::in; > const bool __testout = _M_mode & ios_base::out; > char_type* __endg = __base + _M_string.size(); > char_type* __endp = __base + _M_string.capacity(); > > if (__base != _M_string.data()) > { > > __endg += __i; > __i = 0; > __endp = __endg; > } > > if (__testin) > this->setg(__base, __base + __i, __endg); > if (__testout) > { > _M_pbump(__base, __endp, __o); > > > > if (!__testin) > this->setg(__endg, __endg, __endg); > } > } > > template <class _CharT, class _Traits, class _Alloc> > void > basic_stringbuf<_CharT, _Traits, _Alloc>:: > _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) > { > this->setp(__pbeg, __pend); > while (__off > __gnu_cxx::__numeric_traits<int>::__max) > { > this->pbump(__gnu_cxx::__numeric_traits<int>::__max); > __off -= __gnu_cxx::__numeric_traits<int>::__max; > } > this->pbump(__off); > } > > > > > extern template class basic_stringbuf<char>; > extern template class basic_istringstream<char>; > extern template class basic_ostringstream<char>; > extern template class basic_stringstream<char>; > > > extern template class basic_stringbuf<wchar_t>; > extern template class basic_istringstream<wchar_t>; > extern template class basic_ostringstream<wchar_t>; > extern template class basic_stringstream<wchar_t>; > > > > >} ># 601 "/usr/include/c++/4.8.2/sstream" 2 3 ># 293 "../gtest_contrib/gtest/gtest.h" 2 > > >#define GTEST_DEV_EMAIL_ "googletestframework@@googlegroups.com" >#define GTEST_FLAG_PREFIX_ "gtest_" >#define GTEST_FLAG_PREFIX_DASH_ "gtest-" >#define GTEST_FLAG_PREFIX_UPPER_ "GTEST_" >#define GTEST_NAME_ "Google Test" >#define GTEST_PROJECT_URL_ "http://code.google.com/p/googletest/" > > > > >#define GTEST_GCC_VER_ (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__) ># 326 "../gtest_contrib/gtest/gtest.h" >#define GTEST_OS_LINUX 1 ># 349 "../gtest_contrib/gtest/gtest.h" ># 1 "/usr/include/unistd.h" 1 3 4 ># 23 "/usr/include/unistd.h" 3 4 >#define _UNISTD_H 1 > > > >extern "C" { > > > > > > >#define _POSIX_VERSION 200809L ># 53 "/usr/include/unistd.h" 3 4 >#define __POSIX2_THIS_VERSION 200809L ># 67 "/usr/include/unistd.h" 3 4 >#define _POSIX2_VERSION __POSIX2_THIS_VERSION > > > >#define _POSIX2_C_BIND __POSIX2_THIS_VERSION > > > >#define _POSIX2_C_DEV __POSIX2_THIS_VERSION > > > >#define _POSIX2_SW_DEV __POSIX2_THIS_VERSION > > > >#define _POSIX2_LOCALEDEF __POSIX2_THIS_VERSION > > > >#define _XOPEN_VERSION 700 ># 97 "/usr/include/unistd.h" 3 4 >#define _XOPEN_XCU_VERSION 4 > > >#define _XOPEN_XPG2 1 >#define _XOPEN_XPG3 1 >#define _XOPEN_XPG4 1 > > >#define _XOPEN_UNIX 1 > > >#define _XOPEN_CRYPT 1 > > > >#define _XOPEN_ENH_I18N 1 > > >#define _XOPEN_LEGACY 1 ># 202 "/usr/include/unistd.h" 3 4 ># 1 "/usr/include/bits/posix_opt.h" 1 3 4 ># 20 "/usr/include/bits/posix_opt.h" 3 4 >#define _BITS_POSIX_OPT_H 1 > > >#define _POSIX_JOB_CONTROL 1 > > >#define _POSIX_SAVED_IDS 1 > > >#define _POSIX_PRIORITY_SCHEDULING 200809L > > >#define _POSIX_SYNCHRONIZED_IO 200809L > > >#define _POSIX_FSYNC 200809L > > >#define _POSIX_MAPPED_FILES 200809L > > >#define _POSIX_MEMLOCK 200809L > > >#define _POSIX_MEMLOCK_RANGE 200809L > > >#define _POSIX_MEMORY_PROTECTION 200809L > > >#define _POSIX_CHOWN_RESTRICTED 0 > > > >#define _POSIX_VDISABLE '\0' > > >#define _POSIX_NO_TRUNC 1 > > >#define _XOPEN_REALTIME 1 > > >#define _XOPEN_REALTIME_THREADS 1 > > >#define _XOPEN_SHM 1 > > >#define _POSIX_THREADS 200809L > > >#define _POSIX_REENTRANT_FUNCTIONS 1 >#define _POSIX_THREAD_SAFE_FUNCTIONS 200809L > > >#define _POSIX_THREAD_PRIORITY_SCHEDULING 200809L > > >#define _POSIX_THREAD_ATTR_STACKSIZE 200809L > > >#define _POSIX_THREAD_ATTR_STACKADDR 200809L > > >#define _POSIX_THREAD_PRIO_INHERIT 200809L > > > >#define _POSIX_THREAD_PRIO_PROTECT 200809L > > > >#define _POSIX_THREAD_ROBUST_PRIO_INHERIT 200809L > > >#define _POSIX_THREAD_ROBUST_PRIO_PROTECT -1 > > > >#define _POSIX_SEMAPHORES 200809L > > >#define _POSIX_REALTIME_SIGNALS 200809L > > >#define _POSIX_ASYNCHRONOUS_IO 200809L >#define _POSIX_ASYNC_IO 1 > >#define _LFS_ASYNCHRONOUS_IO 1 > >#define _POSIX_PRIORITIZED_IO 200809L > > >#define _LFS64_ASYNCHRONOUS_IO 1 > > >#define _LFS_LARGEFILE 1 >#define _LFS64_LARGEFILE 1 >#define _LFS64_STDIO 1 > > >#define _POSIX_SHARED_MEMORY_OBJECTS 200809L > > >#define _POSIX_CPUTIME 0 > > >#define _POSIX_THREAD_CPUTIME 0 > > >#define _POSIX_REGEXP 1 > > >#define _POSIX_READER_WRITER_LOCKS 200809L > > >#define _POSIX_SHELL 1 > > >#define _POSIX_TIMEOUTS 200809L > > >#define _POSIX_SPIN_LOCKS 200809L > > >#define _POSIX_SPAWN 200809L > > >#define _POSIX_TIMERS 200809L > > >#define _POSIX_BARRIERS 200809L > > >#define _POSIX_MESSAGE_PASSING 200809L > > >#define _POSIX_THREAD_PROCESS_SHARED 200809L > > >#define _POSIX_MONOTONIC_CLOCK 0 > > >#define _POSIX_CLOCK_SELECTION 200809L > > >#define _POSIX_ADVISORY_INFO 200809L > > >#define _POSIX_IPV6 200809L > > >#define _POSIX_RAW_SOCKETS 200809L > > >#define _POSIX2_CHAR_TERM 200809L > > >#define _POSIX_SPORADIC_SERVER -1 >#define _POSIX_THREAD_SPORADIC_SERVER -1 > > >#define _POSIX_TRACE -1 >#define _POSIX_TRACE_EVENT_FILTER -1 >#define _POSIX_TRACE_INHERIT -1 >#define _POSIX_TRACE_LOG -1 > > >#define _POSIX_TYPED_MEMORY_OBJECTS -1 > > >#define _XOPEN_STREAMS -1 ># 203 "/usr/include/unistd.h" 2 3 4 > > > ># 1 "/usr/include/bits/environments.h" 1 3 4 ># 22 "/usr/include/bits/environments.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 23 "/usr/include/bits/environments.h" 2 3 4 ># 56 "/usr/include/bits/environments.h" 3 4 >#define _POSIX_V7_LPBIG_OFFBIG -1 >#define _POSIX_V6_LPBIG_OFFBIG -1 >#define _XBS5_LPBIG_OFFBIG -1 > > >#define _POSIX_V7_LP64_OFF64 1 >#define _POSIX_V6_LP64_OFF64 1 >#define _XBS5_LP64_OFF64 1 ># 95 "/usr/include/bits/environments.h" 3 4 >#define __ILP32_OFF32_CFLAGS "-m32" >#define __ILP32_OFF32_LDFLAGS "-m32" > > > > >#define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" >#define __ILP32_OFFBIG_LDFLAGS "-m32" > >#define __LP64_OFF64_CFLAGS "-m64" >#define __LP64_OFF64_LDFLAGS "-m64" ># 207 "/usr/include/unistd.h" 2 3 4 > > > >#define STDIN_FILENO 0 >#define STDOUT_FILENO 1 >#define STDERR_FILENO 2 ># 224 "/usr/include/unistd.h" 3 4 >#define __need_size_t >#define __need_NULL ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 227 "/usr/include/unistd.h" 2 3 4 ># 267 "/usr/include/unistd.h" 3 4 >typedef __intptr_t intptr_t; >#define __intptr_t_defined > > > > > >typedef __socklen_t socklen_t; >#define __socklen_t_defined > > > > > >#define R_OK 4 >#define W_OK 2 >#define X_OK 1 >#define F_OK 0 > > >extern int access (const char *__name, int __type) throw () __attribute__ ((__nonnull__ (1))); > > > > >extern int euidaccess (const char *__name, int __type) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int eaccess (const char *__name, int __type) > throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern int faccessat (int __fd, const char *__file, int __type, int __flag) > throw () __attribute__ ((__nonnull__ (2))) ; ># 322 "/usr/include/unistd.h" 3 4 >#define L_SET SEEK_SET >#define L_INCR SEEK_CUR >#define L_XTND SEEK_END ># 334 "/usr/include/unistd.h" 3 4 >extern __off_t lseek (int __fd, __off_t __offset, int __whence) throw (); ># 345 "/usr/include/unistd.h" 3 4 >extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) > throw (); > > > > > > >extern int close (int __fd); > > > > > > >extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ; > > > > > >extern ssize_t write (int __fd, const void *__buf, size_t __n) ; ># 376 "/usr/include/unistd.h" 3 4 >extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, > __off_t __offset) ; > > > > > > >extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, > __off_t __offset) ; ># 404 "/usr/include/unistd.h" 3 4 >extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, > __off64_t __offset) ; > > >extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, > __off64_t __offset) ; > > > > > > > >extern int pipe (int __pipedes[2]) throw () ; > > > > >extern int pipe2 (int __pipedes[2], int __flags) throw () ; ># 432 "/usr/include/unistd.h" 3 4 >extern unsigned int alarm (unsigned int __seconds) throw (); ># 444 "/usr/include/unistd.h" 3 4 >extern unsigned int sleep (unsigned int __seconds); > > > > > > > >extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) > throw (); > > > > > > >extern int usleep (__useconds_t __useconds); ># 469 "/usr/include/unistd.h" 3 4 >extern int pause (void); > > > >extern int chown (const char *__file, __uid_t __owner, __gid_t __group) > throw () __attribute__ ((__nonnull__ (1))) ; > > > >extern int fchown (int __fd, __uid_t __owner, __gid_t __group) throw () ; > > > > >extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > > > >extern int fchownat (int __fd, const char *__file, __uid_t __owner, > __gid_t __group, int __flag) > throw () __attribute__ ((__nonnull__ (2))) ; > > > >extern int chdir (const char *__path) throw () __attribute__ ((__nonnull__ (1))) ; > > > >extern int fchdir (int __fd) throw () ; ># 511 "/usr/include/unistd.h" 3 4 >extern char *getcwd (char *__buf, size_t __size) throw () ; > > > > > >extern char *get_current_dir_name (void) throw (); > > > > > > > >extern char *getwd (char *__buf) > throw () __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) ; > > > > >extern int dup (int __fd) throw () ; > > >extern int dup2 (int __fd, int __fd2) throw (); > > > > >extern int dup3 (int __fd, int __fd2, int __flags) throw (); > > > >extern char **__environ; > >extern char **environ; > > > > > >extern int execve (const char *__path, char *const __argv[], > char *const __envp[]) throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) > throw () __attribute__ ((__nonnull__ (2))); > > > > >extern int execv (const char *__path, char *const __argv[]) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int execle (const char *__path, const char *__arg, ...) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int execl (const char *__path, const char *__arg, ...) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern int execvp (const char *__file, char *const __argv[]) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int execlp (const char *__file, const char *__arg, ...) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int execvpe (const char *__file, char *const __argv[], > char *const __envp[]) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern int nice (int __inc) throw () ; > > > > >extern void _exit (int __status) __attribute__ ((__noreturn__)); > > > > > ># 1 "/usr/include/bits/confname.h" 1 3 4 ># 24 "/usr/include/bits/confname.h" 3 4 >enum > { > _PC_LINK_MAX, >#define _PC_LINK_MAX _PC_LINK_MAX > _PC_MAX_CANON, >#define _PC_MAX_CANON _PC_MAX_CANON > _PC_MAX_INPUT, >#define _PC_MAX_INPUT _PC_MAX_INPUT > _PC_NAME_MAX, >#define _PC_NAME_MAX _PC_NAME_MAX > _PC_PATH_MAX, >#define _PC_PATH_MAX _PC_PATH_MAX > _PC_PIPE_BUF, >#define _PC_PIPE_BUF _PC_PIPE_BUF > _PC_CHOWN_RESTRICTED, >#define _PC_CHOWN_RESTRICTED _PC_CHOWN_RESTRICTED > _PC_NO_TRUNC, >#define _PC_NO_TRUNC _PC_NO_TRUNC > _PC_VDISABLE, >#define _PC_VDISABLE _PC_VDISABLE > _PC_SYNC_IO, >#define _PC_SYNC_IO _PC_SYNC_IO > _PC_ASYNC_IO, >#define _PC_ASYNC_IO _PC_ASYNC_IO > _PC_PRIO_IO, >#define _PC_PRIO_IO _PC_PRIO_IO > _PC_SOCK_MAXBUF, >#define _PC_SOCK_MAXBUF _PC_SOCK_MAXBUF > _PC_FILESIZEBITS, >#define _PC_FILESIZEBITS _PC_FILESIZEBITS > _PC_REC_INCR_XFER_SIZE, >#define _PC_REC_INCR_XFER_SIZE _PC_REC_INCR_XFER_SIZE > _PC_REC_MAX_XFER_SIZE, >#define _PC_REC_MAX_XFER_SIZE _PC_REC_MAX_XFER_SIZE > _PC_REC_MIN_XFER_SIZE, >#define _PC_REC_MIN_XFER_SIZE _PC_REC_MIN_XFER_SIZE > _PC_REC_XFER_ALIGN, >#define _PC_REC_XFER_ALIGN _PC_REC_XFER_ALIGN > _PC_ALLOC_SIZE_MIN, >#define _PC_ALLOC_SIZE_MIN _PC_ALLOC_SIZE_MIN > _PC_SYMLINK_MAX, >#define _PC_SYMLINK_MAX _PC_SYMLINK_MAX > _PC_2_SYMLINKS >#define _PC_2_SYMLINKS _PC_2_SYMLINKS > }; > > >enum > { > _SC_ARG_MAX, >#define _SC_ARG_MAX _SC_ARG_MAX > _SC_CHILD_MAX, >#define _SC_CHILD_MAX _SC_CHILD_MAX > _SC_CLK_TCK, >#define _SC_CLK_TCK _SC_CLK_TCK > _SC_NGROUPS_MAX, >#define _SC_NGROUPS_MAX _SC_NGROUPS_MAX > _SC_OPEN_MAX, >#define _SC_OPEN_MAX _SC_OPEN_MAX > _SC_STREAM_MAX, >#define _SC_STREAM_MAX _SC_STREAM_MAX > _SC_TZNAME_MAX, >#define _SC_TZNAME_MAX _SC_TZNAME_MAX > _SC_JOB_CONTROL, >#define _SC_JOB_CONTROL _SC_JOB_CONTROL > _SC_SAVED_IDS, >#define _SC_SAVED_IDS _SC_SAVED_IDS > _SC_REALTIME_SIGNALS, >#define _SC_REALTIME_SIGNALS _SC_REALTIME_SIGNALS > _SC_PRIORITY_SCHEDULING, >#define _SC_PRIORITY_SCHEDULING _SC_PRIORITY_SCHEDULING > _SC_TIMERS, >#define _SC_TIMERS _SC_TIMERS > _SC_ASYNCHRONOUS_IO, >#define _SC_ASYNCHRONOUS_IO _SC_ASYNCHRONOUS_IO > _SC_PRIORITIZED_IO, >#define _SC_PRIORITIZED_IO _SC_PRIORITIZED_IO > _SC_SYNCHRONIZED_IO, >#define _SC_SYNCHRONIZED_IO _SC_SYNCHRONIZED_IO > _SC_FSYNC, >#define _SC_FSYNC _SC_FSYNC > _SC_MAPPED_FILES, >#define _SC_MAPPED_FILES _SC_MAPPED_FILES > _SC_MEMLOCK, >#define _SC_MEMLOCK _SC_MEMLOCK > _SC_MEMLOCK_RANGE, >#define _SC_MEMLOCK_RANGE _SC_MEMLOCK_RANGE > _SC_MEMORY_PROTECTION, >#define _SC_MEMORY_PROTECTION _SC_MEMORY_PROTECTION > _SC_MESSAGE_PASSING, >#define _SC_MESSAGE_PASSING _SC_MESSAGE_PASSING > _SC_SEMAPHORES, >#define _SC_SEMAPHORES _SC_SEMAPHORES > _SC_SHARED_MEMORY_OBJECTS, >#define _SC_SHARED_MEMORY_OBJECTS _SC_SHARED_MEMORY_OBJECTS > _SC_AIO_LISTIO_MAX, >#define _SC_AIO_LISTIO_MAX _SC_AIO_LISTIO_MAX > _SC_AIO_MAX, >#define _SC_AIO_MAX _SC_AIO_MAX > _SC_AIO_PRIO_DELTA_MAX, >#define _SC_AIO_PRIO_DELTA_MAX _SC_AIO_PRIO_DELTA_MAX > _SC_DELAYTIMER_MAX, >#define _SC_DELAYTIMER_MAX _SC_DELAYTIMER_MAX > _SC_MQ_OPEN_MAX, >#define _SC_MQ_OPEN_MAX _SC_MQ_OPEN_MAX > _SC_MQ_PRIO_MAX, >#define _SC_MQ_PRIO_MAX _SC_MQ_PRIO_MAX > _SC_VERSION, >#define _SC_VERSION _SC_VERSION > _SC_PAGESIZE, >#define _SC_PAGESIZE _SC_PAGESIZE >#define _SC_PAGE_SIZE _SC_PAGESIZE > _SC_RTSIG_MAX, >#define _SC_RTSIG_MAX _SC_RTSIG_MAX > _SC_SEM_NSEMS_MAX, >#define _SC_SEM_NSEMS_MAX _SC_SEM_NSEMS_MAX > _SC_SEM_VALUE_MAX, >#define _SC_SEM_VALUE_MAX _SC_SEM_VALUE_MAX > _SC_SIGQUEUE_MAX, >#define _SC_SIGQUEUE_MAX _SC_SIGQUEUE_MAX > _SC_TIMER_MAX, >#define _SC_TIMER_MAX _SC_TIMER_MAX > > > > _SC_BC_BASE_MAX, >#define _SC_BC_BASE_MAX _SC_BC_BASE_MAX > _SC_BC_DIM_MAX, >#define _SC_BC_DIM_MAX _SC_BC_DIM_MAX > _SC_BC_SCALE_MAX, >#define _SC_BC_SCALE_MAX _SC_BC_SCALE_MAX > _SC_BC_STRING_MAX, >#define _SC_BC_STRING_MAX _SC_BC_STRING_MAX > _SC_COLL_WEIGHTS_MAX, >#define _SC_COLL_WEIGHTS_MAX _SC_COLL_WEIGHTS_MAX > _SC_EQUIV_CLASS_MAX, >#define _SC_EQUIV_CLASS_MAX _SC_EQUIV_CLASS_MAX > _SC_EXPR_NEST_MAX, >#define _SC_EXPR_NEST_MAX _SC_EXPR_NEST_MAX > _SC_LINE_MAX, >#define _SC_LINE_MAX _SC_LINE_MAX > _SC_RE_DUP_MAX, >#define _SC_RE_DUP_MAX _SC_RE_DUP_MAX > _SC_CHARCLASS_NAME_MAX, >#define _SC_CHARCLASS_NAME_MAX _SC_CHARCLASS_NAME_MAX > > _SC_2_VERSION, >#define _SC_2_VERSION _SC_2_VERSION > _SC_2_C_BIND, >#define _SC_2_C_BIND _SC_2_C_BIND > _SC_2_C_DEV, >#define _SC_2_C_DEV _SC_2_C_DEV > _SC_2_FORT_DEV, >#define _SC_2_FORT_DEV _SC_2_FORT_DEV > _SC_2_FORT_RUN, >#define _SC_2_FORT_RUN _SC_2_FORT_RUN > _SC_2_SW_DEV, >#define _SC_2_SW_DEV _SC_2_SW_DEV > _SC_2_LOCALEDEF, >#define _SC_2_LOCALEDEF _SC_2_LOCALEDEF > > _SC_PII, >#define _SC_PII _SC_PII > _SC_PII_XTI, >#define _SC_PII_XTI _SC_PII_XTI > _SC_PII_SOCKET, >#define _SC_PII_SOCKET _SC_PII_SOCKET > _SC_PII_INTERNET, >#define _SC_PII_INTERNET _SC_PII_INTERNET > _SC_PII_OSI, >#define _SC_PII_OSI _SC_PII_OSI > _SC_POLL, >#define _SC_POLL _SC_POLL > _SC_SELECT, >#define _SC_SELECT _SC_SELECT > _SC_UIO_MAXIOV, >#define _SC_UIO_MAXIOV _SC_UIO_MAXIOV > _SC_IOV_MAX = _SC_UIO_MAXIOV, >#define _SC_IOV_MAX _SC_IOV_MAX > _SC_PII_INTERNET_STREAM, >#define _SC_PII_INTERNET_STREAM _SC_PII_INTERNET_STREAM > _SC_PII_INTERNET_DGRAM, >#define _SC_PII_INTERNET_DGRAM _SC_PII_INTERNET_DGRAM > _SC_PII_OSI_COTS, >#define _SC_PII_OSI_COTS _SC_PII_OSI_COTS > _SC_PII_OSI_CLTS, >#define _SC_PII_OSI_CLTS _SC_PII_OSI_CLTS > _SC_PII_OSI_M, >#define _SC_PII_OSI_M _SC_PII_OSI_M > _SC_T_IOV_MAX, >#define _SC_T_IOV_MAX _SC_T_IOV_MAX > > > _SC_THREADS, >#define _SC_THREADS _SC_THREADS > _SC_THREAD_SAFE_FUNCTIONS, >#define _SC_THREAD_SAFE_FUNCTIONS _SC_THREAD_SAFE_FUNCTIONS > _SC_GETGR_R_SIZE_MAX, >#define _SC_GETGR_R_SIZE_MAX _SC_GETGR_R_SIZE_MAX > _SC_GETPW_R_SIZE_MAX, >#define _SC_GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX > _SC_LOGIN_NAME_MAX, >#define _SC_LOGIN_NAME_MAX _SC_LOGIN_NAME_MAX > _SC_TTY_NAME_MAX, >#define _SC_TTY_NAME_MAX _SC_TTY_NAME_MAX > _SC_THREAD_DESTRUCTOR_ITERATIONS, >#define _SC_THREAD_DESTRUCTOR_ITERATIONS _SC_THREAD_DESTRUCTOR_ITERATIONS > _SC_THREAD_KEYS_MAX, >#define _SC_THREAD_KEYS_MAX _SC_THREAD_KEYS_MAX > _SC_THREAD_STACK_MIN, >#define _SC_THREAD_STACK_MIN _SC_THREAD_STACK_MIN > _SC_THREAD_THREADS_MAX, >#define _SC_THREAD_THREADS_MAX _SC_THREAD_THREADS_MAX > _SC_THREAD_ATTR_STACKADDR, >#define _SC_THREAD_ATTR_STACKADDR _SC_THREAD_ATTR_STACKADDR > _SC_THREAD_ATTR_STACKSIZE, >#define _SC_THREAD_ATTR_STACKSIZE _SC_THREAD_ATTR_STACKSIZE > _SC_THREAD_PRIORITY_SCHEDULING, >#define _SC_THREAD_PRIORITY_SCHEDULING _SC_THREAD_PRIORITY_SCHEDULING > _SC_THREAD_PRIO_INHERIT, >#define _SC_THREAD_PRIO_INHERIT _SC_THREAD_PRIO_INHERIT > _SC_THREAD_PRIO_PROTECT, >#define _SC_THREAD_PRIO_PROTECT _SC_THREAD_PRIO_PROTECT > _SC_THREAD_PROCESS_SHARED, >#define _SC_THREAD_PROCESS_SHARED _SC_THREAD_PROCESS_SHARED > > _SC_NPROCESSORS_CONF, >#define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF > _SC_NPROCESSORS_ONLN, >#define _SC_NPROCESSORS_ONLN _SC_NPROCESSORS_ONLN > _SC_PHYS_PAGES, >#define _SC_PHYS_PAGES _SC_PHYS_PAGES > _SC_AVPHYS_PAGES, >#define _SC_AVPHYS_PAGES _SC_AVPHYS_PAGES > _SC_ATEXIT_MAX, >#define _SC_ATEXIT_MAX _SC_ATEXIT_MAX > _SC_PASS_MAX, >#define _SC_PASS_MAX _SC_PASS_MAX > > _SC_XOPEN_VERSION, >#define _SC_XOPEN_VERSION _SC_XOPEN_VERSION > _SC_XOPEN_XCU_VERSION, >#define _SC_XOPEN_XCU_VERSION _SC_XOPEN_XCU_VERSION > _SC_XOPEN_UNIX, >#define _SC_XOPEN_UNIX _SC_XOPEN_UNIX > _SC_XOPEN_CRYPT, >#define _SC_XOPEN_CRYPT _SC_XOPEN_CRYPT > _SC_XOPEN_ENH_I18N, >#define _SC_XOPEN_ENH_I18N _SC_XOPEN_ENH_I18N > _SC_XOPEN_SHM, >#define _SC_XOPEN_SHM _SC_XOPEN_SHM > > _SC_2_CHAR_TERM, >#define _SC_2_CHAR_TERM _SC_2_CHAR_TERM > _SC_2_C_VERSION, >#define _SC_2_C_VERSION _SC_2_C_VERSION > _SC_2_UPE, >#define _SC_2_UPE _SC_2_UPE > > _SC_XOPEN_XPG2, >#define _SC_XOPEN_XPG2 _SC_XOPEN_XPG2 > _SC_XOPEN_XPG3, >#define _SC_XOPEN_XPG3 _SC_XOPEN_XPG3 > _SC_XOPEN_XPG4, >#define _SC_XOPEN_XPG4 _SC_XOPEN_XPG4 > > _SC_CHAR_BIT, >#define _SC_CHAR_BIT _SC_CHAR_BIT > _SC_CHAR_MAX, >#define _SC_CHAR_MAX _SC_CHAR_MAX > _SC_CHAR_MIN, >#define _SC_CHAR_MIN _SC_CHAR_MIN > _SC_INT_MAX, >#define _SC_INT_MAX _SC_INT_MAX > _SC_INT_MIN, >#define _SC_INT_MIN _SC_INT_MIN > _SC_LONG_BIT, >#define _SC_LONG_BIT _SC_LONG_BIT > _SC_WORD_BIT, >#define _SC_WORD_BIT _SC_WORD_BIT > _SC_MB_LEN_MAX, >#define _SC_MB_LEN_MAX _SC_MB_LEN_MAX > _SC_NZERO, >#define _SC_NZERO _SC_NZERO > _SC_SSIZE_MAX, >#define _SC_SSIZE_MAX _SC_SSIZE_MAX > _SC_SCHAR_MAX, >#define _SC_SCHAR_MAX _SC_SCHAR_MAX > _SC_SCHAR_MIN, >#define _SC_SCHAR_MIN _SC_SCHAR_MIN > _SC_SHRT_MAX, >#define _SC_SHRT_MAX _SC_SHRT_MAX > _SC_SHRT_MIN, >#define _SC_SHRT_MIN _SC_SHRT_MIN > _SC_UCHAR_MAX, >#define _SC_UCHAR_MAX _SC_UCHAR_MAX > _SC_UINT_MAX, >#define _SC_UINT_MAX _SC_UINT_MAX > _SC_ULONG_MAX, >#define _SC_ULONG_MAX _SC_ULONG_MAX > _SC_USHRT_MAX, >#define _SC_USHRT_MAX _SC_USHRT_MAX > > _SC_NL_ARGMAX, >#define _SC_NL_ARGMAX _SC_NL_ARGMAX > _SC_NL_LANGMAX, >#define _SC_NL_LANGMAX _SC_NL_LANGMAX > _SC_NL_MSGMAX, >#define _SC_NL_MSGMAX _SC_NL_MSGMAX > _SC_NL_NMAX, >#define _SC_NL_NMAX _SC_NL_NMAX > _SC_NL_SETMAX, >#define _SC_NL_SETMAX _SC_NL_SETMAX > _SC_NL_TEXTMAX, >#define _SC_NL_TEXTMAX _SC_NL_TEXTMAX > > _SC_XBS5_ILP32_OFF32, >#define _SC_XBS5_ILP32_OFF32 _SC_XBS5_ILP32_OFF32 > _SC_XBS5_ILP32_OFFBIG, >#define _SC_XBS5_ILP32_OFFBIG _SC_XBS5_ILP32_OFFBIG > _SC_XBS5_LP64_OFF64, >#define _SC_XBS5_LP64_OFF64 _SC_XBS5_LP64_OFF64 > _SC_XBS5_LPBIG_OFFBIG, >#define _SC_XBS5_LPBIG_OFFBIG _SC_XBS5_LPBIG_OFFBIG > > _SC_XOPEN_LEGACY, >#define _SC_XOPEN_LEGACY _SC_XOPEN_LEGACY > _SC_XOPEN_REALTIME, >#define _SC_XOPEN_REALTIME _SC_XOPEN_REALTIME > _SC_XOPEN_REALTIME_THREADS, >#define _SC_XOPEN_REALTIME_THREADS _SC_XOPEN_REALTIME_THREADS > > _SC_ADVISORY_INFO, >#define _SC_ADVISORY_INFO _SC_ADVISORY_INFO > _SC_BARRIERS, >#define _SC_BARRIERS _SC_BARRIERS > _SC_BASE, >#define _SC_BASE _SC_BASE > _SC_C_LANG_SUPPORT, >#define _SC_C_LANG_SUPPORT _SC_C_LANG_SUPPORT > _SC_C_LANG_SUPPORT_R, >#define _SC_C_LANG_SUPPORT_R _SC_C_LANG_SUPPORT_R > _SC_CLOCK_SELECTION, >#define _SC_CLOCK_SELECTION _SC_CLOCK_SELECTION > _SC_CPUTIME, >#define _SC_CPUTIME _SC_CPUTIME > _SC_THREAD_CPUTIME, >#define _SC_THREAD_CPUTIME _SC_THREAD_CPUTIME > _SC_DEVICE_IO, >#define _SC_DEVICE_IO _SC_DEVICE_IO > _SC_DEVICE_SPECIFIC, >#define _SC_DEVICE_SPECIFIC _SC_DEVICE_SPECIFIC > _SC_DEVICE_SPECIFIC_R, >#define _SC_DEVICE_SPECIFIC_R _SC_DEVICE_SPECIFIC_R > _SC_FD_MGMT, >#define _SC_FD_MGMT _SC_FD_MGMT > _SC_FIFO, >#define _SC_FIFO _SC_FIFO > _SC_PIPE, >#define _SC_PIPE _SC_PIPE > _SC_FILE_ATTRIBUTES, >#define _SC_FILE_ATTRIBUTES _SC_FILE_ATTRIBUTES > _SC_FILE_LOCKING, >#define _SC_FILE_LOCKING _SC_FILE_LOCKING > _SC_FILE_SYSTEM, >#define _SC_FILE_SYSTEM _SC_FILE_SYSTEM > _SC_MONOTONIC_CLOCK, >#define _SC_MONOTONIC_CLOCK _SC_MONOTONIC_CLOCK > _SC_MULTI_PROCESS, >#define _SC_MULTI_PROCESS _SC_MULTI_PROCESS > _SC_SINGLE_PROCESS, >#define _SC_SINGLE_PROCESS _SC_SINGLE_PROCESS > _SC_NETWORKING, >#define _SC_NETWORKING _SC_NETWORKING > _SC_READER_WRITER_LOCKS, >#define _SC_READER_WRITER_LOCKS _SC_READER_WRITER_LOCKS > _SC_SPIN_LOCKS, >#define _SC_SPIN_LOCKS _SC_SPIN_LOCKS > _SC_REGEXP, >#define _SC_REGEXP _SC_REGEXP > _SC_REGEX_VERSION, >#define _SC_REGEX_VERSION _SC_REGEX_VERSION > _SC_SHELL, >#define _SC_SHELL _SC_SHELL > _SC_SIGNALS, >#define _SC_SIGNALS _SC_SIGNALS > _SC_SPAWN, >#define _SC_SPAWN _SC_SPAWN > _SC_SPORADIC_SERVER, >#define _SC_SPORADIC_SERVER _SC_SPORADIC_SERVER > _SC_THREAD_SPORADIC_SERVER, >#define _SC_THREAD_SPORADIC_SERVER _SC_THREAD_SPORADIC_SERVER > _SC_SYSTEM_DATABASE, >#define _SC_SYSTEM_DATABASE _SC_SYSTEM_DATABASE > _SC_SYSTEM_DATABASE_R, >#define _SC_SYSTEM_DATABASE_R _SC_SYSTEM_DATABASE_R > _SC_TIMEOUTS, >#define _SC_TIMEOUTS _SC_TIMEOUTS > _SC_TYPED_MEMORY_OBJECTS, >#define _SC_TYPED_MEMORY_OBJECTS _SC_TYPED_MEMORY_OBJECTS > _SC_USER_GROUPS, >#define _SC_USER_GROUPS _SC_USER_GROUPS > _SC_USER_GROUPS_R, >#define _SC_USER_GROUPS_R _SC_USER_GROUPS_R > _SC_2_PBS, >#define _SC_2_PBS _SC_2_PBS > _SC_2_PBS_ACCOUNTING, >#define _SC_2_PBS_ACCOUNTING _SC_2_PBS_ACCOUNTING > _SC_2_PBS_LOCATE, >#define _SC_2_PBS_LOCATE _SC_2_PBS_LOCATE > _SC_2_PBS_MESSAGE, >#define _SC_2_PBS_MESSAGE _SC_2_PBS_MESSAGE > _SC_2_PBS_TRACK, >#define _SC_2_PBS_TRACK _SC_2_PBS_TRACK > _SC_SYMLOOP_MAX, >#define _SC_SYMLOOP_MAX _SC_SYMLOOP_MAX > _SC_STREAMS, >#define _SC_STREAMS _SC_STREAMS > _SC_2_PBS_CHECKPOINT, >#define _SC_2_PBS_CHECKPOINT _SC_2_PBS_CHECKPOINT > > _SC_V6_ILP32_OFF32, >#define _SC_V6_ILP32_OFF32 _SC_V6_ILP32_OFF32 > _SC_V6_ILP32_OFFBIG, >#define _SC_V6_ILP32_OFFBIG _SC_V6_ILP32_OFFBIG > _SC_V6_LP64_OFF64, >#define _SC_V6_LP64_OFF64 _SC_V6_LP64_OFF64 > _SC_V6_LPBIG_OFFBIG, >#define _SC_V6_LPBIG_OFFBIG _SC_V6_LPBIG_OFFBIG > > _SC_HOST_NAME_MAX, >#define _SC_HOST_NAME_MAX _SC_HOST_NAME_MAX > _SC_TRACE, >#define _SC_TRACE _SC_TRACE > _SC_TRACE_EVENT_FILTER, >#define _SC_TRACE_EVENT_FILTER _SC_TRACE_EVENT_FILTER > _SC_TRACE_INHERIT, >#define _SC_TRACE_INHERIT _SC_TRACE_INHERIT > _SC_TRACE_LOG, >#define _SC_TRACE_LOG _SC_TRACE_LOG > > _SC_LEVEL1_ICACHE_SIZE, >#define _SC_LEVEL1_ICACHE_SIZE _SC_LEVEL1_ICACHE_SIZE > _SC_LEVEL1_ICACHE_ASSOC, >#define _SC_LEVEL1_ICACHE_ASSOC _SC_LEVEL1_ICACHE_ASSOC > _SC_LEVEL1_ICACHE_LINESIZE, >#define _SC_LEVEL1_ICACHE_LINESIZE _SC_LEVEL1_ICACHE_LINESIZE > _SC_LEVEL1_DCACHE_SIZE, >#define _SC_LEVEL1_DCACHE_SIZE _SC_LEVEL1_DCACHE_SIZE > _SC_LEVEL1_DCACHE_ASSOC, >#define _SC_LEVEL1_DCACHE_ASSOC _SC_LEVEL1_DCACHE_ASSOC > _SC_LEVEL1_DCACHE_LINESIZE, >#define _SC_LEVEL1_DCACHE_LINESIZE _SC_LEVEL1_DCACHE_LINESIZE > _SC_LEVEL2_CACHE_SIZE, >#define _SC_LEVEL2_CACHE_SIZE _SC_LEVEL2_CACHE_SIZE > _SC_LEVEL2_CACHE_ASSOC, >#define _SC_LEVEL2_CACHE_ASSOC _SC_LEVEL2_CACHE_ASSOC > _SC_LEVEL2_CACHE_LINESIZE, >#define _SC_LEVEL2_CACHE_LINESIZE _SC_LEVEL2_CACHE_LINESIZE > _SC_LEVEL3_CACHE_SIZE, >#define _SC_LEVEL3_CACHE_SIZE _SC_LEVEL3_CACHE_SIZE > _SC_LEVEL3_CACHE_ASSOC, >#define _SC_LEVEL3_CACHE_ASSOC _SC_LEVEL3_CACHE_ASSOC > _SC_LEVEL3_CACHE_LINESIZE, >#define _SC_LEVEL3_CACHE_LINESIZE _SC_LEVEL3_CACHE_LINESIZE > _SC_LEVEL4_CACHE_SIZE, >#define _SC_LEVEL4_CACHE_SIZE _SC_LEVEL4_CACHE_SIZE > _SC_LEVEL4_CACHE_ASSOC, >#define _SC_LEVEL4_CACHE_ASSOC _SC_LEVEL4_CACHE_ASSOC > _SC_LEVEL4_CACHE_LINESIZE, >#define _SC_LEVEL4_CACHE_LINESIZE _SC_LEVEL4_CACHE_LINESIZE > > > _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, >#define _SC_IPV6 _SC_IPV6 > _SC_RAW_SOCKETS, >#define _SC_RAW_SOCKETS _SC_RAW_SOCKETS > > _SC_V7_ILP32_OFF32, >#define _SC_V7_ILP32_OFF32 _SC_V7_ILP32_OFF32 > _SC_V7_ILP32_OFFBIG, >#define _SC_V7_ILP32_OFFBIG _SC_V7_ILP32_OFFBIG > _SC_V7_LP64_OFF64, >#define _SC_V7_LP64_OFF64 _SC_V7_LP64_OFF64 > _SC_V7_LPBIG_OFFBIG, >#define _SC_V7_LPBIG_OFFBIG _SC_V7_LPBIG_OFFBIG > > _SC_SS_REPL_MAX, >#define _SC_SS_REPL_MAX _SC_SS_REPL_MAX > > _SC_TRACE_EVENT_NAME_MAX, >#define _SC_TRACE_EVENT_NAME_MAX _SC_TRACE_EVENT_NAME_MAX > _SC_TRACE_NAME_MAX, >#define _SC_TRACE_NAME_MAX _SC_TRACE_NAME_MAX > _SC_TRACE_SYS_MAX, >#define _SC_TRACE_SYS_MAX _SC_TRACE_SYS_MAX > _SC_TRACE_USER_EVENT_MAX, >#define _SC_TRACE_USER_EVENT_MAX _SC_TRACE_USER_EVENT_MAX > > _SC_XOPEN_STREAMS, >#define _SC_XOPEN_STREAMS _SC_XOPEN_STREAMS > > _SC_THREAD_ROBUST_PRIO_INHERIT, >#define _SC_THREAD_ROBUST_PRIO_INHERIT _SC_THREAD_ROBUST_PRIO_INHERIT > _SC_THREAD_ROBUST_PRIO_PROTECT >#define _SC_THREAD_ROBUST_PRIO_PROTECT _SC_THREAD_ROBUST_PRIO_PROTECT > }; > > >enum > { > _CS_PATH, >#define _CS_PATH _CS_PATH > > _CS_V6_WIDTH_RESTRICTED_ENVS, >#define _CS_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS >#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS > > _CS_GNU_LIBC_VERSION, >#define _CS_GNU_LIBC_VERSION _CS_GNU_LIBC_VERSION > _CS_GNU_LIBPTHREAD_VERSION, >#define _CS_GNU_LIBPTHREAD_VERSION _CS_GNU_LIBPTHREAD_VERSION > > _CS_V5_WIDTH_RESTRICTED_ENVS, >#define _CS_V5_WIDTH_RESTRICTED_ENVS _CS_V5_WIDTH_RESTRICTED_ENVS >#define _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS _CS_V5_WIDTH_RESTRICTED_ENVS > > _CS_V7_WIDTH_RESTRICTED_ENVS, >#define _CS_V7_WIDTH_RESTRICTED_ENVS _CS_V7_WIDTH_RESTRICTED_ENVS >#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS _CS_V7_WIDTH_RESTRICTED_ENVS > > _CS_LFS_CFLAGS = 1000, >#define _CS_LFS_CFLAGS _CS_LFS_CFLAGS > _CS_LFS_LDFLAGS, >#define _CS_LFS_LDFLAGS _CS_LFS_LDFLAGS > _CS_LFS_LIBS, >#define _CS_LFS_LIBS _CS_LFS_LIBS > _CS_LFS_LINTFLAGS, >#define _CS_LFS_LINTFLAGS _CS_LFS_LINTFLAGS > _CS_LFS64_CFLAGS, >#define _CS_LFS64_CFLAGS _CS_LFS64_CFLAGS > _CS_LFS64_LDFLAGS, >#define _CS_LFS64_LDFLAGS _CS_LFS64_LDFLAGS > _CS_LFS64_LIBS, >#define _CS_LFS64_LIBS _CS_LFS64_LIBS > _CS_LFS64_LINTFLAGS, >#define _CS_LFS64_LINTFLAGS _CS_LFS64_LINTFLAGS > > _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, >#define _CS_XBS5_ILP32_OFF32_CFLAGS _CS_XBS5_ILP32_OFF32_CFLAGS > _CS_XBS5_ILP32_OFF32_LDFLAGS, >#define _CS_XBS5_ILP32_OFF32_LDFLAGS _CS_XBS5_ILP32_OFF32_LDFLAGS > _CS_XBS5_ILP32_OFF32_LIBS, >#define _CS_XBS5_ILP32_OFF32_LIBS _CS_XBS5_ILP32_OFF32_LIBS > _CS_XBS5_ILP32_OFF32_LINTFLAGS, >#define _CS_XBS5_ILP32_OFF32_LINTFLAGS _CS_XBS5_ILP32_OFF32_LINTFLAGS > _CS_XBS5_ILP32_OFFBIG_CFLAGS, >#define _CS_XBS5_ILP32_OFFBIG_CFLAGS _CS_XBS5_ILP32_OFFBIG_CFLAGS > _CS_XBS5_ILP32_OFFBIG_LDFLAGS, >#define _CS_XBS5_ILP32_OFFBIG_LDFLAGS _CS_XBS5_ILP32_OFFBIG_LDFLAGS > _CS_XBS5_ILP32_OFFBIG_LIBS, >#define _CS_XBS5_ILP32_OFFBIG_LIBS _CS_XBS5_ILP32_OFFBIG_LIBS > _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, >#define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS _CS_XBS5_ILP32_OFFBIG_LINTFLAGS > _CS_XBS5_LP64_OFF64_CFLAGS, >#define _CS_XBS5_LP64_OFF64_CFLAGS _CS_XBS5_LP64_OFF64_CFLAGS > _CS_XBS5_LP64_OFF64_LDFLAGS, >#define _CS_XBS5_LP64_OFF64_LDFLAGS _CS_XBS5_LP64_OFF64_LDFLAGS > _CS_XBS5_LP64_OFF64_LIBS, >#define _CS_XBS5_LP64_OFF64_LIBS _CS_XBS5_LP64_OFF64_LIBS > _CS_XBS5_LP64_OFF64_LINTFLAGS, >#define _CS_XBS5_LP64_OFF64_LINTFLAGS _CS_XBS5_LP64_OFF64_LINTFLAGS > _CS_XBS5_LPBIG_OFFBIG_CFLAGS, >#define _CS_XBS5_LPBIG_OFFBIG_CFLAGS _CS_XBS5_LPBIG_OFFBIG_CFLAGS > _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, >#define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS _CS_XBS5_LPBIG_OFFBIG_LDFLAGS > _CS_XBS5_LPBIG_OFFBIG_LIBS, >#define _CS_XBS5_LPBIG_OFFBIG_LIBS _CS_XBS5_LPBIG_OFFBIG_LIBS > _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, >#define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS > > _CS_POSIX_V6_ILP32_OFF32_CFLAGS, >#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS _CS_POSIX_V6_ILP32_OFF32_CFLAGS > _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, >#define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS _CS_POSIX_V6_ILP32_OFF32_LDFLAGS > _CS_POSIX_V6_ILP32_OFF32_LIBS, >#define _CS_POSIX_V6_ILP32_OFF32_LIBS _CS_POSIX_V6_ILP32_OFF32_LIBS > _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, >#define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS > _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, >#define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS > _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, >#define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS > _CS_POSIX_V6_ILP32_OFFBIG_LIBS, >#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS _CS_POSIX_V6_ILP32_OFFBIG_LIBS > _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, >#define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS > _CS_POSIX_V6_LP64_OFF64_CFLAGS, >#define _CS_POSIX_V6_LP64_OFF64_CFLAGS _CS_POSIX_V6_LP64_OFF64_CFLAGS > _CS_POSIX_V6_LP64_OFF64_LDFLAGS, >#define _CS_POSIX_V6_LP64_OFF64_LDFLAGS _CS_POSIX_V6_LP64_OFF64_LDFLAGS > _CS_POSIX_V6_LP64_OFF64_LIBS, >#define _CS_POSIX_V6_LP64_OFF64_LIBS _CS_POSIX_V6_LP64_OFF64_LIBS > _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, >#define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS _CS_POSIX_V6_LP64_OFF64_LINTFLAGS > _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, >#define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS > _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, >#define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS > _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, >#define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS _CS_POSIX_V6_LPBIG_OFFBIG_LIBS > _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, >#define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS > > _CS_POSIX_V7_ILP32_OFF32_CFLAGS, >#define _CS_POSIX_V7_ILP32_OFF32_CFLAGS _CS_POSIX_V7_ILP32_OFF32_CFLAGS > _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, >#define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS _CS_POSIX_V7_ILP32_OFF32_LDFLAGS > _CS_POSIX_V7_ILP32_OFF32_LIBS, >#define _CS_POSIX_V7_ILP32_OFF32_LIBS _CS_POSIX_V7_ILP32_OFF32_LIBS > _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, >#define _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS > _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, >#define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS > _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, >#define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS > _CS_POSIX_V7_ILP32_OFFBIG_LIBS, >#define _CS_POSIX_V7_ILP32_OFFBIG_LIBS _CS_POSIX_V7_ILP32_OFFBIG_LIBS > _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, >#define _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS > _CS_POSIX_V7_LP64_OFF64_CFLAGS, >#define _CS_POSIX_V7_LP64_OFF64_CFLAGS _CS_POSIX_V7_LP64_OFF64_CFLAGS > _CS_POSIX_V7_LP64_OFF64_LDFLAGS, >#define _CS_POSIX_V7_LP64_OFF64_LDFLAGS _CS_POSIX_V7_LP64_OFF64_LDFLAGS > _CS_POSIX_V7_LP64_OFF64_LIBS, >#define _CS_POSIX_V7_LP64_OFF64_LIBS _CS_POSIX_V7_LP64_OFF64_LIBS > _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, >#define _CS_POSIX_V7_LP64_OFF64_LINTFLAGS _CS_POSIX_V7_LP64_OFF64_LINTFLAGS > _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, >#define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS > _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, >#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS > _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, >#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS _CS_POSIX_V7_LPBIG_OFFBIG_LIBS > _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, >#define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS > > _CS_V6_ENV, >#define _CS_V6_ENV _CS_V6_ENV > _CS_V7_ENV >#define _CS_V7_ENV _CS_V7_ENV > }; ># 610 "/usr/include/unistd.h" 2 3 4 > > >extern long int pathconf (const char *__path, int __name) > throw () __attribute__ ((__nonnull__ (1))); > > >extern long int fpathconf (int __fd, int __name) throw (); > > >extern long int sysconf (int __name) throw (); > > > >extern size_t confstr (int __name, char *__buf, size_t __len) throw (); > > > > >extern __pid_t getpid (void) throw (); > > >extern __pid_t getppid (void) throw (); > > > > >extern __pid_t getpgrp (void) throw (); ># 646 "/usr/include/unistd.h" 3 4 >extern __pid_t __getpgid (__pid_t __pid) throw (); > >extern __pid_t getpgid (__pid_t __pid) throw (); > > > > > > >extern int setpgid (__pid_t __pid, __pid_t __pgid) throw (); ># 672 "/usr/include/unistd.h" 3 4 >extern int setpgrp (void) throw (); ># 689 "/usr/include/unistd.h" 3 4 >extern __pid_t setsid (void) throw (); > > > >extern __pid_t getsid (__pid_t __pid) throw (); > > > >extern __uid_t getuid (void) throw (); > > >extern __uid_t geteuid (void) throw (); > > >extern __gid_t getgid (void) throw (); > > >extern __gid_t getegid (void) throw (); > > > > >extern int getgroups (int __size, __gid_t __list[]) throw () ; > > > >extern int group_member (__gid_t __gid) throw (); > > > > > > >extern int setuid (__uid_t __uid) throw () ; > > > > >extern int setreuid (__uid_t __ruid, __uid_t __euid) throw () ; > > > > >extern int seteuid (__uid_t __uid) throw () ; > > > > > > >extern int setgid (__gid_t __gid) throw () ; > > > > >extern int setregid (__gid_t __rgid, __gid_t __egid) throw () ; > > > > >extern int setegid (__gid_t __gid) throw () ; > > > > > >extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) > throw (); > > > >extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) > throw (); > > > >extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) > throw () ; > > > >extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) > throw () ; > > > > > > >extern __pid_t fork (void) throw (); > > > > > > > >extern __pid_t vfork (void) throw (); > > > > > >extern char *ttyname (int __fd) throw (); > > > >extern int ttyname_r (int __fd, char *__buf, size_t __buflen) > throw () __attribute__ ((__nonnull__ (2))) ; > > > >extern int isatty (int __fd) throw (); > > > > > >extern int ttyslot (void) throw (); > > > > >extern int link (const char *__from, const char *__to) > throw () __attribute__ ((__nonnull__ (1, 2))) ; > > > > >extern int linkat (int __fromfd, const char *__from, int __tofd, > const char *__to, int __flags) > throw () __attribute__ ((__nonnull__ (2, 4))) ; > > > > >extern int symlink (const char *__from, const char *__to) > throw () __attribute__ ((__nonnull__ (1, 2))) ; > > > > >extern ssize_t readlink (const char *__restrict __path, > char *__restrict __buf, size_t __len) > throw () __attribute__ ((__nonnull__ (1, 2))) ; > > > > >extern int symlinkat (const char *__from, int __tofd, > const char *__to) throw () __attribute__ ((__nonnull__ (1, 3))) ; > > >extern ssize_t readlinkat (int __fd, const char *__restrict __path, > char *__restrict __buf, size_t __len) > throw () __attribute__ ((__nonnull__ (2, 3))) ; > > > >extern int unlink (const char *__name) throw () __attribute__ ((__nonnull__ (1))); > > > >extern int unlinkat (int __fd, const char *__name, int __flag) > throw () __attribute__ ((__nonnull__ (2))); > > > >extern int rmdir (const char *__path) throw () __attribute__ ((__nonnull__ (1))); > > > >extern __pid_t tcgetpgrp (int __fd) throw (); > > >extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) throw (); > > > > > > >extern char *getlogin (void); > > > > > > > >extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))); > > > > >extern int setlogin (const char *__name) throw () __attribute__ ((__nonnull__ (1))); > > > > > > > >#define __need_getopt ># 1 "/usr/include/getopt.h" 1 3 4 ># 48 "/usr/include/getopt.h" 3 4 >extern "C" { ># 57 "/usr/include/getopt.h" 3 4 >extern char *optarg; ># 71 "/usr/include/getopt.h" 3 4 >extern int optind; > > > > >extern int opterr; > > > >extern int optopt; ># 150 "/usr/include/getopt.h" 3 4 >extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) > throw (); ># 185 "/usr/include/getopt.h" 3 4 >} > > > >#undef __need_getopt ># 894 "/usr/include/unistd.h" 2 3 4 > > > > > > > >extern int gethostname (char *__name, size_t __len) throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sethostname (const char *__name, size_t __len) > throw () __attribute__ ((__nonnull__ (1))) ; > > > >extern int sethostid (long int __id) throw () ; > > > > > >extern int getdomainname (char *__name, size_t __len) > throw () __attribute__ ((__nonnull__ (1))) ; >extern int setdomainname (const char *__name, size_t __len) > throw () __attribute__ ((__nonnull__ (1))) ; > > > > > >extern int vhangup (void) throw (); > > >extern int revoke (const char *__file) throw () __attribute__ ((__nonnull__ (1))) ; > > > > > > > >extern int profil (unsigned short int *__sample_buffer, size_t __size, > size_t __offset, unsigned int __scale) > throw () __attribute__ ((__nonnull__ (1))); > > > > > >extern int acct (const char *__name) throw (); > > > >extern char *getusershell (void) throw (); >extern void endusershell (void) throw (); >extern void setusershell (void) throw (); > > > > > >extern int daemon (int __nochdir, int __noclose) throw () ; > > > > > > >extern int chroot (const char *__path) throw () __attribute__ ((__nonnull__ (1))) ; > > > >extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); > > > > > > > >extern int fsync (int __fd); > > > > > >extern int syncfs (int __fd) throw (); > > > > > > >extern long int gethostid (void); > > >extern void sync (void) throw (); > > > > > >extern int getpagesize (void) throw () __attribute__ ((__const__)); > > > > >extern int getdtablesize (void) throw (); ># 1015 "/usr/include/unistd.h" 3 4 >extern int truncate (const char *__file, __off_t __length) > throw () __attribute__ ((__nonnull__ (1))) ; ># 1027 "/usr/include/unistd.h" 3 4 >extern int truncate64 (const char *__file, __off64_t __length) > throw () __attribute__ ((__nonnull__ (1))) ; ># 1038 "/usr/include/unistd.h" 3 4 >extern int ftruncate (int __fd, __off_t __length) throw () ; ># 1048 "/usr/include/unistd.h" 3 4 >extern int ftruncate64 (int __fd, __off64_t __length) throw () ; ># 1059 "/usr/include/unistd.h" 3 4 >extern int brk (void *__addr) throw () ; > > > > > >extern void *sbrk (intptr_t __delta) throw (); ># 1080 "/usr/include/unistd.h" 3 4 >extern long int syscall (long int __sysno, ...) throw (); ># 1097 "/usr/include/unistd.h" 3 4 >#define F_ULOCK 0 >#define F_LOCK 1 >#define F_TLOCK 2 >#define F_TEST 3 > > >extern int lockf (int __fd, int __cmd, __off_t __len) ; ># 1113 "/usr/include/unistd.h" 3 4 >extern int lockf64 (int __fd, int __cmd, __off64_t __len) ; ># 1123 "/usr/include/unistd.h" 3 4 >#define TEMP_FAILURE_RETRY(expression) (__extension__ ({ long int __result; do __result = (long int) (expression); while (__result == -1L && errno == EINTR); __result; })) ># 1134 "/usr/include/unistd.h" 3 4 >extern int fdatasync (int __fildes); > > > > > > > >extern char *crypt (const char *__key, const char *__salt) > throw () __attribute__ ((__nonnull__ (1, 2))); > > > >extern void encrypt (char *__block, int __edflag) throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern void swab (const void *__restrict __from, void *__restrict __to, > ssize_t __n) throw () __attribute__ ((__nonnull__ (1, 2))); ># 1172 "/usr/include/unistd.h" 3 4 >} ># 350 "../gtest_contrib/gtest/gtest.h" 2 > > > > ># 1 "/usr/include/strings.h" 1 3 4 ># 19 "/usr/include/strings.h" 3 4 >#define _STRINGS_H 1 ># 355 "../gtest_contrib/gtest/gtest.h" 2 ># 363 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_POSIX_RE (!GTEST_OS_WINDOWS) ># 372 "../gtest_contrib/gtest/gtest.h" ># 1 "/usr/include/regex.h" 1 3 4 ># 21 "/usr/include/regex.h" 3 4 >#define _REGEX_H 1 > > > > > >extern "C" { > > > > > > >typedef long int s_reg_t; >typedef unsigned long int active_reg_t; > > > > > > >typedef unsigned long int reg_syntax_t; > > > > >#define RE_BACKSLASH_ESCAPE_IN_LISTS ((unsigned long int) 1) > > > > >#define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1) > > > > > >#define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1) ># 72 "/usr/include/regex.h" 3 4 >#define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1) > > > > > > > >#define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1) > > > >#define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1) > > > >#define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1) > > > >#define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1) > > > >#define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1) > > > > >#define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1) > > > >#define RE_LIMITED_OPS (RE_INTERVALS << 1) > > > >#define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1) > > > > >#define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1) > > > >#define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1) > > > >#define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1) > > > >#define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1) > > > > > >#define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1) > > > >#define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1) > > > >#define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1) > > > >#define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1) > > > > > > > >#define RE_DEBUG (RE_NO_GNU_OPS << 1) > > > > >#define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1) > > > >#define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1) > > > > >#define RE_CARET_ANCHORS_HERE (RE_ICASE << 1) > > > >#define RE_CONTEXT_INVALID_DUP (RE_CARET_ANCHORS_HERE << 1) > > > >#define RE_NO_SUB (RE_CONTEXT_INVALID_DUP << 1) > > > > > > >extern reg_syntax_t re_syntax_options; > > > > > > >#define RE_SYNTAX_EMACS 0 > >#define RE_SYNTAX_AWK (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL | RE_NO_BK_PARENS | RE_NO_BK_REFS | RE_NO_BK_VBAR | RE_NO_EMPTY_RANGES | RE_DOT_NEWLINE | RE_CONTEXT_INDEP_ANCHORS | RE_CHAR_CLASSES | RE_UNMATCHED_RIGHT_PAREN_ORD | RE_NO_GNU_OPS) > > > > > > > >#define RE_SYNTAX_GNU_AWK ((RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS | RE_INVALID_INTERVAL_ORD) & ~(RE_DOT_NOT_NULL | RE_CONTEXT_INDEP_OPS | RE_CONTEXT_INVALID_OPS )) > > > > > >#define RE_SYNTAX_POSIX_AWK (RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS | RE_INTERVALS | RE_NO_GNU_OPS | RE_INVALID_INTERVAL_ORD) > > > > >#define RE_SYNTAX_GREP (RE_BK_PLUS_QM | RE_CHAR_CLASSES | RE_HAT_LISTS_NOT_NEWLINE | RE_INTERVALS | RE_NEWLINE_ALT) > > > > >#define RE_SYNTAX_EGREP (RE_CHAR_CLASSES | RE_CONTEXT_INDEP_ANCHORS | RE_CONTEXT_INDEP_OPS | RE_HAT_LISTS_NOT_NEWLINE | RE_NEWLINE_ALT | RE_NO_BK_PARENS | RE_NO_BK_VBAR) > > > > > >#define RE_SYNTAX_POSIX_EGREP (RE_SYNTAX_EGREP | RE_INTERVALS | RE_NO_BK_BRACES | RE_INVALID_INTERVAL_ORD) > > > > >#define RE_SYNTAX_ED RE_SYNTAX_POSIX_BASIC > >#define RE_SYNTAX_SED RE_SYNTAX_POSIX_BASIC > > >#define _RE_SYNTAX_POSIX_COMMON (RE_CHAR_CLASSES | RE_DOT_NEWLINE | RE_DOT_NOT_NULL | RE_INTERVALS | RE_NO_EMPTY_RANGES) > > > >#define RE_SYNTAX_POSIX_BASIC (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM | RE_CONTEXT_INVALID_DUP) > > > > > >#define RE_SYNTAX_POSIX_MINIMAL_BASIC (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS) > > >#define RE_SYNTAX_POSIX_EXTENDED (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS | RE_CONTEXT_INDEP_OPS | RE_NO_BK_BRACES | RE_NO_BK_PARENS | RE_NO_BK_VBAR | RE_CONTEXT_INVALID_OPS | RE_UNMATCHED_RIGHT_PAREN_ORD) > > > > > > > >#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS | RE_CONTEXT_INVALID_OPS | RE_NO_BK_BRACES | RE_NO_BK_PARENS | RE_NO_BK_REFS | RE_NO_BK_VBAR | RE_UNMATCHED_RIGHT_PAREN_ORD) ># 265 "/usr/include/regex.h" 3 4 >#define RE_DUP_MAX (0x7fff) > > > > > > > >#define REG_EXTENDED 1 > > > >#define REG_ICASE (REG_EXTENDED << 1) > > > > >#define REG_NEWLINE (REG_ICASE << 1) > > > >#define REG_NOSUB (REG_NEWLINE << 1) ># 296 "/usr/include/regex.h" 3 4 >#define REG_NOTBOL 1 > > >#define REG_NOTEOL (1 << 1) > > > >#define REG_STARTEND (1 << 2) > > > > >typedef enum >{ > > REG_ENOSYS = -1, > > > REG_NOERROR = 0, > REG_NOMATCH, > > > > REG_BADPAT, > REG_ECOLLATE, > REG_ECTYPE, > REG_EESCAPE, > REG_ESUBREG, > REG_EBRACK, > REG_EPAREN, > REG_EBRACE, > REG_BADBR, > REG_ERANGE, > REG_ESPACE, > REG_BADRPT, > > > REG_EEND, > REG_ESIZE, > REG_ERPAREN >} reg_errcode_t; ># 345 "/usr/include/regex.h" 3 4 >#define __RE_TRANSLATE_TYPE unsigned char * > >#define RE_TRANSLATE_TYPE __RE_TRANSLATE_TYPE > > > > >#define __REPB_PREFIX(name) name > > > > >struct re_pattern_buffer >{ > > > > unsigned char *buffer; > > > unsigned long int allocated; > > > unsigned long int used; > > > reg_syntax_t syntax; > > > > > char *fastmap; > > > > > > unsigned char * translate; > > > size_t re_nsub; > > > > > > unsigned can_be_null : 1; > > > > > > >#define REGS_UNALLOCATED 0 >#define REGS_REALLOCATE 1 >#define REGS_FIXED 2 > > unsigned regs_allocated : 2; > > > > unsigned fastmap_accurate : 1; > > > > unsigned no_sub : 1; > > > > unsigned not_bol : 1; > > > unsigned not_eol : 1; > > > unsigned newline_anchor : 1; >}; > >typedef struct re_pattern_buffer regex_t; > > >typedef int regoff_t; > > > > > >struct re_registers >{ > unsigned num_regs; > regoff_t *start; > regoff_t *end; >}; > > > > > > >#define RE_NREGS 30 > > > > > > > >typedef struct >{ > regoff_t rm_so; > regoff_t rm_eo; >} regmatch_t; > > > > > > >extern reg_syntax_t re_set_syntax (reg_syntax_t __syntax); ># 473 "/usr/include/regex.h" 3 4 >extern const char *re_compile_pattern (const char *__pattern, size_t __length, > struct re_pattern_buffer *__buffer); > > > > > >extern int re_compile_fastmap (struct re_pattern_buffer *__buffer); > > > > > > > >extern int re_search (struct re_pattern_buffer *__buffer, const char *__string, > int __length, int __start, int __range, > struct re_registers *__regs); > > > > >extern int re_search_2 (struct re_pattern_buffer *__buffer, > const char *__string1, int __length1, > const char *__string2, int __length2, int __start, > int __range, struct re_registers *__regs, int __stop); > > > > >extern int re_match (struct re_pattern_buffer *__buffer, const char *__string, > int __length, int __start, struct re_registers *__regs); > > > >extern int re_match_2 (struct re_pattern_buffer *__buffer, > const char *__string1, int __length1, > const char *__string2, int __length2, int __start, > struct re_registers *__regs, int __stop); ># 526 "/usr/include/regex.h" 3 4 >extern void re_set_registers (struct re_pattern_buffer *__buffer, > struct re_registers *__regs, > unsigned int __num_regs, > regoff_t *__starts, regoff_t *__ends); ># 562 "/usr/include/regex.h" 3 4 >extern int regcomp (regex_t *__restrict __preg, > const char *__restrict __pattern, > int __cflags); > >extern int regexec (const regex_t *__restrict __preg, > const char *__restrict __string, size_t __nmatch, > regmatch_t __pmatch[], > int __eflags); > >extern size_t regerror (int __errcode, const regex_t *__restrict __preg, > char *__restrict __errbuf, size_t __errbuf_size); > >extern void regfree (regex_t *__preg); > > > >} ># 373 "../gtest_contrib/gtest/gtest.h" 2 > >#define GTEST_USES_POSIX_RE 1 ># 403 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_EXCEPTIONS 1 ># 426 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_STD_STRING 1 ># 436 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_GLOBAL_STRING 0 ># 449 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_STD_WSTRING (!(GTEST_OS_LINUX_ANDROID || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS)) > > > > > > > >#define GTEST_HAS_GLOBAL_WSTRING (GTEST_HAS_STD_WSTRING && GTEST_HAS_GLOBAL_STRING) ># 478 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_RTTI 1 ># 505 "../gtest_contrib/gtest/gtest.h" ># 1 "/usr/include/c++/4.8.2/typeinfo" 1 3 ># 30 "/usr/include/c++/4.8.2/typeinfo" 3 >#define _TYPEINFO > > ># 33 "/usr/include/c++/4.8.2/typeinfo" 3 > > > > > > >#pragma GCC visibility push(default) > >extern "C++" { > >namespace __cxxabiv1 >{ > class __class_type_info; >} ># 68 "/usr/include/c++/4.8.2/typeinfo" 3 >#define __GXX_MERGED_TYPEINFO_NAMES 0 > > > > > > > >#define __GXX_TYPEINFO_EQUALITY_INLINE 1 > > > >namespace std >{ > > > > > > > class type_info > { > public: > > > > > virtual ~type_info(); > > > > const char* name() const > { return __name[0] == '*' ? __name + 1 : __name; } ># 115 "/usr/include/c++/4.8.2/typeinfo" 3 > bool before(const type_info& __arg) const > { return (__name[0] == '*' && __arg.__name[0] == '*') > ? __name < __arg.__name > : __builtin_strcmp (__name, __arg.__name) < 0; } > > bool operator==(const type_info& __arg) const > { > return ((__name == __arg.__name) > || (__name[0] != '*' && > __builtin_strcmp (__name, __arg.__name) == 0)); > } ># 136 "/usr/include/c++/4.8.2/typeinfo" 3 > bool operator!=(const type_info& __arg) const > { return !operator==(__arg); } ># 152 "/usr/include/c++/4.8.2/typeinfo" 3 > virtual bool __is_pointer_p() const; > > > virtual bool __is_function_p() const; > > > > > > > > virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, > unsigned __outer) const; > > > virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, > void **__obj_ptr) const; > > protected: > const char *__name; > > explicit type_info(const char *__n): __name(__n) { } > > private: > > type_info& operator=(const type_info&); > type_info(const type_info&); > }; > > > > > > > > class bad_cast : public exception > { > public: > bad_cast() throw() { } > > > > virtual ~bad_cast() throw(); > > > virtual const char* what() const throw(); > }; > > > > > > class bad_typeid : public exception > { > public: > bad_typeid () throw() { } > > > > virtual ~bad_typeid() throw(); > > > virtual const char* what() const throw(); > }; >} > >} > >#pragma GCC visibility pop ># 506 "../gtest_contrib/gtest/gtest.h" 2 ># 515 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_PTHREAD (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_HPUX) ># 532 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_TR1_TUPLE 1 ># 549 "../gtest_contrib/gtest/gtest.h" >#define GTEST_USE_OWN_TR1_TUPLE 0 ># 1561 "../gtest_contrib/gtest/gtest.h" ># 1 "/usr/include/c++/4.8.2/tr1/tuple" 1 3 ># 33 "/usr/include/c++/4.8.2/tr1/tuple" 3 >#define _GLIBCXX_TR1_TUPLE 1 > > ># 36 "/usr/include/c++/4.8.2/tr1/tuple" 3 > ># 1 "/usr/include/c++/4.8.2/utility" 1 3 ># 56 "/usr/include/c++/4.8.2/utility" 3 >#define _GLIBCXX_UTILITY 1 > > ># 59 "/usr/include/c++/4.8.2/utility" 3 ># 69 "/usr/include/c++/4.8.2/utility" 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_relops.h" 1 3 ># 65 "/usr/include/c++/4.8.2/bits/stl_relops.h" 3 >#define _STL_RELOPS_H 1 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > namespace rel_ops > { > ># 85 "/usr/include/c++/4.8.2/bits/stl_relops.h" 3 > template <class _Tp> > inline bool > operator!=(const _Tp& __x, const _Tp& __y) > { return !(__x == __y); } ># 98 "/usr/include/c++/4.8.2/bits/stl_relops.h" 3 > template <class _Tp> > inline bool > operator>(const _Tp& __x, const _Tp& __y) > { return __y < __x; } ># 111 "/usr/include/c++/4.8.2/bits/stl_relops.h" 3 > template <class _Tp> > inline bool > operator<=(const _Tp& __x, const _Tp& __y) > { return !(__y < __x); } ># 124 "/usr/include/c++/4.8.2/bits/stl_relops.h" 3 > template <class _Tp> > inline bool > operator>=(const _Tp& __x, const _Tp& __y) > { return !(__x < __y); } > > > } > >} ># 70 "/usr/include/c++/4.8.2/utility" 2 3 ># 38 "/usr/include/c++/4.8.2/tr1/tuple" 2 3 > >namespace std __attribute__ ((__visibility__ ("default"))) >{ >namespace tr1 >{ > > > > template<typename _Tp> > struct __add_c_ref > { typedef const _Tp& type; }; > > template<typename _Tp> > struct __add_c_ref<_Tp&> > { typedef _Tp& type; }; > > > template<typename _Tp> > struct __add_ref > { typedef _Tp& type; }; > > template<typename _Tp> > struct __add_ref<_Tp&> > { typedef _Tp& type; }; ># 71 "/usr/include/c++/4.8.2/tr1/tuple" 3 > template<int _Idx, typename... _Elements> > struct _Tuple_impl; > > > > > > template<int _Idx> > struct _Tuple_impl<_Idx> { }; > > > > > > > template<int _Idx, typename _Head, typename... _Tail> > struct _Tuple_impl<_Idx, _Head, _Tail...> > : public _Tuple_impl<_Idx + 1, _Tail...> > { > typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; > > _Head _M_head; > > _Inherited& _M_tail() { return *this; } > const _Inherited& _M_tail() const { return *this; } > > _Tuple_impl() : _Inherited(), _M_head() { } > > explicit > _Tuple_impl(typename __add_c_ref<_Head>::type __head, > typename __add_c_ref<_Tail>::type... __tail) > : _Inherited(__tail...), _M_head(__head) { } > > template<typename... _UElements> > _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) > : _Inherited(__in._M_tail()), _M_head(__in._M_head) { } > > _Tuple_impl(const _Tuple_impl& __in) > : _Inherited(__in._M_tail()), _M_head(__in._M_head) { } > > template<typename... _UElements> > _Tuple_impl& > operator=(const _Tuple_impl<_Idx, _UElements...>& __in) > { > _M_head = __in._M_head; > _M_tail() = __in._M_tail(); > return *this; > } > > _Tuple_impl& > operator=(const _Tuple_impl& __in) > { > _M_head = __in._M_head; > _M_tail() = __in._M_tail(); > return *this; > } > }; > > template<typename... _Elements> > class tuple : public _Tuple_impl<0, _Elements...> > { > typedef _Tuple_impl<0, _Elements...> _Inherited; > > public: > tuple() : _Inherited() { } > > explicit > tuple(typename __add_c_ref<_Elements>::type... __elements) > : _Inherited(__elements...) { } > > template<typename... _UElements> > tuple(const tuple<_UElements...>& __in) > : _Inherited(__in) { } > > tuple(const tuple& __in) > : _Inherited(__in) { } > > template<typename... _UElements> > tuple& > operator=(const tuple<_UElements...>& __in) > { > static_cast<_Inherited&>(*this) = __in; > return *this; > } > > tuple& > operator=(const tuple& __in) > { > static_cast<_Inherited&>(*this) = __in; > return *this; > } > }; > > template<> class tuple<> { }; > > > template<typename _T1, typename _T2> > class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> > { > typedef _Tuple_impl<0, _T1, _T2> _Inherited; > > public: > tuple() : _Inherited() { } > > explicit > tuple(typename __add_c_ref<_T1>::type __a1, > typename __add_c_ref<_T2>::type __a2) > : _Inherited(__a1, __a2) { } > > template<typename _U1, typename _U2> > tuple(const tuple<_U1, _U2>& __in) > : _Inherited(__in) { } > > tuple(const tuple& __in) > : _Inherited(__in) { } > > template<typename _U1, typename _U2> > tuple(const pair<_U1, _U2>& __in) > : _Inherited(_Tuple_impl<0, > typename __add_c_ref<_U1>::type, > typename __add_c_ref<_U2>::type>(__in.first, > __in.second)) > { } > > template<typename _U1, typename _U2> > tuple& > operator=(const tuple<_U1, _U2>& __in) > { > static_cast<_Inherited&>(*this) = __in; > return *this; > } > > tuple& > operator=(const tuple& __in) > { > static_cast<_Inherited&>(*this) = __in; > return *this; > } > > template<typename _U1, typename _U2> > tuple& > operator=(const pair<_U1, _U2>& __in) > { > this->_M_head = __in.first; > this->_M_tail()._M_head = __in.second; > return *this; > } > }; > > > > template<int __i, typename _Tp> > struct tuple_element; > > > > > > template<int __i, typename _Head, typename... _Tail> > struct tuple_element<__i, tuple<_Head, _Tail...> > > : tuple_element<__i - 1, tuple<_Tail...> > { }; > > > > > template<typename _Head, typename... _Tail> > struct tuple_element<0, tuple<_Head, _Tail...> > > { > typedef _Head type; > }; > > > template<typename _Tp> > struct tuple_size; > > > template<typename... _Elements> > struct tuple_size<tuple<_Elements...> > > { > static const int value = sizeof...(_Elements); > }; > > template<typename... _Elements> > const int tuple_size<tuple<_Elements...> >::value; > > template<int __i, typename _Head, typename... _Tail> > inline typename __add_ref<_Head>::type > __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) > { > return __t._M_head; > } > > template<int __i, typename _Head, typename... _Tail> > inline typename __add_c_ref<_Head>::type > __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) > { > return __t._M_head; > } > > > > template<int __i, typename... _Elements> > inline typename __add_ref< > typename tuple_element<__i, tuple<_Elements...> >::type > >::type > get(tuple<_Elements...>& __t) > { > return __get_helper<__i>(__t); > } > > template<int __i, typename... _Elements> > inline typename __add_c_ref< > typename tuple_element<__i, tuple<_Elements...> >::type > >::type > get(const tuple<_Elements...>& __t) > { > return __get_helper<__i>(__t); > } > > > template<int __check_equal_size, int __i, int __j, > typename _Tp, typename _Up> > struct __tuple_compare; > > template<int __i, int __j, typename _Tp, typename _Up> > struct __tuple_compare<0, __i, __j, _Tp, _Up> > { > static bool __eq(const _Tp& __t, const _Up& __u) > { > return (get<__i>(__t) == get<__i>(__u) && > __tuple_compare<0, __i+1, __j, _Tp, _Up>::__eq(__t, __u)); > } > > static bool __less(const _Tp& __t, const _Up& __u) > { > return ((get<__i>(__t) < get<__i>(__u)) > || !(get<__i>(__u) < get<__i>(__t)) && > __tuple_compare<0, __i+1, __j, _Tp, _Up>::__less(__t, __u)); > } > }; > > template<int __i, typename _Tp, typename _Up> > struct __tuple_compare<0, __i, __i, _Tp, _Up> > { > static bool __eq(const _Tp&, const _Up&) > { return true; } > > static bool __less(const _Tp&, const _Up&) > { return false; } > }; > > template<typename... _TElements, typename... _UElements> > bool > operator==(const tuple<_TElements...>& __t, > const tuple<_UElements...>& __u) > { > typedef tuple<_TElements...> _Tp; > typedef tuple<_UElements...> _Up; > return (__tuple_compare<tuple_size<_Tp>::value - tuple_size<_Up>::value, > 0, tuple_size<_Tp>::value, _Tp, _Up>::__eq(__t, __u)); > } > > template<typename... _TElements, typename... _UElements> > bool > operator<(const tuple<_TElements...>& __t, > const tuple<_UElements...>& __u) > { > typedef tuple<_TElements...> _Tp; > typedef tuple<_UElements...> _Up; > return (__tuple_compare<tuple_size<_Tp>::value - tuple_size<_Up>::value, > 0, tuple_size<_Tp>::value, _Tp, _Up>::__less(__t, __u)); > } > > template<typename... _TElements, typename... _UElements> > inline bool > operator!=(const tuple<_TElements...>& __t, > const tuple<_UElements...>& __u) > { return !(__t == __u); } > > template<typename... _TElements, typename... _UElements> > inline bool > operator>(const tuple<_TElements...>& __t, > const tuple<_UElements...>& __u) > { return __u < __t; } > > template<typename... _TElements, typename... _UElements> > inline bool > operator<=(const tuple<_TElements...>& __t, > const tuple<_UElements...>& __u) > { return !(__u < __t); } > > template<typename... _TElements, typename... _UElements> > inline bool > operator>=(const tuple<_TElements...>& __t, > const tuple<_UElements...>& __u) > { return !(__t < __u); } > > template<typename _Tp> > class reference_wrapper; > > > template<typename _Tp> > struct __strip_reference_wrapper > { > typedef _Tp __type; > }; > > template<typename _Tp> > struct __strip_reference_wrapper<reference_wrapper<_Tp> > > { > typedef _Tp& __type; > }; > > template<typename _Tp> > struct __strip_reference_wrapper<const reference_wrapper<_Tp> > > { > typedef _Tp& __type; > }; > > template<typename... _Elements> > inline tuple<typename __strip_reference_wrapper<_Elements>::__type...> > make_tuple(_Elements... __args) > { > typedef tuple<typename __strip_reference_wrapper<_Elements>::__type...> > __result_type; > return __result_type(__args...); > } > > template<typename... _Elements> > inline tuple<_Elements&...> > tie(_Elements&... __args) > { > return tuple<_Elements&...>(__args...); > } > > > > struct _Swallow_assign > { > template<class _Tp> > _Swallow_assign& > operator=(const _Tp&) > { return *this; } > }; > > > namespace > { > _Swallow_assign ignore; > }; > > >} >} ># 1562 "../gtest_contrib/gtest/gtest.h" 2 ># 1580 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_CLONE 1 ># 1595 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_STREAM_REDIRECTION 1 ># 1606 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_DEATH_TEST 1 > > > > > > >#define GTEST_HAS_PARAM_TEST 1 > > > > > > > >#define GTEST_HAS_TYPED_TEST 1 >#define GTEST_HAS_TYPED_TEST_P 1 > > > > > > > >#define GTEST_HAS_COMBINE 1 > > > >#define GTEST_WIDE_STRING_USES_UTF16_ (GTEST_OS_WINDOWS || GTEST_OS_CYGWIN || GTEST_OS_SYMBIAN || GTEST_OS_AIX) > > > > >#define GTEST_CAN_STREAM_RESULTS_ 1 ># 1655 "../gtest_contrib/gtest/gtest.h" >#define GTEST_AMBIGUOUS_ELSE_BLOCKER_ switch (0) case 0: default: ># 1670 "../gtest_contrib/gtest/gtest.h" >#define GTEST_ATTRIBUTE_UNUSED_ __attribute__ ((unused)) > > > > > > >#define GTEST_DISALLOW_ASSIGN_(type) void operator=(type const &) > > > > >#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type) type(type const &); GTEST_DISALLOW_ASSIGN_(type) ># 1692 "../gtest_contrib/gtest/gtest.h" >#define GTEST_MUST_USE_RESULT_ __attribute__ ((warn_unused_result)) ># 1708 "../gtest_contrib/gtest/gtest.h" >#define GTEST_HAS_SEH 0 ># 1724 "../gtest_contrib/gtest/gtest.h" >#define GTEST_API_ > > > > >#define GTEST_NO_INLINE_ __attribute__((noinline)) > > > > >namespace testing { > >class Message; > >namespace internal { > >class String; ># 1757 "../gtest_contrib/gtest/gtest.h" >template <bool> >struct CompileAssert { >}; > >#define GTEST_COMPILE_ASSERT_(expr,msg) typedef ::testing::internal::CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] ># 1809 "../gtest_contrib/gtest/gtest.h" >template <typename T1, typename T2> >struct StaticAssertTypeEqHelper; > >template <typename T> >struct StaticAssertTypeEqHelper<T, T> {}; > > > > >typedef ::std::string string; > > > > > >typedef ::std::wstring wstring; > > > > > bool IsTrue(bool condition); > > > > > >template <typename T> >class scoped_ptr { > public: > typedef T element_type; > > explicit scoped_ptr(T* p = __null) : ptr_(p) {} > ~scoped_ptr() { reset(); } > > T& operator*() const { return *ptr_; } > T* operator->() const { return ptr_; } > T* get() const { return ptr_; } > > T* release() { > T* const ptr = ptr_; > ptr_ = __null; > return ptr; > } > > void reset(T* p = __null) { > if (p != ptr_) { > if (IsTrue(sizeof(T) > 0)) { > delete ptr_; > } > ptr_ = p; > } > } > private: > T* ptr_; > > scoped_ptr(scoped_ptr const &); void operator=(scoped_ptr const &); >}; > > > > > >class RE { > public: > > > RE(const RE& other) { Init(other.pattern()); } > > > RE(const ::std::string& regex) { Init(regex.c_str()); } > > > > > > > > RE(const char* regex) { Init(regex); } > ~RE(); > > > const char* pattern() const { return pattern_; } ># 1899 "../gtest_contrib/gtest/gtest.h" > static bool FullMatch(const ::std::string& str, const RE& re) { > return FullMatch(str.c_str(), re); > } > static bool PartialMatch(const ::std::string& str, const RE& re) { > return PartialMatch(str.c_str(), re); > } ># 1917 "../gtest_contrib/gtest/gtest.h" > static bool FullMatch(const char* str, const RE& re); > static bool PartialMatch(const char* str, const RE& re); > > private: > void Init(const char* regex); > > > > > > const char* pattern_; > bool is_valid_; > > > > regex_t full_regex_; > regex_t partial_regex_; > > > > > > > > void operator=(RE const &); >}; > > > > ::std::string FormatFileLocation(const char* file, int line); > > > > > ::std::string FormatCompilerIndependentFileLocation(const char* file, > int line); > > > > > > > >enum GTestLogSeverity { > GTEST_INFO, > GTEST_WARNING, > GTEST_ERROR, > GTEST_FATAL >}; > > > > >class GTestLog { > public: > GTestLog(GTestLogSeverity severity, const char* file, int line); > > > ~GTestLog(); > > ::std::ostream& GetStream() { return ::std::cerr; } > > private: > const GTestLogSeverity severity_; > > GTestLog(GTestLog const &); void operator=(GTestLog const &); >}; > >#define GTEST_LOG_(severity) ::testing::internal::GTestLog(::testing::internal::GTEST_ ##severity, __FILE__, __LINE__).GetStream() > > > >inline void LogToStderr() {} >inline void FlushInfoLog() { fflush(__null); } ># 2006 "../gtest_contrib/gtest/gtest.h" >#define GTEST_CHECK_(condition) GTEST_AMBIGUOUS_ELSE_BLOCKER_ if (::testing::internal::IsTrue(condition)) ; else GTEST_LOG_(FATAL) << "Condition " #condition " failed. " ># 2018 "../gtest_contrib/gtest/gtest.h" >#define GTEST_CHECK_POSIX_SUCCESS_(posix_call) if (const int gtest_error = (posix_call)) GTEST_LOG_(FATAL) << #posix_call << "failed with error " << gtest_error ># 2043 "../gtest_contrib/gtest/gtest.h" >template<typename To> >inline To ImplicitCast_(To x) { return x; } ># 2067 "../gtest_contrib/gtest/gtest.h" >template<typename To, typename From> >inline To DownCast_(From* f) { > > > > > if (false) { > const To to = __null; > ::testing::internal::ImplicitCast_<From*>(to); > } > > > > switch (0) case 0: default: if (::testing::internal::IsTrue(f == __null || dynamic_cast<To>(f) != __null)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2080).GetStream() << "Condition " "f == NULL || dynamic_cast<To>(f) != NULL" " failed. "; > > return static_cast<To>(f); >} > > > > > > >template <class Derived, class Base> >Derived* CheckedDowncastToActualType(Base* base) { > > switch (0) case 0: default: if (::testing::internal::IsTrue(typeid(*base) == typeid(Derived))) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2093).GetStream() << "Condition " "typeid(*base) == typeid(Derived)" " failed. "; > return dynamic_cast<Derived*>(base); > > > >} ># 2108 "../gtest_contrib/gtest/gtest.h" > void CaptureStdout(); > String GetCapturedStdout(); > void CaptureStderr(); > String GetCapturedStderr(); > > > > > > > >extern ::std::vector<String> g_argvs; > > >const ::std::vector<String>& GetArgvs(); ># 2133 "../gtest_contrib/gtest/gtest.h" >inline void SleepMilliseconds(int n) { > const timespec time = { > 0, > n * 1000L * 1000L, > }; > nanosleep(&time, __null); >} > > > > > > > >class Notification { > public: > Notification() : notified_(false) {} > > > > void Notify() { notified_ = true; } > > > > void WaitForNotification() { > while(!notified_) { > SleepMilliseconds(10); > } > } > > private: > volatile bool notified_; > > Notification(Notification const &); void operator=(Notification const &); >}; > > > > > > >class ThreadWithParamBase { > public: > virtual ~ThreadWithParamBase() {} > virtual void Run() = 0; >}; > > > > > > > >extern "C" inline void* ThreadFuncWithCLinkage(void* thread) { > static_cast<ThreadWithParamBase*>(thread)->Run(); > return __null; >} ># 2203 "../gtest_contrib/gtest/gtest.h" >template <typename T> >class ThreadWithParam : public ThreadWithParamBase { > public: > typedef void (*UserThreadFunc)(T); > > ThreadWithParam( > UserThreadFunc func, T param, Notification* thread_can_start) > : func_(func), > param_(param), > thread_can_start_(thread_can_start), > finished_(false) { > ThreadWithParamBase* const base = this; > > > if (const int gtest_error = (pthread_create(&thread_, 0, &ThreadFuncWithCLinkage, base))) ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, > "../gtest_contrib/gtest/gtest.h" ># 2217 "../gtest_contrib/gtest/gtest.h" > , > 2218 ># 2217 "../gtest_contrib/gtest/gtest.h" > ).GetStream() << "pthread_create(&thread_, 0, &ThreadFuncWithCLinkage, base)" << "failed with error " << gtest_error > ; > } > ~ThreadWithParam() { Join(); } > > void Join() { > if (!finished_) { > if (const int gtest_error = (pthread_join(thread_, 0))) ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2224).GetStream() << "pthread_join(thread_, 0)" << "failed with error " << gtest_error; > finished_ = true; > } > } > > virtual void Run() { > if (thread_can_start_ != __null) > thread_can_start_->WaitForNotification(); > func_(param_); > } > > private: > const UserThreadFunc func_; > const T param_; > > > Notification* const thread_can_start_; > bool finished_; > pthread_t thread_; > > ThreadWithParam(ThreadWithParam const &); void operator=(ThreadWithParam const &); >}; ># 2266 "../gtest_contrib/gtest/gtest.h" >class MutexBase { > public: > > void Lock() { > if (const int gtest_error = (pthread_mutex_lock(&mutex_))) ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2270).GetStream() << "pthread_mutex_lock(&mutex_)" << "failed with error " << gtest_error; > owner_ = pthread_self(); > } > > > void Unlock() { > > > > owner_ = 0; > if (const int gtest_error = (pthread_mutex_unlock(&mutex_))) ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2280).GetStream() << "pthread_mutex_unlock(&mutex_)" << "failed with error " << gtest_error; > } > > > > void AssertHeld() const { > switch (0) case 0: default: if (::testing::internal::IsTrue(owner_ == pthread_self())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2286).GetStream() << "Condition " "owner_ == pthread_self()" " failed. " > << "The current thread is not holding the mutex @" << this; > } > > > > > > > public: > pthread_mutex_t mutex_; > pthread_t owner_; >}; > > >#define GTEST_DECLARE_STATIC_MUTEX_(mutex) extern ::testing::internal::MutexBase mutex > > > >#define GTEST_DEFINE_STATIC_MUTEX_(mutex) ::testing::internal::MutexBase mutex = { PTHREAD_MUTEX_INITIALIZER, 0 } > > > > >class Mutex : public MutexBase { > public: > Mutex() { > if (const int gtest_error = (pthread_mutex_init(&mutex_, __null))) ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2313).GetStream() << "pthread_mutex_init(&mutex_, NULL)" << "failed with error " << gtest_error; > owner_ = 0; > } > ~Mutex() { > if (const int gtest_error = (pthread_mutex_destroy(&mutex_))) ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2317).GetStream() << "pthread_mutex_destroy(&mutex_)" << "failed with error " << gtest_error; > } > > private: > Mutex(Mutex const &); void operator=(Mutex const &); >}; > > > > >class GTestMutexLock { > public: > explicit GTestMutexLock(MutexBase* mutex) > : mutex_(mutex) { mutex_->Lock(); } > > ~GTestMutexLock() { mutex_->Unlock(); } > > private: > MutexBase* const mutex_; > > GTestMutexLock(GTestMutexLock const &); void operator=(GTestMutexLock const &); >}; > >typedef GTestMutexLock MutexLock; > > > > > > > >class ThreadLocalValueHolderBase { > public: > virtual ~ThreadLocalValueHolderBase() {} >}; > > > >extern "C" inline void DeleteThreadLocalValue(void* value_holder) { > delete static_cast<ThreadLocalValueHolderBase*>(value_holder); >} ># 2388 "../gtest_contrib/gtest/gtest.h" >template <typename T> >class ThreadLocal { > public: > ThreadLocal() : key_(CreateKey()), > default_() {} > explicit ThreadLocal(const T& value) : key_(CreateKey()), > default_(value) {} > > ~ThreadLocal() { > > DeleteThreadLocalValue(pthread_getspecific(key_)); > > > > if (const int gtest_error = (pthread_key_delete(key_))) ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2402).GetStream() << "pthread_key_delete(key_)" << "failed with error " << gtest_error; > } > > T* pointer() { return GetOrCreateValue(); } > const T* pointer() const { return GetOrCreateValue(); } > const T& get() const { return *pointer(); } > void set(const T& value) { *pointer() = value; } > > private: > > class ValueHolder : public ThreadLocalValueHolderBase { > public: > explicit ValueHolder(const T& value) : value_(value) {} > > T* pointer() { return &value_; } > > private: > T value_; > ValueHolder(ValueHolder const &); void operator=(ValueHolder const &); > }; > > static pthread_key_t CreateKey() { > pthread_key_t key; > > > if (const int gtest_error = (pthread_key_create(&key, &DeleteThreadLocalValue))) ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, > "../gtest_contrib/gtest/gtest.h" ># 2427 "../gtest_contrib/gtest/gtest.h" > , > 2428 ># 2427 "../gtest_contrib/gtest/gtest.h" > ).GetStream() << "pthread_key_create(&key, &DeleteThreadLocalValue)" << "failed with error " << gtest_error > ; > return key; > } > > T* GetOrCreateValue() const { > ThreadLocalValueHolderBase* const holder = > static_cast<ThreadLocalValueHolderBase*>(pthread_getspecific(key_)); > if (holder != __null) { > return CheckedDowncastToActualType<ValueHolder>(holder)->pointer(); > } > > ValueHolder* const new_holder = new ValueHolder(default_); > ThreadLocalValueHolderBase* const holder_base = new_holder; > if (const int gtest_error = (pthread_setspecific(key_, holder_base))) ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 2441).GetStream() << "pthread_setspecific(key_, holder_base)" << "failed with error " << gtest_error; > return new_holder->pointer(); > } > > > const pthread_key_t key_; > const T default_; > > ThreadLocal(ThreadLocal const &); void operator=(ThreadLocal const &); >}; > >#define GTEST_IS_THREADSAFE 1 ># 2500 "../gtest_contrib/gtest/gtest.h" > size_t GetThreadCount(); ># 2513 "../gtest_contrib/gtest/gtest.h" >#define GTEST_CAN_COMPARE_NULL 1 ># 2524 "../gtest_contrib/gtest/gtest.h" >template <bool bool_value> >struct bool_constant { > typedef bool_constant<bool_value> type; > static const bool value = bool_value; >}; >template <bool bool_value> const bool bool_constant<bool_value>::value; > >typedef bool_constant<false> false_type; >typedef bool_constant<true> true_type; > >template <typename T> >struct is_pointer : public false_type {}; > >template <typename T> >struct is_pointer<T*> : public true_type {}; > >template <typename Iterator> >struct IteratorTraits { > typedef typename Iterator::value_type value_type; >}; > >template <typename T> >struct IteratorTraits<T*> { > typedef T value_type; >}; > >template <typename T> >struct IteratorTraits<const T*> { > typedef T value_type; >}; > > > > > > > >#define GTEST_PATH_SEP_ "/" >#define GTEST_HAS_ALT_PATH_SEP_ 0 >typedef long long BiggestInt; ># 2573 "../gtest_contrib/gtest/gtest.h" >inline bool IsAlpha(char ch) { > return isalpha(static_cast<unsigned char>(ch)) != 0; >} >inline bool IsAlNum(char ch) { > return isalnum(static_cast<unsigned char>(ch)) != 0; >} >inline bool IsDigit(char ch) { > return isdigit(static_cast<unsigned char>(ch)) != 0; >} >inline bool IsLower(char ch) { > return islower(static_cast<unsigned char>(ch)) != 0; >} >inline bool IsSpace(char ch) { > return isspace(static_cast<unsigned char>(ch)) != 0; >} >inline bool IsUpper(char ch) { > return isupper(static_cast<unsigned char>(ch)) != 0; >} >inline bool IsXDigit(char ch) { > return isxdigit(static_cast<unsigned char>(ch)) != 0; >} > >inline char ToLower(char ch) { > return static_cast<char>(tolower(static_cast<unsigned char>(ch))); >} >inline char ToUpper(char ch) { > return static_cast<char>(toupper(static_cast<unsigned char>(ch))); >} > > > > > > > >namespace posix { ># 2649 "../gtest_contrib/gtest/gtest.h" >typedef struct stat StatStruct; > >inline int FileNo(FILE* file) { return fileno(file); } >inline int IsATTY(int fd) { return isatty(fd); } >inline int Stat(const char* path, StatStruct* buf) { return stat(path, buf); } >inline int StrCaseCmp(const char* s1, const char* s2) { > return strcasecmp(s1, s2); >} >inline char* StrDup(const char* src) { return strdup(src); } >inline int RmDir(const char* dir) { return rmdir(dir); } >inline bool IsDir(const StatStruct& st) { return ((((st.st_mode)) & 0170000) == (0040000)); } ># 2671 "../gtest_contrib/gtest/gtest.h" >inline const char* StrNCpy(char* dest, const char* src, size_t n) { > return strncpy(dest, src, n); >} > > > > > > >inline int ChDir(const char* dir) { return chdir(dir); } > >inline FILE* FOpen(const char* path, const char* mode) { > return fopen(path, mode); >} > >inline FILE *FReopen(const char* path, const char* mode, FILE* stream) { > return freopen(path, mode, stream); >} >inline FILE* FDOpen(int fd, const char* mode) { return fdopen(fd, mode); } > >inline int FClose(FILE* fp) { return fclose(fp); } > >inline int Read(int fd, void* buf, unsigned int count) { > return static_cast<int>(read(fd, buf, count)); >} >inline int Write(int fd, const void* buf, unsigned int count) { > return static_cast<int>(write(fd, buf, count)); >} >inline int Close(int fd) { return close(fd); } >inline const char* StrError(int errnum) { return strerror(errnum); } > >inline const char* GetEnv(const char* name) { ># 2712 "../gtest_contrib/gtest/gtest.h" > return getenv(name); > >} ># 2726 "../gtest_contrib/gtest/gtest.h" >inline void Abort() { abort(); } > > >} ># 2738 "../gtest_contrib/gtest/gtest.h" >const BiggestInt kMaxBiggestInt = > ~(static_cast<BiggestInt>(1) << (8*sizeof(BiggestInt) - 1)); ># 2759 "../gtest_contrib/gtest/gtest.h" >template <size_t size> >class TypeWithSize { > public: > > > typedef void UInt; >}; > > >template <> >class TypeWithSize<4> { > public: > > > > > typedef int Int; > typedef unsigned int UInt; >}; > > >template <> >class TypeWithSize<8> { > public: > > > > > > typedef long long Int; > typedef unsigned long long UInt; > >}; > > >typedef TypeWithSize<4>::Int Int32; >typedef TypeWithSize<4>::UInt UInt32; >typedef TypeWithSize<8>::Int Int64; >typedef TypeWithSize<8>::UInt UInt64; >typedef TypeWithSize<8>::Int TimeInMillis; > > > > >#define GTEST_FLAG(name) FLAGS_gtest_ ##name > > >#define GTEST_DECLARE_bool_(name) GTEST_API_ extern bool GTEST_FLAG(name) >#define GTEST_DECLARE_int32_(name) GTEST_API_ extern ::testing::internal::Int32 GTEST_FLAG(name) > >#define GTEST_DECLARE_string_(name) GTEST_API_ extern ::testing::internal::String GTEST_FLAG(name) > > > >#define GTEST_DEFINE_bool_(name,default_val,doc) GTEST_API_ bool GTEST_FLAG(name) = (default_val) > >#define GTEST_DEFINE_int32_(name,default_val,doc) GTEST_API_ ::testing::internal::Int32 GTEST_FLAG(name) = (default_val) > >#define GTEST_DEFINE_string_(name,default_val,doc) GTEST_API_ ::testing::internal::String GTEST_FLAG(name) = (default_val) ># 2826 "../gtest_contrib/gtest/gtest.h" >bool ParseInt32(const Message& src_text, const char* str, Int32* value); > > > >bool BoolFromGTestEnv(const char* flag, bool default_val); > Int32 Int32FromGTestEnv(const char* flag, Int32 default_val); >const char* StringFromGTestEnv(const char* flag, const char* default_val); > >} >} > > > > > > ># 1 "/usr/include/sys/wait.h" 1 3 4 ># 23 "/usr/include/sys/wait.h" 3 4 >#define _SYS_WAIT_H 1 > > > >extern "C" { > ># 1 "/usr/include/signal.h" 1 3 4 ># 25 "/usr/include/signal.h" 3 4 >#define _SIGNAL_H > > > > >extern "C" { > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 42 "/usr/include/bits/sigset.h" 3 4 >#define _SIGSET_H_fns 1 > > >#define _EXTERN_INLINE __extern_inline > > > >#define __sigmask(sig) (((unsigned long int) 1) << (((sig) - 1) % (8 * sizeof (unsigned long int)))) > > > >#define __sigword(sig) (((sig) - 1) / (8 * sizeof (unsigned long int))) > > >#define __sigemptyset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__set = (set); while (--__cnt >= 0) __set->__val[__cnt] = 0; 0; })) > > > > >#define __sigfillset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__set = (set); while (--__cnt >= 0) __set->__val[__cnt] = ~0UL; 0; })) ># 71 "/usr/include/bits/sigset.h" 3 4 >#define __sigisemptyset(set) (__extension__ ({ int __cnt = _SIGSET_NWORDS; const sigset_t *__set = (set); int __ret = __set->__val[--__cnt]; while (!__ret && --__cnt >= 0) __ret = __set->__val[__cnt]; __ret == 0; })) > > > > > > >#define __sigandset(dest,left,right) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__dest = (dest); const sigset_t *__left = (left); const sigset_t *__right = (right); while (--__cnt >= 0) __dest->__val[__cnt] = (__left->__val[__cnt] & __right->__val[__cnt]); 0; })) ># 87 "/usr/include/bits/sigset.h" 3 4 >#define __sigorset(dest,left,right) (__extension__ ({ int __cnt = _SIGSET_NWORDS; sigset_t *__dest = (dest); const sigset_t *__left = (left); const sigset_t *__right = (right); while (--__cnt >= 0) __dest->__val[__cnt] = (__left->__val[__cnt] | __right->__val[__cnt]); 0; })) ># 102 "/usr/include/bits/sigset.h" 3 4 >extern int __sigismember (const __sigset_t *, int); >extern int __sigaddset (__sigset_t *, int); >extern int __sigdelset (__sigset_t *, int); ># 33 "/usr/include/signal.h" 2 3 4 > > > > > >#define __sig_atomic_t_defined > >typedef __sig_atomic_t sig_atomic_t; > > >#undef __need_sig_atomic_t > > > > > > > >#undef __need_sigset_t > > > > > ># 1 "/usr/include/bits/signum.h" 1 3 4 ># 22 "/usr/include/bits/signum.h" 3 4 >#define SIG_ERR ((__sighandler_t) -1) >#define SIG_DFL ((__sighandler_t) 0) >#define SIG_IGN ((__sighandler_t) 1) > > >#define SIG_HOLD ((__sighandler_t) 2) > > > > >#define SIGHUP 1 >#define SIGINT 2 >#define SIGQUIT 3 >#define SIGILL 4 >#define SIGTRAP 5 >#define SIGABRT 6 >#define SIGIOT 6 >#define SIGBUS 7 >#define SIGFPE 8 >#define SIGKILL 9 >#define SIGUSR1 10 >#define SIGSEGV 11 >#define SIGUSR2 12 >#define SIGPIPE 13 >#define SIGALRM 14 >#define SIGTERM 15 >#define SIGSTKFLT 16 >#define SIGCLD SIGCHLD >#define SIGCHLD 17 >#define SIGCONT 18 >#define SIGSTOP 19 >#define SIGTSTP 20 >#define SIGTTIN 21 >#define SIGTTOU 22 >#define SIGURG 23 >#define SIGXCPU 24 >#define SIGXFSZ 25 >#define SIGVTALRM 26 >#define SIGPROF 27 >#define SIGWINCH 28 >#define SIGPOLL SIGIO >#define SIGIO 29 >#define SIGPWR 30 >#define SIGSYS 31 >#define SIGUNUSED 31 > >#define _NSIG 65 > > >#define SIGRTMIN (__libc_current_sigrtmin ()) >#define SIGRTMAX (__libc_current_sigrtmax ()) > > > >#define __SIGRTMIN 32 >#define __SIGRTMAX (_NSIG - 1) ># 58 "/usr/include/signal.h" 2 3 4 ># 74 "/usr/include/signal.h" 3 4 >#define __need_timespec > > > > > ># 1 "/usr/include/bits/siginfo.h" 1 3 4 ># 24 "/usr/include/bits/siginfo.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 25 "/usr/include/bits/siginfo.h" 2 3 4 > > > > >#define __have_sigval_t 1 > > >typedef union sigval > { > int sival_int; > void *sival_ptr; > } sigval_t; > > > > >#define __have_siginfo_t 1 > >#define __SI_MAX_SIZE 128 > >#define __SI_PAD_SIZE ((__SI_MAX_SIZE / sizeof (int)) - 4) ># 58 "/usr/include/bits/siginfo.h" 3 4 >typedef __clock_t __sigchld_clock_t; >#define __SI_ALIGNMENT > > >typedef struct > { > int si_signo; > int si_errno; > > int si_code; > > union > { > int _pad[((128 / sizeof (int)) - 4)]; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > } _kill; > > > struct > { > int si_tid; > int si_overrun; > sigval_t si_sigval; > } _timer; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > sigval_t si_sigval; > } _rt; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > int si_status; > __sigchld_clock_t si_utime; > __sigchld_clock_t si_stime; > } _sigchld; > > > struct > { > void *si_addr; > short int si_addr_lsb; > } _sigfault; > > > struct > { > long int si_band; > int si_fd; > } _sigpoll; > > > struct > { > void *_call_addr; > int _syscall; > unsigned int _arch; > } _sigsys; > } _sifields; > } siginfo_t ; > > > >#define si_pid _sifields._kill.si_pid >#define si_uid _sifields._kill.si_uid >#define si_timerid _sifields._timer.si_tid >#define si_overrun _sifields._timer.si_overrun >#define si_status _sifields._sigchld.si_status >#define si_utime _sifields._sigchld.si_utime >#define si_stime _sifields._sigchld.si_stime >#define si_value _sifields._rt.si_sigval >#define si_int _sifields._rt.si_sigval.sival_int >#define si_ptr _sifields._rt.si_sigval.sival_ptr >#define si_addr _sifields._sigfault.si_addr >#define si_addr_lsb _sifields._sigfault.si_addr_lsb >#define si_band _sifields._sigpoll.si_band >#define si_fd _sifields._sigpoll.si_fd >#define si_call_addr _sifields._sigsys._call_addr >#define si_syscall _sifields._sigsys._syscall >#define si_arch _sifields._sigsys._arch > > > > >enum >{ > SI_ASYNCNL = -60, >#define SI_ASYNCNL SI_ASYNCNL > SI_TKILL = -6, >#define SI_TKILL SI_TKILL > SI_SIGIO, >#define SI_SIGIO SI_SIGIO > SI_ASYNCIO, >#define SI_ASYNCIO SI_ASYNCIO > SI_MESGQ, >#define SI_MESGQ SI_MESGQ > SI_TIMER, >#define SI_TIMER SI_TIMER > SI_QUEUE, >#define SI_QUEUE SI_QUEUE > SI_USER, >#define SI_USER SI_USER > SI_KERNEL = 0x80 >#define SI_KERNEL SI_KERNEL >}; > > > >enum >{ > ILL_ILLOPC = 1, >#define ILL_ILLOPC ILL_ILLOPC > ILL_ILLOPN, >#define ILL_ILLOPN ILL_ILLOPN > ILL_ILLADR, >#define ILL_ILLADR ILL_ILLADR > ILL_ILLTRP, >#define ILL_ILLTRP ILL_ILLTRP > ILL_PRVOPC, >#define ILL_PRVOPC ILL_PRVOPC > ILL_PRVREG, >#define ILL_PRVREG ILL_PRVREG > ILL_COPROC, >#define ILL_COPROC ILL_COPROC > ILL_BADSTK >#define ILL_BADSTK ILL_BADSTK >}; > > >enum >{ > FPE_INTDIV = 1, >#define FPE_INTDIV FPE_INTDIV > FPE_INTOVF, >#define FPE_INTOVF FPE_INTOVF > FPE_FLTDIV, >#define FPE_FLTDIV FPE_FLTDIV > FPE_FLTOVF, >#define FPE_FLTOVF FPE_FLTOVF > FPE_FLTUND, >#define FPE_FLTUND FPE_FLTUND > FPE_FLTRES, >#define FPE_FLTRES FPE_FLTRES > FPE_FLTINV, >#define FPE_FLTINV FPE_FLTINV > FPE_FLTSUB >#define FPE_FLTSUB FPE_FLTSUB >}; > > >enum >{ > SEGV_MAPERR = 1, >#define SEGV_MAPERR SEGV_MAPERR > SEGV_ACCERR >#define SEGV_ACCERR SEGV_ACCERR >}; > > >enum >{ > BUS_ADRALN = 1, >#define BUS_ADRALN BUS_ADRALN > BUS_ADRERR, >#define BUS_ADRERR BUS_ADRERR > BUS_OBJERR, >#define BUS_OBJERR BUS_OBJERR > BUS_MCEERR_AR, >#define BUS_MCEERR_AR BUS_MCEERR_AR > BUS_MCEERR_AO >#define BUS_MCEERR_AO BUS_MCEERR_AO >}; > > >enum >{ > TRAP_BRKPT = 1, >#define TRAP_BRKPT TRAP_BRKPT > TRAP_TRACE >#define TRAP_TRACE TRAP_TRACE >}; > > >enum >{ > CLD_EXITED = 1, >#define CLD_EXITED CLD_EXITED > CLD_KILLED, >#define CLD_KILLED CLD_KILLED > CLD_DUMPED, >#define CLD_DUMPED CLD_DUMPED > CLD_TRAPPED, >#define CLD_TRAPPED CLD_TRAPPED > CLD_STOPPED, >#define CLD_STOPPED CLD_STOPPED > CLD_CONTINUED >#define CLD_CONTINUED CLD_CONTINUED >}; > > >enum >{ > POLL_IN = 1, >#define POLL_IN POLL_IN > POLL_OUT, >#define POLL_OUT POLL_OUT > POLL_MSG, >#define POLL_MSG POLL_MSG > POLL_ERR, >#define POLL_ERR POLL_ERR > POLL_PRI, >#define POLL_PRI POLL_PRI > POLL_HUP >#define POLL_HUP POLL_HUP >}; > >#undef __need_siginfo_t > > > > > >#define __have_sigevent_t 1 > > >#define __SIGEV_MAX_SIZE 64 > >#define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 4) ># 307 "/usr/include/bits/siginfo.h" 3 4 >typedef struct sigevent > { > sigval_t sigev_value; > int sigev_signo; > int sigev_notify; > > union > { > int _pad[((64 / sizeof (int)) - 4)]; > > > > __pid_t _tid; > > struct > { > void (*_function) (sigval_t); > pthread_attr_t *_attribute; > } _sigev_thread; > } _sigev_un; > } sigevent_t; > > >#define sigev_notify_function _sigev_un._sigev_thread._function >#define sigev_notify_attributes _sigev_un._sigev_thread._attribute > > >enum >{ > SIGEV_SIGNAL = 0, >#define SIGEV_SIGNAL SIGEV_SIGNAL > SIGEV_NONE, >#define SIGEV_NONE SIGEV_NONE > SIGEV_THREAD, >#define SIGEV_THREAD SIGEV_THREAD > > SIGEV_THREAD_ID = 4 >#define SIGEV_THREAD_ID SIGEV_THREAD_ID >}; ># 81 "/usr/include/signal.h" 2 3 4 > > > > >typedef void (*__sighandler_t) (int); > > > > >extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) > throw (); > >extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler) > throw (); > > > > > > > >extern __sighandler_t signal (int __sig, __sighandler_t __handler) > throw (); ># 114 "/usr/include/signal.h" 3 4 > > > > > >extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler) > throw (); > > > > > > >extern int kill (__pid_t __pid, int __sig) throw (); > > > > > > >extern int killpg (__pid_t __pgrp, int __sig) throw (); > > > > >extern int raise (int __sig) throw (); > > > > >extern __sighandler_t ssignal (int __sig, __sighandler_t __handler) > throw (); >extern int gsignal (int __sig) throw (); > > > > >extern void psignal (int __sig, const char *__s); > > > > >extern void psiginfo (const siginfo_t *__pinfo, const char *__s); ># 169 "/usr/include/signal.h" 3 4 >extern int __sigpause (int __sig_or_mask, int __is_sig); ># 178 "/usr/include/signal.h" 3 4 >extern int sigpause (int __sig) __asm__ ("__xpg_sigpause"); ># 194 "/usr/include/signal.h" 3 4 >#define sigmask(sig) __sigmask(sig) > > >extern int sigblock (int __mask) throw () __attribute__ ((__deprecated__)); > > >extern int sigsetmask (int __mask) throw () __attribute__ ((__deprecated__)); > > >extern int siggetmask (void) throw () __attribute__ ((__deprecated__)); > > > > >#define NSIG _NSIG > > > >typedef __sighandler_t sighandler_t; > > > > >typedef __sighandler_t sig_t; > > > > > >extern int sigemptyset (sigset_t *__set) throw () __attribute__ ((__nonnull__ (1))); > > >extern int sigfillset (sigset_t *__set) throw () __attribute__ ((__nonnull__ (1))); > > >extern int sigaddset (sigset_t *__set, int __signo) throw () __attribute__ ((__nonnull__ (1))); > > >extern int sigdelset (sigset_t *__set, int __signo) throw () __attribute__ ((__nonnull__ (1))); > > >extern int sigismember (const sigset_t *__set, int __signo) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int sigisemptyset (const sigset_t *__set) throw () __attribute__ ((__nonnull__ (1))); > > >extern int sigandset (sigset_t *__set, const sigset_t *__left, > const sigset_t *__right) throw () __attribute__ ((__nonnull__ (1, 2, 3))); > > >extern int sigorset (sigset_t *__set, const sigset_t *__left, > const sigset_t *__right) throw () __attribute__ ((__nonnull__ (1, 2, 3))); > > > > ># 1 "/usr/include/bits/sigaction.h" 1 3 4 ># 24 "/usr/include/bits/sigaction.h" 3 4 >struct sigaction > { > > > union > { > > __sighandler_t sa_handler; > > void (*sa_sigaction) (int, siginfo_t *, void *); > } > __sigaction_handler; >#define sa_handler __sigaction_handler.sa_handler >#define sa_sigaction __sigaction_handler.sa_sigaction > > > > > > __sigset_t sa_mask; > > > int sa_flags; > > > void (*sa_restorer) (void); > }; > > >#define SA_NOCLDSTOP 1 >#define SA_NOCLDWAIT 2 >#define SA_SIGINFO 4 > > >#define SA_ONSTACK 0x08000000 > > >#define SA_RESTART 0x10000000 >#define SA_NODEFER 0x40000000 > >#define SA_RESETHAND 0x80000000 > > >#define SA_INTERRUPT 0x20000000 > > >#define SA_NOMASK SA_NODEFER >#define SA_ONESHOT SA_RESETHAND >#define SA_STACK SA_ONSTACK > > > >#define SIG_BLOCK 0 >#define SIG_UNBLOCK 1 >#define SIG_SETMASK 2 ># 254 "/usr/include/signal.h" 2 3 4 > > >extern int sigprocmask (int __how, const sigset_t *__restrict __set, > sigset_t *__restrict __oset) throw (); > > > > > > >extern int sigsuspend (const sigset_t *__set) __attribute__ ((__nonnull__ (1))); > > >extern int sigaction (int __sig, const struct sigaction *__restrict __act, > struct sigaction *__restrict __oact) throw (); > > >extern int sigpending (sigset_t *__set) throw () __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig) > __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int sigwaitinfo (const sigset_t *__restrict __set, > siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sigtimedwait (const sigset_t *__restrict __set, > siginfo_t *__restrict __info, > const struct timespec *__restrict __timeout) > __attribute__ ((__nonnull__ (1))); > > > >extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val) > throw (); ># 311 "/usr/include/signal.h" 3 4 >extern const char *const _sys_siglist[65]; >extern const char *const sys_siglist[65]; > > >struct sigvec > { > __sighandler_t sv_handler; > int sv_mask; > > int sv_flags; >#define sv_onstack sv_flags > }; > > >#define SV_ONSTACK (1 << 0) >#define SV_INTERRUPT (1 << 1) >#define SV_RESETHAND (1 << 2) > > > > > > > >extern int sigvec (int __sig, const struct sigvec *__vec, > struct sigvec *__ovec) throw (); > > > ># 1 "/usr/include/bits/sigcontext.h" 1 3 4 ># 19 "/usr/include/bits/sigcontext.h" 3 4 >#define _BITS_SIGCONTEXT_H 1 > > > > > >#define FP_XSTATE_MAGIC1 0x46505853U >#define FP_XSTATE_MAGIC2 0x46505845U >#define FP_XSTATE_MAGIC2_SIZE sizeof(FP_XSTATE_MAGIC2) > >struct _fpx_sw_bytes >{ > __uint32_t magic1; > __uint32_t extended_size; > __uint64_t xstate_bv; > __uint32_t xstate_size; > __uint32_t padding[7]; >}; > >struct _fpreg >{ > unsigned short significand[4]; > unsigned short exponent; >}; > >struct _fpxreg >{ > unsigned short significand[4]; > unsigned short exponent; > unsigned short padding[3]; >}; > >struct _xmmreg >{ > __uint32_t element[4]; >}; ># 121 "/usr/include/bits/sigcontext.h" 3 4 >struct _fpstate >{ > > __uint16_t cwd; > __uint16_t swd; > __uint16_t ftw; > __uint16_t fop; > __uint64_t rip; > __uint64_t rdp; > __uint32_t mxcsr; > __uint32_t mxcr_mask; > struct _fpxreg _st[8]; > struct _xmmreg _xmm[16]; > __uint32_t padding[24]; >}; > >struct sigcontext >{ > __uint64_t r8; > __uint64_t r9; > __uint64_t r10; > __uint64_t r11; > __uint64_t r12; > __uint64_t r13; > __uint64_t r14; > __uint64_t r15; > __uint64_t rdi; > __uint64_t rsi; > __uint64_t rbp; > __uint64_t rbx; > __uint64_t rdx; > __uint64_t rax; > __uint64_t rcx; > __uint64_t rsp; > __uint64_t rip; > __uint64_t eflags; > unsigned short cs; > unsigned short gs; > unsigned short fs; > unsigned short __pad0; > __uint64_t err; > __uint64_t trapno; > __uint64_t oldmask; > __uint64_t cr2; > __extension__ union > { > struct _fpstate * fpstate; > __uint64_t __fpstate_word; > }; > __uint64_t __reserved1 [8]; >}; > > > >struct _xsave_hdr >{ > __uint64_t xstate_bv; > __uint64_t reserved1[2]; > __uint64_t reserved2[5]; >}; > >struct _ymmh_state >{ > __uint32_t ymmh_space[64]; >}; > >struct _xstate >{ > struct _fpstate fpstate; > struct _xsave_hdr xstate_hdr; > struct _ymmh_state ymmh; >}; ># 341 "/usr/include/signal.h" 2 3 4 > > >extern int sigreturn (struct sigcontext *__scp) throw (); > > > > > >#define __need_size_t ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 351 "/usr/include/signal.h" 2 3 4 > > > > >extern int siginterrupt (int __sig, int __interrupt) throw (); > ># 1 "/usr/include/bits/sigstack.h" 1 3 4 ># 25 "/usr/include/bits/sigstack.h" 3 4 >struct sigstack > { > void *ss_sp; > int ss_onstack; > }; > > > >enum >{ > SS_ONSTACK = 1, >#define SS_ONSTACK SS_ONSTACK > SS_DISABLE >#define SS_DISABLE SS_DISABLE >}; > > >#define MINSIGSTKSZ 2048 > > >#define SIGSTKSZ 8192 > > > >typedef struct sigaltstack > { > void *ss_sp; > int ss_flags; > size_t ss_size; > } stack_t; ># 358 "/usr/include/signal.h" 2 3 4 > > ># 1 "/usr/include/sys/ucontext.h" 1 3 4 ># 19 "/usr/include/sys/ucontext.h" 3 4 >#define _SYS_UCONTEXT_H 1 > > ># 1 "/usr/include/signal.h" 1 3 4 ># 23 "/usr/include/sys/ucontext.h" 2 3 4 ># 31 "/usr/include/sys/ucontext.h" 3 4 >__extension__ typedef long long int greg_t; > > >#define NGREG 23 > > >typedef greg_t gregset_t[23]; > > > >enum >{ > REG_R8 = 0, >#define REG_R8 REG_R8 > REG_R9, >#define REG_R9 REG_R9 > REG_R10, >#define REG_R10 REG_R10 > REG_R11, >#define REG_R11 REG_R11 > REG_R12, >#define REG_R12 REG_R12 > REG_R13, >#define REG_R13 REG_R13 > REG_R14, >#define REG_R14 REG_R14 > REG_R15, >#define REG_R15 REG_R15 > REG_RDI, >#define REG_RDI REG_RDI > REG_RSI, >#define REG_RSI REG_RSI > REG_RBP, >#define REG_RBP REG_RBP > REG_RBX, >#define REG_RBX REG_RBX > REG_RDX, >#define REG_RDX REG_RDX > REG_RAX, >#define REG_RAX REG_RAX > REG_RCX, >#define REG_RCX REG_RCX > REG_RSP, >#define REG_RSP REG_RSP > REG_RIP, >#define REG_RIP REG_RIP > REG_EFL, >#define REG_EFL REG_EFL > REG_CSGSFS, >#define REG_CSGSFS REG_CSGSFS > REG_ERR, >#define REG_ERR REG_ERR > REG_TRAPNO, >#define REG_TRAPNO REG_TRAPNO > REG_OLDMASK, >#define REG_OLDMASK REG_OLDMASK > REG_CR2 >#define REG_CR2 REG_CR2 >}; > > >struct _libc_fpxreg >{ > unsigned short int significand[4]; > unsigned short int exponent; > unsigned short int padding[3]; >}; > >struct _libc_xmmreg >{ > __uint32_t element[4]; >}; > >struct _libc_fpstate >{ > > __uint16_t cwd; > __uint16_t swd; > __uint16_t ftw; > __uint16_t fop; > __uint64_t rip; > __uint64_t rdp; > __uint32_t mxcsr; > __uint32_t mxcr_mask; > struct _libc_fpxreg _st[8]; > struct _libc_xmmreg _xmm[16]; > __uint32_t padding[24]; >}; > > >typedef struct _libc_fpstate *fpregset_t; > > >typedef struct > { > gregset_t gregs; > > fpregset_t fpregs; > __extension__ unsigned long long __reserved1 [8]; >} mcontext_t; > > >typedef struct ucontext > { > unsigned long int uc_flags; > struct ucontext *uc_link; > stack_t uc_stack; > mcontext_t uc_mcontext; > __sigset_t uc_sigmask; > struct _libc_fpstate __fpregs_mem; > } ucontext_t; ># 361 "/usr/include/signal.h" 2 3 4 > > > > > >extern int sigstack (struct sigstack *__ss, struct sigstack *__oss) > throw () __attribute__ ((__deprecated__)); > > > >extern int sigaltstack (const struct sigaltstack *__restrict __ss, > struct sigaltstack *__restrict __oss) throw (); > > > > > > > >extern int sighold (int __sig) throw (); > > >extern int sigrelse (int __sig) throw (); > > >extern int sigignore (int __sig) throw (); > > >extern __sighandler_t sigset (int __sig, __sighandler_t __disp) throw (); > > > > > > ># 1 "/usr/include/bits/sigthread.h" 1 3 4 ># 20 "/usr/include/bits/sigthread.h" 3 4 >#define _BITS_SIGTHREAD_H 1 ># 30 "/usr/include/bits/sigthread.h" 3 4 >extern int pthread_sigmask (int __how, > const __sigset_t *__restrict __newmask, > __sigset_t *__restrict __oldmask)throw (); > > >extern int pthread_kill (pthread_t __threadid, int __signo) throw (); > > > >extern int pthread_sigqueue (pthread_t __threadid, int __signo, > const union sigval __value) throw (); ># 397 "/usr/include/signal.h" 2 3 4 > > > > > > >extern int __libc_current_sigrtmin (void) throw (); > >extern int __libc_current_sigrtmax (void) throw (); > > > >} ># 30 "/usr/include/sys/wait.h" 2 3 4 ># 91 "/usr/include/sys/wait.h" 3 4 >#define WCOREFLAG __WCOREFLAG >#define WCOREDUMP(status) __WCOREDUMP (__WAIT_INT (status)) >#define W_EXITCODE(ret,sig) __W_EXITCODE (ret, sig) >#define W_STOPCODE(sig) __W_STOPCODE (sig) > > > > >typedef enum >{ > P_ALL, > P_PID, > P_PGID >} idtype_t; ># 113 "/usr/include/sys/wait.h" 3 4 >extern __pid_t wait (void * __stat_loc); > > > >#define WAIT_ANY (-1) >#define WAIT_MYPGRP 0 ># 136 "/usr/include/sys/wait.h" 3 4 >extern __pid_t waitpid (__pid_t __pid, int *__stat_loc, int __options); ># 145 "/usr/include/sys/wait.h" 3 4 >#define __need_siginfo_t ># 1 "/usr/include/bits/siginfo.h" 1 3 4 ># 24 "/usr/include/bits/siginfo.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 25 "/usr/include/bits/siginfo.h" 2 3 4 ># 147 "/usr/include/sys/wait.h" 2 3 4 ># 159 "/usr/include/sys/wait.h" 3 4 >extern int waitid (idtype_t __idtype, __id_t __id, siginfo_t *__infop, > int __options); > > > > > >struct rusage; > > > > > > >extern __pid_t wait3 (void * __stat_loc, int __options, > struct rusage * __usage) throw (); > > > > >extern __pid_t wait4 (__pid_t __pid, void * __stat_loc, int __options, > struct rusage *__usage) throw (); > > > >} ># 2843 "../gtest_contrib/gtest/gtest.h" 2 > > > > > ># 1 "/usr/include/c++/4.8.2/iomanip" 1 3 ># 34 "/usr/include/c++/4.8.2/iomanip" 3 >#define _GLIBCXX_IOMANIP 1 > > ># 37 "/usr/include/c++/4.8.2/iomanip" 3 ># 46 "/usr/include/c++/4.8.2/iomanip" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > > struct _Resetiosflags { ios_base::fmtflags _M_mask; }; ># 62 "/usr/include/c++/4.8.2/iomanip" 3 > inline _Resetiosflags > resetiosflags(ios_base::fmtflags __mask) > { return { __mask }; } > > template<typename _CharT, typename _Traits> > inline basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) > { > __is.setf(ios_base::fmtflags(0), __f._M_mask); > return __is; > } > > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f) > { > __os.setf(ios_base::fmtflags(0), __f._M_mask); > return __os; > } > > > struct _Setiosflags { ios_base::fmtflags _M_mask; }; ># 92 "/usr/include/c++/4.8.2/iomanip" 3 > inline _Setiosflags > setiosflags(ios_base::fmtflags __mask) > { return { __mask }; } > > template<typename _CharT, typename _Traits> > inline basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) > { > __is.setf(__f._M_mask); > return __is; > } > > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f) > { > __os.setf(__f._M_mask); > return __os; > } > > > struct _Setbase { int _M_base; }; ># 123 "/usr/include/c++/4.8.2/iomanip" 3 > inline _Setbase > setbase(int __base) > { return { __base }; } > > template<typename _CharT, typename _Traits> > inline basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) > { > __is.setf(__f._M_base == 8 ? ios_base::oct : > __f._M_base == 10 ? ios_base::dec : > __f._M_base == 16 ? ios_base::hex : > ios_base::fmtflags(0), ios_base::basefield); > return __is; > } > > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __os, _Setbase __f) > { > __os.setf(__f._M_base == 8 ? ios_base::oct : > __f._M_base == 10 ? ios_base::dec : > __f._M_base == 16 ? ios_base::hex : > ios_base::fmtflags(0), ios_base::basefield); > return __os; > } > > > template<typename _CharT> > struct _Setfill { _CharT _M_c; }; ># 160 "/usr/include/c++/4.8.2/iomanip" 3 > template<typename _CharT> > inline _Setfill<_CharT> > setfill(_CharT __c) > { return { __c }; } > > template<typename _CharT, typename _Traits> > inline basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) > { > __is.fill(__f._M_c); > return __is; > } > > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __os, _Setfill<_CharT> __f) > { > __os.fill(__f._M_c); > return __os; > } > > > struct _Setprecision { int _M_n; }; ># 191 "/usr/include/c++/4.8.2/iomanip" 3 > inline _Setprecision > setprecision(int __n) > { return { __n }; } > > template<typename _CharT, typename _Traits> > inline basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) > { > __is.precision(__f._M_n); > return __is; > } > > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __os, _Setprecision __f) > { > __os.precision(__f._M_n); > return __os; > } > > > struct _Setw { int _M_n; }; ># 221 "/usr/include/c++/4.8.2/iomanip" 3 > inline _Setw > setw(int __n) > { return { __n }; } > > template<typename _CharT, typename _Traits> > inline basic_istream<_CharT, _Traits>& > operator>>(basic_istream<_CharT, _Traits>& __is, _Setw __f) > { > __is.width(__f._M_n); > return __is; > } > > template<typename _CharT, typename _Traits> > inline basic_ostream<_CharT, _Traits>& > operator<<(basic_ostream<_CharT, _Traits>& __os, _Setw __f) > { > __os.width(__f._M_n); > return __os; > } ># 343 "/usr/include/c++/4.8.2/iomanip" 3 > extern template ostream& operator<<(ostream&, _Setfill<char>); > extern template ostream& operator<<(ostream&, _Setiosflags); > extern template ostream& operator<<(ostream&, _Resetiosflags); > extern template ostream& operator<<(ostream&, _Setbase); > extern template ostream& operator<<(ostream&, _Setprecision); > extern template ostream& operator<<(ostream&, _Setw); > extern template istream& operator>>(istream&, _Setfill<char>); > extern template istream& operator>>(istream&, _Setiosflags); > extern template istream& operator>>(istream&, _Resetiosflags); > extern template istream& operator>>(istream&, _Setbase); > extern template istream& operator>>(istream&, _Setprecision); > extern template istream& operator>>(istream&, _Setw); > > > extern template wostream& operator<<(wostream&, _Setfill<wchar_t>); > extern template wostream& operator<<(wostream&, _Setiosflags); > extern template wostream& operator<<(wostream&, _Resetiosflags); > extern template wostream& operator<<(wostream&, _Setbase); > extern template wostream& operator<<(wostream&, _Setprecision); > extern template wostream& operator<<(wostream&, _Setw); > extern template wistream& operator>>(wistream&, _Setfill<wchar_t>); > extern template wistream& operator>>(wistream&, _Setiosflags); > extern template wistream& operator>>(wistream&, _Resetiosflags); > extern template wistream& operator>>(wistream&, _Setbase); > extern template wistream& operator>>(wistream&, _Setprecision); > extern template wistream& operator>>(wistream&, _Setw); > > > > >} ># 2849 "../gtest_contrib/gtest/gtest.h" 2 > ># 1 "/usr/include/c++/4.8.2/set" 1 3 ># 56 "/usr/include/c++/4.8.2/set" 3 >#define _GLIBCXX_SET 1 > > ># 59 "/usr/include/c++/4.8.2/set" 3 > ># 1 "/usr/include/c++/4.8.2/bits/stl_tree.h" 1 3 ># 59 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 >#define _STL_TREE_H 1 ># 69 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 89 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 > enum _Rb_tree_color { _S_red = false, _S_black = true }; > > struct _Rb_tree_node_base > { > typedef _Rb_tree_node_base* _Base_ptr; > typedef const _Rb_tree_node_base* _Const_Base_ptr; > > _Rb_tree_color _M_color; > _Base_ptr _M_parent; > _Base_ptr _M_left; > _Base_ptr _M_right; > > static _Base_ptr > _S_minimum(_Base_ptr __x) > { > while (__x->_M_left != 0) __x = __x->_M_left; > return __x; > } > > static _Const_Base_ptr > _S_minimum(_Const_Base_ptr __x) > { > while (__x->_M_left != 0) __x = __x->_M_left; > return __x; > } > > static _Base_ptr > _S_maximum(_Base_ptr __x) > { > while (__x->_M_right != 0) __x = __x->_M_right; > return __x; > } > > static _Const_Base_ptr > _S_maximum(_Const_Base_ptr __x) > { > while (__x->_M_right != 0) __x = __x->_M_right; > return __x; > } > }; > > template<typename _Val> > struct _Rb_tree_node : public _Rb_tree_node_base > { > typedef _Rb_tree_node<_Val>* _Link_type; > _Val _M_value_field; > > > > > > > > }; > > __attribute__ ((__pure__)) _Rb_tree_node_base* > _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); > > __attribute__ ((__pure__)) const _Rb_tree_node_base* > _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); > > __attribute__ ((__pure__)) _Rb_tree_node_base* > _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); > > __attribute__ ((__pure__)) const _Rb_tree_node_base* > _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); > > template<typename _Tp> > struct _Rb_tree_iterator > { > typedef _Tp value_type; > typedef _Tp& reference; > typedef _Tp* pointer; > > typedef bidirectional_iterator_tag iterator_category; > typedef ptrdiff_t difference_type; > > typedef _Rb_tree_iterator<_Tp> _Self; > typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; > typedef _Rb_tree_node<_Tp>* _Link_type; > > _Rb_tree_iterator() > : _M_node() { } > > explicit > _Rb_tree_iterator(_Link_type __x) > : _M_node(__x) { } > > reference > operator*() const > { return static_cast<_Link_type>(_M_node)->_M_value_field; } > > pointer > operator->() const > { return std::__addressof(static_cast<_Link_type> > (_M_node)->_M_value_field); } > > _Self& > operator++() > { > _M_node = _Rb_tree_increment(_M_node); > return *this; > } > > _Self > operator++(int) > { > _Self __tmp = *this; > _M_node = _Rb_tree_increment(_M_node); > return __tmp; > } > > _Self& > operator--() > { > _M_node = _Rb_tree_decrement(_M_node); > return *this; > } > > _Self > operator--(int) > { > _Self __tmp = *this; > _M_node = _Rb_tree_decrement(_M_node); > return __tmp; > } > > bool > operator==(const _Self& __x) const > { return _M_node == __x._M_node; } > > bool > operator!=(const _Self& __x) const > { return _M_node != __x._M_node; } > > _Base_ptr _M_node; > }; > > template<typename _Tp> > struct _Rb_tree_const_iterator > { > typedef _Tp value_type; > typedef const _Tp& reference; > typedef const _Tp* pointer; > > typedef _Rb_tree_iterator<_Tp> iterator; > > typedef bidirectional_iterator_tag iterator_category; > typedef ptrdiff_t difference_type; > > typedef _Rb_tree_const_iterator<_Tp> _Self; > typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; > typedef const _Rb_tree_node<_Tp>* _Link_type; > > _Rb_tree_const_iterator() > : _M_node() { } > > explicit > _Rb_tree_const_iterator(_Link_type __x) > : _M_node(__x) { } > > _Rb_tree_const_iterator(const iterator& __it) > : _M_node(__it._M_node) { } > > iterator > _M_const_cast() const > { return iterator(static_cast<typename iterator::_Link_type> > (const_cast<typename iterator::_Base_ptr>(_M_node))); } > > reference > operator*() const > { return static_cast<_Link_type>(_M_node)->_M_value_field; } > > pointer > operator->() const > { return std::__addressof(static_cast<_Link_type> > (_M_node)->_M_value_field); } > > _Self& > operator++() > { > _M_node = _Rb_tree_increment(_M_node); > return *this; > } > > _Self > operator++(int) > { > _Self __tmp = *this; > _M_node = _Rb_tree_increment(_M_node); > return __tmp; > } > > _Self& > operator--() > { > _M_node = _Rb_tree_decrement(_M_node); > return *this; > } > > _Self > operator--(int) > { > _Self __tmp = *this; > _M_node = _Rb_tree_decrement(_M_node); > return __tmp; > } > > bool > operator==(const _Self& __x) const > { return _M_node == __x._M_node; } > > bool > operator!=(const _Self& __x) const > { return _M_node != __x._M_node; } > > _Base_ptr _M_node; > }; > > template<typename _Val> > inline bool > operator==(const _Rb_tree_iterator<_Val>& __x, > const _Rb_tree_const_iterator<_Val>& __y) > { return __x._M_node == __y._M_node; } > > template<typename _Val> > inline bool > operator!=(const _Rb_tree_iterator<_Val>& __x, > const _Rb_tree_const_iterator<_Val>& __y) > { return __x._M_node != __y._M_node; } > > void > _Rb_tree_insert_and_rebalance(const bool __insert_left, > _Rb_tree_node_base* __x, > _Rb_tree_node_base* __p, > _Rb_tree_node_base& __header) throw (); > > _Rb_tree_node_base* > _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, > _Rb_tree_node_base& __header) throw (); > > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc = allocator<_Val> > > class _Rb_tree > { > typedef typename _Alloc::template rebind<_Rb_tree_node<_Val> >::other > _Node_allocator; > > protected: > typedef _Rb_tree_node_base* _Base_ptr; > typedef const _Rb_tree_node_base* _Const_Base_ptr; > > public: > typedef _Key key_type; > typedef _Val value_type; > typedef value_type* pointer; > typedef const value_type* const_pointer; > typedef value_type& reference; > typedef const value_type& const_reference; > typedef _Rb_tree_node<_Val>* _Link_type; > typedef const _Rb_tree_node<_Val>* _Const_Link_type; > typedef size_t size_type; > typedef ptrdiff_t difference_type; > typedef _Alloc allocator_type; > > _Node_allocator& > _M_get_Node_allocator() > { return *static_cast<_Node_allocator*>(&this->_M_impl); } > > const _Node_allocator& > _M_get_Node_allocator() const > { return *static_cast<const _Node_allocator*>(&this->_M_impl); } > > allocator_type > get_allocator() const > { return allocator_type(_M_get_Node_allocator()); } > > protected: > _Link_type > _M_get_node() > { return _M_impl._Node_allocator::allocate(1); } > > void > _M_put_node(_Link_type __p) > { _M_impl._Node_allocator::deallocate(__p, 1); } > > > _Link_type > _M_create_node(const value_type& __x) > { > _Link_type __tmp = _M_get_node(); > try > { get_allocator().construct > (std::__addressof(__tmp->_M_value_field), __x); } > catch(...) > { > _M_put_node(__tmp); > throw; > } > return __tmp; > } > > void > _M_destroy_node(_Link_type __p) > { > get_allocator().destroy(std::__addressof(__p->_M_value_field)); > _M_put_node(__p); > } ># 426 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 > _Link_type > _M_clone_node(_Const_Link_type __x) > { > _Link_type __tmp = _M_create_node(__x->_M_value_field); > __tmp->_M_color = __x->_M_color; > __tmp->_M_left = 0; > __tmp->_M_right = 0; > return __tmp; > } > > protected: > template<typename _Key_compare, > bool _Is_pod_comparator = __is_pod(_Key_compare)> > struct _Rb_tree_impl : public _Node_allocator > { > _Key_compare _M_key_compare; > _Rb_tree_node_base _M_header; > size_type _M_node_count; > > _Rb_tree_impl() > : _Node_allocator(), _M_key_compare(), _M_header(), > _M_node_count(0) > { _M_initialize(); } > > _Rb_tree_impl(const _Key_compare& __comp, const _Node_allocator& __a) > : _Node_allocator(__a), _M_key_compare(__comp), _M_header(), > _M_node_count(0) > { _M_initialize(); } ># 462 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 > private: > void > _M_initialize() > { > this->_M_header._M_color = _S_red; > this->_M_header._M_parent = 0; > this->_M_header._M_left = &this->_M_header; > this->_M_header._M_right = &this->_M_header; > } > }; > > _Rb_tree_impl<_Compare> _M_impl; > > protected: > _Base_ptr& > _M_root() > { return this->_M_impl._M_header._M_parent; } > > _Const_Base_ptr > _M_root() const > { return this->_M_impl._M_header._M_parent; } > > _Base_ptr& > _M_leftmost() > { return this->_M_impl._M_header._M_left; } > > _Const_Base_ptr > _M_leftmost() const > { return this->_M_impl._M_header._M_left; } > > _Base_ptr& > _M_rightmost() > { return this->_M_impl._M_header._M_right; } > > _Const_Base_ptr > _M_rightmost() const > { return this->_M_impl._M_header._M_right; } > > _Link_type > _M_begin() > { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } > > _Const_Link_type > _M_begin() const > { > return static_cast<_Const_Link_type> > (this->_M_impl._M_header._M_parent); > } > > _Link_type > _M_end() > { return static_cast<_Link_type>(&this->_M_impl._M_header); } > > _Const_Link_type > _M_end() const > { return static_cast<_Const_Link_type>(&this->_M_impl._M_header); } > > static const_reference > _S_value(_Const_Link_type __x) > { return __x->_M_value_field; } > > static const _Key& > _S_key(_Const_Link_type __x) > { return _KeyOfValue()(_S_value(__x)); } > > static _Link_type > _S_left(_Base_ptr __x) > { return static_cast<_Link_type>(__x->_M_left); } > > static _Const_Link_type > _S_left(_Const_Base_ptr __x) > { return static_cast<_Const_Link_type>(__x->_M_left); } > > static _Link_type > _S_right(_Base_ptr __x) > { return static_cast<_Link_type>(__x->_M_right); } > > static _Const_Link_type > _S_right(_Const_Base_ptr __x) > { return static_cast<_Const_Link_type>(__x->_M_right); } > > static const_reference > _S_value(_Const_Base_ptr __x) > { return static_cast<_Const_Link_type>(__x)->_M_value_field; } > > static const _Key& > _S_key(_Const_Base_ptr __x) > { return _KeyOfValue()(_S_value(__x)); } > > static _Base_ptr > _S_minimum(_Base_ptr __x) > { return _Rb_tree_node_base::_S_minimum(__x); } > > static _Const_Base_ptr > _S_minimum(_Const_Base_ptr __x) > { return _Rb_tree_node_base::_S_minimum(__x); } > > static _Base_ptr > _S_maximum(_Base_ptr __x) > { return _Rb_tree_node_base::_S_maximum(__x); } > > static _Const_Base_ptr > _S_maximum(_Const_Base_ptr __x) > { return _Rb_tree_node_base::_S_maximum(__x); } > > public: > typedef _Rb_tree_iterator<value_type> iterator; > typedef _Rb_tree_const_iterator<value_type> const_iterator; > > typedef std::reverse_iterator<iterator> reverse_iterator; > typedef std::reverse_iterator<const_iterator> const_reverse_iterator; > > private: > pair<_Base_ptr, _Base_ptr> > _M_get_insert_unique_pos(const key_type& __k); > > pair<_Base_ptr, _Base_ptr> > _M_get_insert_equal_pos(const key_type& __k); > > pair<_Base_ptr, _Base_ptr> > _M_get_insert_hint_unique_pos(const_iterator __pos, > const key_type& __k); > > pair<_Base_ptr, _Base_ptr> > _M_get_insert_hint_equal_pos(const_iterator __pos, > const key_type& __k); ># 611 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 > iterator > _M_insert_(_Base_ptr __x, _Base_ptr __y, > const value_type& __v); > > > > iterator > _M_insert_lower(_Base_ptr __y, const value_type& __v); > > iterator > _M_insert_equal_lower(const value_type& __x); > > > _Link_type > _M_copy(_Const_Link_type __x, _Link_type __p); > > void > _M_erase(_Link_type __x); > > iterator > _M_lower_bound(_Link_type __x, _Link_type __y, > const _Key& __k); > > const_iterator > _M_lower_bound(_Const_Link_type __x, _Const_Link_type __y, > const _Key& __k) const; > > iterator > _M_upper_bound(_Link_type __x, _Link_type __y, > const _Key& __k); > > const_iterator > _M_upper_bound(_Const_Link_type __x, _Const_Link_type __y, > const _Key& __k) const; > > public: > > _Rb_tree() { } > > _Rb_tree(const _Compare& __comp, > const allocator_type& __a = allocator_type()) > : _M_impl(__comp, _Node_allocator(__a)) { } > > _Rb_tree(const _Rb_tree& __x) > : _M_impl(__x._M_impl._M_key_compare, __x._M_get_Node_allocator()) > { > if (__x._M_root() != 0) > { > _M_root() = _M_copy(__x._M_begin(), _M_end()); > _M_leftmost() = _S_minimum(_M_root()); > _M_rightmost() = _S_maximum(_M_root()); > _M_impl._M_node_count = __x._M_impl._M_node_count; > } > } > > > > > > ~_Rb_tree() > { _M_erase(_M_begin()); } > > _Rb_tree& > operator=(const _Rb_tree& __x); > > > _Compare > key_comp() const > { return _M_impl._M_key_compare; } > > iterator > begin() > { > return iterator(static_cast<_Link_type> > (this->_M_impl._M_header._M_left)); > } > > const_iterator > begin() const > { > return const_iterator(static_cast<_Const_Link_type> > (this->_M_impl._M_header._M_left)); > } > > iterator > end() > { return iterator(static_cast<_Link_type>(&this->_M_impl._M_header)); } > > const_iterator > end() const > { > return const_iterator(static_cast<_Const_Link_type> > (&this->_M_impl._M_header)); > } > > reverse_iterator > rbegin() > { return reverse_iterator(end()); } > > const_reverse_iterator > rbegin() const > { return const_reverse_iterator(end()); } > > reverse_iterator > rend() > { return reverse_iterator(begin()); } > > const_reverse_iterator > rend() const > { return const_reverse_iterator(begin()); } > > bool > empty() const > { return _M_impl._M_node_count == 0; } > > size_type > size() const > { return _M_impl._M_node_count; } > > size_type > max_size() const > { return _M_get_Node_allocator().max_size(); } > > void > swap(_Rb_tree& __t); ># 771 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 > pair<iterator, bool> > _M_insert_unique(const value_type& __x); > > iterator > _M_insert_equal(const value_type& __x); > > iterator > _M_insert_unique_(const_iterator __position, const value_type& __x); > > iterator > _M_insert_equal_(const_iterator __position, const value_type& __x); > > > template<typename _InputIterator> > void > _M_insert_unique(_InputIterator __first, _InputIterator __last); > > template<typename _InputIterator> > void > _M_insert_equal(_InputIterator __first, _InputIterator __last); > > private: > void > _M_erase_aux(const_iterator __position); > > void > _M_erase_aux(const_iterator __first, const_iterator __last); > > public: ># 824 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 > void > erase(iterator __position) > { _M_erase_aux(__position); } > > void > erase(const_iterator __position) > { _M_erase_aux(__position); } > > size_type > erase(const key_type& __x); ># 846 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 > void > erase(iterator __first, iterator __last) > { _M_erase_aux(__first, __last); } > > void > erase(const_iterator __first, const_iterator __last) > { _M_erase_aux(__first, __last); } > > void > erase(const key_type* __first, const key_type* __last); > > void > clear() > { > _M_erase(_M_begin()); > _M_leftmost() = _M_end(); > _M_root() = 0; > _M_rightmost() = _M_end(); > _M_impl._M_node_count = 0; > } > > > iterator > find(const key_type& __k); > > const_iterator > find(const key_type& __k) const; > > size_type > count(const key_type& __k) const; > > iterator > lower_bound(const key_type& __k) > { return _M_lower_bound(_M_begin(), _M_end(), __k); } > > const_iterator > lower_bound(const key_type& __k) const > { return _M_lower_bound(_M_begin(), _M_end(), __k); } > > iterator > upper_bound(const key_type& __k) > { return _M_upper_bound(_M_begin(), _M_end(), __k); } > > const_iterator > upper_bound(const key_type& __k) const > { return _M_upper_bound(_M_begin(), _M_end(), __k); } > > pair<iterator, iterator> > equal_range(const key_type& __k); > > pair<const_iterator, const_iterator> > equal_range(const key_type& __k) const; > > > bool > __rb_verify() const; > }; > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > inline bool > operator==(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, > const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) > { > return __x.size() == __y.size() > && std::equal(__x.begin(), __x.end(), __y.begin()); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > inline bool > operator<(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, > const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) > { > return std::lexicographical_compare(__x.begin(), __x.end(), > __y.begin(), __y.end()); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > inline bool > operator!=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, > const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) > { return !(__x == __y); } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > inline bool > operator>(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, > const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) > { return __y < __x; } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > inline bool > operator<=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, > const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) > { return !(__y < __x); } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > inline bool > operator>=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, > const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) > { return !(__x < __y); } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > inline void > swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) > { __x.swap(__y); } ># 984 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > operator=(const _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x) > { > if (this != &__x) > { > > clear(); > _M_impl._M_key_compare = __x._M_impl._M_key_compare; > if (__x._M_root() != 0) > { > _M_root() = _M_copy(__x._M_begin(), _M_end()); > _M_leftmost() = _S_minimum(_M_root()); > _M_rightmost() = _S_maximum(_M_root()); > _M_impl._M_node_count = __x._M_impl._M_node_count; > } > } > return *this; > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > > > > typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > > > > _M_insert_(_Base_ptr __x, _Base_ptr __p, const _Val& __v) > > { > bool __insert_left = (__x != 0 || __p == _M_end() > || _M_impl._M_key_compare(_KeyOfValue()(__v), > _S_key(__p))); > > _Link_type __z = _M_create_node((__v)); > > _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, > this->_M_impl._M_header); > ++_M_impl._M_node_count; > return iterator(__z); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > > > > typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > > > > _M_insert_lower(_Base_ptr __p, const _Val& __v) > > { > bool __insert_left = (__p == _M_end() > || !_M_impl._M_key_compare(_S_key(__p), > _KeyOfValue()(__v))); > > _Link_type __z = _M_create_node((__v)); > > _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, > this->_M_impl._M_header); > ++_M_impl._M_node_count; > return iterator(__z); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > > > > typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > > > > _M_insert_equal_lower(const _Val& __v) > > { > _Link_type __x = _M_begin(); > _Link_type __y = _M_end(); > while (__x != 0) > { > __y = __x; > __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? > _S_left(__x) : _S_right(__x); > } > return _M_insert_lower(__y, (__v)); > } > > template<typename _Key, typename _Val, typename _KoV, > typename _Compare, typename _Alloc> > typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type > _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: > _M_copy(_Const_Link_type __x, _Link_type __p) > { > > _Link_type __top = _M_clone_node(__x); > __top->_M_parent = __p; > > try > { > if (__x->_M_right) > __top->_M_right = _M_copy(_S_right(__x), __top); > __p = __top; > __x = _S_left(__x); > > while (__x != 0) > { > _Link_type __y = _M_clone_node(__x); > __p->_M_left = __y; > __y->_M_parent = __p; > if (__x->_M_right) > __y->_M_right = _M_copy(_S_right(__x), __y); > __p = __y; > __x = _S_left(__x); > } > } > catch(...) > { > _M_erase(__top); > throw; > } > return __top; > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > void > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_erase(_Link_type __x) > { > > while (__x != 0) > { > _M_erase(_S_right(__x)); > _Link_type __y = _S_left(__x); > _M_destroy_node(__x); > __x = __y; > } > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_lower_bound(_Link_type __x, _Link_type __y, > const _Key& __k) > { > while (__x != 0) > if (!_M_impl._M_key_compare(_S_key(__x), __k)) > __y = __x, __x = _S_left(__x); > else > __x = _S_right(__x); > return iterator(__y); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::const_iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_lower_bound(_Const_Link_type __x, _Const_Link_type __y, > const _Key& __k) const > { > while (__x != 0) > if (!_M_impl._M_key_compare(_S_key(__x), __k)) > __y = __x, __x = _S_left(__x); > else > __x = _S_right(__x); > return const_iterator(__y); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_upper_bound(_Link_type __x, _Link_type __y, > const _Key& __k) > { > while (__x != 0) > if (_M_impl._M_key_compare(__k, _S_key(__x))) > __y = __x, __x = _S_left(__x); > else > __x = _S_right(__x); > return iterator(__y); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::const_iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_upper_bound(_Const_Link_type __x, _Const_Link_type __y, > const _Key& __k) const > { > while (__x != 0) > if (_M_impl._M_key_compare(__k, _S_key(__x))) > __y = __x, __x = _S_left(__x); > else > __x = _S_right(__x); > return const_iterator(__y); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::iterator, > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::iterator> > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > equal_range(const _Key& __k) > { > _Link_type __x = _M_begin(); > _Link_type __y = _M_end(); > while (__x != 0) > { > if (_M_impl._M_key_compare(_S_key(__x), __k)) > __x = _S_right(__x); > else if (_M_impl._M_key_compare(__k, _S_key(__x))) > __y = __x, __x = _S_left(__x); > else > { > _Link_type __xu(__x), __yu(__y); > __y = __x, __x = _S_left(__x); > __xu = _S_right(__xu); > return pair<iterator, > iterator>(_M_lower_bound(__x, __y, __k), > _M_upper_bound(__xu, __yu, __k)); > } > } > return pair<iterator, iterator>(iterator(__y), > iterator(__y)); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::const_iterator, > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::const_iterator> > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > equal_range(const _Key& __k) const > { > _Const_Link_type __x = _M_begin(); > _Const_Link_type __y = _M_end(); > while (__x != 0) > { > if (_M_impl._M_key_compare(_S_key(__x), __k)) > __x = _S_right(__x); > else if (_M_impl._M_key_compare(__k, _S_key(__x))) > __y = __x, __x = _S_left(__x); > else > { > _Const_Link_type __xu(__x), __yu(__y); > __y = __x, __x = _S_left(__x); > __xu = _S_right(__xu); > return pair<const_iterator, > const_iterator>(_M_lower_bound(__x, __y, __k), > _M_upper_bound(__xu, __yu, __k)); > } > } > return pair<const_iterator, const_iterator>(const_iterator(__y), > const_iterator(__y)); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > void > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __t) > { > if (_M_root() == 0) > { > if (__t._M_root() != 0) > { > _M_root() = __t._M_root(); > _M_leftmost() = __t._M_leftmost(); > _M_rightmost() = __t._M_rightmost(); > _M_root()->_M_parent = _M_end(); > > __t._M_root() = 0; > __t._M_leftmost() = __t._M_end(); > __t._M_rightmost() = __t._M_end(); > } > } > else if (__t._M_root() == 0) > { > __t._M_root() = _M_root(); > __t._M_leftmost() = _M_leftmost(); > __t._M_rightmost() = _M_rightmost(); > __t._M_root()->_M_parent = __t._M_end(); > > _M_root() = 0; > _M_leftmost() = _M_end(); > _M_rightmost() = _M_end(); > } > else > { > std::swap(_M_root(),__t._M_root()); > std::swap(_M_leftmost(),__t._M_leftmost()); > std::swap(_M_rightmost(),__t._M_rightmost()); > > _M_root()->_M_parent = _M_end(); > __t._M_root()->_M_parent = __t._M_end(); > } > > std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); > std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); > > > > std::__alloc_swap<_Node_allocator>:: > _S_do_it(_M_get_Node_allocator(), __t._M_get_Node_allocator()); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::_Base_ptr, > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::_Base_ptr> > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_get_insert_unique_pos(const key_type& __k) > { > typedef pair<_Base_ptr, _Base_ptr> _Res; > _Link_type __x = _M_begin(); > _Link_type __y = _M_end(); > bool __comp = true; > while (__x != 0) > { > __y = __x; > __comp = _M_impl._M_key_compare(__k, _S_key(__x)); > __x = __comp ? _S_left(__x) : _S_right(__x); > } > iterator __j = iterator(__y); > if (__comp) > { > if (__j == begin()) > return _Res(__x, __y); > else > --__j; > } > if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) > return _Res(__x, __y); > return _Res(__j._M_node, 0); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::_Base_ptr, > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::_Base_ptr> > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_get_insert_equal_pos(const key_type& __k) > { > typedef pair<_Base_ptr, _Base_ptr> _Res; > _Link_type __x = _M_begin(); > _Link_type __y = _M_end(); > while (__x != 0) > { > __y = __x; > __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? > _S_left(__x) : _S_right(__x); > } > return _Res(__x, __y); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > > > > pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::iterator, bool> > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > > > > _M_insert_unique(const _Val& __v) > > { > typedef pair<iterator, bool> _Res; > pair<_Base_ptr, _Base_ptr> __res > = _M_get_insert_unique_pos(_KeyOfValue()(__v)); > > if (__res.second) > return _Res(_M_insert_(__res.first, __res.second, > (__v)), > true); > > return _Res(iterator(static_cast<_Link_type>(__res.first)), false); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > > > > typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > > > > _M_insert_equal(const _Val& __v) > > { > pair<_Base_ptr, _Base_ptr> __res > = _M_get_insert_equal_pos(_KeyOfValue()(__v)); > return _M_insert_(__res.first, __res.second, (__v)); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::_Base_ptr, > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::_Base_ptr> > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_get_insert_hint_unique_pos(const_iterator __position, > const key_type& __k) > { > iterator __pos = __position._M_const_cast(); > typedef pair<_Base_ptr, _Base_ptr> _Res; > > > if (__pos._M_node == _M_end()) > { > if (size() > 0 > && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) > return _Res(0, _M_rightmost()); > else > return _M_get_insert_unique_pos(__k); > } > else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) > { > > iterator __before = __pos; > if (__pos._M_node == _M_leftmost()) > return _Res(_M_leftmost(), _M_leftmost()); > else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) > { > if (_S_right(__before._M_node) == 0) > return _Res(0, __before._M_node); > else > return _Res(__pos._M_node, __pos._M_node); > } > else > return _M_get_insert_unique_pos(__k); > } > else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) > { > > iterator __after = __pos; > if (__pos._M_node == _M_rightmost()) > return _Res(0, _M_rightmost()); > else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) > { > if (_S_right(__pos._M_node) == 0) > return _Res(0, __pos._M_node); > else > return _Res(__after._M_node, __after._M_node); > } > else > return _M_get_insert_unique_pos(__k); > } > else > > return _Res(__pos._M_node, 0); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > > > > typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > > > > _M_insert_unique_(const_iterator __position, const _Val& __v) > > { > pair<_Base_ptr, _Base_ptr> __res > = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); > > if (__res.second) > return _M_insert_(__res.first, __res.second, > (__v)); > return iterator(static_cast<_Link_type>(__res.first)); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::_Base_ptr, > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::_Base_ptr> > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) > { > iterator __pos = __position._M_const_cast(); > typedef pair<_Base_ptr, _Base_ptr> _Res; > > > if (__pos._M_node == _M_end()) > { > if (size() > 0 > && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) > return _Res(0, _M_rightmost()); > else > return _M_get_insert_equal_pos(__k); > } > else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) > { > > iterator __before = __pos; > if (__pos._M_node == _M_leftmost()) > return _Res(_M_leftmost(), _M_leftmost()); > else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) > { > if (_S_right(__before._M_node) == 0) > return _Res(0, __before._M_node); > else > return _Res(__pos._M_node, __pos._M_node); > } > else > return _M_get_insert_equal_pos(__k); > } > else > { > > iterator __after = __pos; > if (__pos._M_node == _M_rightmost()) > return _Res(0, _M_rightmost()); > else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) > { > if (_S_right(__pos._M_node) == 0) > return _Res(0, __pos._M_node); > else > return _Res(__after._M_node, __after._M_node); > } > else > return _Res(0, 0); > } > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > > > > typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > > > > _M_insert_equal_(const_iterator __position, const _Val& __v) > > { > pair<_Base_ptr, _Base_ptr> __res > = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); > > if (__res.second) > return _M_insert_(__res.first, __res.second, > (__v)); > > return _M_insert_equal_lower((__v)); > } ># 1714 "/usr/include/c++/4.8.2/bits/stl_tree.h" 3 > template<typename _Key, typename _Val, typename _KoV, > typename _Cmp, typename _Alloc> > template<class _II> > void > _Rb_tree<_Key, _Val, _KoV, _Cmp, _Alloc>:: > _M_insert_unique(_II __first, _II __last) > { > for (; __first != __last; ++__first) > _M_insert_unique_(end(), *__first); > } > > template<typename _Key, typename _Val, typename _KoV, > typename _Cmp, typename _Alloc> > template<class _II> > void > _Rb_tree<_Key, _Val, _KoV, _Cmp, _Alloc>:: > _M_insert_equal(_II __first, _II __last) > { > for (; __first != __last; ++__first) > _M_insert_equal_(end(), *__first); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > void > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_erase_aux(const_iterator __position) > { > _Link_type __y = > static_cast<_Link_type>(_Rb_tree_rebalance_for_erase > (const_cast<_Base_ptr>(__position._M_node), > this->_M_impl._M_header)); > _M_destroy_node(__y); > --_M_impl._M_node_count; > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > void > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > _M_erase_aux(const_iterator __first, const_iterator __last) > { > if (__first == begin() && __last == end()) > clear(); > else > while (__first != __last) > erase(__first++); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > erase(const _Key& __x) > { > pair<iterator, iterator> __p = equal_range(__x); > const size_type __old_size = size(); > erase(__p.first, __p.second); > return __old_size - size(); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > void > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > erase(const _Key* __first, const _Key* __last) > { > while (__first != __last) > erase(*__first++); > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > find(const _Key& __k) > { > iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); > return (__j == end() > || _M_impl._M_key_compare(__k, > _S_key(__j._M_node))) ? end() : __j; > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > typename _Rb_tree<_Key, _Val, _KeyOfValue, > _Compare, _Alloc>::const_iterator > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > find(const _Key& __k) const > { > const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); > return (__j == end() > || _M_impl._M_key_compare(__k, > _S_key(__j._M_node))) ? end() : __j; > } > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type > _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: > count(const _Key& __k) const > { > pair<const_iterator, const_iterator> __p = equal_range(__k); > const size_type __n = std::distance(__p.first, __p.second); > return __n; > } > > __attribute__ ((__pure__)) unsigned int > _Rb_tree_black_count(const _Rb_tree_node_base* __node, > const _Rb_tree_node_base* __root) throw (); > > template<typename _Key, typename _Val, typename _KeyOfValue, > typename _Compare, typename _Alloc> > bool > _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const > { > if (_M_impl._M_node_count == 0 || begin() == end()) > return _M_impl._M_node_count == 0 && begin() == end() > && this->_M_impl._M_header._M_left == _M_end() > && this->_M_impl._M_header._M_right == _M_end(); > > unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); > for (const_iterator __it = begin(); __it != end(); ++__it) > { > _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); > _Const_Link_type __L = _S_left(__x); > _Const_Link_type __R = _S_right(__x); > > if (__x->_M_color == _S_red) > if ((__L && __L->_M_color == _S_red) > || (__R && __R->_M_color == _S_red)) > return false; > > if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) > return false; > if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) > return false; > > if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) > return false; > } > > if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) > return false; > if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) > return false; > return true; > } > > >} ># 61 "/usr/include/c++/4.8.2/set" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_set.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 >#define _STL_SET_H 1 > > > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 88 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > template<typename _Key, typename _Compare = std::less<_Key>, > typename _Alloc = std::allocator<_Key> > > class set > { > > typedef typename _Alloc::value_type _Alloc_value_type; > > > > > > public: > > > > typedef _Key key_type; > typedef _Key value_type; > typedef _Compare key_compare; > typedef _Compare value_compare; > typedef _Alloc allocator_type; > > > private: > typedef typename _Alloc::template rebind<_Key>::other _Key_alloc_type; > > typedef _Rb_tree<key_type, value_type, _Identity<value_type>, > key_compare, _Key_alloc_type> _Rep_type; > _Rep_type _M_t; > > public: > > > typedef typename _Key_alloc_type::pointer pointer; > typedef typename _Key_alloc_type::const_pointer const_pointer; > typedef typename _Key_alloc_type::reference reference; > typedef typename _Key_alloc_type::const_reference const_reference; > > > > typedef typename _Rep_type::const_iterator iterator; > typedef typename _Rep_type::const_iterator const_iterator; > typedef typename _Rep_type::const_reverse_iterator reverse_iterator; > typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; > typedef typename _Rep_type::size_type size_type; > typedef typename _Rep_type::difference_type difference_type; > > > > > > > set() > : _M_t() { } > > > > > > > explicit > set(const _Compare& __comp, > const allocator_type& __a = allocator_type()) > : _M_t(__comp, _Key_alloc_type(__a)) { } ># 162 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > template<typename _InputIterator> > set(_InputIterator __first, _InputIterator __last) > : _M_t() > { _M_t._M_insert_unique(__first, __last); } ># 179 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > template<typename _InputIterator> > set(_InputIterator __first, _InputIterator __last, > const _Compare& __comp, > const allocator_type& __a = allocator_type()) > : _M_t(__comp, _Key_alloc_type(__a)) > { _M_t._M_insert_unique(__first, __last); } ># 193 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > set(const set& __x) > : _M_t(__x._M_t) { } ># 232 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > set& > operator=(const set& __x) > { > _M_t = __x._M_t; > return *this; > } ># 280 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > key_compare > key_comp() const > { return _M_t.key_comp(); } > > value_compare > value_comp() const > { return _M_t.key_comp(); } > > allocator_type > get_allocator() const > { return allocator_type(_M_t.get_allocator()); } > > > > > > > iterator > begin() const > { return _M_t.begin(); } > > > > > > > iterator > end() const > { return _M_t.end(); } > > > > > > > reverse_iterator > rbegin() const > { return _M_t.rbegin(); } > > > > > > > reverse_iterator > rend() const > { return _M_t.rend(); } ># 367 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > bool > empty() const > { return _M_t.empty(); } > > > size_type > size() const > { return _M_t.size(); } > > > size_type > max_size() const > { return _M_t.max_size(); } ># 392 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > void > swap(set& __x) > { _M_t.swap(__x._M_t); } ># 459 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > std::pair<iterator, bool> > insert(const value_type& __x) > { > std::pair<typename _Rep_type::iterator, bool> __p = > _M_t._M_insert_unique(__x); > return std::pair<iterator, bool>(__p.first, __p.second); > } ># 496 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > iterator > insert(const_iterator __position, const value_type& __x) > { return _M_t._M_insert_unique_(__position, __x); } ># 515 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > template<typename _InputIterator> > void > insert(_InputIterator __first, _InputIterator __last) > { _M_t._M_insert_unique(__first, __last); } ># 564 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > void > erase(iterator __position) > { _M_t.erase(__position); } ># 580 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > size_type > erase(const key_type& __x) > { return _M_t.erase(__x); } ># 618 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > void > erase(iterator __first, iterator __last) > { _M_t.erase(__first, __last); } ># 629 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > void > clear() > { _M_t.clear(); } ># 643 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > size_type > count(const key_type& __x) const > { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } ># 661 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > iterator > find(const key_type& __x) > { return _M_t.find(__x); } > > const_iterator > find(const key_type& __x) const > { return _M_t.find(__x); } ># 682 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > iterator > lower_bound(const key_type& __x) > { return _M_t.lower_bound(__x); } > > const_iterator > lower_bound(const key_type& __x) const > { return _M_t.lower_bound(__x); } ># 698 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > iterator > upper_bound(const key_type& __x) > { return _M_t.upper_bound(__x); } > > const_iterator > upper_bound(const key_type& __x) const > { return _M_t.upper_bound(__x); } ># 723 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > std::pair<iterator, iterator> > equal_range(const key_type& __x) > { return _M_t.equal_range(__x); } > > std::pair<const_iterator, const_iterator> > equal_range(const key_type& __x) const > { return _M_t.equal_range(__x); } > > > template<typename _K1, typename _C1, typename _A1> > friend bool > operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); > > template<typename _K1, typename _C1, typename _A1> > friend bool > operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); > }; ># 752 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator==(const set<_Key, _Compare, _Alloc>& __x, > const set<_Key, _Compare, _Alloc>& __y) > { return __x._M_t == __y._M_t; } ># 769 "/usr/include/c++/4.8.2/bits/stl_set.h" 3 > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator<(const set<_Key, _Compare, _Alloc>& __x, > const set<_Key, _Compare, _Alloc>& __y) > { return __x._M_t < __y._M_t; } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator!=(const set<_Key, _Compare, _Alloc>& __x, > const set<_Key, _Compare, _Alloc>& __y) > { return !(__x == __y); } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator>(const set<_Key, _Compare, _Alloc>& __x, > const set<_Key, _Compare, _Alloc>& __y) > { return __y < __x; } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator<=(const set<_Key, _Compare, _Alloc>& __x, > const set<_Key, _Compare, _Alloc>& __y) > { return !(__y < __x); } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator>=(const set<_Key, _Compare, _Alloc>& __x, > const set<_Key, _Compare, _Alloc>& __y) > { return !(__x < __y); } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline void > swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) > { __x.swap(__y); } > > >} ># 62 "/usr/include/c++/4.8.2/set" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 >#define _STL_MULTISET_H 1 > > > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 90 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > template <typename _Key, typename _Compare = std::less<_Key>, > typename _Alloc = std::allocator<_Key> > > class multiset > { > > typedef typename _Alloc::value_type _Alloc_value_type; > > > > > > public: > > typedef _Key key_type; > typedef _Key value_type; > typedef _Compare key_compare; > typedef _Compare value_compare; > typedef _Alloc allocator_type; > > private: > > typedef typename _Alloc::template rebind<_Key>::other _Key_alloc_type; > > typedef _Rb_tree<key_type, value_type, _Identity<value_type>, > key_compare, _Key_alloc_type> _Rep_type; > > _Rep_type _M_t; > > public: > typedef typename _Key_alloc_type::pointer pointer; > typedef typename _Key_alloc_type::const_pointer const_pointer; > typedef typename _Key_alloc_type::reference reference; > typedef typename _Key_alloc_type::const_reference const_reference; > > > > typedef typename _Rep_type::const_iterator iterator; > typedef typename _Rep_type::const_iterator const_iterator; > typedef typename _Rep_type::const_reverse_iterator reverse_iterator; > typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; > typedef typename _Rep_type::size_type size_type; > typedef typename _Rep_type::difference_type difference_type; > > > > > > multiset() > : _M_t() { } > > > > > > > explicit > multiset(const _Compare& __comp, > const allocator_type& __a = allocator_type()) > : _M_t(__comp, _Key_alloc_type(__a)) { } ># 159 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > template<typename _InputIterator> > multiset(_InputIterator __first, _InputIterator __last) > : _M_t() > { _M_t._M_insert_equal(__first, __last); } ># 175 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > template<typename _InputIterator> > multiset(_InputIterator __first, _InputIterator __last, > const _Compare& __comp, > const allocator_type& __a = allocator_type()) > : _M_t(__comp, _Key_alloc_type(__a)) > { _M_t._M_insert_equal(__first, __last); } ># 189 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > multiset(const multiset& __x) > : _M_t(__x._M_t) { } ># 228 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > multiset& > operator=(const multiset& __x) > { > _M_t = __x._M_t; > return *this; > } ># 277 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > key_compare > key_comp() const > { return _M_t.key_comp(); } > > value_compare > value_comp() const > { return _M_t.key_comp(); } > > allocator_type > get_allocator() const > { return allocator_type(_M_t.get_allocator()); } > > > > > > > iterator > begin() const > { return _M_t.begin(); } > > > > > > > iterator > end() const > { return _M_t.end(); } > > > > > > > reverse_iterator > rbegin() const > { return _M_t.rbegin(); } > > > > > > > reverse_iterator > rend() const > { return _M_t.rend(); } ># 364 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > bool > empty() const > { return _M_t.empty(); } > > > size_type > size() const > { return _M_t.size(); } > > > size_type > max_size() const > { return _M_t.max_size(); } ># 389 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > void > swap(multiset& __x) > { _M_t.swap(__x._M_t); } ># 453 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > iterator > insert(const value_type& __x) > { return _M_t._M_insert_equal(__x); } ># 483 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > iterator > insert(const_iterator __position, const value_type& __x) > { return _M_t._M_insert_equal_(__position, __x); } ># 501 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > template<typename _InputIterator> > void > insert(_InputIterator __first, _InputIterator __last) > { _M_t._M_insert_equal(__first, __last); } ># 550 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > void > erase(iterator __position) > { _M_t.erase(__position); } ># 566 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > size_type > erase(const key_type& __x) > { return _M_t.erase(__x); } ># 604 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > void > erase(iterator __first, iterator __last) > { _M_t.erase(__first, __last); } ># 615 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > void > clear() > { _M_t.clear(); } ># 626 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > size_type > count(const key_type& __x) const > { return _M_t.count(__x); } ># 644 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > iterator > find(const key_type& __x) > { return _M_t.find(__x); } > > const_iterator > find(const key_type& __x) const > { return _M_t.find(__x); } ># 665 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > iterator > lower_bound(const key_type& __x) > { return _M_t.lower_bound(__x); } > > const_iterator > lower_bound(const key_type& __x) const > { return _M_t.lower_bound(__x); } ># 681 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > iterator > upper_bound(const key_type& __x) > { return _M_t.upper_bound(__x); } > > const_iterator > upper_bound(const key_type& __x) const > { return _M_t.upper_bound(__x); } ># 706 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > std::pair<iterator, iterator> > equal_range(const key_type& __x) > { return _M_t.equal_range(__x); } > > std::pair<const_iterator, const_iterator> > equal_range(const key_type& __x) const > { return _M_t.equal_range(__x); } > > > template<typename _K1, typename _C1, typename _A1> > friend bool > operator==(const multiset<_K1, _C1, _A1>&, > const multiset<_K1, _C1, _A1>&); > > template<typename _K1, typename _C1, typename _A1> > friend bool > operator< (const multiset<_K1, _C1, _A1>&, > const multiset<_K1, _C1, _A1>&); > }; ># 737 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator==(const multiset<_Key, _Compare, _Alloc>& __x, > const multiset<_Key, _Compare, _Alloc>& __y) > { return __x._M_t == __y._M_t; } ># 754 "/usr/include/c++/4.8.2/bits/stl_multiset.h" 3 > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator<(const multiset<_Key, _Compare, _Alloc>& __x, > const multiset<_Key, _Compare, _Alloc>& __y) > { return __x._M_t < __y._M_t; } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator!=(const multiset<_Key, _Compare, _Alloc>& __x, > const multiset<_Key, _Compare, _Alloc>& __y) > { return !(__x == __y); } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator>(const multiset<_Key,_Compare,_Alloc>& __x, > const multiset<_Key,_Compare,_Alloc>& __y) > { return __y < __x; } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator<=(const multiset<_Key, _Compare, _Alloc>& __x, > const multiset<_Key, _Compare, _Alloc>& __y) > { return !(__y < __x); } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline bool > operator>=(const multiset<_Key, _Compare, _Alloc>& __x, > const multiset<_Key, _Compare, _Alloc>& __y) > { return !(__x < __y); } > > > template<typename _Key, typename _Compare, typename _Alloc> > inline void > swap(multiset<_Key, _Compare, _Alloc>& __x, > multiset<_Key, _Compare, _Alloc>& __y) > { __x.swap(__y); } > > >} ># 63 "/usr/include/c++/4.8.2/set" 2 3 ># 2851 "../gtest_contrib/gtest/gtest.h" 2 ># 2893 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_ ># 2904 "../gtest_contrib/gtest/gtest.h" >namespace testing { >namespace internal { ># 2931 "../gtest_contrib/gtest/gtest.h" >class String { > public: ># 2942 "../gtest_contrib/gtest/gtest.h" > static String ShowCStringQuoted(const char* c_str); ># 2951 "../gtest_contrib/gtest/gtest.h" > static const char* CloneCString(const char* c_str); ># 2984 "../gtest_contrib/gtest/gtest.h" > static bool CStringEquals(const char* lhs, const char* rhs); > > > > > > static String ShowWideCString(const wchar_t* wide_c_str); > > > > static String ShowWideCStringQuoted(const wchar_t* wide_c_str); > > > > > > > > static bool WideCStringEquals(const wchar_t* lhs, const wchar_t* rhs); > > > > > > > > static bool CaseInsensitiveCStringEquals(const char* lhs, > const char* rhs); ># 3025 "../gtest_contrib/gtest/gtest.h" > static bool CaseInsensitiveWideCStringEquals(const wchar_t* lhs, > const wchar_t* rhs); ># 3037 "../gtest_contrib/gtest/gtest.h" > static String Format(const char* format, ...); > > > > > String() : c_str_(__null), length_(0) {} > > > String(const char* a_c_str) { > if (a_c_str == __null) { > c_str_ = __null; > length_ = 0; > } else { > ConstructNonNull(a_c_str, strlen(a_c_str)); > } > } > > > > > > String(const char* buffer, size_t a_length) { > ConstructNonNull(buffer, a_length); > } > > > > String(const String& str) : c_str_(__null), length_(0) { *this = str; } > > > > ~String() { delete[] c_str_; } > > > > > > > > String(const ::std::string& str) { > ConstructNonNull(str.c_str(), str.length()); > } > > operator ::std::string() const { return ::std::string(c_str(), length()); } ># 3091 "../gtest_contrib/gtest/gtest.h" > bool empty() const { return (c_str() != __null) && (length() == 0); } > > > > > int Compare(const String& rhs) const; > > > > bool operator==(const char* a_c_str) const { return Compare(a_c_str) == 0; } > > > > bool operator<(const String& rhs) const { return Compare(rhs) < 0; } > > > > bool operator!=(const char* a_c_str) const { return !(*this == a_c_str); } > > > > bool EndsWith(const char* suffix) const; > > > > bool EndsWithCaseInsensitive(const char* suffix) const; > > > > size_t length() const { return length_; } > > > > > const char* c_str() const { return c_str_; } > > > const String& operator=(const char* a_c_str) { > return *this = String(a_c_str); > } > > > const String& operator=(const String& rhs) { > if (this != &rhs) { > delete[] c_str_; > if (rhs.c_str() == __null) { > c_str_ = __null; > length_ = 0; > } else { > ConstructNonNull(rhs.c_str(), rhs.length()); > } > } > > return *this; > } > > private: > > > > > void ConstructNonNull(const char* buffer, size_t a_length) { > char* const str = new char[a_length + 1]; > memcpy(str, buffer, a_length); > str[a_length] = '\0'; > c_str_ = str; > length_ = a_length; > } > > const char* c_str_; > size_t length_; >}; > > > >inline ::std::ostream& operator<<(::std::ostream& os, const String& str) { > if (str.c_str() == __null) { > os << "(null)"; > } else { > const char* const c_str = str.c_str(); > for (size_t i = 0; i != str.length(); i++) { > if (c_str[i] == '\0') { > os << "\\0"; > } else { > os << c_str[i]; > } > } > } > return os; >} > > > > String StringStreamToString(::std::stringstream* stream); ># 3194 "../gtest_contrib/gtest/gtest.h" >template <typename T> >String StreamableToString(const T& streamable); > >} >} ># 3241 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ > > >namespace testing { >namespace internal { ># 3258 "../gtest_contrib/gtest/gtest.h" >class FilePath { > public: > FilePath() : pathname_("") { } > FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } > > explicit FilePath(const char* pathname) : pathname_(pathname) { > Normalize(); > } > > explicit FilePath(const String& pathname) : pathname_(pathname) { > Normalize(); > } > > FilePath& operator=(const FilePath& rhs) { > Set(rhs); > return *this; > } > > void Set(const FilePath& rhs) { > pathname_ = rhs.pathname_; > } > > String ToString() const { return pathname_; } > const char* c_str() const { return pathname_.c_str(); } > > > static FilePath GetCurrentDir(); > > > > > > static FilePath MakeFileName(const FilePath& directory, > const FilePath& base_name, > int number, > const char* extension); > > > > > static FilePath ConcatPaths(const FilePath& directory, > const FilePath& relative_path); ># 3309 "../gtest_contrib/gtest/gtest.h" > static FilePath GenerateUniqueFileName(const FilePath& directory, > const FilePath& base_name, > const char* extension); > > > bool IsEmpty() const { return c_str() == __null || *c_str() == '\0'; } > > > > > FilePath RemoveTrailingPathSeparator() const; > > > > > > > > FilePath RemoveDirectoryName() const; > > > > > > > > FilePath RemoveFileName() const; > > > > > > FilePath RemoveExtension(const char* extension) const; > > > > > > bool CreateDirectoriesRecursively() const; > > > > > > bool CreateFolder() const; > > > > bool FileOrDirectoryExists() const; > > > > bool DirectoryExists() const; > > > > > bool IsDirectory() const; > > > > bool IsRootDirectory() const; > > > bool IsAbsolutePath() const; > > private: ># 3396 "../gtest_contrib/gtest/gtest.h" > void Normalize(); > > > > > const char* FindLastPathSeparator() const; > > String pathname_; >}; > >} >} ># 3454 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_ > > > > > ># 1 "/usr/include/c++/4.8.2/cxxabi.h" 1 3 ># 42 "/usr/include/c++/4.8.2/cxxabi.h" 3 >#define _CXXABI_H 1 > > ># 45 "/usr/include/c++/4.8.2/cxxabi.h" 3 > >#pragma GCC visibility push(default) > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 49 "/usr/include/c++/4.8.2/cxxabi.h" 2 3 > ># 1 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/cxxabi_tweaks.h" 1 3 ># 31 "/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/cxxabi_tweaks.h" 3 >#define _CXXABI_TWEAKS_H 1 > > >namespace __cxxabiv1 >{ > extern "C" > { > > > >#define _GLIBCXX_GUARD_TEST(x) (*(char *) (x) != 0) >#define _GLIBCXX_GUARD_SET(x) *(char *) (x) = 1 >#define _GLIBCXX_GUARD_BIT __guard_test_bit (0, 1) >#define _GLIBCXX_GUARD_PENDING_BIT __guard_test_bit (1, 1) >#define _GLIBCXX_GUARD_WAITING_BIT __guard_test_bit (2, 1) > __extension__ typedef int __guard __attribute__((mode (__DI__))); > > > typedef void __cxa_vec_ctor_return_type; >#define _GLIBCXX_CXA_VEC_CTOR_RETURN(x) return > > typedef void __cxa_cdtor_return_type; > > > } >} ># 51 "/usr/include/c++/4.8.2/cxxabi.h" 2 3 > > > >#define _GLIBCXX_CDTOR_CALLABI > > > >namespace __cxxabiv1 >{ > extern "C" > { > > > typedef __cxa_cdtor_return_type (*__cxa_cdtor_type)(void *); > > > void* > __cxa_vec_new(size_t __element_count, size_t __element_size, > size_t __padding_size, __cxa_cdtor_type __constructor, > __cxa_cdtor_type __destructor); > > void* > __cxa_vec_new2(size_t __element_count, size_t __element_size, > size_t __padding_size, __cxa_cdtor_type __constructor, > __cxa_cdtor_type __destructor, void *(*__alloc) (size_t), > void (*__dealloc) (void*)); > > void* > __cxa_vec_new3(size_t __element_count, size_t __element_size, > size_t __padding_size, __cxa_cdtor_type __constructor, > __cxa_cdtor_type __destructor, void *(*__alloc) (size_t), > void (*__dealloc) (void*, size_t)); > > > __cxa_vec_ctor_return_type > __cxa_vec_ctor(void* __array_address, size_t __element_count, > size_t __element_size, __cxa_cdtor_type __constructor, > __cxa_cdtor_type __destructor); > > __cxa_vec_ctor_return_type > __cxa_vec_cctor(void* __dest_array, void* __src_array, > size_t __element_count, size_t __element_size, > __cxa_cdtor_return_type (*__constructor) (void*, void*), > __cxa_cdtor_type __destructor); > > > void > __cxa_vec_dtor(void* __array_address, size_t __element_count, > size_t __element_size, __cxa_cdtor_type __destructor); > > void > __cxa_vec_cleanup(void* __array_address, size_t __element_count, size_t __s, > __cxa_cdtor_type __destructor) throw(); > > > void > __cxa_vec_delete(void* __array_address, size_t __element_size, > size_t __padding_size, __cxa_cdtor_type __destructor); > > void > __cxa_vec_delete2(void* __array_address, size_t __element_size, > size_t __padding_size, __cxa_cdtor_type __destructor, > void (*__dealloc) (void*)); > > void > __cxa_vec_delete3(void* __array_address, size_t __element_size, > size_t __padding_size, __cxa_cdtor_type __destructor, > void (*__dealloc) (void*, size_t)); > > int > __cxa_guard_acquire(__guard*); > > void > __cxa_guard_release(__guard*) throw(); > > void > __cxa_guard_abort(__guard*) throw(); > > > int > __cxa_atexit(void (*)(void*), void*, void*) throw(); > > int > __cxa_finalize(void*); > > > int > __cxa_thread_atexit(void (*)(void*), void*, void *) throw(); > > > void > __cxa_pure_virtual(void) __attribute__ ((__noreturn__)); > > void > __cxa_deleted_virtual(void) __attribute__ ((__noreturn__)); > > > void > __cxa_bad_cast() __attribute__((__noreturn__)); > > void > __cxa_bad_typeid() __attribute__((__noreturn__)); ># 195 "/usr/include/c++/4.8.2/cxxabi.h" 3 > char* > __cxa_demangle(const char* __mangled_name, char* __output_buffer, > size_t* __length, int* __status); > > > } >} > > > > > > >namespace __cxxabiv1 >{ > > class __fundamental_type_info : public std::type_info > { > public: > explicit > __fundamental_type_info(const char* __n) : std::type_info(__n) { } > > virtual > ~__fundamental_type_info(); > }; > > > class __array_type_info : public std::type_info > { > public: > explicit > __array_type_info(const char* __n) : std::type_info(__n) { } > > virtual > ~__array_type_info(); > }; > > > class __function_type_info : public std::type_info > { > public: > explicit > __function_type_info(const char* __n) : std::type_info(__n) { } > > virtual > ~__function_type_info(); > > protected: > > virtual bool > __is_function_p() const; > }; > > > class __enum_type_info : public std::type_info > { > public: > explicit > __enum_type_info(const char* __n) : std::type_info(__n) { } > > virtual > ~__enum_type_info(); > }; > > > class __pbase_type_info : public std::type_info > { > public: > unsigned int __flags; > const std::type_info* __pointee; > > explicit > __pbase_type_info(const char* __n, int __quals, > const std::type_info* __type) > : std::type_info(__n), __flags(__quals), __pointee(__type) > { } > > virtual > ~__pbase_type_info(); > > > enum __masks > { > __const_mask = 0x1, > __volatile_mask = 0x2, > __restrict_mask = 0x4, > __incomplete_mask = 0x8, > __incomplete_class_mask = 0x10 > }; > > protected: > __pbase_type_info(const __pbase_type_info&); > > __pbase_type_info& > operator=(const __pbase_type_info&); > > > virtual bool > __do_catch(const std::type_info* __thr_type, void** __thr_obj, > unsigned int __outer) const; > > inline virtual bool > __pointer_catch(const __pbase_type_info* __thr_type, void** __thr_obj, > unsigned __outer) const; > }; > > > class __pointer_type_info : public __pbase_type_info > { > public: > explicit > __pointer_type_info(const char* __n, int __quals, > const std::type_info* __type) > : __pbase_type_info (__n, __quals, __type) { } > > > virtual > ~__pointer_type_info(); > > protected: > > virtual bool > __is_pointer_p() const; > > virtual bool > __pointer_catch(const __pbase_type_info* __thr_type, void** __thr_obj, > unsigned __outer) const; > }; > > class __class_type_info; > > > class __pointer_to_member_type_info : public __pbase_type_info > { > public: > __class_type_info* __context; > > explicit > __pointer_to_member_type_info(const char* __n, int __quals, > const std::type_info* __type, > __class_type_info* __klass) > : __pbase_type_info(__n, __quals, __type), __context(__klass) { } > > virtual > ~__pointer_to_member_type_info(); > > protected: > __pointer_to_member_type_info(const __pointer_to_member_type_info&); > > __pointer_to_member_type_info& > operator=(const __pointer_to_member_type_info&); > > > virtual bool > __pointer_catch(const __pbase_type_info* __thr_type, void** __thr_obj, > unsigned __outer) const; > }; > > > class __base_class_type_info > { > public: > const __class_type_info* __base_type; > > > > long __offset_flags; > > > enum __offset_flags_masks > { > __virtual_mask = 0x1, > __public_mask = 0x2, > __hwm_bit = 2, > __offset_shift = 8 > }; > > > bool > __is_virtual_p() const > { return __offset_flags & __virtual_mask; } > > bool > __is_public_p() const > { return __offset_flags & __public_mask; } > > ptrdiff_t > __offset() const > { > > > > return static_cast<ptrdiff_t>(__offset_flags) >> __offset_shift; > } > }; > > > class __class_type_info : public std::type_info > { > public: > explicit > __class_type_info (const char *__n) : type_info(__n) { } > > virtual > ~__class_type_info (); > > > > > > > enum __sub_kind > { > > __unknown = 0, > > > > __not_contained, > > > __contained_ambig, > > > __contained_virtual_mask = __base_class_type_info::__virtual_mask, > > > __contained_public_mask = __base_class_type_info::__public_mask, > > > __contained_mask = 1 << __base_class_type_info::__hwm_bit, > > __contained_private = __contained_mask, > __contained_public = __contained_mask | __contained_public_mask > }; > > struct __upcast_result; > struct __dyncast_result; > > protected: > > virtual bool > __do_upcast(const __class_type_info* __dst_type, void**__obj_ptr) const; > > virtual bool > __do_catch(const type_info* __thr_type, void** __thr_obj, > unsigned __outer) const; > > public: > > > virtual bool > __do_upcast(const __class_type_info* __dst, const void* __obj, > __upcast_result& __restrict __result) const; > > > > > > > > inline __sub_kind > __find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, > const __class_type_info* __src_type, > const void* __src_ptr) const; ># 468 "/usr/include/c++/4.8.2/cxxabi.h" 3 > virtual bool > __do_dyncast(ptrdiff_t __src2dst, __sub_kind __access_path, > const __class_type_info* __dst_type, const void* __obj_ptr, > const __class_type_info* __src_type, const void* __src_ptr, > __dyncast_result& __result) const; > > > > > > virtual __sub_kind > __do_find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, > const __class_type_info* __src_type, > const void* __src_ptr) const; > }; > > > class __si_class_type_info : public __class_type_info > { > public: > const __class_type_info* __base_type; > > explicit > __si_class_type_info(const char *__n, const __class_type_info *__base) > : __class_type_info(__n), __base_type(__base) { } > > virtual > ~__si_class_type_info(); > > protected: > __si_class_type_info(const __si_class_type_info&); > > __si_class_type_info& > operator=(const __si_class_type_info&); > > > virtual bool > __do_dyncast(ptrdiff_t __src2dst, __sub_kind __access_path, > const __class_type_info* __dst_type, const void* __obj_ptr, > const __class_type_info* __src_type, const void* __src_ptr, > __dyncast_result& __result) const; > > virtual __sub_kind > __do_find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, > const __class_type_info* __src_type, > const void* __sub_ptr) const; > > virtual bool > __do_upcast(const __class_type_info*__dst, const void*__obj, > __upcast_result& __restrict __result) const; > }; > > > class __vmi_class_type_info : public __class_type_info > { > public: > unsigned int __flags; > unsigned int __base_count; > > > > > __base_class_type_info __base_info[1]; > > explicit > __vmi_class_type_info(const char* __n, int ___flags) > : __class_type_info(__n), __flags(___flags), __base_count(0) { } > > virtual > ~__vmi_class_type_info(); > > > enum __flags_masks > { > __non_diamond_repeat_mask = 0x1, > __diamond_shaped_mask = 0x2, > __flags_unknown_mask = 0x10 > }; > > protected: > > virtual bool > __do_dyncast(ptrdiff_t __src2dst, __sub_kind __access_path, > const __class_type_info* __dst_type, const void* __obj_ptr, > const __class_type_info* __src_type, const void* __src_ptr, > __dyncast_result& __result) const; > > virtual __sub_kind > __do_find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, > const __class_type_info* __src_type, > const void* __src_ptr) const; > > virtual bool > __do_upcast(const __class_type_info* __dst, const void* __obj, > __upcast_result& __restrict __result) const; > }; > > > struct __cxa_exception; > struct __cxa_refcounted_exception; > struct __cxa_dependent_exception; > struct __cxa_eh_globals; > > extern "C" > { ># 581 "/usr/include/c++/4.8.2/cxxabi.h" 3 > void* > __dynamic_cast(const void* __src_ptr, > const __class_type_info* __src_type, > const __class_type_info* __dst_type, > ptrdiff_t __src2dst); ># 594 "/usr/include/c++/4.8.2/cxxabi.h" 3 > __cxa_eh_globals* > __cxa_get_globals() throw() __attribute__ ((__const__)); > > __cxa_eh_globals* > __cxa_get_globals_fast() throw() __attribute__ ((__const__)); > > > void* > __cxa_allocate_exception(size_t) throw(); > > > void > __cxa_free_exception(void*) throw(); > > > void > __cxa_throw(void*, std::type_info*, void ( *) (void *)) > __attribute__((__noreturn__)); > > > void* > __cxa_get_exception_ptr(void*) throw() __attribute__ ((__pure__)); > > void* > __cxa_begin_catch(void*) throw(); > > void > __cxa_end_catch(); > > void > __cxa_rethrow() __attribute__((__noreturn__)); > > > > std::type_info* > __cxa_current_exception_type() throw() __attribute__ ((__pure__)); > > > > > __cxa_dependent_exception* > __cxa_allocate_dependent_exception() throw(); > > > void > __cxa_free_dependent_exception(__cxa_dependent_exception*) throw(); > > } > > > > class __foreign_exception > { > virtual ~__foreign_exception() throw(); > virtual void __pure_dummy() = 0; > }; > >} ># 673 "/usr/include/c++/4.8.2/cxxabi.h" 3 >namespace abi = __cxxabiv1; > >namespace __gnu_cxx >{ ># 689 "/usr/include/c++/4.8.2/cxxabi.h" 3 > class recursive_init_error: public std::exception > { > public: > recursive_init_error() throw() { } > virtual ~recursive_init_error() throw (); > }; >} > > >#pragma GCC visibility pop ># 3461 "../gtest_contrib/gtest/gtest.h" 2 > > > > >namespace testing { >namespace internal { > > > > >template <typename T> >String GetTypeName() { > > > const char* const name = typeid(T).name(); > > int status = 0; > > > > using abi::__cxa_demangle; > > char* const readable_name = __cxa_demangle(name, 0, 0, &status); > const String name_str(status == 0 ? readable_name : name); > free(readable_name); > return name_str; ># 3496 "../gtest_contrib/gtest/gtest.h" >} > > > > > > > >template <typename T1, typename T2> >struct AssertTypeEq; > >template <typename T> >struct AssertTypeEq<T, T> { > typedef bool type; >}; > > > > > >struct None {}; ># 3526 "../gtest_contrib/gtest/gtest.h" >struct Types0 {}; > > > >template <typename T1> >struct Types1 { > typedef T1 Head; > typedef Types0 Tail; >}; >template <typename T1, typename T2> >struct Types2 { > typedef T1 Head; > typedef Types1<T2> Tail; >}; > >template <typename T1, typename T2, typename T3> >struct Types3 { > typedef T1 Head; > typedef Types2<T2, T3> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4> >struct Types4 { > typedef T1 Head; > typedef Types3<T2, T3, T4> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5> >struct Types5 { > typedef T1 Head; > typedef Types4<T2, T3, T4, T5> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6> >struct Types6 { > typedef T1 Head; > typedef Types5<T2, T3, T4, T5, T6> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7> >struct Types7 { > typedef T1 Head; > typedef Types6<T2, T3, T4, T5, T6, T7> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8> >struct Types8 { > typedef T1 Head; > typedef Types7<T2, T3, T4, T5, T6, T7, T8> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9> >struct Types9 { > typedef T1 Head; > typedef Types8<T2, T3, T4, T5, T6, T7, T8, T9> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10> >struct Types10 { > typedef T1 Head; > typedef Types9<T2, T3, T4, T5, T6, T7, T8, T9, T10> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11> >struct Types11 { > typedef T1 Head; > typedef Types10<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12> >struct Types12 { > typedef T1 Head; > typedef Types11<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13> >struct Types13 { > typedef T1 Head; > typedef Types12<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14> >struct Types14 { > typedef T1 Head; > typedef Types13<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15> >struct Types15 { > typedef T1 Head; > typedef Types14<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16> >struct Types16 { > typedef T1 Head; > typedef Types15<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17> >struct Types17 { > typedef T1 Head; > typedef Types16<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18> >struct Types18 { > typedef T1 Head; > typedef Types17<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19> >struct Types19 { > typedef T1 Head; > typedef Types18<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20> >struct Types20 { > typedef T1 Head; > typedef Types19<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21> >struct Types21 { > typedef T1 Head; > typedef Types20<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22> >struct Types22 { > typedef T1 Head; > typedef Types21<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23> >struct Types23 { > typedef T1 Head; > typedef Types22<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24> >struct Types24 { > typedef T1 Head; > typedef Types23<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25> >struct Types25 { > typedef T1 Head; > typedef Types24<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26> >struct Types26 { > typedef T1 Head; > typedef Types25<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27> >struct Types27 { > typedef T1 Head; > typedef Types26<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28> >struct Types28 { > typedef T1 Head; > typedef Types27<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29> >struct Types29 { > typedef T1 Head; > typedef Types28<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30> >struct Types30 { > typedef T1 Head; > typedef Types29<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31> >struct Types31 { > typedef T1 Head; > typedef Types30<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32> >struct Types32 { > typedef T1 Head; > typedef Types31<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33> >struct Types33 { > typedef T1 Head; > typedef Types32<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34> >struct Types34 { > typedef T1 Head; > typedef Types33<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35> >struct Types35 { > typedef T1 Head; > typedef Types34<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36> >struct Types36 { > typedef T1 Head; > typedef Types35<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37> >struct Types37 { > typedef T1 Head; > typedef Types36<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38> >struct Types38 { > typedef T1 Head; > typedef Types37<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39> >struct Types39 { > typedef T1 Head; > typedef Types38<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40> >struct Types40 { > typedef T1 Head; > typedef Types39<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41> >struct Types41 { > typedef T1 Head; > typedef Types40<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42> >struct Types42 { > typedef T1 Head; > typedef Types41<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43> >struct Types43 { > typedef T1 Head; > typedef Types42<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44> >struct Types44 { > typedef T1 Head; > typedef Types43<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45> >struct Types45 { > typedef T1 Head; > typedef Types44<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46> >struct Types46 { > typedef T1 Head; > typedef Types45<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47> >struct Types47 { > typedef T1 Head; > typedef Types46<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46, T47> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48> >struct Types48 { > typedef T1 Head; > typedef Types47<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46, T47, T48> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48, typename T49> >struct Types49 { > typedef T1 Head; > typedef Types48<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46, T47, T48, T49> Tail; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48, typename T49, typename T50> >struct Types50 { > typedef T1 Head; > typedef Types49<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46, T47, T48, T49, T50> Tail; >}; > > >} ># 4136 "../gtest_contrib/gtest/gtest.h" >template <typename T1 = internal::None, typename T2 = internal::None, > typename T3 = internal::None, typename T4 = internal::None, > typename T5 = internal::None, typename T6 = internal::None, > typename T7 = internal::None, typename T8 = internal::None, > typename T9 = internal::None, typename T10 = internal::None, > typename T11 = internal::None, typename T12 = internal::None, > typename T13 = internal::None, typename T14 = internal::None, > typename T15 = internal::None, typename T16 = internal::None, > typename T17 = internal::None, typename T18 = internal::None, > typename T19 = internal::None, typename T20 = internal::None, > typename T21 = internal::None, typename T22 = internal::None, > typename T23 = internal::None, typename T24 = internal::None, > typename T25 = internal::None, typename T26 = internal::None, > typename T27 = internal::None, typename T28 = internal::None, > typename T29 = internal::None, typename T30 = internal::None, > typename T31 = internal::None, typename T32 = internal::None, > typename T33 = internal::None, typename T34 = internal::None, > typename T35 = internal::None, typename T36 = internal::None, > typename T37 = internal::None, typename T38 = internal::None, > typename T39 = internal::None, typename T40 = internal::None, > typename T41 = internal::None, typename T42 = internal::None, > typename T43 = internal::None, typename T44 = internal::None, > typename T45 = internal::None, typename T46 = internal::None, > typename T47 = internal::None, typename T48 = internal::None, > typename T49 = internal::None, typename T50 = internal::None> >struct Types { > typedef internal::Types50<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42, T43, T44, T45, T46, T47, T48, T49, T50> type; >}; > >template <> >struct Types<internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types0 type; >}; >template <typename T1> >struct Types<T1, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types1<T1> type; >}; >template <typename T1, typename T2> >struct Types<T1, T2, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types2<T1, T2> type; >}; >template <typename T1, typename T2, typename T3> >struct Types<T1, T2, T3, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types3<T1, T2, T3> type; >}; >template <typename T1, typename T2, typename T3, typename T4> >struct Types<T1, T2, T3, T4, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types4<T1, T2, T3, T4> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5> >struct Types<T1, T2, T3, T4, T5, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types5<T1, T2, T3, T4, T5> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6> >struct Types<T1, T2, T3, T4, T5, T6, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types6<T1, T2, T3, T4, T5, T6> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7> >struct Types<T1, T2, T3, T4, T5, T6, T7, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types7<T1, T2, T3, T4, T5, T6, T7> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types8<T1, T2, T3, T4, T5, T6, T7, T8> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types9<T1, T2, T3, T4, T5, T6, T7, T8, T9> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types24<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types25<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types26<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types27<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types28<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types29<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types30<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types31<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types32<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types33<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types34<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types35<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types36<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types37<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types38<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types39<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types40<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types41<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, internal::None, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types42<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None, internal::None> { > typedef internal::Types43<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42, T43> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, > internal::None, internal::None, internal::None, internal::None, > internal::None, internal::None> { > typedef internal::Types44<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42, T43, T44> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, T45, > internal::None, internal::None, internal::None, internal::None, > internal::None> { > typedef internal::Types45<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42, T43, T44, T45> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, T45, > T46, internal::None, internal::None, internal::None, internal::None> { > typedef internal::Types46<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42, T43, T44, T45, T46> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, T45, > T46, T47, internal::None, internal::None, internal::None> { > typedef internal::Types47<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42, T43, T44, T45, T46, T47> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, T45, > T46, T47, T48, internal::None, internal::None> { > typedef internal::Types48<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42, T43, T44, T45, T46, T47, T48> type; >}; >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48, typename T49> >struct Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, > T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, > T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, T45, > T46, T47, T48, T49, internal::None> { > typedef internal::Types49<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42, T43, T44, T45, T46, T47, T48, T49> type; >}; > >namespace internal { > >#define GTEST_TEMPLATE_ template <typename T> class ># 5040 "../gtest_contrib/gtest/gtest.h" >template <template <typename T> class Tmpl> >struct TemplateSel { > template <typename T> > struct Bind { > typedef Tmpl<T> type; > }; >}; > >#define GTEST_BIND_(TmplSel,T) TmplSel::template Bind<T>::type > > > > > > >template <typename T> >struct NoneT {}; ># 5066 "../gtest_contrib/gtest/gtest.h" >struct Templates0 {}; > > > >template <template <typename T> class T1> >struct Templates1 { > typedef TemplateSel<T1> Head; > typedef Templates0 Tail; >}; >template <template <typename T> class T1, template <typename T> class T2> >struct Templates2 { > typedef TemplateSel<T1> Head; > typedef Templates1<T2> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3> >struct Templates3 { > typedef TemplateSel<T1> Head; > typedef Templates2<T2, T3> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4> >struct Templates4 { > typedef TemplateSel<T1> Head; > typedef Templates3<T2, T3, T4> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5> >struct Templates5 { > typedef TemplateSel<T1> Head; > typedef Templates4<T2, T3, T4, T5> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6> >struct Templates6 { > typedef TemplateSel<T1> Head; > typedef Templates5<T2, T3, T4, T5, T6> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7> >struct Templates7 { > typedef TemplateSel<T1> Head; > typedef Templates6<T2, T3, T4, T5, T6, T7> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8> >struct Templates8 { > typedef TemplateSel<T1> Head; > typedef Templates7<T2, T3, T4, T5, T6, T7, T8> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9> >struct Templates9 { > typedef TemplateSel<T1> Head; > typedef Templates8<T2, T3, T4, T5, T6, T7, T8, T9> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10> >struct Templates10 { > typedef TemplateSel<T1> Head; > typedef Templates9<T2, T3, T4, T5, T6, T7, T8, T9, T10> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11> >struct Templates11 { > typedef TemplateSel<T1> Head; > typedef Templates10<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12> >struct Templates12 { > typedef TemplateSel<T1> Head; > typedef Templates11<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13> >struct Templates13 { > typedef TemplateSel<T1> Head; > typedef Templates12<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14> >struct Templates14 { > typedef TemplateSel<T1> Head; > typedef Templates13<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15> >struct Templates15 { > typedef TemplateSel<T1> Head; > typedef Templates14<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16> >struct Templates16 { > typedef TemplateSel<T1> Head; > typedef Templates15<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17> >struct Templates17 { > typedef TemplateSel<T1> Head; > typedef Templates16<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18> >struct Templates18 { > typedef TemplateSel<T1> Head; > typedef Templates17<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19> >struct Templates19 { > typedef TemplateSel<T1> Head; > typedef Templates18<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20> >struct Templates20 { > typedef TemplateSel<T1> Head; > typedef Templates19<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21> >struct Templates21 { > typedef TemplateSel<T1> Head; > typedef Templates20<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22> >struct Templates22 { > typedef TemplateSel<T1> Head; > typedef Templates21<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23> >struct Templates23 { > typedef TemplateSel<T1> Head; > typedef Templates22<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24> >struct Templates24 { > typedef TemplateSel<T1> Head; > typedef Templates23<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25> >struct Templates25 { > typedef TemplateSel<T1> Head; > typedef Templates24<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26> >struct Templates26 { > typedef TemplateSel<T1> Head; > typedef Templates25<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27> >struct Templates27 { > typedef TemplateSel<T1> Head; > typedef Templates26<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28> >struct Templates28 { > typedef TemplateSel<T1> Head; > typedef Templates27<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29> >struct Templates29 { > typedef TemplateSel<T1> Head; > typedef Templates28<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30> >struct Templates30 { > typedef TemplateSel<T1> Head; > typedef Templates29<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31> >struct Templates31 { > typedef TemplateSel<T1> Head; > typedef Templates30<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32> >struct Templates32 { > typedef TemplateSel<T1> Head; > typedef Templates31<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33> >struct Templates33 { > typedef TemplateSel<T1> Head; > typedef Templates32<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34> >struct Templates34 { > typedef TemplateSel<T1> Head; > typedef Templates33<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35> >struct Templates35 { > typedef TemplateSel<T1> Head; > typedef Templates34<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36> >struct Templates36 { > typedef TemplateSel<T1> Head; > typedef Templates35<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37> >struct Templates37 { > typedef TemplateSel<T1> Head; > typedef Templates36<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38> >struct Templates38 { > typedef TemplateSel<T1> Head; > typedef Templates37<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39> >struct Templates39 { > typedef TemplateSel<T1> Head; > typedef Templates38<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40> >struct Templates40 { > typedef TemplateSel<T1> Head; > typedef Templates39<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41> >struct Templates41 { > typedef TemplateSel<T1> Head; > typedef Templates40<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42> >struct Templates42 { > typedef TemplateSel<T1> Head; > typedef Templates41<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43> >struct Templates43 { > typedef TemplateSel<T1> Head; > typedef Templates42<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44> >struct Templates44 { > typedef TemplateSel<T1> Head; > typedef Templates43<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43, T44> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45> >struct Templates45 { > typedef TemplateSel<T1> Head; > typedef Templates44<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43, T44, T45> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45, > template <typename T> class T46> >struct Templates46 { > typedef TemplateSel<T1> Head; > typedef Templates45<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43, T44, T45, T46> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45, > template <typename T> class T46, template <typename T> class T47> >struct Templates47 { > typedef TemplateSel<T1> Head; > typedef Templates46<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43, T44, T45, T46, T47> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45, > template <typename T> class T46, template <typename T> class T47, template <typename T> class T48> >struct Templates48 { > typedef TemplateSel<T1> Head; > typedef Templates47<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43, T44, T45, T46, T47, T48> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45, > template <typename T> class T46, template <typename T> class T47, template <typename T> class T48, > template <typename T> class T49> >struct Templates49 { > typedef TemplateSel<T1> Head; > typedef Templates48<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43, T44, T45, T46, T47, T48, T49> Tail; >}; > >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45, > template <typename T> class T46, template <typename T> class T47, template <typename T> class T48, > template <typename T> class T49, template <typename T> class T50> >struct Templates50 { > typedef TemplateSel<T1> Head; > typedef Templates49<T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43, T44, T45, T46, T47, T48, T49, T50> Tail; >}; ># 5844 "../gtest_contrib/gtest/gtest.h" >template <template <typename T> class T1 = NoneT, template <typename T> class T2 = NoneT, > template <typename T> class T3 = NoneT, template <typename T> class T4 = NoneT, > template <typename T> class T5 = NoneT, template <typename T> class T6 = NoneT, > template <typename T> class T7 = NoneT, template <typename T> class T8 = NoneT, > template <typename T> class T9 = NoneT, template <typename T> class T10 = NoneT, > template <typename T> class T11 = NoneT, template <typename T> class T12 = NoneT, > template <typename T> class T13 = NoneT, template <typename T> class T14 = NoneT, > template <typename T> class T15 = NoneT, template <typename T> class T16 = NoneT, > template <typename T> class T17 = NoneT, template <typename T> class T18 = NoneT, > template <typename T> class T19 = NoneT, template <typename T> class T20 = NoneT, > template <typename T> class T21 = NoneT, template <typename T> class T22 = NoneT, > template <typename T> class T23 = NoneT, template <typename T> class T24 = NoneT, > template <typename T> class T25 = NoneT, template <typename T> class T26 = NoneT, > template <typename T> class T27 = NoneT, template <typename T> class T28 = NoneT, > template <typename T> class T29 = NoneT, template <typename T> class T30 = NoneT, > template <typename T> class T31 = NoneT, template <typename T> class T32 = NoneT, > template <typename T> class T33 = NoneT, template <typename T> class T34 = NoneT, > template <typename T> class T35 = NoneT, template <typename T> class T36 = NoneT, > template <typename T> class T37 = NoneT, template <typename T> class T38 = NoneT, > template <typename T> class T39 = NoneT, template <typename T> class T40 = NoneT, > template <typename T> class T41 = NoneT, template <typename T> class T42 = NoneT, > template <typename T> class T43 = NoneT, template <typename T> class T44 = NoneT, > template <typename T> class T45 = NoneT, template <typename T> class T46 = NoneT, > template <typename T> class T47 = NoneT, template <typename T> class T48 = NoneT, > template <typename T> class T49 = NoneT, template <typename T> class T50 = NoneT> >struct Templates { > typedef Templates50<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42, T43, T44, T45, T46, T47, T48, T49, T50> type; >}; > >template <> >struct Templates<NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT> { > typedef Templates0 type; >}; >template <template <typename T> class T1> >struct Templates<T1, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT> { > typedef Templates1<T1> type; >}; >template <template <typename T> class T1, template <typename T> class T2> >struct Templates<T1, T2, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT> { > typedef Templates2<T1, T2> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3> >struct Templates<T1, T2, T3, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates3<T1, T2, T3> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4> >struct Templates<T1, T2, T3, T4, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates4<T1, T2, T3, T4> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5> >struct Templates<T1, T2, T3, T4, T5, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates5<T1, T2, T3, T4, T5> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6> >struct Templates<T1, T2, T3, T4, T5, T6, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates6<T1, T2, T3, T4, T5, T6> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7> >struct Templates<T1, T2, T3, T4, T5, T6, T7, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates7<T1, T2, T3, T4, T5, T6, T7> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates8<T1, T2, T3, T4, T5, T6, T7, T8> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates9<T1, T2, T3, T4, T5, T6, T7, T8, T9> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT> { > typedef Templates18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT> { > typedef Templates19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT> { > typedef Templates20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT> { > typedef Templates21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT> { > typedef Templates22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT> { > typedef Templates23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT> { > typedef Templates24<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT> { > typedef Templates25<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT> { > typedef Templates26<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT> { > typedef Templates27<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT> { > typedef Templates28<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT> { > typedef Templates29<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates30<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates31<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates32<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates33<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates34<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates35<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates36<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, NoneT, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates37<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, NoneT, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates38<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates39<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, NoneT, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates40<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, NoneT, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates41<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, NoneT, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates42<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates43<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42, T43> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, > NoneT, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates44<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42, T43, T44> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, > T45, NoneT, NoneT, NoneT, NoneT, NoneT> { > typedef Templates45<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42, T43, T44, T45> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45, > template <typename T> class T46> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, > T45, T46, NoneT, NoneT, NoneT, NoneT> { > typedef Templates46<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42, T43, T44, T45, T46> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45, > template <typename T> class T46, template <typename T> class T47> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, > T45, T46, T47, NoneT, NoneT, NoneT> { > typedef Templates47<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42, T43, T44, T45, T46, T47> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45, > template <typename T> class T46, template <typename T> class T47, template <typename T> class T48> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, > T45, T46, T47, T48, NoneT, NoneT> { > typedef Templates48<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42, T43, T44, T45, T46, T47, T48> type; >}; >template <template <typename T> class T1, template <typename T> class T2, template <typename T> class T3, > template <typename T> class T4, template <typename T> class T5, template <typename T> class T6, > template <typename T> class T7, template <typename T> class T8, template <typename T> class T9, > template <typename T> class T10, template <typename T> class T11, template <typename T> class T12, > template <typename T> class T13, template <typename T> class T14, template <typename T> class T15, > template <typename T> class T16, template <typename T> class T17, template <typename T> class T18, > template <typename T> class T19, template <typename T> class T20, template <typename T> class T21, > template <typename T> class T22, template <typename T> class T23, template <typename T> class T24, > template <typename T> class T25, template <typename T> class T26, template <typename T> class T27, > template <typename T> class T28, template <typename T> class T29, template <typename T> class T30, > template <typename T> class T31, template <typename T> class T32, template <typename T> class T33, > template <typename T> class T34, template <typename T> class T35, template <typename T> class T36, > template <typename T> class T37, template <typename T> class T38, template <typename T> class T39, > template <typename T> class T40, template <typename T> class T41, template <typename T> class T42, > template <typename T> class T43, template <typename T> class T44, template <typename T> class T45, > template <typename T> class T46, template <typename T> class T47, template <typename T> class T48, > template <typename T> class T49> >struct Templates<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, > T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, > T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, T44, > T45, T46, T47, T48, T49, NoneT> { > typedef Templates49<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42, T43, T44, T45, T46, T47, T48, T49> type; >}; > > > > > >template <typename T> >struct TypeList { typedef Types1<T> type; }; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48, typename T49, typename T50> >struct TypeList<Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46, T47, T48, T49, T50> > { > typedef typename Types<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41, T42, T43, T44, T45, T46, T47, T48, T49, T50>::type type; >}; > > > >} >} ># 6747 "../gtest_contrib/gtest/gtest.h" >#define GTEST_CONCAT_TOKEN_(foo,bar) GTEST_CONCAT_TOKEN_IMPL_(foo, bar) >#define GTEST_CONCAT_TOKEN_IMPL_(foo,bar) foo ## bar ># 6775 "../gtest_contrib/gtest/gtest.h" >template <typename T> >inline void GTestStreamToHelper(std::ostream* os, const T& val) { > *os << val; >} > >class ProtocolMessage; >namespace proto2 { class Message; } > >namespace testing { > > > >class AssertionResult; >class Message; >class Test; >class TestInfo; >class TestPartResult; >class UnitTest; > >template <typename T> >::std::string PrintToString(const T& value); > >namespace internal { > >struct TraceInfo; >class ScopedTrace; >class TestInfoImpl; >class UnitTestImpl; > > >extern int g_init_gtest_count; > > > > extern const char kStackTraceMarker[]; > > > > >class Secret; ># 6830 "../gtest_contrib/gtest/gtest.h" >char IsNullLiteralHelper(Secret* p); >char (&IsNullLiteralHelper(...))[2]; ># 6841 "../gtest_contrib/gtest/gtest.h" >#define GTEST_IS_NULL_LITERAL_(x) (sizeof(::testing::internal::IsNullLiteralHelper(x)) == 1) > > > > > String AppendUserMessage(const String& gtest_msg, > const Message& user_msg); > > >class ScopedTrace { > public: > > > ScopedTrace(const char* file, int line, const Message& message); > > > > > > ~ScopedTrace(); > > private: > ScopedTrace(ScopedTrace const &); void operator=(ScopedTrace const &); >} __attribute__ ((unused)); ># 6875 "../gtest_contrib/gtest/gtest.h" >template <typename T> >String StreamableToString(const T& streamable); ># 6886 "../gtest_contrib/gtest/gtest.h" >#define GTEST_CREF_WORKAROUND_ ># 6895 "../gtest_contrib/gtest/gtest.h" >#define GTEST_FORMAT_IMPL_(operand2_type,operand1_printer) inline String FormatForComparisonFailureMessage( operand2_type::value_type* GTEST_CREF_WORKAROUND_ str, const operand2_type& ) { return operand1_printer(str);}inline String FormatForComparisonFailureMessage( const operand2_type::value_type* GTEST_CREF_WORKAROUND_ str, const operand2_type& ) { return operand1_printer(str);} ># 6907 "../gtest_contrib/gtest/gtest.h" >inline String FormatForComparisonFailureMessage( ::std::string::value_type* str, const ::std::string& ) { return String::ShowCStringQuoted(str);}inline String FormatForComparisonFailureMessage( const ::std::string::value_type* str, const ::std::string& ) { return String::ShowCStringQuoted(str);} > >inline String FormatForComparisonFailureMessage( ::std::wstring::value_type* str, const ::std::wstring& ) { return String::ShowWideCStringQuoted(str);}inline String FormatForComparisonFailureMessage( const ::std::wstring::value_type* str, const ::std::wstring& ) { return String::ShowWideCStringQuoted(str);} ># 6919 "../gtest_contrib/gtest/gtest.h" >#undef GTEST_FORMAT_IMPL_ > > > > > >#define GTEST_FORMAT_CHAR_PTR_IMPL_(CharType) template <typename T> String FormatForComparisonFailureMessage(CharType* GTEST_CREF_WORKAROUND_ p, const T&) { return PrintToString(static_cast<const void*>(p)); } > > > > > > >template <typename T> String FormatForComparisonFailureMessage(char* p, const T&) { return PrintToString(static_cast<const void*>(p)); } >template <typename T> String FormatForComparisonFailureMessage(const char* p, const T&) { return PrintToString(static_cast<const void*>(p)); } >template <typename T> String FormatForComparisonFailureMessage(wchar_t* p, const T&) { return PrintToString(static_cast<const void*>(p)); } >template <typename T> String FormatForComparisonFailureMessage(const wchar_t* p, const T&) { return PrintToString(static_cast<const void*>(p)); } > >#undef GTEST_FORMAT_CHAR_PTR_IMPL_ ># 6954 "../gtest_contrib/gtest/gtest.h" > AssertionResult EqFailure(const char* expected_expression, > const char* actual_expression, > const String& expected_value, > const String& actual_value, > bool ignoring_case); > > > String GetBoolAssertionFailureMessage( > const AssertionResult& assertion_result, > const char* expression_text, > const char* actual_predicate_value, > const char* expected_predicate_value); ># 6996 "../gtest_contrib/gtest/gtest.h" >template <typename RawType> >class FloatingPoint { > public: > > > typedef typename TypeWithSize<sizeof(RawType)>::UInt Bits; > > > > > static const size_t kBitCount = 8*sizeof(RawType); > > > static const size_t kFractionBitCount = > std::numeric_limits<RawType>::digits - 1; > > > static const size_t kExponentBitCount = kBitCount - 1 - kFractionBitCount; > > > static const Bits kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1); > > > static const Bits kFractionBitMask = > ~static_cast<Bits>(0) >> (kExponentBitCount + 1); > > > static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask); ># 7037 "../gtest_contrib/gtest/gtest.h" > static const size_t kMaxUlps = 4; > > > > > > > > explicit FloatingPoint(const RawType& x) { u_.value_ = x; } > > > > > > > static RawType ReinterpretBits(const Bits bits) { > FloatingPoint fp(0); > fp.u_.bits_ = bits; > return fp.u_.value_; > } > > > static RawType Infinity() { > return ReinterpretBits(kExponentBitMask); > } > > > > > const Bits &bits() const { return u_.bits_; } > > > Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } > > > Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } > > > Bits sign_bit() const { return kSignBitMask & u_.bits_; } > > > bool is_nan() const { > > > return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); > } > > > > > > > > bool AlmostEquals(const FloatingPoint& rhs) const { > > > if (is_nan() || rhs.is_nan()) return false; > > return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) > <= kMaxUlps; > } > > private: > > union FloatingPointUnion { > RawType value_; > Bits bits_; > }; ># 7121 "../gtest_contrib/gtest/gtest.h" > static Bits SignAndMagnitudeToBiased(const Bits &sam) { > if (kSignBitMask & sam) { > > return ~sam + 1; > } else { > > return kSignBitMask | sam; > } > } > > > > static Bits DistanceBetweenSignAndMagnitudeNumbers(const Bits &sam1, > const Bits &sam2) { > const Bits biased1 = SignAndMagnitudeToBiased(sam1); > const Bits biased2 = SignAndMagnitudeToBiased(sam2); > return (biased1 >= biased2) ? (biased1 - biased2) : (biased2 - biased1); > } > > FloatingPointUnion u_; >}; > > > >typedef FloatingPoint<float> Float; >typedef FloatingPoint<double> Double; > > > > > > > >typedef const void* TypeId; > >template <typename T> >class TypeIdHelper { > public: > > > > static bool dummy_; >}; > >template <typename T> >bool TypeIdHelper<T>::dummy_ = false; > > > > >template <typename T> >TypeId GetTypeId() { > > > > > return &(TypeIdHelper<T>::dummy_); >} > > > > > > > TypeId GetTestTypeId(); > > > >class TestFactoryBase { > public: > virtual ~TestFactoryBase() {} > > > > virtual Test* CreateTest() = 0; > > protected: > TestFactoryBase() {} > > private: > TestFactoryBase(TestFactoryBase const &); void operator=(TestFactoryBase const &); >}; > > > >template <class TestClass> >class TestFactoryImpl : public TestFactoryBase { > public: > virtual Test* CreateTest() { return new TestClass; } >}; ># 7226 "../gtest_contrib/gtest/gtest.h" >typedef void (*SetUpTestCaseFunc)(); >typedef void (*TearDownTestCaseFunc)(); ># 7246 "../gtest_contrib/gtest/gtest.h" > TestInfo* MakeAndRegisterTestInfo( > const char* test_case_name, const char* name, > const char* type_param, > const char* value_param, > TypeId fixture_class_id, > SetUpTestCaseFunc set_up_tc, > TearDownTestCaseFunc tear_down_tc, > TestFactoryBase* factory); > > > > > bool SkipPrefix(const char* prefix, const char** pstr); > > > > >class TypedTestCasePState { > public: > TypedTestCasePState() : registered_(false) {} > > > > > bool AddTestName(const char* file, int line, const char* case_name, > const char* test_name) { > if (registered_) { > fprintf(stderr, "%s Test %s must be defined before " > "REGISTER_TYPED_TEST_CASE_P(%s, ...).\n", > FormatFileLocation(file, line).c_str(), test_name, case_name); > fflush(stderr); > posix::Abort(); > } > defined_test_names_.insert(test_name); > return true; > } > > > > > const char* VerifyRegisteredTestNames( > const char* file, int line, const char* registered_tests); > > private: > bool registered_; > ::std::set<const char*> defined_test_names_; >}; > > > >inline const char* SkipComma(const char* str) { > const char* comma = strchr(str, ','); > if (comma == __null) { > return __null; > } > while (IsSpace(*(++comma))) {} > return comma; >} > > > >inline String GetPrefixUntilComma(const char* str) { > const char* comma = strchr(str, ','); > return comma == __null ? String(str) : String(str, comma - str); >} ># 7319 "../gtest_contrib/gtest/gtest.h" >template <template <typename T> class Fixture, class TestSel, typename Types> >class TypeParameterizedTest { > public: > > > > > static bool Register(const char* prefix, const char* case_name, > const char* test_names, int index) { > typedef typename Types::Head Type; > typedef Fixture<Type> FixtureClass; > typedef typename TestSel::template Bind<Type>::type TestClass; > > > > MakeAndRegisterTestInfo( > String::Format("%s%s%s/%d", prefix, prefix[0] == '\0' ? "" : "/", > case_name, index).c_str(), > GetPrefixUntilComma(test_names).c_str(), > GetTypeName<Type>().c_str(), > __null, > GetTypeId<FixtureClass>(), > TestClass::SetUpTestCase, > TestClass::TearDownTestCase, > new TestFactoryImpl<TestClass>); > > > return TypeParameterizedTest<Fixture, TestSel, typename Types::Tail> > ::Register(prefix, case_name, test_names, index + 1); > } >}; > > >template <template <typename T> class Fixture, class TestSel> >class TypeParameterizedTest<Fixture, TestSel, Types0> { > public: > static bool Register(const char* , const char* , > const char* , int ) { > return true; > } >}; > > > > > >template <template <typename T> class Fixture, typename Tests, typename Types> >class TypeParameterizedTestCase { > public: > static bool Register(const char* prefix, const char* case_name, > const char* test_names) { > typedef typename Tests::Head Head; > > > TypeParameterizedTest<Fixture, Head, Types>::Register( > prefix, case_name, test_names, 0); > > > return TypeParameterizedTestCase<Fixture, typename Tests::Tail, Types> > ::Register(prefix, case_name, SkipComma(test_names)); > } >}; > > >template <template <typename T> class Fixture, typename Types> >class TypeParameterizedTestCase<Fixture, Templates0, Types> { > public: > static bool Register(const char* , const char* , > const char* ) { > return true; > } >}; ># 7404 "../gtest_contrib/gtest/gtest.h" > String GetCurrentOsStackTraceExceptTop(UnitTest* unit_test, > int skip_count); > > > > > > bool AlwaysTrue(); > > >inline bool AlwaysFalse() { return !AlwaysTrue(); } > > > > >struct ConstCharPtr { > ConstCharPtr(const char* str) : value(str) {} > operator bool() const { return true; } > const char* value; >}; > > > > > > >class Random { > public: > static const UInt32 kMaxRange = 1u << 31; > > explicit Random(UInt32 seed) : state_(seed) {} > > void Reseed(UInt32 seed) { state_ = seed; } > > > > UInt32 Generate(UInt32 range); > > private: > UInt32 state_; > Random(Random const &); void operator=(Random const &); >}; > > > >template <typename T1, typename T2> >struct CompileAssertTypesEqual; > >template <typename T> >struct CompileAssertTypesEqual<T, T> { >}; > > > > >template <typename T> >struct RemoveReference { typedef T type; }; >template <typename T> >struct RemoveReference<T&> { typedef T type; }; > > > >#define GTEST_REMOVE_REFERENCE_(T) typename ::testing::internal::RemoveReference<T>::type > > > > > >template <typename T> >struct RemoveConst { typedef T type; }; >template <typename T> >struct RemoveConst<const T> { typedef T type; }; ># 7491 "../gtest_contrib/gtest/gtest.h" >#define GTEST_REMOVE_CONST_(T) typename ::testing::internal::RemoveConst<T>::type > > > >#define GTEST_REMOVE_REFERENCE_AND_CONST_(T) GTEST_REMOVE_CONST_(GTEST_REMOVE_REFERENCE_(T)) > > > > > >template <typename T> >struct AddReference { typedef T& type; }; >template <typename T> >struct AddReference<T&> { typedef T& type; }; > > > >#define GTEST_ADD_REFERENCE_(T) typename ::testing::internal::AddReference<T>::type ># 7520 "../gtest_contrib/gtest/gtest.h" >#define GTEST_REFERENCE_TO_CONST_(T) GTEST_ADD_REFERENCE_(const GTEST_REMOVE_REFERENCE_(T)) > > > > > >template <typename From, typename To> >class ImplicitlyConvertible { > private: > > > > > > > static From MakeFrom(); ># 7547 "../gtest_contrib/gtest/gtest.h" > static char Helper(To); > static char (&Helper(...))[2]; > > > > public: ># 7569 "../gtest_contrib/gtest/gtest.h" > static const bool value = > sizeof(Helper(ImplicitlyConvertible::MakeFrom())) == 1; > >}; >template <typename From, typename To> >const bool ImplicitlyConvertible<From, To>::value; > > > > >template <typename T> >struct IsAProtocolMessage > : public bool_constant< > ImplicitlyConvertible<const T*, const ::ProtocolMessage*>::value || > ImplicitlyConvertible<const T*, const ::proto2::Message*>::value> { >}; ># 7607 "../gtest_contrib/gtest/gtest.h" >typedef int IsContainer; >template <class C> >IsContainer IsContainerTest(int , > typename C::iterator* = __null, > typename C::const_iterator* = __null) { > return 0; >} > >typedef char IsNotContainer; >template <class C> >IsNotContainer IsContainerTest(long ) { return '\0'; } > > > > > >template<bool> struct EnableIf; >template<> struct EnableIf<true> { typedef void type; }; > > > > > > > >template <typename T, typename U> >bool ArrayEq(const T* lhs, size_t size, const U* rhs); > > >template <typename T, typename U> >inline bool ArrayEq(const T& lhs, const U& rhs) { return lhs == rhs; } > > >template <typename T, typename U, size_t N> >inline bool ArrayEq(const T(&lhs)[N], const U(&rhs)[N]) { > return internal::ArrayEq(lhs, N, rhs); >} > > > > >template <typename T, typename U> >bool ArrayEq(const T* lhs, size_t size, const U* rhs) { > for (size_t i = 0; i != size; i++) { > if (!internal::ArrayEq(lhs[i], rhs[i])) > return false; > } > return true; >} > > > >template <typename Iter, typename Element> >Iter ArrayAwareFind(Iter begin, Iter end, const Element& elem) { > for (Iter it = begin; it != end; ++it) { > if (internal::ArrayEq(*it, elem)) > return it; > } > return end; >} > > > > > >template <typename T, typename U> >void CopyArray(const T* from, size_t size, U* to); > > >template <typename T, typename U> >inline void CopyArray(const T& from, U* to) { *to = from; } > > >template <typename T, typename U, size_t N> >inline void CopyArray(const T(&from)[N], U(*to)[N]) { > internal::CopyArray(from, N, *to); >} > > > > >template <typename T, typename U> >void CopyArray(const T* from, size_t size, U* to) { > for (size_t i = 0; i != size; i++) { > internal::CopyArray(from[i], to + i); > } >} > > > >enum RelationToSource { > kReference, > kCopy > >}; ># 7711 "../gtest_contrib/gtest/gtest.h" >template <typename Element> >class NativeArray { > public: > > typedef Element value_type; > typedef Element* iterator; > typedef const Element* const_iterator; > > > NativeArray(const Element* array, size_t count, RelationToSource relation) { > Init(array, count, relation); > } > > > NativeArray(const NativeArray& rhs) { > Init(rhs.array_, rhs.size_, rhs.relation_to_source_); > } > > ~NativeArray() { > > > static_cast<void>(StaticAssertTypeEqHelper<Element, > typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Element>::type>::type>()); > if (relation_to_source_ == kCopy) > delete[] array_; > } > > > size_t size() const { return size_; } > const_iterator begin() const { return array_; } > const_iterator end() const { return array_ + size_; } > bool operator==(const NativeArray& rhs) const { > return size() == rhs.size() && > ArrayEq(begin(), size(), rhs.begin()); > } > > private: > > > void Init(const Element* array, size_t a_size, RelationToSource relation) { > if (relation == kReference) { > array_ = array; > } else { > Element* const copy = new Element[a_size]; > CopyArray(array, a_size, copy); > array_ = copy; > } > size_ = a_size; > relation_to_source_ = relation; > } > > const Element* array_; > size_t size_; > RelationToSource relation_to_source_; > > void operator=(NativeArray const &); >}; > >} >} > >#define GTEST_MESSAGE_AT_(file,line,message,result_type) ::testing::internal::AssertHelper(result_type, file, line, message) = ::testing::Message() > > > >#define GTEST_MESSAGE_(message,result_type) GTEST_MESSAGE_AT_(__FILE__, __LINE__, message, result_type) > > >#define GTEST_FATAL_FAILURE_(message) return GTEST_MESSAGE_(message, ::testing::TestPartResult::kFatalFailure) > > >#define GTEST_NONFATAL_FAILURE_(message) GTEST_MESSAGE_(message, ::testing::TestPartResult::kNonFatalFailure) > > >#define GTEST_SUCCESS_(message) GTEST_MESSAGE_(message, ::testing::TestPartResult::kSuccess) > > > > > >#define GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) if (::testing::internal::AlwaysTrue()) { statement; } > > >#define GTEST_TEST_THROW_(statement,expected_exception,fail) GTEST_AMBIGUOUS_ELSE_BLOCKER_ if (::testing::internal::ConstCharPtr gtest_msg = "") { bool gtest_caught_expected = false; try { GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); } catch (expected_exception const&) { gtest_caught_expected = true; } catch (...) { gtest_msg.value = "Expected: " #statement " throws an exception of type " #expected_exception ".\n Actual: it throws a different type."; goto GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__); } if (!gtest_caught_expected) { gtest_msg.value = "Expected: " #statement " throws an exception of type " #expected_exception ".\n Actual: it throws nothing."; goto GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__); } } else GTEST_CONCAT_TOKEN_(gtest_label_testthrow_, __LINE__): fail(gtest_msg.value) ># 7820 "../gtest_contrib/gtest/gtest.h" >#define GTEST_TEST_NO_THROW_(statement,fail) GTEST_AMBIGUOUS_ELSE_BLOCKER_ if (::testing::internal::AlwaysTrue()) { try { GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); } catch (...) { goto GTEST_CONCAT_TOKEN_(gtest_label_testnothrow_, __LINE__); } } else GTEST_CONCAT_TOKEN_(gtest_label_testnothrow_, __LINE__): fail("Expected: " #statement " doesn't throw an exception.\n" " Actual: it throws.") ># 7834 "../gtest_contrib/gtest/gtest.h" >#define GTEST_TEST_ANY_THROW_(statement,fail) GTEST_AMBIGUOUS_ELSE_BLOCKER_ if (::testing::internal::AlwaysTrue()) { bool gtest_caught_any = false; try { GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); } catch (...) { gtest_caught_any = true; } if (!gtest_caught_any) { goto GTEST_CONCAT_TOKEN_(gtest_label_testanythrow_, __LINE__); } } else GTEST_CONCAT_TOKEN_(gtest_label_testanythrow_, __LINE__): fail("Expected: " #statement " throws an exception.\n" " Actual: it doesn't.") ># 7856 "../gtest_contrib/gtest/gtest.h" >#define GTEST_TEST_BOOLEAN_(expression,text,actual,expected,fail) GTEST_AMBIGUOUS_ELSE_BLOCKER_ if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(expression)) ; else fail(::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_, text, #actual, #expected).c_str()) ># 7865 "../gtest_contrib/gtest/gtest.h" >#define GTEST_TEST_NO_FATAL_FAILURE_(statement,fail) GTEST_AMBIGUOUS_ELSE_BLOCKER_ if (::testing::internal::AlwaysTrue()) { ::testing::internal::HasNewFatalFailureHelper gtest_fatal_failure_checker; GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); if (gtest_fatal_failure_checker.has_new_fatal_failure()) { goto GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__); } } else GTEST_CONCAT_TOKEN_(gtest_label_testnofatal_, __LINE__): fail("Expected: " #statement " doesn't generate new fatal " "failures in the current thread.\n" " Actual: it does.") ># 7880 "../gtest_contrib/gtest/gtest.h" >#define GTEST_TEST_CLASS_NAME_(test_case_name,test_name) test_case_name ##_ ##test_name ##_Test > > > >#define GTEST_TEST_(test_case_name,test_name,parent_class,parent_id) class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public parent_class { public: GTEST_TEST_CLASS_NAME_(test_case_name, test_name)() {} private: virtual void TestBody(); static ::testing::TestInfo* const test_info_ GTEST_ATTRIBUTE_UNUSED_; GTEST_DISALLOW_COPY_AND_ASSIGN_( GTEST_TEST_CLASS_NAME_(test_case_name, test_name));};::testing::TestInfo* const GTEST_TEST_CLASS_NAME_(test_case_name, test_name) ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( #test_case_name, #test_name, NULL, NULL, (parent_id), parent_class::SetUpTestCase, parent_class::TearDownTestCase, new ::testing::internal::TestFactoryImpl< GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>);void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() ># 7945 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_ ># 7984 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_ > > > > >namespace testing { >namespace internal { > > extern ::testing::internal::String FLAGS_gtest_internal_run_death_test; > > >const char kDeathTestStyleFlag[] = "death_test_style"; >const char kDeathTestUseFork[] = "death_test_use_fork"; >const char kInternalRunDeathTestFlag[] = "internal_run_death_test"; ># 8014 "../gtest_contrib/gtest/gtest.h" >class DeathTest { > public: ># 8024 "../gtest_contrib/gtest/gtest.h" > static bool Create(const char* statement, const RE* regex, > const char* file, int line, DeathTest** test); > DeathTest(); > virtual ~DeathTest() { } > > > class ReturnSentinel { > public: > explicit ReturnSentinel(DeathTest* test) : test_(test) { } > ~ReturnSentinel() { test_->Abort(TEST_ENCOUNTERED_RETURN_STATEMENT); } > private: > DeathTest* const test_; > ReturnSentinel(ReturnSentinel const &); void operator=(ReturnSentinel const &); > } __attribute__ ((unused)); > > > > > > > enum TestRole { OVERSEE_TEST, EXECUTE_TEST }; > > > enum AbortReason { > TEST_ENCOUNTERED_RETURN_STATEMENT, > TEST_THREW_EXCEPTION, > TEST_DID_NOT_DIE > }; > > > virtual TestRole AssumeRole() = 0; > > > virtual int Wait() = 0; ># 8066 "../gtest_contrib/gtest/gtest.h" > virtual bool Passed(bool exit_status_ok) = 0; > > > virtual void Abort(AbortReason reason) = 0; > > > > static const char* LastMessage(); > > static void set_last_death_test_message(const String& message); > > private: > > static String last_death_test_message_; > > DeathTest(DeathTest const &); void operator=(DeathTest const &); >}; > > >class DeathTestFactory { > public: > virtual ~DeathTestFactory() { } > virtual bool Create(const char* statement, const RE* regex, > const char* file, int line, DeathTest** test) = 0; >}; > > >class DefaultDeathTestFactory : public DeathTestFactory { > public: > virtual bool Create(const char* statement, const RE* regex, > const char* file, int line, DeathTest** test); >}; > > > > bool ExitedUnsuccessfully(int exit_status); > > > > >#define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement,death_test) try { GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); } catch (const ::std::exception& gtest_exception) { fprintf( stderr, "\n%s: Caught std::exception-derived exception escaping the " "death test statement. Exception message: %s\n", ::testing::internal::FormatFileLocation(__FILE__, __LINE__).c_str(), gtest_exception.what()); fflush(stderr); death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); } catch (...) { death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); } ># 8130 "../gtest_contrib/gtest/gtest.h" >#define GTEST_DEATH_TEST_(statement,predicate,regex,fail) GTEST_AMBIGUOUS_ELSE_BLOCKER_ if (::testing::internal::AlwaysTrue()) { const ::testing::internal::RE& gtest_regex = (regex); ::testing::internal::DeathTest* gtest_dt; if (!::testing::internal::DeathTest::Create(#statement, >est_regex, __FILE__, __LINE__, >est_dt)) { goto GTEST_CONCAT_TOKEN_(gtest_label_, __LINE__); } if (gtest_dt != NULL) { ::testing::internal::scoped_ptr< ::testing::internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST: if (!gtest_dt->Passed(predicate(gtest_dt->Wait()))) { goto GTEST_CONCAT_TOKEN_(gtest_label_, __LINE__); } break; case ::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, gtest_dt); gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE); break; } default: break; } } } else GTEST_CONCAT_TOKEN_(gtest_label_, __LINE__): fail(::testing::internal::DeathTest::LastMessage()) ># 8168 "../gtest_contrib/gtest/gtest.h" >class InternalRunDeathTestFlag { > public: > InternalRunDeathTestFlag(const String& a_file, > int a_line, > int an_index, > int a_write_fd) > : file_(a_file), line_(a_line), index_(an_index), > write_fd_(a_write_fd) {} > > ~InternalRunDeathTestFlag() { > if (write_fd_ >= 0) > posix::Close(write_fd_); > } > > String file() const { return file_; } > int line() const { return line_; } > int index() const { return index_; } > int write_fd() const { return write_fd_; } > > private: > String file_; > int line_; > int index_; > int write_fd_; > > InternalRunDeathTestFlag(InternalRunDeathTestFlag const &); void operator=(InternalRunDeathTestFlag const &); >}; > > > > >InternalRunDeathTestFlag* ParseInternalRunDeathTestFlag(); ># 8250 "../gtest_contrib/gtest/gtest.h" >} >} > > > >namespace testing { > > > > > > > extern ::testing::internal::String FLAGS_gtest_death_test_style; ># 8369 "../gtest_contrib/gtest/gtest.h" >#define ASSERT_EXIT(statement,predicate,regex) GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) > > > > >#define EXPECT_EXIT(statement,predicate,regex) GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) > > > > > >#define ASSERT_DEATH(statement,regex) ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) > > > > >#define EXPECT_DEATH(statement,regex) EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) > > > > > >class ExitedWithCode { > public: > explicit ExitedWithCode(int exit_code); > bool operator()(int exit_status) const; > private: > > void operator=(const ExitedWithCode& other); > > const int exit_code_; >}; > > > > >class KilledBySignal { > public: > explicit KilledBySignal(int signum); > bool operator()(int exit_status) const; > private: > const int signum_; >}; ># 8467 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_DEBUG_DEATH(statement,regex) EXPECT_DEATH(statement, regex) > > >#define ASSERT_DEBUG_DEATH(statement,regex) ASSERT_DEATH(statement, regex) ># 8482 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_DEATH_IF_SUPPORTED(statement,regex) EXPECT_DEATH(statement, regex) > >#define ASSERT_DEATH_IF_SUPPORTED(statement,regex) ASSERT_DEATH(statement, regex) ># 8493 "../gtest_contrib/gtest/gtest.h" >} ># 8542 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_ > > > > >namespace testing { ># 8575 "../gtest_contrib/gtest/gtest.h" >class Message { > private: > > > typedef std::ostream& (*BasicNarrowIoManip)(std::ostream&); > > public: > > > > > > Message() : ss_(new ::std::stringstream) { > > > *ss_ << std::setprecision(std::numeric_limits<double>::digits10 + 2); > } > > > Message(const Message& msg) : ss_(new ::std::stringstream) { > *ss_ << msg.GetString(); > } > > > explicit Message(const char* str) : ss_(new ::std::stringstream) { > *ss_ << str; > } ># 8612 "../gtest_contrib/gtest/gtest.h" > template <typename T> > inline Message& operator <<(const T& val) { > ::GTestStreamToHelper(ss_.get(), val); > return *this; > } ># 8631 "../gtest_contrib/gtest/gtest.h" > template <typename T> > inline Message& operator <<(T* const& pointer) { > if (pointer == __null) { > *ss_ << "(null)"; > } else { > ::GTestStreamToHelper(ss_.get(), pointer); > } > return *this; > } ># 8648 "../gtest_contrib/gtest/gtest.h" > Message& operator <<(BasicNarrowIoManip val) { > *ss_ << val; > return *this; > } > > > Message& operator <<(bool b) { > return *this << (b ? "true" : "false"); > } > > > > Message& operator <<(const wchar_t* wide_c_str) { > return *this << internal::String::ShowWideCString(wide_c_str); > } > Message& operator <<(wchar_t* wide_c_str) { > return *this << internal::String::ShowWideCString(wide_c_str); > } > > > > > Message& operator <<(const ::std::wstring& wstr); ># 8683 "../gtest_contrib/gtest/gtest.h" > internal::String GetString() const { > return internal::StringStreamToString(ss_.get()); > } > > private: ># 8709 "../gtest_contrib/gtest/gtest.h" > const internal::scoped_ptr< ::std::stringstream> ss_; > > > > void operator=(const Message&); >}; > > >inline std::ostream& operator <<(std::ostream& os, const Message& sb) { > return os << sb.GetString(); >} > >} ># 8765 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_ ># 8947 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_H_ > ># 1 "/usr/include/c++/4.8.2/iterator" 1 3 ># 56 "/usr/include/c++/4.8.2/iterator" 3 >#define _GLIBCXX_ITERATOR 1 > > ># 59 "/usr/include/c++/4.8.2/iterator" 3 > > > > > > > ># 1 "/usr/include/c++/4.8.2/bits/stream_iterator.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/stream_iterator.h" 3 >#define _STREAM_ITERATOR_H 1 > > ># 34 "/usr/include/c++/4.8.2/bits/stream_iterator.h" 3 > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > > > > > template<typename _Tp, typename _CharT = char, > typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t> > class istream_iterator > : public iterator<input_iterator_tag, _Tp, _Dist, const _Tp*, const _Tp&> > { > public: > typedef _CharT char_type; > typedef _Traits traits_type; > typedef basic_istream<_CharT, _Traits> istream_type; > > private: > istream_type* _M_stream; > _Tp _M_value; > bool _M_ok; > > public: > > istream_iterator() > : _M_stream(0), _M_value(), _M_ok(false) {} > > > istream_iterator(istream_type& __s) > : _M_stream(&__s) > { _M_read(); } > > istream_iterator(const istream_iterator& __obj) > : _M_stream(__obj._M_stream), _M_value(__obj._M_value), > _M_ok(__obj._M_ok) > { } > > const _Tp& > operator*() const > { > > > ; > return _M_value; > } > > const _Tp* > operator->() const { return &(operator*()); } > > istream_iterator& > operator++() > { > > > ; > _M_read(); > return *this; > } > > istream_iterator > operator++(int) > { > > > ; > istream_iterator __tmp = *this; > _M_read(); > return __tmp; > } > > bool > _M_equal(const istream_iterator& __x) const > { return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); } > > private: > void > _M_read() > { > _M_ok = (_M_stream && *_M_stream) ? true : false; > if (_M_ok) > { > *_M_stream >> _M_value; > _M_ok = *_M_stream ? true : false; > } > } > }; > > > template<typename _Tp, typename _CharT, typename _Traits, typename _Dist> > inline bool > operator==(const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __x, > const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __y) > { return __x._M_equal(__y); } > > > template <class _Tp, class _CharT, class _Traits, class _Dist> > inline bool > operator!=(const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __x, > const istream_iterator<_Tp, _CharT, _Traits, _Dist>& __y) > { return !__x._M_equal(__y); } ># 152 "/usr/include/c++/4.8.2/bits/stream_iterator.h" 3 > template<typename _Tp, typename _CharT = char, > typename _Traits = char_traits<_CharT> > > class ostream_iterator > : public iterator<output_iterator_tag, void, void, void, void> > { > public: > > > typedef _CharT char_type; > typedef _Traits traits_type; > typedef basic_ostream<_CharT, _Traits> ostream_type; > > > private: > ostream_type* _M_stream; > const _CharT* _M_string; > > public: > > ostream_iterator(ostream_type& __s) : _M_stream(&__s), _M_string(0) {} ># 183 "/usr/include/c++/4.8.2/bits/stream_iterator.h" 3 > ostream_iterator(ostream_type& __s, const _CharT* __c) > : _M_stream(&__s), _M_string(__c) { } > > > ostream_iterator(const ostream_iterator& __obj) > : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } > > > > ostream_iterator& > operator=(const _Tp& __value) > { > > > ; > *_M_stream << __value; > if (_M_string) *_M_stream << _M_string; > return *this; > } > > ostream_iterator& > operator*() > { return *this; } > > ostream_iterator& > operator++() > { return *this; } > > ostream_iterator& > operator++(int) > { return *this; } > }; > > > > >} ># 67 "/usr/include/c++/4.8.2/iterator" 2 3 ># 8950 "../gtest_contrib/gtest/gtest.h" 2 ># 9024 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_ > > ># 1 "/usr/include/assert.h" 1 3 4 ># 34 "/usr/include/assert.h" 3 4 >#define _ASSERT_H 1 > > > >#define __ASSERT_VOID_CAST static_cast<void> ># 64 "/usr/include/assert.h" 3 4 >extern "C" { > > >extern void __assert_fail (const char *__assertion, const char *__file, > unsigned int __line, const char *__function) > throw () __attribute__ ((__noreturn__)); > > >extern void __assert_perror_fail (int __errnum, const char *__file, > unsigned int __line, const char *__function) > throw () __attribute__ ((__noreturn__)); > > > > >extern void __assert (const char *__assertion, const char *__file, int __line) > throw () __attribute__ ((__noreturn__)); > > >} > >#define assert(expr) ((expr) ? __ASSERT_VOID_CAST (0) : __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION)) > > > > > >#define assert_perror(errnum) (!(errnum) ? __ASSERT_VOID_CAST (0) : __assert_perror_fail ((errnum), __FILE__, __LINE__, __ASSERT_FUNCTION)) ># 103 "/usr/include/assert.h" 3 4 >#define __ASSERT_FUNCTION __PRETTY_FUNCTION__ ># 9028 "../gtest_contrib/gtest/gtest.h" 2 > > >namespace testing { >namespace internal { > > > extern ::testing::internal::MutexBase g_linked_ptr_mutex; ># 9043 "../gtest_contrib/gtest/gtest.h" >class linked_ptr_internal { > public: > > void join_new() { > next_ = this; > } ># 9063 "../gtest_contrib/gtest/gtest.h" > void join(linked_ptr_internal const* ptr) { > MutexLock lock(&g_linked_ptr_mutex); > > linked_ptr_internal const* p = ptr; > while (p->next_ != ptr) p = p->next_; > p->next_ = this; > next_ = ptr; > } > > > > > bool depart() { > MutexLock lock(&g_linked_ptr_mutex); > > if (next_ == this) return true; > linked_ptr_internal const* p = next_; > while (p->next_ != this) p = p->next_; > p->next_ = next_; > return false; > } > > private: > mutable linked_ptr_internal const* next_; >}; > >template <typename T> >class linked_ptr { > public: > typedef T element_type; > > > > explicit linked_ptr(T* ptr = __null) { capture(ptr); } > ~linked_ptr() { depart(); } > > > template <typename U> linked_ptr(linked_ptr<U> const& ptr) { copy(&ptr); } > linked_ptr(linked_ptr const& ptr) { > ((&ptr != this) ? static_cast<void> (0) : __assert_fail ("&ptr != this", "../gtest_contrib/gtest/gtest.h", 9102, __PRETTY_FUNCTION__)); > copy(&ptr); > } > > > template <typename U> linked_ptr& operator=(linked_ptr<U> const& ptr) { > depart(); > copy(&ptr); > return *this; > } > > linked_ptr& operator=(linked_ptr const& ptr) { > if (&ptr != this) { > depart(); > copy(&ptr); > } > return *this; > } > > > void reset(T* ptr = __null) { > depart(); > capture(ptr); > } > T* get() const { return value_; } > T* operator->() const { return value_; } > T& operator*() const { return *value_; } > > bool operator==(T* p) const { return value_ == p; } > bool operator!=(T* p) const { return value_ != p; } > template <typename U> > bool operator==(linked_ptr<U> const& ptr) const { > return value_ == ptr.get(); > } > template <typename U> > bool operator!=(linked_ptr<U> const& ptr) const { > return value_ != ptr.get(); > } > > private: > template <typename U> > friend class linked_ptr; > > T* value_; > linked_ptr_internal link_; > > void depart() { > if (link_.depart()) delete value_; > } > > void capture(T* ptr) { > value_ = ptr; > link_.join_new(); > } > > template <typename U> void copy(linked_ptr<U> const* ptr) { > value_ = ptr->get(); > if (value_) > link_.join(&ptr->link_); > else > link_.join_new(); > } >}; > >template<typename T> inline >bool operator==(T* ptr, const linked_ptr<T>& x) { > return ptr == x.get(); >} > >template<typename T> inline >bool operator!=(T* ptr, const linked_ptr<T>& x) { > return ptr != x.get(); >} > > > > >template <typename T> >linked_ptr<T> make_linked_ptr(T* ptr) { > return linked_ptr<T>(ptr); >} > >} >} ># 9283 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_GTEST_PRINTERS_H_ > > > > > > > >namespace testing { > > > >namespace internal2 { > > > > void PrintBytesInObjectTo(const unsigned char* obj_bytes, > size_t count, > ::std::ostream* os); > > > >enum TypeKind { > kProtobuf, > kConvertibleToInteger, > > kOtherType >}; > > > > > >template <typename T, TypeKind kTypeKind> >class TypeWithoutFormatter { > public: > > static void PrintValue(const T& value, ::std::ostream* os) { > PrintBytesInObjectTo(reinterpret_cast<const unsigned char*>(&value), > sizeof(value), os); > } >}; > > > > >const size_t kProtobufOneLinerMaxLength = 50; > >template <typename T> >class TypeWithoutFormatter<T, kProtobuf> { > public: > static void PrintValue(const T& value, ::std::ostream* os) { > const ::testing::internal::string short_str = value.ShortDebugString(); > const ::testing::internal::string pretty_str = > short_str.length() <= kProtobufOneLinerMaxLength ? > short_str : ("\n" + value.DebugString()); > *os << ("<" + pretty_str + ">"); > } >}; > >template <typename T> >class TypeWithoutFormatter<T, kConvertibleToInteger> { > public: > > > > > > > > static void PrintValue(const T& value, ::std::ostream* os) { > const internal::BiggestInt kBigInt = value; > *os << kBigInt; > } >}; ># 9383 "../gtest_contrib/gtest/gtest.h" >template <typename Char, typename CharTraits, typename T> >::std::basic_ostream<Char, CharTraits>& operator<<( > ::std::basic_ostream<Char, CharTraits>& os, const T& x) { > TypeWithoutFormatter<T, > (internal::IsAProtocolMessage<T>::value ? kProtobuf : > internal::ImplicitlyConvertible<const T&, internal::BiggestInt>::value ? > kConvertibleToInteger : kOtherType)>::PrintValue(x, &os); > return os; >} > >} >} > > > >namespace testing_internal { > > > >template <typename T> >void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) { ># 9415 "../gtest_contrib/gtest/gtest.h" > using namespace ::testing::internal2; ># 9430 "../gtest_contrib/gtest/gtest.h" > *os << value; >} > >} > >namespace testing { >namespace internal { ># 9445 "../gtest_contrib/gtest/gtest.h" >template <typename T> >class UniversalPrinter; > >template <typename T> >void UniversalPrint(const T& value, ::std::ostream* os); > > > >template <typename C> >void DefaultPrintTo(IsContainer , > false_type , > const C& container, ::std::ostream* os) { > const size_t kMaxCount = 32; > *os << '{'; > size_t count = 0; > for (typename C::const_iterator it = container.begin(); > it != container.end(); ++it, ++count) { > if (count > 0) { > *os << ','; > if (count == kMaxCount) { > *os << " ..."; > break; > } > } > *os << ' '; > > > internal::UniversalPrint(*it, os); > } > > if (count > 0) { > *os << ' '; > } > *os << '}'; >} > > > > > > > >template <typename T> >void DefaultPrintTo(IsNotContainer , > true_type , > T* p, ::std::ostream* os) { > if (p == __null) { > *os << "NULL"; > } else { > > > > > > if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) { > > > > *os << p; > } else { > > > > > > > *os << reinterpret_cast<const void*>( > reinterpret_cast<internal::UInt64>(p)); > } > } >} > > > >template <typename T> >void DefaultPrintTo(IsNotContainer , > false_type , > const T& value, ::std::ostream* os) { > ::testing_internal::DefaultPrintNonContainerTo(value, os); >} ># 9537 "../gtest_contrib/gtest/gtest.h" >template <typename T> >void PrintTo(const T& value, ::std::ostream* os) { ># 9561 "../gtest_contrib/gtest/gtest.h" > DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os); >} > > > > > > > void PrintTo(unsigned char c, ::std::ostream* os); > void PrintTo(signed char c, ::std::ostream* os); >inline void PrintTo(char c, ::std::ostream* os) { > > > > PrintTo(static_cast<unsigned char>(c), os); >} > > >inline void PrintTo(bool x, ::std::ostream* os) { > *os << (x ? "true" : "false"); >} ># 9590 "../gtest_contrib/gtest/gtest.h" > void PrintTo(wchar_t wc, ::std::ostream* os); > > > void PrintTo(const char* s, ::std::ostream* os); >inline void PrintTo(char* s, ::std::ostream* os) { > PrintTo(ImplicitCast_<const char*>(s), os); >} > > > >inline void PrintTo(const signed char* s, ::std::ostream* os) { > PrintTo(ImplicitCast_<const void*>(s), os); >} >inline void PrintTo(signed char* s, ::std::ostream* os) { > PrintTo(ImplicitCast_<const void*>(s), os); >} >inline void PrintTo(const unsigned char* s, ::std::ostream* os) { > PrintTo(ImplicitCast_<const void*>(s), os); >} >inline void PrintTo(unsigned char* s, ::std::ostream* os) { > PrintTo(ImplicitCast_<const void*>(s), os); >} ># 9620 "../gtest_contrib/gtest/gtest.h" > void PrintTo(const wchar_t* s, ::std::ostream* os); >inline void PrintTo(wchar_t* s, ::std::ostream* os) { > PrintTo(ImplicitCast_<const wchar_t*>(s), os); >} > > > > > > > >template <typename T> >void PrintRawArrayTo(const T a[], size_t count, ::std::ostream* os) { > UniversalPrint(a[0], os); > for (size_t i = 1; i != count; i++) { > *os << ", "; > UniversalPrint(a[i], os); > } >} ># 9648 "../gtest_contrib/gtest/gtest.h" > void PrintStringTo(const ::std::string&s, ::std::ostream* os); >inline void PrintTo(const ::std::string& s, ::std::ostream* os) { > PrintStringTo(s, os); >} ># 9662 "../gtest_contrib/gtest/gtest.h" > void PrintWideStringTo(const ::std::wstring&s, ::std::ostream* os); >inline void PrintTo(const ::std::wstring& s, ::std::ostream* os) { > PrintWideStringTo(s, os); >} ># 9674 "../gtest_contrib/gtest/gtest.h" >template <typename T> >void PrintTupleTo(const T& t, ::std::ostream* os); > > > > > > >inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1> >void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1, typename T2> >void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1, typename T2, typename T3> >void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1, typename T2, typename T3, typename T4> >void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5> >void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t, > ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6> >void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6>& t, > ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7> >void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7>& t, > ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8> >void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8>& t, > ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9> >void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9>& t, > ::std::ostream* os) { > PrintTupleTo(t, os); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10> >void PrintTo( > const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>& t, > ::std::ostream* os) { > PrintTupleTo(t, os); >} > > > >template <typename T1, typename T2> >void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) { > *os << '('; > > > UniversalPrinter<T1>::Print(value.first, os); > *os << ", "; > UniversalPrinter<T2>::Print(value.second, os); > *os << ')'; >} > > > >template <typename T> >class UniversalPrinter { > public: ># 9776 "../gtest_contrib/gtest/gtest.h" > static void Print(const T& value, ::std::ostream* os) { ># 9785 "../gtest_contrib/gtest/gtest.h" > PrintTo(value, os); > } > > > > >}; > > > >template <typename T> >void UniversalPrintArray(const T* begin, size_t len, ::std::ostream* os) { > if (len == 0) { > *os << "{}"; > } else { > *os << "{ "; > const size_t kThreshold = 18; > const size_t kChunkSize = 8; > > > > > if (len <= kThreshold) { > PrintRawArrayTo(begin, len, os); > } else { > PrintRawArrayTo(begin, kChunkSize, os); > *os << ", ..., "; > PrintRawArrayTo(begin + len - kChunkSize, kChunkSize, os); > } > *os << " }"; > } >} > > void UniversalPrintArray(const char* begin, > size_t len, > ::std::ostream* os); > > >template <typename T, size_t N> >class UniversalPrinter<T[N]> { > public: > > > static void Print(const T (&a)[N], ::std::ostream* os) { > UniversalPrintArray(a, N, os); > } >}; > > >template <typename T> >class UniversalPrinter<T&> { > public: > > > > > > > > static void Print(const T& value, ::std::ostream* os) { > > > *os << "@" << reinterpret_cast<const void*>(&value) << " "; > > > UniversalPrint(value, os); > } > > > > >}; > > > > >template <typename T> >void UniversalTersePrint(const T& value, ::std::ostream* os) { > UniversalPrint(value, os); >} >inline void UniversalTersePrint(const char* str, ::std::ostream* os) { > if (str == __null) { > *os << "NULL"; > } else { > UniversalPrint(string(str), os); > } >} >inline void UniversalTersePrint(char* str, ::std::ostream* os) { > UniversalTersePrint(static_cast<const char*>(str), os); >} > > > > > >template <typename T> >void UniversalPrint(const T& value, ::std::ostream* os) { > UniversalPrinter<T>::Print(value, os); >} > > >typedef ::std::vector<string> Strings; ># 9896 "../gtest_contrib/gtest/gtest.h" >template <size_t N> >struct TuplePrefixPrinter { > > template <typename Tuple> > static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { > TuplePrefixPrinter<N - 1>::PrintPrefixTo(t, os); > *os << ", "; > UniversalPrinter<typename ::std::tr1::tuple_element<N - 1, Tuple>::type> > ::Print(::std::tr1::get<N - 1>(t), os); > } > > > > template <typename Tuple> > static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) { > TuplePrefixPrinter<N - 1>::TersePrintPrefixToStrings(t, strings); > ::std::stringstream ss; > UniversalTersePrint(::std::tr1::get<N - 1>(t), &ss); > strings->push_back(ss.str()); > } >}; > > >template <> >struct TuplePrefixPrinter<0> { > template <typename Tuple> > static void PrintPrefixTo(const Tuple&, ::std::ostream*) {} > > template <typename Tuple> > static void TersePrintPrefixToStrings(const Tuple&, Strings*) {} >}; > > > > > >template <> >struct TuplePrefixPrinter<1> { > template <typename Tuple> > static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { > UniversalPrinter<typename ::std::tr1::tuple_element<0, Tuple>::type>:: > Print(::std::tr1::get<0>(t), os); > } > > template <typename Tuple> > static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) { > ::std::stringstream ss; > UniversalTersePrint(::std::tr1::get<0>(t), &ss); > strings->push_back(ss.str()); > } >}; > > > >template <typename T> >void PrintTupleTo(const T& t, ::std::ostream* os) { > *os << "("; > TuplePrefixPrinter< ::std::tr1::tuple_size<T>::value>:: > PrintPrefixTo(t, os); > *os << ")"; >} > > > > >template <typename Tuple> >Strings UniversalTersePrintTupleFieldsToStrings(const Tuple& value) { > Strings result; > TuplePrefixPrinter< ::std::tr1::tuple_size<Tuple>::value>:: > TersePrintPrefixToStrings(value, &result); > return result; >} > > >} > >template <typename T> >::std::string PrintToString(const T& value) { > ::std::stringstream ss; > internal::UniversalTersePrint(value, &ss); > return ss.str(); >} > >} > > > > > >namespace testing { >namespace internal { > > > > > > > > void ReportInvalidTestCaseType(const char* test_case_name, > const char* file, int line); > >template <typename> class ParamGeneratorInterface; >template <typename> class ParamGenerator; > > > >template <typename T> >class ParamIteratorInterface { > public: > virtual ~ParamIteratorInterface() {} > > > > virtual const ParamGeneratorInterface<T>* BaseGenerator() const = 0; > > > > > virtual void Advance() = 0; > > > virtual ParamIteratorInterface* Clone() const = 0; > > > > > virtual const T* Current() const = 0; > > > > virtual bool Equals(const ParamIteratorInterface& other) const = 0; >}; > > > > >template <typename T> >class ParamIterator { > public: > typedef T value_type; > typedef const T& reference; > typedef ptrdiff_t difference_type; > > > ParamIterator(const ParamIterator& other) : impl_(other.impl_->Clone()) {} > ParamIterator& operator=(const ParamIterator& other) { > if (this != &other) > impl_.reset(other.impl_->Clone()); > return *this; > } > > const T& operator*() const { return *impl_->Current(); } > const T* operator->() const { return impl_->Current(); } > > ParamIterator& operator++() { > impl_->Advance(); > return *this; > } > > ParamIterator operator++(int ) { > ParamIteratorInterface<T>* clone = impl_->Clone(); > impl_->Advance(); > return ParamIterator(clone); > } > bool operator==(const ParamIterator& other) const { > return impl_.get() == other.impl_.get() || impl_->Equals(*other.impl_); > } > bool operator!=(const ParamIterator& other) const { > return !(*this == other); > } > > private: > friend class ParamGenerator<T>; > explicit ParamIterator(ParamIteratorInterface<T>* impl) : impl_(impl) {} > scoped_ptr<ParamIteratorInterface<T> > impl_; >}; > > > >template <typename T> >class ParamGeneratorInterface { > public: > typedef T ParamType; > > virtual ~ParamGeneratorInterface() {} > > > virtual ParamIteratorInterface<T>* Begin() const = 0; > virtual ParamIteratorInterface<T>* End() const = 0; >}; > > > > > > >template<typename T> >class ParamGenerator { > public: > typedef ParamIterator<T> iterator; > > explicit ParamGenerator(ParamGeneratorInterface<T>* impl) : impl_(impl) {} > ParamGenerator(const ParamGenerator& other) : impl_(other.impl_) {} > > ParamGenerator& operator=(const ParamGenerator& other) { > impl_ = other.impl_; > return *this; > } > > iterator begin() const { return iterator(impl_->Begin()); } > iterator end() const { return iterator(impl_->End()); } > > private: > linked_ptr<const ParamGeneratorInterface<T> > impl_; >}; > > > > > >template <typename T, typename IncrementT> >class RangeGenerator : public ParamGeneratorInterface<T> { > public: > RangeGenerator(T begin, T end, IncrementT step) > : begin_(begin), end_(end), > step_(step), end_index_(CalculateEndIndex(begin, end, step)) {} > virtual ~RangeGenerator() {} > > virtual ParamIteratorInterface<T>* Begin() const { > return new Iterator(this, begin_, 0, step_); > } > virtual ParamIteratorInterface<T>* End() const { > return new Iterator(this, end_, end_index_, step_); > } > > private: > class Iterator : public ParamIteratorInterface<T> { > public: > Iterator(const ParamGeneratorInterface<T>* base, T value, int index, > IncrementT step) > : base_(base), value_(value), index_(index), step_(step) {} > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<T>* BaseGenerator() const { > return base_; > } > virtual void Advance() { > value_ = value_ + step_; > index_++; > } > virtual ParamIteratorInterface<T>* Clone() const { > return new Iterator(*this); > } > virtual const T* Current() const { return &value_; } > virtual bool Equals(const ParamIteratorInterface<T>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 10153).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const int other_index = > CheckedDowncastToActualType<const Iterator>(&other)->index_; > return index_ == other_index; > } > > private: > Iterator(const Iterator& other) > : ParamIteratorInterface<T>(), > base_(other.base_), value_(other.value_), index_(other.index_), > step_(other.step_) {} > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<T>* const base_; > T value_; > int index_; > const IncrementT step_; > }; > > static int CalculateEndIndex(const T& begin, > const T& end, > const IncrementT& step) { > int end_index = 0; > for (T i = begin; i < end; i = i + step) > end_index++; > return end_index; > } > > > void operator=(const RangeGenerator& other); > > const T begin_; > const T end_; > const IncrementT step_; > > > const int end_index_; >}; > > > > > > >template <typename T> >class ValuesInIteratorRangeGenerator : public ParamGeneratorInterface<T> { > public: > template <typename ForwardIterator> > ValuesInIteratorRangeGenerator(ForwardIterator begin, ForwardIterator end) > : container_(begin, end) {} > virtual ~ValuesInIteratorRangeGenerator() {} > > virtual ParamIteratorInterface<T>* Begin() const { > return new Iterator(this, container_.begin()); > } > virtual ParamIteratorInterface<T>* End() const { > return new Iterator(this, container_.end()); > } > > private: > typedef typename ::std::vector<T> ContainerType; > > class Iterator : public ParamIteratorInterface<T> { > public: > Iterator(const ParamGeneratorInterface<T>* base, > typename ContainerType::const_iterator iterator) > : base_(base), iterator_(iterator) {} > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<T>* BaseGenerator() const { > return base_; > } > virtual void Advance() { > ++iterator_; > value_.reset(); > } > virtual ParamIteratorInterface<T>* Clone() const { > return new Iterator(*this); > } > > > > > > > > virtual const T* Current() const { > if (value_.get() == __null) > value_.reset(new T(*iterator_)); > return value_.get(); > } > virtual bool Equals(const ParamIteratorInterface<T>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 10251).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > return iterator_ == > CheckedDowncastToActualType<const Iterator>(&other)->iterator_; > } > > private: > Iterator(const Iterator& other) > > > : ParamIteratorInterface<T>(), > base_(other.base_), > iterator_(other.iterator_) {} > > const ParamGeneratorInterface<T>* const base_; > typename ContainerType::const_iterator iterator_; > > > > > > mutable scoped_ptr<const T> value_; > }; > > > void operator=(const ValuesInIteratorRangeGenerator& other); > > const ContainerType container_; >}; > > > > > >template <class TestClass> >class ParameterizedTestFactory : public TestFactoryBase { > public: > typedef typename TestClass::ParamType ParamType; > explicit ParameterizedTestFactory(ParamType parameter) : > parameter_(parameter) {} > virtual Test* CreateTest() { > TestClass::SetParam(¶meter_); > return new TestClass(); > } > > private: > const ParamType parameter_; > > ParameterizedTestFactory(ParameterizedTestFactory const &); void operator=(ParameterizedTestFactory const &); >}; > > > > > >template <class ParamType> >class TestMetaFactoryBase { > public: > virtual ~TestMetaFactoryBase() {} > > virtual TestFactoryBase* CreateTestFactory(ParamType parameter) = 0; >}; ># 10323 "../gtest_contrib/gtest/gtest.h" >template <class TestCase> >class TestMetaFactory > : public TestMetaFactoryBase<typename TestCase::ParamType> { > public: > typedef typename TestCase::ParamType ParamType; > > TestMetaFactory() {} > > virtual TestFactoryBase* CreateTestFactory(ParamType parameter) { > return new ParameterizedTestFactory<TestCase>(parameter); > } > > private: > TestMetaFactory(TestMetaFactory const &); void operator=(TestMetaFactory const &); >}; ># 10349 "../gtest_contrib/gtest/gtest.h" >class ParameterizedTestCaseInfoBase { > public: > virtual ~ParameterizedTestCaseInfoBase() {} > > > virtual const string& GetTestCaseName() const = 0; > > virtual TypeId GetTestCaseTypeId() const = 0; > > > > > virtual void RegisterTests() = 0; > > protected: > ParameterizedTestCaseInfoBase() {} > > private: > ParameterizedTestCaseInfoBase(ParameterizedTestCaseInfoBase const &); void operator=(ParameterizedTestCaseInfoBase const &); >}; ># 10377 "../gtest_contrib/gtest/gtest.h" >template <class TestCase> >class ParameterizedTestCaseInfo : public ParameterizedTestCaseInfoBase { > public: > > > > typedef typename TestCase::ParamType ParamType; > > typedef ParamGenerator<ParamType>(GeneratorCreationFunc)(); > > explicit ParameterizedTestCaseInfo(const char* name) > : test_case_name_(name) {} > > > virtual const string& GetTestCaseName() const { return test_case_name_; } > > virtual TypeId GetTestCaseTypeId() const { return GetTypeId<TestCase>(); } > > > > > > > void AddTestPattern(const char* test_case_name, > const char* test_base_name, > TestMetaFactoryBase<ParamType>* meta_factory) { > tests_.push_back(linked_ptr<TestInfo>(new TestInfo(test_case_name, > test_base_name, > meta_factory))); > } > > > int AddTestCaseInstantiation(const string& instantiation_name, > GeneratorCreationFunc* func, > const char* , > int ) { > instantiations_.push_back(::std::make_pair(instantiation_name, func)); > return 0; > } > > > > > > virtual void RegisterTests() { > for (typename TestInfoContainer::iterator test_it = tests_.begin(); > test_it != tests_.end(); ++test_it) { > linked_ptr<TestInfo> test_info = *test_it; > for (typename InstantiationContainer::iterator gen_it = > instantiations_.begin(); gen_it != instantiations_.end(); > ++gen_it) { > const string& instantiation_name = gen_it->first; > ParamGenerator<ParamType> generator((*gen_it->second)()); > > Message test_case_name_stream; > if ( !instantiation_name.empty() ) > test_case_name_stream << instantiation_name << "/"; > test_case_name_stream << test_info->test_case_base_name; > > int i = 0; > for (typename ParamGenerator<ParamType>::iterator param_it = > generator.begin(); > param_it != generator.end(); ++param_it, ++i) { > Message test_name_stream; > test_name_stream << test_info->test_base_name << "/" << i; > MakeAndRegisterTestInfo( > test_case_name_stream.GetString().c_str(), > test_name_stream.GetString().c_str(), > __null, > PrintToString(*param_it).c_str(), > GetTestCaseTypeId(), > TestCase::SetUpTestCase, > TestCase::TearDownTestCase, > test_info->test_meta_factory->CreateTestFactory(*param_it)); > } > } > } > } > > private: > > > struct TestInfo { > TestInfo(const char* a_test_case_base_name, > const char* a_test_base_name, > TestMetaFactoryBase<ParamType>* a_test_meta_factory) : > test_case_base_name(a_test_case_base_name), > test_base_name(a_test_base_name), > test_meta_factory(a_test_meta_factory) {} > > const string test_case_base_name; > const string test_base_name; > const scoped_ptr<TestMetaFactoryBase<ParamType> > test_meta_factory; > }; > typedef ::std::vector<linked_ptr<TestInfo> > TestInfoContainer; > > > typedef ::std::vector<std::pair<string, GeneratorCreationFunc*> > > InstantiationContainer; > > const string test_case_name_; > TestInfoContainer tests_; > InstantiationContainer instantiations_; > > ParameterizedTestCaseInfo(ParameterizedTestCaseInfo const &); void operator=(ParameterizedTestCaseInfo const &); >}; > > > > > > > >class ParameterizedTestCaseRegistry { > public: > ParameterizedTestCaseRegistry() {} > ~ParameterizedTestCaseRegistry() { > for (TestCaseInfoContainer::iterator it = test_case_infos_.begin(); > it != test_case_infos_.end(); ++it) { > delete *it; > } > } > > > > template <class TestCase> > ParameterizedTestCaseInfo<TestCase>* GetTestCasePatternHolder( > const char* test_case_name, > const char* file, > int line) { > ParameterizedTestCaseInfo<TestCase>* typed_test_info = __null; > for (TestCaseInfoContainer::iterator it = test_case_infos_.begin(); > it != test_case_infos_.end(); ++it) { > if ((*it)->GetTestCaseName() == test_case_name) { > if ((*it)->GetTestCaseTypeId() != GetTypeId<TestCase>()) { > > > > ReportInvalidTestCaseType(test_case_name, file, line); > posix::Abort(); > } else { > > > > typed_test_info = CheckedDowncastToActualType< > ParameterizedTestCaseInfo<TestCase> >(*it); > } > break; > } > } > if (typed_test_info == __null) { > typed_test_info = new ParameterizedTestCaseInfo<TestCase>(test_case_name); > test_case_infos_.push_back(typed_test_info); > } > return typed_test_info; > } > void RegisterTests() { > for (TestCaseInfoContainer::iterator it = test_case_infos_.begin(); > it != test_case_infos_.end(); ++it) { > (*it)->RegisterTests(); > } > } > > private: > typedef ::std::vector<ParameterizedTestCaseInfoBase*> TestCaseInfoContainer; > > TestCaseInfoContainer test_case_infos_; > > ParameterizedTestCaseRegistry(ParameterizedTestCaseRegistry const &); void operator=(ParameterizedTestCaseRegistry const &); >}; > >} >} ># 10600 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PARAM_UTIL_GENERATED_H_ > > > > > > > >namespace testing { > > > >template <typename ForwardIterator> >internal::ParamGenerator< > typename ::testing::internal::IteratorTraits<ForwardIterator>::value_type> >ValuesIn(ForwardIterator begin, ForwardIterator end); > >template <typename T, size_t N> >internal::ParamGenerator<T> ValuesIn(const T (&array)[N]); > >template <class Container> >internal::ParamGenerator<typename Container::value_type> ValuesIn( > const Container& container); > >namespace internal { > > >template <typename T1> >class ValueArray1 { > public: > explicit ValueArray1(T1 v1) : v1_(v1) {} > > template <typename T> > operator ParamGenerator<T>() const { return ValuesIn(&v1_, &v1_ + 1); } > > private: > > void operator=(const ValueArray1& other); > > const T1 v1_; >}; > >template <typename T1, typename T2> >class ValueArray2 { > public: > ValueArray2(T1 v1, T2 v2) : v1_(v1), v2_(v2) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray2& other); > > const T1 v1_; > const T2 v2_; >}; > >template <typename T1, typename T2, typename T3> >class ValueArray3 { > public: > ValueArray3(T1 v1, T2 v2, T3 v3) : v1_(v1), v2_(v2), v3_(v3) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray3& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; >}; > >template <typename T1, typename T2, typename T3, typename T4> >class ValueArray4 { > public: > ValueArray4(T1 v1, T2 v2, T3 v3, T4 v4) : v1_(v1), v2_(v2), v3_(v3), > v4_(v4) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray4& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5> >class ValueArray5 { > public: > ValueArray5(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5) : v1_(v1), v2_(v2), v3_(v3), > v4_(v4), v5_(v5) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray5& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6> >class ValueArray6 { > public: > ValueArray6(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6) : v1_(v1), v2_(v2), > v3_(v3), v4_(v4), v5_(v5), v6_(v6) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray6& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7> >class ValueArray7 { > public: > ValueArray7(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7) : v1_(v1), > v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray7& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8> >class ValueArray8 { > public: > ValueArray8(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, > T8 v8) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray8& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9> >class ValueArray9 { > public: > ValueArray9(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, > T9 v9) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray9& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10> >class ValueArray10 { > public: > ValueArray10(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray10& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11> >class ValueArray11 { > public: > ValueArray11(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), > v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray11& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12> >class ValueArray12 { > public: > ValueArray12(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), > v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray12& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13> >class ValueArray13 { > public: > ValueArray13(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), > v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), > v12_(v12), v13_(v13) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray13& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14> >class ValueArray14 { > public: > ValueArray14(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14) : v1_(v1), v2_(v2), v3_(v3), > v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray14& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15> >class ValueArray15 { > public: > ValueArray15(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15) : v1_(v1), v2_(v2), > v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray15& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16> >class ValueArray16 { > public: > ValueArray16(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16) : v1_(v1), > v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), > v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), > v16_(v16) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray16& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17> >class ValueArray17 { > public: > ValueArray17(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, > T17 v17) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray17& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18> >class ValueArray18 { > public: > ValueArray18(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17), v18_(v18) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray18& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19> >class ValueArray19 { > public: > ValueArray19(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), > v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), > v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray19& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20> >class ValueArray20 { > public: > ValueArray20(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), > v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), > v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), > v19_(v19), v20_(v20) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray20& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21> >class ValueArray21 { > public: > ValueArray21(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), > v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), > v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), > v18_(v18), v19_(v19), v20_(v20), v21_(v21) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray21& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22> >class ValueArray22 { > public: > ValueArray22(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22) : v1_(v1), v2_(v2), v3_(v3), > v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), > v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray22& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23> >class ValueArray23 { > public: > ValueArray23(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23) : v1_(v1), v2_(v2), > v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), > v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), > v23_(v23) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, > v23_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray23& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24> >class ValueArray24 { > public: > ValueArray24(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24) : v1_(v1), > v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), > v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), > v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), > v22_(v22), v23_(v23), v24_(v24) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray24& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25> >class ValueArray25 { > public: > ValueArray25(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, > T25 v25) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), > v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray25& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26> >class ValueArray26 { > public: > ValueArray26(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), > v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray26& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27> >class ValueArray27 { > public: > ValueArray27(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), > v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), > v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), > v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), > v26_(v26), v27_(v27) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray27& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28> >class ValueArray28 { > public: > ValueArray28(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), > v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), > v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), > v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), > v25_(v25), v26_(v26), v27_(v27), v28_(v28) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray28& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29> >class ValueArray29 { > public: > ValueArray29(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), > v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), > v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), > v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), > v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray29& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30> >class ValueArray30 { > public: > ValueArray30(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30) : v1_(v1), v2_(v2), v3_(v3), > v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), > v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), > v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), > v29_(v29), v30_(v30) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray30& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31> >class ValueArray31 { > public: > ValueArray31(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31) : v1_(v1), v2_(v2), > v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), > v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), > v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), > v29_(v29), v30_(v30), v31_(v31) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray31& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32> >class ValueArray32 { > public: > ValueArray32(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32) : v1_(v1), > v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), > v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), > v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), > v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), > v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray32& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33> >class ValueArray33 { > public: > ValueArray33(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, > T33 v33) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), > v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), > v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), > v33_(v33) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray33& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34> >class ValueArray34 { > public: > ValueArray34(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), > v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), > v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), > v33_(v33), v34_(v34) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray34& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35> >class ValueArray35 { > public: > ValueArray35(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), > v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), > v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), > v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), > v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), > v32_(v32), v33_(v33), v34_(v34), v35_(v35) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, > v35_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray35& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36> >class ValueArray36 { > public: > ValueArray36(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), > v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), > v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), > v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), > v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), > v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), v36_(v36) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray36& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37> >class ValueArray37 { > public: > ValueArray37(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), > v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), > v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), > v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), > v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), > v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), > v36_(v36), v37_(v37) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray37& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38> >class ValueArray38 { > public: > ValueArray38(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38) : v1_(v1), v2_(v2), v3_(v3), > v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), > v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), > v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), > v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), > v35_(v35), v36_(v36), v37_(v37), v38_(v38) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray38& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39> >class ValueArray39 { > public: > ValueArray39(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39) : v1_(v1), v2_(v2), > v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), > v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), > v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), > v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), > v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray39& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40> >class ValueArray40 { > public: > ValueArray40(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40) : v1_(v1), > v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), > v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), > v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), > v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), > v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), > v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), > v40_(v40) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray40& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41> >class ValueArray41 { > public: > ValueArray41(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, > T41 v41) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), > v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), > v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), > v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), > v39_(v39), v40_(v40), v41_(v41) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray41& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42> >class ValueArray42 { > public: > ValueArray42(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), > v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), > v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), > v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), > v39_(v39), v40_(v40), v41_(v41), v42_(v42) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_, v42_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray42& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; > const T42 v42_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43> >class ValueArray43 { > public: > ValueArray43(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), > v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), > v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), > v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), > v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), > v32_(v32), v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), > v38_(v38), v39_(v39), v40_(v40), v41_(v41), v42_(v42), v43_(v43) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray43& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; > const T42 v42_; > const T43 v43_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44> >class ValueArray44 { > public: > ValueArray44(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43, T44 v44) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), > v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), > v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), v18_(v18), > v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), v24_(v24), > v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), v30_(v30), > v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), v36_(v36), > v37_(v37), v38_(v38), v39_(v39), v40_(v40), v41_(v41), v42_(v42), > v43_(v43), v44_(v44) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray44& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; > const T42 v42_; > const T43 v43_; > const T44 v44_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45> >class ValueArray45 { > public: > ValueArray45(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43, T44 v44, T45 v45) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), > v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), v11_(v11), > v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), v17_(v17), > v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), v23_(v23), > v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), v29_(v29), > v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), v35_(v35), > v36_(v36), v37_(v37), v38_(v38), v39_(v39), v40_(v40), v41_(v41), > v42_(v42), v43_(v43), v44_(v44), v45_(v45) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray45& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; > const T42 v42_; > const T43 v43_; > const T44 v44_; > const T45 v45_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46> >class ValueArray46 { > public: > ValueArray46(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43, T44 v44, T45 v45, T46 v46) : v1_(v1), v2_(v2), v3_(v3), > v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), > v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), > v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), > v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), > v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), v40_(v40), > v41_(v41), v42_(v42), v43_(v43), v44_(v44), v45_(v45), v46_(v46) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray46& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; > const T42 v42_; > const T43 v43_; > const T44 v44_; > const T45 v45_; > const T46 v46_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47> >class ValueArray47 { > public: > ValueArray47(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47) : v1_(v1), v2_(v2), > v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), v10_(v10), > v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), v16_(v16), > v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), v22_(v22), > v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), v28_(v28), > v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), v34_(v34), > v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), v40_(v40), > v41_(v41), v42_(v42), v43_(v43), v44_(v44), v45_(v45), v46_(v46), > v47_(v47) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, > v47_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray47& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; > const T42 v42_; > const T43 v43_; > const T44 v44_; > const T45 v45_; > const T46 v46_; > const T47 v47_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48> >class ValueArray48 { > public: > ValueArray48(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, T48 v48) : v1_(v1), > v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), v8_(v8), v9_(v9), > v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), v15_(v15), > v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), v21_(v21), > v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), v27_(v27), > v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), v33_(v33), > v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), v39_(v39), > v40_(v40), v41_(v41), v42_(v42), v43_(v43), v44_(v44), v45_(v45), > v46_(v46), v47_(v47), v48_(v48) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, v47_, > v48_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray48& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; > const T42 v42_; > const T43 v43_; > const T44 v44_; > const T45 v45_; > const T46 v46_; > const T47 v47_; > const T48 v48_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48, typename T49> >class ValueArray49 { > public: > ValueArray49(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, T48 v48, > T49 v49) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), > v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), > v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), > v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), > v39_(v39), v40_(v40), v41_(v41), v42_(v42), v43_(v43), v44_(v44), > v45_(v45), v46_(v46), v47_(v47), v48_(v48), v49_(v49) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, v47_, > v48_, v49_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray49& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; > const T42 v42_; > const T43 v43_; > const T44 v44_; > const T45 v45_; > const T46 v46_; > const T47 v47_; > const T48 v48_; > const T49 v49_; >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48, typename T49, typename T50> >class ValueArray50 { > public: > ValueArray50(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, T48 v48, T49 v49, > T50 v50) : v1_(v1), v2_(v2), v3_(v3), v4_(v4), v5_(v5), v6_(v6), v7_(v7), > v8_(v8), v9_(v9), v10_(v10), v11_(v11), v12_(v12), v13_(v13), v14_(v14), > v15_(v15), v16_(v16), v17_(v17), v18_(v18), v19_(v19), v20_(v20), > v21_(v21), v22_(v22), v23_(v23), v24_(v24), v25_(v25), v26_(v26), > v27_(v27), v28_(v28), v29_(v29), v30_(v30), v31_(v31), v32_(v32), > v33_(v33), v34_(v34), v35_(v35), v36_(v36), v37_(v37), v38_(v38), > v39_(v39), v40_(v40), v41_(v41), v42_(v42), v43_(v43), v44_(v44), > v45_(v45), v46_(v46), v47_(v47), v48_(v48), v49_(v49), v50_(v50) {} > > template <typename T> > operator ParamGenerator<T>() const { > const T array[] = {v1_, v2_, v3_, v4_, v5_, v6_, v7_, v8_, v9_, v10_, v11_, > v12_, v13_, v14_, v15_, v16_, v17_, v18_, v19_, v20_, v21_, v22_, v23_, > v24_, v25_, v26_, v27_, v28_, v29_, v30_, v31_, v32_, v33_, v34_, v35_, > v36_, v37_, v38_, v39_, v40_, v41_, v42_, v43_, v44_, v45_, v46_, v47_, > v48_, v49_, v50_}; > return ValuesIn(array); > } > > private: > > void operator=(const ValueArray50& other); > > const T1 v1_; > const T2 v2_; > const T3 v3_; > const T4 v4_; > const T5 v5_; > const T6 v6_; > const T7 v7_; > const T8 v8_; > const T9 v9_; > const T10 v10_; > const T11 v11_; > const T12 v12_; > const T13 v13_; > const T14 v14_; > const T15 v15_; > const T16 v16_; > const T17 v17_; > const T18 v18_; > const T19 v19_; > const T20 v20_; > const T21 v21_; > const T22 v22_; > const T23 v23_; > const T24 v24_; > const T25 v25_; > const T26 v26_; > const T27 v27_; > const T28 v28_; > const T29 v29_; > const T30 v30_; > const T31 v31_; > const T32 v32_; > const T33 v33_; > const T34 v34_; > const T35 v35_; > const T36 v36_; > const T37 v37_; > const T38 v38_; > const T39 v39_; > const T40 v40_; > const T41 v41_; > const T42 v42_; > const T43 v43_; > const T44 v44_; > const T45 v45_; > const T46 v46_; > const T47 v47_; > const T48 v48_; > const T49 v49_; > const T50 v50_; >}; > > > > > > > >template <typename T1, typename T2> >class CartesianProductGenerator2 > : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2> > { > public: > typedef ::std::tr1::tuple<T1, T2> ParamType; > > CartesianProductGenerator2(const ParamGenerator<T1>& g1, > const ParamGenerator<T2>& g2) > : g1_(g1), g2_(g2) {} > virtual ~CartesianProductGenerator2() {} > > virtual ParamIteratorInterface<ParamType>* Begin() const { > return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin()); > } > virtual ParamIteratorInterface<ParamType>* End() const { > return new Iterator(this, g1_, g1_.end(), g2_, g2_.end()); > } > > private: > class Iterator : public ParamIteratorInterface<ParamType> { > public: > Iterator(const ParamGeneratorInterface<ParamType>* base, > const ParamGenerator<T1>& g1, > const typename ParamGenerator<T1>::iterator& current1, > const ParamGenerator<T2>& g2, > const typename ParamGenerator<T2>::iterator& current2) > : base_(base), > begin1_(g1.begin()), end1_(g1.end()), current1_(current1), > begin2_(g2.begin()), end2_(g2.end()), current2_(current2) { > ComputeCurrentValue(); > } > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const { > return base_; > } > > > virtual void Advance() { > ((!AtEnd()) ? static_cast<void> (0) : __assert_fail ("!AtEnd()", "../gtest_contrib/gtest/gtest.h", 13427, __PRETTY_FUNCTION__)); > ++current2_; > if (current2_ == end2_) { > current2_ = begin2_; > ++current1_; > } > ComputeCurrentValue(); > } > virtual ParamIteratorInterface<ParamType>* Clone() const { > return new Iterator(*this); > } > virtual const ParamType* Current() const { return ¤t_value_; } > virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 13442).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const Iterator* typed_other = > CheckedDowncastToActualType<const Iterator>(&other); > > > > return (AtEnd() && typed_other->AtEnd()) || > ( > current1_ == typed_other->current1_ && > current2_ == typed_other->current2_); > } > > private: > Iterator(const Iterator& other) > : base_(other.base_), > begin1_(other.begin1_), > end1_(other.end1_), > current1_(other.current1_), > begin2_(other.begin2_), > end2_(other.end2_), > current2_(other.current2_) { > ComputeCurrentValue(); > } > > void ComputeCurrentValue() { > if (!AtEnd()) > current_value_ = ParamType(*current1_, *current2_); > } > bool AtEnd() const { > > > return > current1_ == end1_ || > current2_ == end2_; > } > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<ParamType>* const base_; > > > const typename ParamGenerator<T1>::iterator begin1_; > const typename ParamGenerator<T1>::iterator end1_; > typename ParamGenerator<T1>::iterator current1_; > const typename ParamGenerator<T2>::iterator begin2_; > const typename ParamGenerator<T2>::iterator end2_; > typename ParamGenerator<T2>::iterator current2_; > ParamType current_value_; > }; > > > void operator=(const CartesianProductGenerator2& other); > > const ParamGenerator<T1> g1_; > const ParamGenerator<T2> g2_; >}; > > >template <typename T1, typename T2, typename T3> >class CartesianProductGenerator3 > : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3> > { > public: > typedef ::std::tr1::tuple<T1, T2, T3> ParamType; > > CartesianProductGenerator3(const ParamGenerator<T1>& g1, > const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3) > : g1_(g1), g2_(g2), g3_(g3) {} > virtual ~CartesianProductGenerator3() {} > > virtual ParamIteratorInterface<ParamType>* Begin() const { > return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, > g3_.begin()); > } > virtual ParamIteratorInterface<ParamType>* End() const { > return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end()); > } > > private: > class Iterator : public ParamIteratorInterface<ParamType> { > public: > Iterator(const ParamGeneratorInterface<ParamType>* base, > const ParamGenerator<T1>& g1, > const typename ParamGenerator<T1>::iterator& current1, > const ParamGenerator<T2>& g2, > const typename ParamGenerator<T2>::iterator& current2, > const ParamGenerator<T3>& g3, > const typename ParamGenerator<T3>::iterator& current3) > : base_(base), > begin1_(g1.begin()), end1_(g1.end()), current1_(current1), > begin2_(g2.begin()), end2_(g2.end()), current2_(current2), > begin3_(g3.begin()), end3_(g3.end()), current3_(current3) { > ComputeCurrentValue(); > } > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const { > return base_; > } > > > virtual void Advance() { > ((!AtEnd()) ? static_cast<void> (0) : __assert_fail ("!AtEnd()", "../gtest_contrib/gtest/gtest.h", 13546, __PRETTY_FUNCTION__)); > ++current3_; > if (current3_ == end3_) { > current3_ = begin3_; > ++current2_; > } > if (current2_ == end2_) { > current2_ = begin2_; > ++current1_; > } > ComputeCurrentValue(); > } > virtual ParamIteratorInterface<ParamType>* Clone() const { > return new Iterator(*this); > } > virtual const ParamType* Current() const { return ¤t_value_; } > virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 13565).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const Iterator* typed_other = > CheckedDowncastToActualType<const Iterator>(&other); > > > > return (AtEnd() && typed_other->AtEnd()) || > ( > current1_ == typed_other->current1_ && > current2_ == typed_other->current2_ && > current3_ == typed_other->current3_); > } > > private: > Iterator(const Iterator& other) > : base_(other.base_), > begin1_(other.begin1_), > end1_(other.end1_), > current1_(other.current1_), > begin2_(other.begin2_), > end2_(other.end2_), > current2_(other.current2_), > begin3_(other.begin3_), > end3_(other.end3_), > current3_(other.current3_) { > ComputeCurrentValue(); > } > > void ComputeCurrentValue() { > if (!AtEnd()) > current_value_ = ParamType(*current1_, *current2_, *current3_); > } > bool AtEnd() const { > > > return > current1_ == end1_ || > current2_ == end2_ || > current3_ == end3_; > } > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<ParamType>* const base_; > > > const typename ParamGenerator<T1>::iterator begin1_; > const typename ParamGenerator<T1>::iterator end1_; > typename ParamGenerator<T1>::iterator current1_; > const typename ParamGenerator<T2>::iterator begin2_; > const typename ParamGenerator<T2>::iterator end2_; > typename ParamGenerator<T2>::iterator current2_; > const typename ParamGenerator<T3>::iterator begin3_; > const typename ParamGenerator<T3>::iterator end3_; > typename ParamGenerator<T3>::iterator current3_; > ParamType current_value_; > }; > > > void operator=(const CartesianProductGenerator3& other); > > const ParamGenerator<T1> g1_; > const ParamGenerator<T2> g2_; > const ParamGenerator<T3> g3_; >}; > > >template <typename T1, typename T2, typename T3, typename T4> >class CartesianProductGenerator4 > : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4> > { > public: > typedef ::std::tr1::tuple<T1, T2, T3, T4> ParamType; > > CartesianProductGenerator4(const ParamGenerator<T1>& g1, > const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3, > const ParamGenerator<T4>& g4) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4) {} > virtual ~CartesianProductGenerator4() {} > > virtual ParamIteratorInterface<ParamType>* Begin() const { > return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, > g3_.begin(), g4_, g4_.begin()); > } > virtual ParamIteratorInterface<ParamType>* End() const { > return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), > g4_, g4_.end()); > } > > private: > class Iterator : public ParamIteratorInterface<ParamType> { > public: > Iterator(const ParamGeneratorInterface<ParamType>* base, > const ParamGenerator<T1>& g1, > const typename ParamGenerator<T1>::iterator& current1, > const ParamGenerator<T2>& g2, > const typename ParamGenerator<T2>::iterator& current2, > const ParamGenerator<T3>& g3, > const typename ParamGenerator<T3>::iterator& current3, > const ParamGenerator<T4>& g4, > const typename ParamGenerator<T4>::iterator& current4) > : base_(base), > begin1_(g1.begin()), end1_(g1.end()), current1_(current1), > begin2_(g2.begin()), end2_(g2.end()), current2_(current2), > begin3_(g3.begin()), end3_(g3.end()), current3_(current3), > begin4_(g4.begin()), end4_(g4.end()), current4_(current4) { > ComputeCurrentValue(); > } > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const { > return base_; > } > > > virtual void Advance() { > ((!AtEnd()) ? static_cast<void> (0) : __assert_fail ("!AtEnd()", "../gtest_contrib/gtest/gtest.h", 13683, __PRETTY_FUNCTION__)); > ++current4_; > if (current4_ == end4_) { > current4_ = begin4_; > ++current3_; > } > if (current3_ == end3_) { > current3_ = begin3_; > ++current2_; > } > if (current2_ == end2_) { > current2_ = begin2_; > ++current1_; > } > ComputeCurrentValue(); > } > virtual ParamIteratorInterface<ParamType>* Clone() const { > return new Iterator(*this); > } > virtual const ParamType* Current() const { return ¤t_value_; } > virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 13706).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const Iterator* typed_other = > CheckedDowncastToActualType<const Iterator>(&other); > > > > return (AtEnd() && typed_other->AtEnd()) || > ( > current1_ == typed_other->current1_ && > current2_ == typed_other->current2_ && > current3_ == typed_other->current3_ && > current4_ == typed_other->current4_); > } > > private: > Iterator(const Iterator& other) > : base_(other.base_), > begin1_(other.begin1_), > end1_(other.end1_), > current1_(other.current1_), > begin2_(other.begin2_), > end2_(other.end2_), > current2_(other.current2_), > begin3_(other.begin3_), > end3_(other.end3_), > current3_(other.current3_), > begin4_(other.begin4_), > end4_(other.end4_), > current4_(other.current4_) { > ComputeCurrentValue(); > } > > void ComputeCurrentValue() { > if (!AtEnd()) > current_value_ = ParamType(*current1_, *current2_, *current3_, > *current4_); > } > bool AtEnd() const { > > > return > current1_ == end1_ || > current2_ == end2_ || > current3_ == end3_ || > current4_ == end4_; > } > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<ParamType>* const base_; > > > const typename ParamGenerator<T1>::iterator begin1_; > const typename ParamGenerator<T1>::iterator end1_; > typename ParamGenerator<T1>::iterator current1_; > const typename ParamGenerator<T2>::iterator begin2_; > const typename ParamGenerator<T2>::iterator end2_; > typename ParamGenerator<T2>::iterator current2_; > const typename ParamGenerator<T3>::iterator begin3_; > const typename ParamGenerator<T3>::iterator end3_; > typename ParamGenerator<T3>::iterator current3_; > const typename ParamGenerator<T4>::iterator begin4_; > const typename ParamGenerator<T4>::iterator end4_; > typename ParamGenerator<T4>::iterator current4_; > ParamType current_value_; > }; > > > void operator=(const CartesianProductGenerator4& other); > > const ParamGenerator<T1> g1_; > const ParamGenerator<T2> g2_; > const ParamGenerator<T3> g3_; > const ParamGenerator<T4> g4_; >}; > > >template <typename T1, typename T2, typename T3, typename T4, typename T5> >class CartesianProductGenerator5 > : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5> > { > public: > typedef ::std::tr1::tuple<T1, T2, T3, T4, T5> ParamType; > > CartesianProductGenerator5(const ParamGenerator<T1>& g1, > const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3, > const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5) {} > virtual ~CartesianProductGenerator5() {} > > virtual ParamIteratorInterface<ParamType>* Begin() const { > return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, > g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin()); > } > virtual ParamIteratorInterface<ParamType>* End() const { > return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), > g4_, g4_.end(), g5_, g5_.end()); > } > > private: > class Iterator : public ParamIteratorInterface<ParamType> { > public: > Iterator(const ParamGeneratorInterface<ParamType>* base, > const ParamGenerator<T1>& g1, > const typename ParamGenerator<T1>::iterator& current1, > const ParamGenerator<T2>& g2, > const typename ParamGenerator<T2>::iterator& current2, > const ParamGenerator<T3>& g3, > const typename ParamGenerator<T3>::iterator& current3, > const ParamGenerator<T4>& g4, > const typename ParamGenerator<T4>::iterator& current4, > const ParamGenerator<T5>& g5, > const typename ParamGenerator<T5>::iterator& current5) > : base_(base), > begin1_(g1.begin()), end1_(g1.end()), current1_(current1), > begin2_(g2.begin()), end2_(g2.end()), current2_(current2), > begin3_(g3.begin()), end3_(g3.end()), current3_(current3), > begin4_(g4.begin()), end4_(g4.end()), current4_(current4), > begin5_(g5.begin()), end5_(g5.end()), current5_(current5) { > ComputeCurrentValue(); > } > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const { > return base_; > } > > > virtual void Advance() { > ((!AtEnd()) ? static_cast<void> (0) : __assert_fail ("!AtEnd()", "../gtest_contrib/gtest/gtest.h", 13837, __PRETTY_FUNCTION__)); > ++current5_; > if (current5_ == end5_) { > current5_ = begin5_; > ++current4_; > } > if (current4_ == end4_) { > current4_ = begin4_; > ++current3_; > } > if (current3_ == end3_) { > current3_ = begin3_; > ++current2_; > } > if (current2_ == end2_) { > current2_ = begin2_; > ++current1_; > } > ComputeCurrentValue(); > } > virtual ParamIteratorInterface<ParamType>* Clone() const { > return new Iterator(*this); > } > virtual const ParamType* Current() const { return ¤t_value_; } > virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 13864).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const Iterator* typed_other = > CheckedDowncastToActualType<const Iterator>(&other); > > > > return (AtEnd() && typed_other->AtEnd()) || > ( > current1_ == typed_other->current1_ && > current2_ == typed_other->current2_ && > current3_ == typed_other->current3_ && > current4_ == typed_other->current4_ && > current5_ == typed_other->current5_); > } > > private: > Iterator(const Iterator& other) > : base_(other.base_), > begin1_(other.begin1_), > end1_(other.end1_), > current1_(other.current1_), > begin2_(other.begin2_), > end2_(other.end2_), > current2_(other.current2_), > begin3_(other.begin3_), > end3_(other.end3_), > current3_(other.current3_), > begin4_(other.begin4_), > end4_(other.end4_), > current4_(other.current4_), > begin5_(other.begin5_), > end5_(other.end5_), > current5_(other.current5_) { > ComputeCurrentValue(); > } > > void ComputeCurrentValue() { > if (!AtEnd()) > current_value_ = ParamType(*current1_, *current2_, *current3_, > *current4_, *current5_); > } > bool AtEnd() const { > > > return > current1_ == end1_ || > current2_ == end2_ || > current3_ == end3_ || > current4_ == end4_ || > current5_ == end5_; > } > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<ParamType>* const base_; > > > const typename ParamGenerator<T1>::iterator begin1_; > const typename ParamGenerator<T1>::iterator end1_; > typename ParamGenerator<T1>::iterator current1_; > const typename ParamGenerator<T2>::iterator begin2_; > const typename ParamGenerator<T2>::iterator end2_; > typename ParamGenerator<T2>::iterator current2_; > const typename ParamGenerator<T3>::iterator begin3_; > const typename ParamGenerator<T3>::iterator end3_; > typename ParamGenerator<T3>::iterator current3_; > const typename ParamGenerator<T4>::iterator begin4_; > const typename ParamGenerator<T4>::iterator end4_; > typename ParamGenerator<T4>::iterator current4_; > const typename ParamGenerator<T5>::iterator begin5_; > const typename ParamGenerator<T5>::iterator end5_; > typename ParamGenerator<T5>::iterator current5_; > ParamType current_value_; > }; > > > void operator=(const CartesianProductGenerator5& other); > > const ParamGenerator<T1> g1_; > const ParamGenerator<T2> g2_; > const ParamGenerator<T3> g3_; > const ParamGenerator<T4> g4_; > const ParamGenerator<T5> g5_; >}; > > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6> >class CartesianProductGenerator6 > : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5, > T6> > { > public: > typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6> ParamType; > > CartesianProductGenerator6(const ParamGenerator<T1>& g1, > const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3, > const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5, > const ParamGenerator<T6>& g6) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6) {} > virtual ~CartesianProductGenerator6() {} > > virtual ParamIteratorInterface<ParamType>* Begin() const { > return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, > g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin()); > } > virtual ParamIteratorInterface<ParamType>* End() const { > return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), > g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end()); > } > > private: > class Iterator : public ParamIteratorInterface<ParamType> { > public: > Iterator(const ParamGeneratorInterface<ParamType>* base, > const ParamGenerator<T1>& g1, > const typename ParamGenerator<T1>::iterator& current1, > const ParamGenerator<T2>& g2, > const typename ParamGenerator<T2>::iterator& current2, > const ParamGenerator<T3>& g3, > const typename ParamGenerator<T3>::iterator& current3, > const ParamGenerator<T4>& g4, > const typename ParamGenerator<T4>::iterator& current4, > const ParamGenerator<T5>& g5, > const typename ParamGenerator<T5>::iterator& current5, > const ParamGenerator<T6>& g6, > const typename ParamGenerator<T6>::iterator& current6) > : base_(base), > begin1_(g1.begin()), end1_(g1.end()), current1_(current1), > begin2_(g2.begin()), end2_(g2.end()), current2_(current2), > begin3_(g3.begin()), end3_(g3.end()), current3_(current3), > begin4_(g4.begin()), end4_(g4.end()), current4_(current4), > begin5_(g5.begin()), end5_(g5.end()), current5_(current5), > begin6_(g6.begin()), end6_(g6.end()), current6_(current6) { > ComputeCurrentValue(); > } > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const { > return base_; > } > > > virtual void Advance() { > ((!AtEnd()) ? static_cast<void> (0) : __assert_fail ("!AtEnd()", "../gtest_contrib/gtest/gtest.h", 14010, __PRETTY_FUNCTION__)); > ++current6_; > if (current6_ == end6_) { > current6_ = begin6_; > ++current5_; > } > if (current5_ == end5_) { > current5_ = begin5_; > ++current4_; > } > if (current4_ == end4_) { > current4_ = begin4_; > ++current3_; > } > if (current3_ == end3_) { > current3_ = begin3_; > ++current2_; > } > if (current2_ == end2_) { > current2_ = begin2_; > ++current1_; > } > ComputeCurrentValue(); > } > virtual ParamIteratorInterface<ParamType>* Clone() const { > return new Iterator(*this); > } > virtual const ParamType* Current() const { return ¤t_value_; } > virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 14041).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const Iterator* typed_other = > CheckedDowncastToActualType<const Iterator>(&other); > > > > return (AtEnd() && typed_other->AtEnd()) || > ( > current1_ == typed_other->current1_ && > current2_ == typed_other->current2_ && > current3_ == typed_other->current3_ && > current4_ == typed_other->current4_ && > current5_ == typed_other->current5_ && > current6_ == typed_other->current6_); > } > > private: > Iterator(const Iterator& other) > : base_(other.base_), > begin1_(other.begin1_), > end1_(other.end1_), > current1_(other.current1_), > begin2_(other.begin2_), > end2_(other.end2_), > current2_(other.current2_), > begin3_(other.begin3_), > end3_(other.end3_), > current3_(other.current3_), > begin4_(other.begin4_), > end4_(other.end4_), > current4_(other.current4_), > begin5_(other.begin5_), > end5_(other.end5_), > current5_(other.current5_), > begin6_(other.begin6_), > end6_(other.end6_), > current6_(other.current6_) { > ComputeCurrentValue(); > } > > void ComputeCurrentValue() { > if (!AtEnd()) > current_value_ = ParamType(*current1_, *current2_, *current3_, > *current4_, *current5_, *current6_); > } > bool AtEnd() const { > > > return > current1_ == end1_ || > current2_ == end2_ || > current3_ == end3_ || > current4_ == end4_ || > current5_ == end5_ || > current6_ == end6_; > } > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<ParamType>* const base_; > > > const typename ParamGenerator<T1>::iterator begin1_; > const typename ParamGenerator<T1>::iterator end1_; > typename ParamGenerator<T1>::iterator current1_; > const typename ParamGenerator<T2>::iterator begin2_; > const typename ParamGenerator<T2>::iterator end2_; > typename ParamGenerator<T2>::iterator current2_; > const typename ParamGenerator<T3>::iterator begin3_; > const typename ParamGenerator<T3>::iterator end3_; > typename ParamGenerator<T3>::iterator current3_; > const typename ParamGenerator<T4>::iterator begin4_; > const typename ParamGenerator<T4>::iterator end4_; > typename ParamGenerator<T4>::iterator current4_; > const typename ParamGenerator<T5>::iterator begin5_; > const typename ParamGenerator<T5>::iterator end5_; > typename ParamGenerator<T5>::iterator current5_; > const typename ParamGenerator<T6>::iterator begin6_; > const typename ParamGenerator<T6>::iterator end6_; > typename ParamGenerator<T6>::iterator current6_; > ParamType current_value_; > }; > > > void operator=(const CartesianProductGenerator6& other); > > const ParamGenerator<T1> g1_; > const ParamGenerator<T2> g2_; > const ParamGenerator<T3> g3_; > const ParamGenerator<T4> g4_; > const ParamGenerator<T5> g5_; > const ParamGenerator<T6> g6_; >}; > > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7> >class CartesianProductGenerator7 > : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, > T7> > { > public: > typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7> ParamType; > > CartesianProductGenerator7(const ParamGenerator<T1>& g1, > const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3, > const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5, > const ParamGenerator<T6>& g6, const ParamGenerator<T7>& g7) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7) {} > virtual ~CartesianProductGenerator7() {} > > virtual ParamIteratorInterface<ParamType>* Begin() const { > return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, > g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_, > g7_.begin()); > } > virtual ParamIteratorInterface<ParamType>* End() const { > return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), > g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end()); > } > > private: > class Iterator : public ParamIteratorInterface<ParamType> { > public: > Iterator(const ParamGeneratorInterface<ParamType>* base, > const ParamGenerator<T1>& g1, > const typename ParamGenerator<T1>::iterator& current1, > const ParamGenerator<T2>& g2, > const typename ParamGenerator<T2>::iterator& current2, > const ParamGenerator<T3>& g3, > const typename ParamGenerator<T3>::iterator& current3, > const ParamGenerator<T4>& g4, > const typename ParamGenerator<T4>::iterator& current4, > const ParamGenerator<T5>& g5, > const typename ParamGenerator<T5>::iterator& current5, > const ParamGenerator<T6>& g6, > const typename ParamGenerator<T6>::iterator& current6, > const ParamGenerator<T7>& g7, > const typename ParamGenerator<T7>::iterator& current7) > : base_(base), > begin1_(g1.begin()), end1_(g1.end()), current1_(current1), > begin2_(g2.begin()), end2_(g2.end()), current2_(current2), > begin3_(g3.begin()), end3_(g3.end()), current3_(current3), > begin4_(g4.begin()), end4_(g4.end()), current4_(current4), > begin5_(g5.begin()), end5_(g5.end()), current5_(current5), > begin6_(g6.begin()), end6_(g6.end()), current6_(current6), > begin7_(g7.begin()), end7_(g7.end()), current7_(current7) { > ComputeCurrentValue(); > } > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const { > return base_; > } > > > virtual void Advance() { > ((!AtEnd()) ? static_cast<void> (0) : __assert_fail ("!AtEnd()", "../gtest_contrib/gtest/gtest.h", 14200, __PRETTY_FUNCTION__)); > ++current7_; > if (current7_ == end7_) { > current7_ = begin7_; > ++current6_; > } > if (current6_ == end6_) { > current6_ = begin6_; > ++current5_; > } > if (current5_ == end5_) { > current5_ = begin5_; > ++current4_; > } > if (current4_ == end4_) { > current4_ = begin4_; > ++current3_; > } > if (current3_ == end3_) { > current3_ = begin3_; > ++current2_; > } > if (current2_ == end2_) { > current2_ = begin2_; > ++current1_; > } > ComputeCurrentValue(); > } > virtual ParamIteratorInterface<ParamType>* Clone() const { > return new Iterator(*this); > } > virtual const ParamType* Current() const { return ¤t_value_; } > virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 14235).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const Iterator* typed_other = > CheckedDowncastToActualType<const Iterator>(&other); > > > > return (AtEnd() && typed_other->AtEnd()) || > ( > current1_ == typed_other->current1_ && > current2_ == typed_other->current2_ && > current3_ == typed_other->current3_ && > current4_ == typed_other->current4_ && > current5_ == typed_other->current5_ && > current6_ == typed_other->current6_ && > current7_ == typed_other->current7_); > } > > private: > Iterator(const Iterator& other) > : base_(other.base_), > begin1_(other.begin1_), > end1_(other.end1_), > current1_(other.current1_), > begin2_(other.begin2_), > end2_(other.end2_), > current2_(other.current2_), > begin3_(other.begin3_), > end3_(other.end3_), > current3_(other.current3_), > begin4_(other.begin4_), > end4_(other.end4_), > current4_(other.current4_), > begin5_(other.begin5_), > end5_(other.end5_), > current5_(other.current5_), > begin6_(other.begin6_), > end6_(other.end6_), > current6_(other.current6_), > begin7_(other.begin7_), > end7_(other.end7_), > current7_(other.current7_) { > ComputeCurrentValue(); > } > > void ComputeCurrentValue() { > if (!AtEnd()) > current_value_ = ParamType(*current1_, *current2_, *current3_, > *current4_, *current5_, *current6_, *current7_); > } > bool AtEnd() const { > > > return > current1_ == end1_ || > current2_ == end2_ || > current3_ == end3_ || > current4_ == end4_ || > current5_ == end5_ || > current6_ == end6_ || > current7_ == end7_; > } > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<ParamType>* const base_; > > > const typename ParamGenerator<T1>::iterator begin1_; > const typename ParamGenerator<T1>::iterator end1_; > typename ParamGenerator<T1>::iterator current1_; > const typename ParamGenerator<T2>::iterator begin2_; > const typename ParamGenerator<T2>::iterator end2_; > typename ParamGenerator<T2>::iterator current2_; > const typename ParamGenerator<T3>::iterator begin3_; > const typename ParamGenerator<T3>::iterator end3_; > typename ParamGenerator<T3>::iterator current3_; > const typename ParamGenerator<T4>::iterator begin4_; > const typename ParamGenerator<T4>::iterator end4_; > typename ParamGenerator<T4>::iterator current4_; > const typename ParamGenerator<T5>::iterator begin5_; > const typename ParamGenerator<T5>::iterator end5_; > typename ParamGenerator<T5>::iterator current5_; > const typename ParamGenerator<T6>::iterator begin6_; > const typename ParamGenerator<T6>::iterator end6_; > typename ParamGenerator<T6>::iterator current6_; > const typename ParamGenerator<T7>::iterator begin7_; > const typename ParamGenerator<T7>::iterator end7_; > typename ParamGenerator<T7>::iterator current7_; > ParamType current_value_; > }; > > > void operator=(const CartesianProductGenerator7& other); > > const ParamGenerator<T1> g1_; > const ParamGenerator<T2> g2_; > const ParamGenerator<T3> g3_; > const ParamGenerator<T4> g4_; > const ParamGenerator<T5> g5_; > const ParamGenerator<T6> g6_; > const ParamGenerator<T7> g7_; >}; > > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8> >class CartesianProductGenerator8 > : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, > T7, T8> > { > public: > typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8> ParamType; > > CartesianProductGenerator8(const ParamGenerator<T1>& g1, > const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3, > const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5, > const ParamGenerator<T6>& g6, const ParamGenerator<T7>& g7, > const ParamGenerator<T8>& g8) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), > g8_(g8) {} > virtual ~CartesianProductGenerator8() {} > > virtual ParamIteratorInterface<ParamType>* Begin() const { > return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, > g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_, > g7_.begin(), g8_, g8_.begin()); > } > virtual ParamIteratorInterface<ParamType>* End() const { > return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), > g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end(), g8_, > g8_.end()); > } > > private: > class Iterator : public ParamIteratorInterface<ParamType> { > public: > Iterator(const ParamGeneratorInterface<ParamType>* base, > const ParamGenerator<T1>& g1, > const typename ParamGenerator<T1>::iterator& current1, > const ParamGenerator<T2>& g2, > const typename ParamGenerator<T2>::iterator& current2, > const ParamGenerator<T3>& g3, > const typename ParamGenerator<T3>::iterator& current3, > const ParamGenerator<T4>& g4, > const typename ParamGenerator<T4>::iterator& current4, > const ParamGenerator<T5>& g5, > const typename ParamGenerator<T5>::iterator& current5, > const ParamGenerator<T6>& g6, > const typename ParamGenerator<T6>::iterator& current6, > const ParamGenerator<T7>& g7, > const typename ParamGenerator<T7>::iterator& current7, > const ParamGenerator<T8>& g8, > const typename ParamGenerator<T8>::iterator& current8) > : base_(base), > begin1_(g1.begin()), end1_(g1.end()), current1_(current1), > begin2_(g2.begin()), end2_(g2.end()), current2_(current2), > begin3_(g3.begin()), end3_(g3.end()), current3_(current3), > begin4_(g4.begin()), end4_(g4.end()), current4_(current4), > begin5_(g5.begin()), end5_(g5.end()), current5_(current5), > begin6_(g6.begin()), end6_(g6.end()), current6_(current6), > begin7_(g7.begin()), end7_(g7.end()), current7_(current7), > begin8_(g8.begin()), end8_(g8.end()), current8_(current8) { > ComputeCurrentValue(); > } > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const { > return base_; > } > > > virtual void Advance() { > ((!AtEnd()) ? static_cast<void> (0) : __assert_fail ("!AtEnd()", "../gtest_contrib/gtest/gtest.h", 14409, __PRETTY_FUNCTION__)); > ++current8_; > if (current8_ == end8_) { > current8_ = begin8_; > ++current7_; > } > if (current7_ == end7_) { > current7_ = begin7_; > ++current6_; > } > if (current6_ == end6_) { > current6_ = begin6_; > ++current5_; > } > if (current5_ == end5_) { > current5_ = begin5_; > ++current4_; > } > if (current4_ == end4_) { > current4_ = begin4_; > ++current3_; > } > if (current3_ == end3_) { > current3_ = begin3_; > ++current2_; > } > if (current2_ == end2_) { > current2_ = begin2_; > ++current1_; > } > ComputeCurrentValue(); > } > virtual ParamIteratorInterface<ParamType>* Clone() const { > return new Iterator(*this); > } > virtual const ParamType* Current() const { return ¤t_value_; } > virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 14448).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const Iterator* typed_other = > CheckedDowncastToActualType<const Iterator>(&other); > > > > return (AtEnd() && typed_other->AtEnd()) || > ( > current1_ == typed_other->current1_ && > current2_ == typed_other->current2_ && > current3_ == typed_other->current3_ && > current4_ == typed_other->current4_ && > current5_ == typed_other->current5_ && > current6_ == typed_other->current6_ && > current7_ == typed_other->current7_ && > current8_ == typed_other->current8_); > } > > private: > Iterator(const Iterator& other) > : base_(other.base_), > begin1_(other.begin1_), > end1_(other.end1_), > current1_(other.current1_), > begin2_(other.begin2_), > end2_(other.end2_), > current2_(other.current2_), > begin3_(other.begin3_), > end3_(other.end3_), > current3_(other.current3_), > begin4_(other.begin4_), > end4_(other.end4_), > current4_(other.current4_), > begin5_(other.begin5_), > end5_(other.end5_), > current5_(other.current5_), > begin6_(other.begin6_), > end6_(other.end6_), > current6_(other.current6_), > begin7_(other.begin7_), > end7_(other.end7_), > current7_(other.current7_), > begin8_(other.begin8_), > end8_(other.end8_), > current8_(other.current8_) { > ComputeCurrentValue(); > } > > void ComputeCurrentValue() { > if (!AtEnd()) > current_value_ = ParamType(*current1_, *current2_, *current3_, > *current4_, *current5_, *current6_, *current7_, *current8_); > } > bool AtEnd() const { > > > return > current1_ == end1_ || > current2_ == end2_ || > current3_ == end3_ || > current4_ == end4_ || > current5_ == end5_ || > current6_ == end6_ || > current7_ == end7_ || > current8_ == end8_; > } > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<ParamType>* const base_; > > > const typename ParamGenerator<T1>::iterator begin1_; > const typename ParamGenerator<T1>::iterator end1_; > typename ParamGenerator<T1>::iterator current1_; > const typename ParamGenerator<T2>::iterator begin2_; > const typename ParamGenerator<T2>::iterator end2_; > typename ParamGenerator<T2>::iterator current2_; > const typename ParamGenerator<T3>::iterator begin3_; > const typename ParamGenerator<T3>::iterator end3_; > typename ParamGenerator<T3>::iterator current3_; > const typename ParamGenerator<T4>::iterator begin4_; > const typename ParamGenerator<T4>::iterator end4_; > typename ParamGenerator<T4>::iterator current4_; > const typename ParamGenerator<T5>::iterator begin5_; > const typename ParamGenerator<T5>::iterator end5_; > typename ParamGenerator<T5>::iterator current5_; > const typename ParamGenerator<T6>::iterator begin6_; > const typename ParamGenerator<T6>::iterator end6_; > typename ParamGenerator<T6>::iterator current6_; > const typename ParamGenerator<T7>::iterator begin7_; > const typename ParamGenerator<T7>::iterator end7_; > typename ParamGenerator<T7>::iterator current7_; > const typename ParamGenerator<T8>::iterator begin8_; > const typename ParamGenerator<T8>::iterator end8_; > typename ParamGenerator<T8>::iterator current8_; > ParamType current_value_; > }; > > > void operator=(const CartesianProductGenerator8& other); > > const ParamGenerator<T1> g1_; > const ParamGenerator<T2> g2_; > const ParamGenerator<T3> g3_; > const ParamGenerator<T4> g4_; > const ParamGenerator<T5> g5_; > const ParamGenerator<T6> g6_; > const ParamGenerator<T7> g7_; > const ParamGenerator<T8> g8_; >}; > > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9> >class CartesianProductGenerator9 > : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, > T7, T8, T9> > { > public: > typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9> ParamType; > > CartesianProductGenerator9(const ParamGenerator<T1>& g1, > const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3, > const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5, > const ParamGenerator<T6>& g6, const ParamGenerator<T7>& g7, > const ParamGenerator<T8>& g8, const ParamGenerator<T9>& g9) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8), > g9_(g9) {} > virtual ~CartesianProductGenerator9() {} > > virtual ParamIteratorInterface<ParamType>* Begin() const { > return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, > g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_, > g7_.begin(), g8_, g8_.begin(), g9_, g9_.begin()); > } > virtual ParamIteratorInterface<ParamType>* End() const { > return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), > g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end(), g8_, > g8_.end(), g9_, g9_.end()); > } > > private: > class Iterator : public ParamIteratorInterface<ParamType> { > public: > Iterator(const ParamGeneratorInterface<ParamType>* base, > const ParamGenerator<T1>& g1, > const typename ParamGenerator<T1>::iterator& current1, > const ParamGenerator<T2>& g2, > const typename ParamGenerator<T2>::iterator& current2, > const ParamGenerator<T3>& g3, > const typename ParamGenerator<T3>::iterator& current3, > const ParamGenerator<T4>& g4, > const typename ParamGenerator<T4>::iterator& current4, > const ParamGenerator<T5>& g5, > const typename ParamGenerator<T5>::iterator& current5, > const ParamGenerator<T6>& g6, > const typename ParamGenerator<T6>::iterator& current6, > const ParamGenerator<T7>& g7, > const typename ParamGenerator<T7>::iterator& current7, > const ParamGenerator<T8>& g8, > const typename ParamGenerator<T8>::iterator& current8, > const ParamGenerator<T9>& g9, > const typename ParamGenerator<T9>::iterator& current9) > : base_(base), > begin1_(g1.begin()), end1_(g1.end()), current1_(current1), > begin2_(g2.begin()), end2_(g2.end()), current2_(current2), > begin3_(g3.begin()), end3_(g3.end()), current3_(current3), > begin4_(g4.begin()), end4_(g4.end()), current4_(current4), > begin5_(g5.begin()), end5_(g5.end()), current5_(current5), > begin6_(g6.begin()), end6_(g6.end()), current6_(current6), > begin7_(g7.begin()), end7_(g7.end()), current7_(current7), > begin8_(g8.begin()), end8_(g8.end()), current8_(current8), > begin9_(g9.begin()), end9_(g9.end()), current9_(current9) { > ComputeCurrentValue(); > } > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const { > return base_; > } > > > virtual void Advance() { > ((!AtEnd()) ? static_cast<void> (0) : __assert_fail ("!AtEnd()", "../gtest_contrib/gtest/gtest.h", 14634, __PRETTY_FUNCTION__)); > ++current9_; > if (current9_ == end9_) { > current9_ = begin9_; > ++current8_; > } > if (current8_ == end8_) { > current8_ = begin8_; > ++current7_; > } > if (current7_ == end7_) { > current7_ = begin7_; > ++current6_; > } > if (current6_ == end6_) { > current6_ = begin6_; > ++current5_; > } > if (current5_ == end5_) { > current5_ = begin5_; > ++current4_; > } > if (current4_ == end4_) { > current4_ = begin4_; > ++current3_; > } > if (current3_ == end3_) { > current3_ = begin3_; > ++current2_; > } > if (current2_ == end2_) { > current2_ = begin2_; > ++current1_; > } > ComputeCurrentValue(); > } > virtual ParamIteratorInterface<ParamType>* Clone() const { > return new Iterator(*this); > } > virtual const ParamType* Current() const { return ¤t_value_; } > virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 14677).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const Iterator* typed_other = > CheckedDowncastToActualType<const Iterator>(&other); > > > > return (AtEnd() && typed_other->AtEnd()) || > ( > current1_ == typed_other->current1_ && > current2_ == typed_other->current2_ && > current3_ == typed_other->current3_ && > current4_ == typed_other->current4_ && > current5_ == typed_other->current5_ && > current6_ == typed_other->current6_ && > current7_ == typed_other->current7_ && > current8_ == typed_other->current8_ && > current9_ == typed_other->current9_); > } > > private: > Iterator(const Iterator& other) > : base_(other.base_), > begin1_(other.begin1_), > end1_(other.end1_), > current1_(other.current1_), > begin2_(other.begin2_), > end2_(other.end2_), > current2_(other.current2_), > begin3_(other.begin3_), > end3_(other.end3_), > current3_(other.current3_), > begin4_(other.begin4_), > end4_(other.end4_), > current4_(other.current4_), > begin5_(other.begin5_), > end5_(other.end5_), > current5_(other.current5_), > begin6_(other.begin6_), > end6_(other.end6_), > current6_(other.current6_), > begin7_(other.begin7_), > end7_(other.end7_), > current7_(other.current7_), > begin8_(other.begin8_), > end8_(other.end8_), > current8_(other.current8_), > begin9_(other.begin9_), > end9_(other.end9_), > current9_(other.current9_) { > ComputeCurrentValue(); > } > > void ComputeCurrentValue() { > if (!AtEnd()) > current_value_ = ParamType(*current1_, *current2_, *current3_, > *current4_, *current5_, *current6_, *current7_, *current8_, > *current9_); > } > bool AtEnd() const { > > > return > current1_ == end1_ || > current2_ == end2_ || > current3_ == end3_ || > current4_ == end4_ || > current5_ == end5_ || > current6_ == end6_ || > current7_ == end7_ || > current8_ == end8_ || > current9_ == end9_; > } > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<ParamType>* const base_; > > > const typename ParamGenerator<T1>::iterator begin1_; > const typename ParamGenerator<T1>::iterator end1_; > typename ParamGenerator<T1>::iterator current1_; > const typename ParamGenerator<T2>::iterator begin2_; > const typename ParamGenerator<T2>::iterator end2_; > typename ParamGenerator<T2>::iterator current2_; > const typename ParamGenerator<T3>::iterator begin3_; > const typename ParamGenerator<T3>::iterator end3_; > typename ParamGenerator<T3>::iterator current3_; > const typename ParamGenerator<T4>::iterator begin4_; > const typename ParamGenerator<T4>::iterator end4_; > typename ParamGenerator<T4>::iterator current4_; > const typename ParamGenerator<T5>::iterator begin5_; > const typename ParamGenerator<T5>::iterator end5_; > typename ParamGenerator<T5>::iterator current5_; > const typename ParamGenerator<T6>::iterator begin6_; > const typename ParamGenerator<T6>::iterator end6_; > typename ParamGenerator<T6>::iterator current6_; > const typename ParamGenerator<T7>::iterator begin7_; > const typename ParamGenerator<T7>::iterator end7_; > typename ParamGenerator<T7>::iterator current7_; > const typename ParamGenerator<T8>::iterator begin8_; > const typename ParamGenerator<T8>::iterator end8_; > typename ParamGenerator<T8>::iterator current8_; > const typename ParamGenerator<T9>::iterator begin9_; > const typename ParamGenerator<T9>::iterator end9_; > typename ParamGenerator<T9>::iterator current9_; > ParamType current_value_; > }; > > > void operator=(const CartesianProductGenerator9& other); > > const ParamGenerator<T1> g1_; > const ParamGenerator<T2> g2_; > const ParamGenerator<T3> g3_; > const ParamGenerator<T4> g4_; > const ParamGenerator<T5> g5_; > const ParamGenerator<T6> g6_; > const ParamGenerator<T7> g7_; > const ParamGenerator<T8> g8_; > const ParamGenerator<T9> g9_; >}; > > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10> >class CartesianProductGenerator10 > : public ParamGeneratorInterface< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, > T7, T8, T9, T10> > { > public: > typedef ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> ParamType; > > CartesianProductGenerator10(const ParamGenerator<T1>& g1, > const ParamGenerator<T2>& g2, const ParamGenerator<T3>& g3, > const ParamGenerator<T4>& g4, const ParamGenerator<T5>& g5, > const ParamGenerator<T6>& g6, const ParamGenerator<T7>& g7, > const ParamGenerator<T8>& g8, const ParamGenerator<T9>& g9, > const ParamGenerator<T10>& g10) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8), > g9_(g9), g10_(g10) {} > virtual ~CartesianProductGenerator10() {} > > virtual ParamIteratorInterface<ParamType>* Begin() const { > return new Iterator(this, g1_, g1_.begin(), g2_, g2_.begin(), g3_, > g3_.begin(), g4_, g4_.begin(), g5_, g5_.begin(), g6_, g6_.begin(), g7_, > g7_.begin(), g8_, g8_.begin(), g9_, g9_.begin(), g10_, g10_.begin()); > } > virtual ParamIteratorInterface<ParamType>* End() const { > return new Iterator(this, g1_, g1_.end(), g2_, g2_.end(), g3_, g3_.end(), > g4_, g4_.end(), g5_, g5_.end(), g6_, g6_.end(), g7_, g7_.end(), g8_, > g8_.end(), g9_, g9_.end(), g10_, g10_.end()); > } > > private: > class Iterator : public ParamIteratorInterface<ParamType> { > public: > Iterator(const ParamGeneratorInterface<ParamType>* base, > const ParamGenerator<T1>& g1, > const typename ParamGenerator<T1>::iterator& current1, > const ParamGenerator<T2>& g2, > const typename ParamGenerator<T2>::iterator& current2, > const ParamGenerator<T3>& g3, > const typename ParamGenerator<T3>::iterator& current3, > const ParamGenerator<T4>& g4, > const typename ParamGenerator<T4>::iterator& current4, > const ParamGenerator<T5>& g5, > const typename ParamGenerator<T5>::iterator& current5, > const ParamGenerator<T6>& g6, > const typename ParamGenerator<T6>::iterator& current6, > const ParamGenerator<T7>& g7, > const typename ParamGenerator<T7>::iterator& current7, > const ParamGenerator<T8>& g8, > const typename ParamGenerator<T8>::iterator& current8, > const ParamGenerator<T9>& g9, > const typename ParamGenerator<T9>::iterator& current9, > const ParamGenerator<T10>& g10, > const typename ParamGenerator<T10>::iterator& current10) > : base_(base), > begin1_(g1.begin()), end1_(g1.end()), current1_(current1), > begin2_(g2.begin()), end2_(g2.end()), current2_(current2), > begin3_(g3.begin()), end3_(g3.end()), current3_(current3), > begin4_(g4.begin()), end4_(g4.end()), current4_(current4), > begin5_(g5.begin()), end5_(g5.end()), current5_(current5), > begin6_(g6.begin()), end6_(g6.end()), current6_(current6), > begin7_(g7.begin()), end7_(g7.end()), current7_(current7), > begin8_(g8.begin()), end8_(g8.end()), current8_(current8), > begin9_(g9.begin()), end9_(g9.end()), current9_(current9), > begin10_(g10.begin()), end10_(g10.end()), current10_(current10) { > ComputeCurrentValue(); > } > virtual ~Iterator() {} > > virtual const ParamGeneratorInterface<ParamType>* BaseGenerator() const { > return base_; > } > > > virtual void Advance() { > ((!AtEnd()) ? static_cast<void> (0) : __assert_fail ("!AtEnd()", "../gtest_contrib/gtest/gtest.h", 14877, __PRETTY_FUNCTION__)); > ++current10_; > if (current10_ == end10_) { > current10_ = begin10_; > ++current9_; > } > if (current9_ == end9_) { > current9_ = begin9_; > ++current8_; > } > if (current8_ == end8_) { > current8_ = begin8_; > ++current7_; > } > if (current7_ == end7_) { > current7_ = begin7_; > ++current6_; > } > if (current6_ == end6_) { > current6_ = begin6_; > ++current5_; > } > if (current5_ == end5_) { > current5_ = begin5_; > ++current4_; > } > if (current4_ == end4_) { > current4_ = begin4_; > ++current3_; > } > if (current3_ == end3_) { > current3_ = begin3_; > ++current2_; > } > if (current2_ == end2_) { > current2_ = begin2_; > ++current1_; > } > ComputeCurrentValue(); > } > virtual ParamIteratorInterface<ParamType>* Clone() const { > return new Iterator(*this); > } > virtual const ParamType* Current() const { return ¤t_value_; } > virtual bool Equals(const ParamIteratorInterface<ParamType>& other) const { > > > switch (0) case 0: default: if (::testing::internal::IsTrue(BaseGenerator() == other.BaseGenerator())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gtest/gtest.h", 14924).GetStream() << "Condition " "BaseGenerator() == other.BaseGenerator()" " failed. " > << "The program attempted to compare iterators " > << "from different generators." << std::endl; > const Iterator* typed_other = > CheckedDowncastToActualType<const Iterator>(&other); > > > > return (AtEnd() && typed_other->AtEnd()) || > ( > current1_ == typed_other->current1_ && > current2_ == typed_other->current2_ && > current3_ == typed_other->current3_ && > current4_ == typed_other->current4_ && > current5_ == typed_other->current5_ && > current6_ == typed_other->current6_ && > current7_ == typed_other->current7_ && > current8_ == typed_other->current8_ && > current9_ == typed_other->current9_ && > current10_ == typed_other->current10_); > } > > private: > Iterator(const Iterator& other) > : base_(other.base_), > begin1_(other.begin1_), > end1_(other.end1_), > current1_(other.current1_), > begin2_(other.begin2_), > end2_(other.end2_), > current2_(other.current2_), > begin3_(other.begin3_), > end3_(other.end3_), > current3_(other.current3_), > begin4_(other.begin4_), > end4_(other.end4_), > current4_(other.current4_), > begin5_(other.begin5_), > end5_(other.end5_), > current5_(other.current5_), > begin6_(other.begin6_), > end6_(other.end6_), > current6_(other.current6_), > begin7_(other.begin7_), > end7_(other.end7_), > current7_(other.current7_), > begin8_(other.begin8_), > end8_(other.end8_), > current8_(other.current8_), > begin9_(other.begin9_), > end9_(other.end9_), > current9_(other.current9_), > begin10_(other.begin10_), > end10_(other.end10_), > current10_(other.current10_) { > ComputeCurrentValue(); > } > > void ComputeCurrentValue() { > if (!AtEnd()) > current_value_ = ParamType(*current1_, *current2_, *current3_, > *current4_, *current5_, *current6_, *current7_, *current8_, > *current9_, *current10_); > } > bool AtEnd() const { > > > return > current1_ == end1_ || > current2_ == end2_ || > current3_ == end3_ || > current4_ == end4_ || > current5_ == end5_ || > current6_ == end6_ || > current7_ == end7_ || > current8_ == end8_ || > current9_ == end9_ || > current10_ == end10_; > } > > > void operator=(const Iterator& other); > > const ParamGeneratorInterface<ParamType>* const base_; > > > const typename ParamGenerator<T1>::iterator begin1_; > const typename ParamGenerator<T1>::iterator end1_; > typename ParamGenerator<T1>::iterator current1_; > const typename ParamGenerator<T2>::iterator begin2_; > const typename ParamGenerator<T2>::iterator end2_; > typename ParamGenerator<T2>::iterator current2_; > const typename ParamGenerator<T3>::iterator begin3_; > const typename ParamGenerator<T3>::iterator end3_; > typename ParamGenerator<T3>::iterator current3_; > const typename ParamGenerator<T4>::iterator begin4_; > const typename ParamGenerator<T4>::iterator end4_; > typename ParamGenerator<T4>::iterator current4_; > const typename ParamGenerator<T5>::iterator begin5_; > const typename ParamGenerator<T5>::iterator end5_; > typename ParamGenerator<T5>::iterator current5_; > const typename ParamGenerator<T6>::iterator begin6_; > const typename ParamGenerator<T6>::iterator end6_; > typename ParamGenerator<T6>::iterator current6_; > const typename ParamGenerator<T7>::iterator begin7_; > const typename ParamGenerator<T7>::iterator end7_; > typename ParamGenerator<T7>::iterator current7_; > const typename ParamGenerator<T8>::iterator begin8_; > const typename ParamGenerator<T8>::iterator end8_; > typename ParamGenerator<T8>::iterator current8_; > const typename ParamGenerator<T9>::iterator begin9_; > const typename ParamGenerator<T9>::iterator end9_; > typename ParamGenerator<T9>::iterator current9_; > const typename ParamGenerator<T10>::iterator begin10_; > const typename ParamGenerator<T10>::iterator end10_; > typename ParamGenerator<T10>::iterator current10_; > ParamType current_value_; > }; > > > void operator=(const CartesianProductGenerator10& other); > > const ParamGenerator<T1> g1_; > const ParamGenerator<T2> g2_; > const ParamGenerator<T3> g3_; > const ParamGenerator<T4> g4_; > const ParamGenerator<T5> g5_; > const ParamGenerator<T6> g6_; > const ParamGenerator<T7> g7_; > const ParamGenerator<T8> g8_; > const ParamGenerator<T9> g9_; > const ParamGenerator<T10> g10_; >}; ># 15065 "../gtest_contrib/gtest/gtest.h" >template <class Generator1, class Generator2> >class CartesianProductHolder2 { > public: >CartesianProductHolder2(const Generator1& g1, const Generator2& g2) > : g1_(g1), g2_(g2) {} > template <typename T1, typename T2> > operator ParamGenerator< ::std::tr1::tuple<T1, T2> >() const { > return ParamGenerator< ::std::tr1::tuple<T1, T2> >( > new CartesianProductGenerator2<T1, T2>( > static_cast<ParamGenerator<T1> >(g1_), > static_cast<ParamGenerator<T2> >(g2_))); > } > > private: > > void operator=(const CartesianProductHolder2& other); > > const Generator1 g1_; > const Generator2 g2_; >}; > >template <class Generator1, class Generator2, class Generator3> >class CartesianProductHolder3 { > public: >CartesianProductHolder3(const Generator1& g1, const Generator2& g2, > const Generator3& g3) > : g1_(g1), g2_(g2), g3_(g3) {} > template <typename T1, typename T2, typename T3> > operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3> >() const { > return ParamGenerator< ::std::tr1::tuple<T1, T2, T3> >( > new CartesianProductGenerator3<T1, T2, T3>( > static_cast<ParamGenerator<T1> >(g1_), > static_cast<ParamGenerator<T2> >(g2_), > static_cast<ParamGenerator<T3> >(g3_))); > } > > private: > > void operator=(const CartesianProductHolder3& other); > > const Generator1 g1_; > const Generator2 g2_; > const Generator3 g3_; >}; > >template <class Generator1, class Generator2, class Generator3, > class Generator4> >class CartesianProductHolder4 { > public: >CartesianProductHolder4(const Generator1& g1, const Generator2& g2, > const Generator3& g3, const Generator4& g4) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4) {} > template <typename T1, typename T2, typename T3, typename T4> > operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4> >() const { > return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4> >( > new CartesianProductGenerator4<T1, T2, T3, T4>( > static_cast<ParamGenerator<T1> >(g1_), > static_cast<ParamGenerator<T2> >(g2_), > static_cast<ParamGenerator<T3> >(g3_), > static_cast<ParamGenerator<T4> >(g4_))); > } > > private: > > void operator=(const CartesianProductHolder4& other); > > const Generator1 g1_; > const Generator2 g2_; > const Generator3 g3_; > const Generator4 g4_; >}; > >template <class Generator1, class Generator2, class Generator3, > class Generator4, class Generator5> >class CartesianProductHolder5 { > public: >CartesianProductHolder5(const Generator1& g1, const Generator2& g2, > const Generator3& g3, const Generator4& g4, const Generator5& g5) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5) {} > template <typename T1, typename T2, typename T3, typename T4, typename T5> > operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5> >() const { > return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5> >( > new CartesianProductGenerator5<T1, T2, T3, T4, T5>( > static_cast<ParamGenerator<T1> >(g1_), > static_cast<ParamGenerator<T2> >(g2_), > static_cast<ParamGenerator<T3> >(g3_), > static_cast<ParamGenerator<T4> >(g4_), > static_cast<ParamGenerator<T5> >(g5_))); > } > > private: > > void operator=(const CartesianProductHolder5& other); > > const Generator1 g1_; > const Generator2 g2_; > const Generator3 g3_; > const Generator4 g4_; > const Generator5 g5_; >}; > >template <class Generator1, class Generator2, class Generator3, > class Generator4, class Generator5, class Generator6> >class CartesianProductHolder6 { > public: >CartesianProductHolder6(const Generator1& g1, const Generator2& g2, > const Generator3& g3, const Generator4& g4, const Generator5& g5, > const Generator6& g6) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6) {} > template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6> > operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6> >() const { > return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6> >( > new CartesianProductGenerator6<T1, T2, T3, T4, T5, T6>( > static_cast<ParamGenerator<T1> >(g1_), > static_cast<ParamGenerator<T2> >(g2_), > static_cast<ParamGenerator<T3> >(g3_), > static_cast<ParamGenerator<T4> >(g4_), > static_cast<ParamGenerator<T5> >(g5_), > static_cast<ParamGenerator<T6> >(g6_))); > } > > private: > > void operator=(const CartesianProductHolder6& other); > > const Generator1 g1_; > const Generator2 g2_; > const Generator3 g3_; > const Generator4 g4_; > const Generator5 g5_; > const Generator6 g6_; >}; > >template <class Generator1, class Generator2, class Generator3, > class Generator4, class Generator5, class Generator6, class Generator7> >class CartesianProductHolder7 { > public: >CartesianProductHolder7(const Generator1& g1, const Generator2& g2, > const Generator3& g3, const Generator4& g4, const Generator5& g5, > const Generator6& g6, const Generator7& g7) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7) {} > template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7> > operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, > T7> >() const { > return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7> >( > new CartesianProductGenerator7<T1, T2, T3, T4, T5, T6, T7>( > static_cast<ParamGenerator<T1> >(g1_), > static_cast<ParamGenerator<T2> >(g2_), > static_cast<ParamGenerator<T3> >(g3_), > static_cast<ParamGenerator<T4> >(g4_), > static_cast<ParamGenerator<T5> >(g5_), > static_cast<ParamGenerator<T6> >(g6_), > static_cast<ParamGenerator<T7> >(g7_))); > } > > private: > > void operator=(const CartesianProductHolder7& other); > > const Generator1 g1_; > const Generator2 g2_; > const Generator3 g3_; > const Generator4 g4_; > const Generator5 g5_; > const Generator6 g6_; > const Generator7 g7_; >}; > >template <class Generator1, class Generator2, class Generator3, > class Generator4, class Generator5, class Generator6, class Generator7, > class Generator8> >class CartesianProductHolder8 { > public: >CartesianProductHolder8(const Generator1& g1, const Generator2& g2, > const Generator3& g3, const Generator4& g4, const Generator5& g5, > const Generator6& g6, const Generator7& g7, const Generator8& g8) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), > g8_(g8) {} > template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8> > operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, > T8> >() const { > return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8> >( > new CartesianProductGenerator8<T1, T2, T3, T4, T5, T6, T7, T8>( > static_cast<ParamGenerator<T1> >(g1_), > static_cast<ParamGenerator<T2> >(g2_), > static_cast<ParamGenerator<T3> >(g3_), > static_cast<ParamGenerator<T4> >(g4_), > static_cast<ParamGenerator<T5> >(g5_), > static_cast<ParamGenerator<T6> >(g6_), > static_cast<ParamGenerator<T7> >(g7_), > static_cast<ParamGenerator<T8> >(g8_))); > } > > private: > > void operator=(const CartesianProductHolder8& other); > > const Generator1 g1_; > const Generator2 g2_; > const Generator3 g3_; > const Generator4 g4_; > const Generator5 g5_; > const Generator6 g6_; > const Generator7 g7_; > const Generator8 g8_; >}; > >template <class Generator1, class Generator2, class Generator3, > class Generator4, class Generator5, class Generator6, class Generator7, > class Generator8, class Generator9> >class CartesianProductHolder9 { > public: >CartesianProductHolder9(const Generator1& g1, const Generator2& g2, > const Generator3& g3, const Generator4& g4, const Generator5& g5, > const Generator6& g6, const Generator7& g7, const Generator8& g8, > const Generator9& g9) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8), > g9_(g9) {} > template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9> > operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, > T9> >() const { > return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, > T9> >( > new CartesianProductGenerator9<T1, T2, T3, T4, T5, T6, T7, T8, T9>( > static_cast<ParamGenerator<T1> >(g1_), > static_cast<ParamGenerator<T2> >(g2_), > static_cast<ParamGenerator<T3> >(g3_), > static_cast<ParamGenerator<T4> >(g4_), > static_cast<ParamGenerator<T5> >(g5_), > static_cast<ParamGenerator<T6> >(g6_), > static_cast<ParamGenerator<T7> >(g7_), > static_cast<ParamGenerator<T8> >(g8_), > static_cast<ParamGenerator<T9> >(g9_))); > } > > private: > > void operator=(const CartesianProductHolder9& other); > > const Generator1 g1_; > const Generator2 g2_; > const Generator3 g3_; > const Generator4 g4_; > const Generator5 g5_; > const Generator6 g6_; > const Generator7 g7_; > const Generator8 g8_; > const Generator9 g9_; >}; > >template <class Generator1, class Generator2, class Generator3, > class Generator4, class Generator5, class Generator6, class Generator7, > class Generator8, class Generator9, class Generator10> >class CartesianProductHolder10 { > public: >CartesianProductHolder10(const Generator1& g1, const Generator2& g2, > const Generator3& g3, const Generator4& g4, const Generator5& g5, > const Generator6& g6, const Generator7& g7, const Generator8& g8, > const Generator9& g9, const Generator10& g10) > : g1_(g1), g2_(g2), g3_(g3), g4_(g4), g5_(g5), g6_(g6), g7_(g7), g8_(g8), > g9_(g9), g10_(g10) {} > template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10> > operator ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, > T9, T10> >() const { > return ParamGenerator< ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, > T9, T10> >( > new CartesianProductGenerator10<T1, T2, T3, T4, T5, T6, T7, T8, T9, > T10>( > static_cast<ParamGenerator<T1> >(g1_), > static_cast<ParamGenerator<T2> >(g2_), > static_cast<ParamGenerator<T3> >(g3_), > static_cast<ParamGenerator<T4> >(g4_), > static_cast<ParamGenerator<T5> >(g5_), > static_cast<ParamGenerator<T6> >(g6_), > static_cast<ParamGenerator<T7> >(g7_), > static_cast<ParamGenerator<T8> >(g8_), > static_cast<ParamGenerator<T9> >(g9_), > static_cast<ParamGenerator<T10> >(g10_))); > } > > private: > > void operator=(const CartesianProductHolder10& other); > > const Generator1 g1_; > const Generator2 g2_; > const Generator3 g3_; > const Generator4 g4_; > const Generator5 g5_; > const Generator6 g6_; > const Generator7 g7_; > const Generator8 g8_; > const Generator9 g9_; > const Generator10 g10_; >}; > > > >} >} > > > > > > > >namespace testing { ># 15421 "../gtest_contrib/gtest/gtest.h" >template <typename T, typename IncrementT> >internal::ParamGenerator<T> Range(T start, T end, IncrementT step) { > return internal::ParamGenerator<T>( > new internal::RangeGenerator<T, IncrementT>(start, end, step)); >} > >template <typename T> >internal::ParamGenerator<T> Range(T start, T end) { > return Range(start, end, 1); >} ># 15487 "../gtest_contrib/gtest/gtest.h" >template <typename ForwardIterator> >internal::ParamGenerator< > typename ::testing::internal::IteratorTraits<ForwardIterator>::value_type> >ValuesIn(ForwardIterator begin, ForwardIterator end) { > typedef typename ::testing::internal::IteratorTraits<ForwardIterator> > ::value_type ParamType; > return internal::ParamGenerator<ParamType>( > new internal::ValuesInIteratorRangeGenerator<ParamType>(begin, end)); >} > >template <typename T, size_t N> >internal::ParamGenerator<T> ValuesIn(const T (&array)[N]) { > return ValuesIn(array, array + N); >} > >template <class Container> >internal::ParamGenerator<typename Container::value_type> ValuesIn( > const Container& container) { > return ValuesIn(container.begin(), container.end()); >} ># 15527 "../gtest_contrib/gtest/gtest.h" >template <typename T1> >internal::ValueArray1<T1> Values(T1 v1) { > return internal::ValueArray1<T1>(v1); >} > >template <typename T1, typename T2> >internal::ValueArray2<T1, T2> Values(T1 v1, T2 v2) { > return internal::ValueArray2<T1, T2>(v1, v2); >} > >template <typename T1, typename T2, typename T3> >internal::ValueArray3<T1, T2, T3> Values(T1 v1, T2 v2, T3 v3) { > return internal::ValueArray3<T1, T2, T3>(v1, v2, v3); >} > >template <typename T1, typename T2, typename T3, typename T4> >internal::ValueArray4<T1, T2, T3, T4> Values(T1 v1, T2 v2, T3 v3, T4 v4) { > return internal::ValueArray4<T1, T2, T3, T4>(v1, v2, v3, v4); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5> >internal::ValueArray5<T1, T2, T3, T4, T5> Values(T1 v1, T2 v2, T3 v3, T4 v4, > T5 v5) { > return internal::ValueArray5<T1, T2, T3, T4, T5>(v1, v2, v3, v4, v5); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6> >internal::ValueArray6<T1, T2, T3, T4, T5, T6> Values(T1 v1, T2 v2, T3 v3, > T4 v4, T5 v5, T6 v6) { > return internal::ValueArray6<T1, T2, T3, T4, T5, T6>(v1, v2, v3, v4, v5, v6); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7> >internal::ValueArray7<T1, T2, T3, T4, T5, T6, T7> Values(T1 v1, T2 v2, T3 v3, > T4 v4, T5 v5, T6 v6, T7 v7) { > return internal::ValueArray7<T1, T2, T3, T4, T5, T6, T7>(v1, v2, v3, v4, v5, > v6, v7); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8> >internal::ValueArray8<T1, T2, T3, T4, T5, T6, T7, T8> Values(T1 v1, T2 v2, > T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8) { > return internal::ValueArray8<T1, T2, T3, T4, T5, T6, T7, T8>(v1, v2, v3, v4, > v5, v6, v7, v8); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9> >internal::ValueArray9<T1, T2, T3, T4, T5, T6, T7, T8, T9> Values(T1 v1, T2 v2, > T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9) { > return internal::ValueArray9<T1, T2, T3, T4, T5, T6, T7, T8, T9>(v1, v2, v3, > v4, v5, v6, v7, v8, v9); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10> >internal::ValueArray10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Values(T1 v1, > T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10) { > return internal::ValueArray10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(v1, > v2, v3, v4, v5, v6, v7, v8, v9, v10); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11> >internal::ValueArray11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, > T11> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11) { > return internal::ValueArray11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, > T11>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12> >internal::ValueArray12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12) { > return internal::ValueArray12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13> >internal::ValueArray13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, > T13> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13) { > return internal::ValueArray13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14> >internal::ValueArray14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14) { > return internal::ValueArray14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, > v14); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15> >internal::ValueArray15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, > T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15) { > return internal::ValueArray15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, > v13, v14, v15); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16> >internal::ValueArray16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, > T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, > T16 v16) { > return internal::ValueArray16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, > v12, v13, v14, v15, v16); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17> >internal::ValueArray17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, > T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, > T16 v16, T17 v17) { > return internal::ValueArray17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, > v11, v12, v13, v14, v15, v16, v17); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18> >internal::ValueArray18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, > T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, > T16 v16, T17 v17, T18 v18) { > return internal::ValueArray18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18>(v1, v2, v3, v4, v5, v6, v7, v8, v9, > v10, v11, v12, v13, v14, v15, v16, v17, v18); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19> >internal::ValueArray19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, > T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, > T15 v15, T16 v16, T17 v17, T18 v18, T19 v19) { > return internal::ValueArray19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19>(v1, v2, v3, v4, v5, v6, v7, v8, > v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20> >internal::ValueArray20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20> Values(T1 v1, T2 v2, T3 v3, T4 v4, > T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, > T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20) { > return internal::ValueArray20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20>(v1, v2, v3, v4, v5, v6, v7, > v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21> >internal::ValueArray21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21> Values(T1 v1, T2 v2, T3 v3, T4 v4, > T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, > T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21) { > return internal::ValueArray21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>(v1, v2, v3, v4, v5, v6, > v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22> >internal::ValueArray22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22> Values(T1 v1, T2 v2, T3 v3, > T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, > T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, > T21 v21, T22 v22) { > return internal::ValueArray22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>(v1, v2, v3, v4, > v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, > v20, v21, v22); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23> >internal::ValueArray23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23> Values(T1 v1, T2 v2, > T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, > T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, > T21 v21, T22 v22, T23 v23) { > return internal::ValueArray23<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23>(v1, v2, v3, > v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, > v20, v21, v22, v23); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24> >internal::ValueArray24<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24> Values(T1 v1, T2 v2, > T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, > T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, > T21 v21, T22 v22, T23 v23, T24 v24) { > return internal::ValueArray24<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24>(v1, v2, > v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, > v19, v20, v21, v22, v23, v24); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25> >internal::ValueArray25<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25> Values(T1 v1, > T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, > T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, > T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25) { > return internal::ValueArray25<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25>(v1, > v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, > v18, v19, v20, v21, v22, v23, v24, v25); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26> >internal::ValueArray26<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26) { > return internal::ValueArray26<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, > v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27> >internal::ValueArray27<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, > T27> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27) { > return internal::ValueArray27<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, > v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28> >internal::ValueArray28<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, > T28> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28) { > return internal::ValueArray28<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, > v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, > v28); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29> >internal::ValueArray29<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29) { > return internal::ValueArray29<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, > v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, > v27, v28, v29); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30> >internal::ValueArray30<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, > T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, > T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, > T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30) { > return internal::ValueArray30<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, > v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, > v26, v27, v28, v29, v30); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31> >internal::ValueArray31<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, > T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, > T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, > T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31) { > return internal::ValueArray31<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, > v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, > v25, v26, v27, v28, v29, v30, v31); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32> >internal::ValueArray32<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, > T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, > T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, > T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, > T32 v32) { > return internal::ValueArray32<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32>(v1, v2, v3, v4, v5, v6, v7, v8, v9, > v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, > v24, v25, v26, v27, v28, v29, v30, v31, v32); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33> >internal::ValueArray33<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, > T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, > T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, > T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, > T32 v32, T33 v33) { > return internal::ValueArray33<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33>(v1, v2, v3, v4, v5, v6, v7, v8, > v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, > v24, v25, v26, v27, v28, v29, v30, v31, v32, v33); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34> >internal::ValueArray34<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, > T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, > T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, > T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, > T31 v31, T32 v32, T33 v33, T34 v34) { > return internal::ValueArray34<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34>(v1, v2, v3, v4, v5, v6, v7, > v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, > v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35> >internal::ValueArray35<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35> Values(T1 v1, T2 v2, T3 v3, T4 v4, > T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, > T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, > T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, > T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35) { > return internal::ValueArray35<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35>(v1, v2, v3, v4, v5, v6, > v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, > v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36> >internal::ValueArray36<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36> Values(T1 v1, T2 v2, T3 v3, T4 v4, > T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, > T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, > T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, > T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36) { > return internal::ValueArray36<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36>(v1, v2, v3, v4, > v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, > v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, > v34, v35, v36); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37> >internal::ValueArray37<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37> Values(T1 v1, T2 v2, T3 v3, > T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, > T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, > T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, > T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, > T37 v37) { > return internal::ValueArray37<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37>(v1, v2, v3, > v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, > v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, > v34, v35, v36, v37); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38> >internal::ValueArray38<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38> Values(T1 v1, T2 v2, > T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, > T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, > T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, > T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, > T37 v37, T38 v38) { > return internal::ValueArray38<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38>(v1, v2, > v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, > v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, > v33, v34, v35, v36, v37, v38); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39> >internal::ValueArray39<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39> Values(T1 v1, T2 v2, > T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, > T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, > T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, > T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, > T37 v37, T38 v38, T39 v39) { > return internal::ValueArray39<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39>(v1, > v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, > v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, > v32, v33, v34, v35, v36, v37, v38, v39); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40> >internal::ValueArray40<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40> Values(T1 v1, > T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, > T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, > T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, > T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, > T36 v36, T37 v37, T38 v38, T39 v39, T40 v40) { > return internal::ValueArray40<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, > v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, > v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41> >internal::ValueArray41<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, > T41> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41) { > return internal::ValueArray41<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, > v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, > v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42> >internal::ValueArray42<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, > T42> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42) { > return internal::ValueArray42<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41, T42>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, > v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, > v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, > v42); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43> >internal::ValueArray43<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, > T43> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43) { > return internal::ValueArray43<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41, T42, T43>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, > v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, > v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, > v41, v42, v43); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44> >internal::ValueArray44<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, > T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, T17 v17, > T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, T25 v25, > T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, T33 v33, > T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, T41 v41, > T42 v42, T43 v43, T44 v44) { > return internal::ValueArray44<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41, T42, T43, T44>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, > v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, > v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, > v40, v41, v42, v43, v44); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45> >internal::ValueArray45<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, > T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, T16 v16, > T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, T24 v24, > T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, T32 v32, > T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, T40 v40, > T41 v41, T42 v42, T43 v43, T44 v44, T45 v45) { > return internal::ValueArray45<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41, T42, T43, T44, T45>(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, > v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, > v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, > v39, v40, v41, v42, v43, v44, v45); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46> >internal::ValueArray46<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, > T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, > T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, > T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, > T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, > T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, T46 v46) { > return internal::ValueArray46<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41, T42, T43, T44, T45, T46>(v1, v2, v3, v4, v5, v6, v7, v8, v9, > v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, > v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, > v38, v39, v40, v41, v42, v43, v44, v45, v46); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47> >internal::ValueArray47<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46, T47> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, > T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, > T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, > T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, > T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, > T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47) { > return internal::ValueArray47<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41, T42, T43, T44, T45, T46, T47>(v1, v2, v3, v4, v5, v6, v7, v8, > v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, > v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, > v38, v39, v40, v41, v42, v43, v44, v45, v46, v47); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48> >internal::ValueArray48<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46, T47, T48> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, > T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, T15 v15, > T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, T23 v23, > T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, T31 v31, > T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, T39 v39, > T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, T47 v47, > T48 v48) { > return internal::ValueArray48<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41, T42, T43, T44, T45, T46, T47, T48>(v1, v2, v3, v4, v5, v6, v7, > v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, > v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, > v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48, typename T49> >internal::ValueArray49<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46, T47, T48, T49> Values(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, > T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, T14 v14, > T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, T22 v22, > T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, T30 v30, > T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, T38 v38, > T39 v39, T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, T46 v46, > T47 v47, T48 v48, T49 v49) { > return internal::ValueArray49<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41, T42, T43, T44, T45, T46, T47, T48, T49>(v1, v2, v3, v4, v5, v6, > v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, > v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, > v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10, > typename T11, typename T12, typename T13, typename T14, typename T15, > typename T16, typename T17, typename T18, typename T19, typename T20, > typename T21, typename T22, typename T23, typename T24, typename T25, > typename T26, typename T27, typename T28, typename T29, typename T30, > typename T31, typename T32, typename T33, typename T34, typename T35, > typename T36, typename T37, typename T38, typename T39, typename T40, > typename T41, typename T42, typename T43, typename T44, typename T45, > typename T46, typename T47, typename T48, typename T49, typename T50> >internal::ValueArray50<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, > T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, > T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, T40, T41, T42, T43, > T44, T45, T46, T47, T48, T49, T50> Values(T1 v1, T2 v2, T3 v3, T4 v4, > T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12, T13 v13, > T14 v14, T15 v15, T16 v16, T17 v17, T18 v18, T19 v19, T20 v20, T21 v21, > T22 v22, T23 v23, T24 v24, T25 v25, T26 v26, T27 v27, T28 v28, T29 v29, > T30 v30, T31 v31, T32 v32, T33 v33, T34 v34, T35 v35, T36 v36, T37 v37, > T38 v38, T39 v39, T40 v40, T41 v41, T42 v42, T43 v43, T44 v44, T45 v45, > T46 v46, T47 v47, T48 v48, T49 v49, T50 v50) { > return internal::ValueArray50<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, > T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, > T26, T27, T28, T29, T30, T31, T32, T33, T34, T35, T36, T37, T38, T39, > T40, T41, T42, T43, T44, T45, T46, T47, T48, T49, T50>(v1, v2, v3, v4, > v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, > v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, > v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, > v48, v49, v50); >} ># 16400 "../gtest_contrib/gtest/gtest.h" >inline internal::ParamGenerator<bool> Bool() { > return Values(false, true); >} ># 16453 "../gtest_contrib/gtest/gtest.h" >template <typename Generator1, typename Generator2> >internal::CartesianProductHolder2<Generator1, Generator2> Combine( > const Generator1& g1, const Generator2& g2) { > return internal::CartesianProductHolder2<Generator1, Generator2>( > g1, g2); >} > >template <typename Generator1, typename Generator2, typename Generator3> >internal::CartesianProductHolder3<Generator1, Generator2, Generator3> Combine( > const Generator1& g1, const Generator2& g2, const Generator3& g3) { > return internal::CartesianProductHolder3<Generator1, Generator2, Generator3>( > g1, g2, g3); >} > >template <typename Generator1, typename Generator2, typename Generator3, > typename Generator4> >internal::CartesianProductHolder4<Generator1, Generator2, Generator3, > Generator4> Combine( > const Generator1& g1, const Generator2& g2, const Generator3& g3, > const Generator4& g4) { > return internal::CartesianProductHolder4<Generator1, Generator2, Generator3, > Generator4>( > g1, g2, g3, g4); >} > >template <typename Generator1, typename Generator2, typename Generator3, > typename Generator4, typename Generator5> >internal::CartesianProductHolder5<Generator1, Generator2, Generator3, > Generator4, Generator5> Combine( > const Generator1& g1, const Generator2& g2, const Generator3& g3, > const Generator4& g4, const Generator5& g5) { > return internal::CartesianProductHolder5<Generator1, Generator2, Generator3, > Generator4, Generator5>( > g1, g2, g3, g4, g5); >} > >template <typename Generator1, typename Generator2, typename Generator3, > typename Generator4, typename Generator5, typename Generator6> >internal::CartesianProductHolder6<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6> Combine( > const Generator1& g1, const Generator2& g2, const Generator3& g3, > const Generator4& g4, const Generator5& g5, const Generator6& g6) { > return internal::CartesianProductHolder6<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6>( > g1, g2, g3, g4, g5, g6); >} > >template <typename Generator1, typename Generator2, typename Generator3, > typename Generator4, typename Generator5, typename Generator6, > typename Generator7> >internal::CartesianProductHolder7<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6, Generator7> Combine( > const Generator1& g1, const Generator2& g2, const Generator3& g3, > const Generator4& g4, const Generator5& g5, const Generator6& g6, > const Generator7& g7) { > return internal::CartesianProductHolder7<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6, Generator7>( > g1, g2, g3, g4, g5, g6, g7); >} > >template <typename Generator1, typename Generator2, typename Generator3, > typename Generator4, typename Generator5, typename Generator6, > typename Generator7, typename Generator8> >internal::CartesianProductHolder8<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6, Generator7, Generator8> Combine( > const Generator1& g1, const Generator2& g2, const Generator3& g3, > const Generator4& g4, const Generator5& g5, const Generator6& g6, > const Generator7& g7, const Generator8& g8) { > return internal::CartesianProductHolder8<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6, Generator7, Generator8>( > g1, g2, g3, g4, g5, g6, g7, g8); >} > >template <typename Generator1, typename Generator2, typename Generator3, > typename Generator4, typename Generator5, typename Generator6, > typename Generator7, typename Generator8, typename Generator9> >internal::CartesianProductHolder9<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6, Generator7, Generator8, > Generator9> Combine( > const Generator1& g1, const Generator2& g2, const Generator3& g3, > const Generator4& g4, const Generator5& g5, const Generator6& g6, > const Generator7& g7, const Generator8& g8, const Generator9& g9) { > return internal::CartesianProductHolder9<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6, Generator7, Generator8, Generator9>( > g1, g2, g3, g4, g5, g6, g7, g8, g9); >} > >template <typename Generator1, typename Generator2, typename Generator3, > typename Generator4, typename Generator5, typename Generator6, > typename Generator7, typename Generator8, typename Generator9, > typename Generator10> >internal::CartesianProductHolder10<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6, Generator7, Generator8, Generator9, > Generator10> Combine( > const Generator1& g1, const Generator2& g2, const Generator3& g3, > const Generator4& g4, const Generator5& g5, const Generator6& g6, > const Generator7& g7, const Generator8& g8, const Generator9& g9, > const Generator10& g10) { > return internal::CartesianProductHolder10<Generator1, Generator2, Generator3, > Generator4, Generator5, Generator6, Generator7, Generator8, Generator9, > Generator10>( > g1, g2, g3, g4, g5, g6, g7, g8, g9, g10); >} > > > > >#define TEST_P(test_case_name,test_name) class GTEST_TEST_CLASS_NAME_(test_case_name, test_name) : public test_case_name { public: GTEST_TEST_CLASS_NAME_(test_case_name, test_name)() {} virtual void TestBody(); private: static int AddToRegistry() { ::testing::UnitTest::GetInstance()->parameterized_test_registry(). GetTestCasePatternHolder<test_case_name>( #test_case_name, __FILE__, __LINE__)->AddTestPattern( #test_case_name, #test_name, new ::testing::internal::TestMetaFactory< GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>()); return 0; } static int gtest_registering_dummy_; GTEST_DISALLOW_COPY_AND_ASSIGN_( GTEST_TEST_CLASS_NAME_(test_case_name, test_name)); }; int GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::gtest_registering_dummy_ = GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::AddToRegistry(); void GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() ># 16586 "../gtest_contrib/gtest/gtest.h" >#define INSTANTIATE_TEST_CASE_P(prefix,test_case_name,generator) ::testing::internal::ParamGenerator<test_case_name::ParamType> gtest_ ##prefix ##test_case_name ##_EvalGenerator_() { return generator; } int gtest_ ##prefix ##test_case_name ##_dummy_ = ::testing::UnitTest::GetInstance()->parameterized_test_registry(). GetTestCasePatternHolder<test_case_name>( #test_case_name, __FILE__, __LINE__)->AddTestCaseInstantiation( #prefix, >est_ ##prefix ##test_case_name ##_EvalGenerator_, __FILE__, __LINE__) ># 16597 "../gtest_contrib/gtest/gtest.h" >} ># 16636 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_GTEST_PROD_H_ ># 16656 "../gtest_contrib/gtest/gtest.h" >#define FRIEND_TEST(test_case_name,test_name) friend class test_case_name ##_ ##test_name ##_Test ># 16693 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ > > > > >namespace testing { > > > > > >class TestPartResult { > public: > > > enum Type { > kSuccess, > kNonFatalFailure, > kFatalFailure > }; > > > > > TestPartResult(Type a_type, > const char* a_file_name, > int a_line_number, > const char* a_message) > : type_(a_type), > file_name_(a_file_name), > line_number_(a_line_number), > summary_(ExtractSummary(a_message)), > message_(a_message) { > } > > > Type type() const { return type_; } > > > > const char* file_name() const { return file_name_.c_str(); } > > > > int line_number() const { return line_number_; } > > > const char* summary() const { return summary_.c_str(); } > > > const char* message() const { return message_.c_str(); } > > > bool passed() const { return type_ == kSuccess; } > > > bool failed() const { return type_ != kSuccess; } > > > bool nonfatally_failed() const { return type_ == kNonFatalFailure; } > > > bool fatally_failed() const { return type_ == kFatalFailure; } > private: > Type type_; > > > > static internal::String ExtractSummary(const char* message); > > > > internal::String file_name_; > > > int line_number_; > internal::String summary_; > internal::String message_; >}; > > >std::ostream& operator<<(std::ostream& os, const TestPartResult& result); > > > > > >class TestPartResultArray { > public: > TestPartResultArray() {} > > > void Append(const TestPartResult& result); > > > const TestPartResult& GetTestPartResult(int index) const; > > > int size() const; > > private: > std::vector<TestPartResult> array_; > > TestPartResultArray(TestPartResultArray const &); void operator=(TestPartResultArray const &); >}; > > >class TestPartResultReporterInterface { > public: > virtual ~TestPartResultReporterInterface() {} > > virtual void ReportTestPartResult(const TestPartResult& result) = 0; >}; > >namespace internal { > > > > > > > >class HasNewFatalFailureHelper > : public TestPartResultReporterInterface { > public: > HasNewFatalFailureHelper(); > virtual ~HasNewFatalFailureHelper(); > virtual void ReportTestPartResult(const TestPartResult& result); > bool has_new_fatal_failure() const { return has_new_fatal_failure_; } > private: > bool has_new_fatal_failure_; > TestPartResultReporterInterface* original_reporter_; > > HasNewFatalFailureHelper(HasNewFatalFailureHelper const &); void operator=(HasNewFatalFailureHelper const &); >}; > >} > >} ># 16866 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_ ># 16991 "../gtest_contrib/gtest/gtest.h" >#define GTEST_TYPE_PARAMS_(TestCaseName) gtest_type_params_ ##TestCaseName ##_ > > > > >#define TYPED_TEST_CASE(CaseName,Types) typedef ::testing::internal::TypeList< Types >::type GTEST_TYPE_PARAMS_(CaseName) > > > >#define TYPED_TEST(CaseName,TestName) template <typename gtest_TypeParam_> class GTEST_TEST_CLASS_NAME_(CaseName, TestName) : public CaseName<gtest_TypeParam_> { private: typedef CaseName<gtest_TypeParam_> TestFixture; typedef gtest_TypeParam_ TypeParam; virtual void TestBody(); }; bool gtest_ ##CaseName ##_ ##TestName ##_registered_ GTEST_ATTRIBUTE_UNUSED_ = ::testing::internal::TypeParameterizedTest< CaseName, ::testing::internal::TemplateSel< GTEST_TEST_CLASS_NAME_(CaseName, TestName)>, GTEST_TYPE_PARAMS_(CaseName)>::Register( "", #CaseName, #TestName, 0); template <typename gtest_TypeParam_> void GTEST_TEST_CLASS_NAME_(CaseName, TestName)<gtest_TypeParam_>::TestBody() ># 17030 "../gtest_contrib/gtest/gtest.h" >#define GTEST_CASE_NAMESPACE_(TestCaseName) gtest_case_ ##TestCaseName ##_ > > > > > > >#define GTEST_TYPED_TEST_CASE_P_STATE_(TestCaseName) gtest_typed_test_case_p_state_ ##TestCaseName ##_ > > > > > > >#define GTEST_REGISTERED_TEST_NAMES_(TestCaseName) gtest_registered_test_names_ ##TestCaseName ##_ > > > > > >#define TYPED_TEST_CASE_P(CaseName) static ::testing::internal::TypedTestCasePState GTEST_TYPED_TEST_CASE_P_STATE_(CaseName) > > > >#define TYPED_TEST_P(CaseName,TestName) namespace GTEST_CASE_NAMESPACE_(CaseName) { template <typename gtest_TypeParam_> class TestName : public CaseName<gtest_TypeParam_> { private: typedef CaseName<gtest_TypeParam_> TestFixture; typedef gtest_TypeParam_ TypeParam; virtual void TestBody(); }; static bool gtest_ ##TestName ##_defined_ GTEST_ATTRIBUTE_UNUSED_ = GTEST_TYPED_TEST_CASE_P_STATE_(CaseName).AddTestName( __FILE__, __LINE__, #CaseName, #TestName); } template <typename gtest_TypeParam_> void GTEST_CASE_NAMESPACE_(CaseName)::TestName<gtest_TypeParam_>::TestBody() ># 17070 "../gtest_contrib/gtest/gtest.h" >#define REGISTER_TYPED_TEST_CASE_P(CaseName,...) namespace GTEST_CASE_NAMESPACE_(CaseName) { typedef ::testing::internal::Templates<__VA_ARGS__>::type gtest_AllTests_; } static const char* const GTEST_REGISTERED_TEST_NAMES_(CaseName) = GTEST_TYPED_TEST_CASE_P_STATE_(CaseName).VerifyRegisteredTestNames( __FILE__, __LINE__, #__VA_ARGS__) ># 17081 "../gtest_contrib/gtest/gtest.h" >#define INSTANTIATE_TYPED_TEST_CASE_P(Prefix,CaseName,Types) bool gtest_ ##Prefix ##_ ##CaseName GTEST_ATTRIBUTE_UNUSED_ = ::testing::internal::TypeParameterizedTestCase<CaseName, GTEST_CASE_NAMESPACE_(CaseName)::gtest_AllTests_, ::testing::internal::TypeList< Types >::type>::Register( #Prefix, #CaseName, GTEST_REGISTERED_TEST_NAMES_(CaseName)) ># 17107 "../gtest_contrib/gtest/gtest.h" >namespace testing { > > > > > extern bool FLAGS_gtest_also_run_disabled_tests; > > > extern bool FLAGS_gtest_break_on_failure; > > > > extern bool FLAGS_gtest_catch_exceptions; > > > > > extern ::testing::internal::String FLAGS_gtest_color; > > > > extern ::testing::internal::String FLAGS_gtest_filter; > > > > extern bool FLAGS_gtest_list_tests; > > > > extern ::testing::internal::String FLAGS_gtest_output; > > > > extern bool FLAGS_gtest_print_time; > > > extern ::testing::internal::Int32 FLAGS_gtest_random_seed; > > > > extern ::testing::internal::Int32 FLAGS_gtest_repeat; > > > > extern bool FLAGS_gtest_show_internal_stack_frames; > > > extern bool FLAGS_gtest_shuffle; > > > > extern ::testing::internal::Int32 FLAGS_gtest_stack_trace_depth; > > > > > extern bool FLAGS_gtest_throw_on_failure; > > > > > extern ::testing::internal::String FLAGS_gtest_stream_result_to; > > >const int kMaxStackTraceDepth = 100; > >namespace internal { > >class AssertHelper; >class DefaultGlobalTestPartResultReporter; >class ExecDeathTest; >class NoExecDeathTest; >class FinalSuccessChecker; >class GTestFlagSaver; >class TestResultAccessor; >class TestEventListenersAccessor; >class TestEventRepeater; >class WindowsDeathTest; >class UnitTestImpl* GetUnitTestImpl(); >void ReportFailureInUnknownLocation(TestPartResult::Type result_type, > const String& message); ># 17196 "../gtest_contrib/gtest/gtest.h" >template <typename T> >String StreamableToString(const T& streamable) { > return (Message() << streamable).GetString(); >} > >} > > > > >class Test; >class TestCase; >class TestInfo; >class UnitTest; ># 17290 "../gtest_contrib/gtest/gtest.h" >class AssertionResult { > public: > > > AssertionResult(const AssertionResult& other); > > explicit AssertionResult(bool success) : success_(success) {} > > > operator bool() const { return success_; } > > > AssertionResult operator!() const; > > > > > > const char* message() const { > return message_.get() != __null ? message_->c_str() : ""; > } > > > const char* failure_message() const { return message(); } > > > template <typename T> AssertionResult& operator<<(const T& value) { > AppendMessage(Message() << value); > return *this; > } > > > > AssertionResult& operator<<( > ::std::ostream& (*basic_manipulator)(::std::ostream& stream)) { > AppendMessage(Message() << basic_manipulator); > return *this; > } > > private: > > void AppendMessage(const Message& a_message) { > if (message_.get() == __null) > message_.reset(new ::std::string); > message_->append(a_message.GetString().c_str()); > } > > > bool success_; > > > > > internal::scoped_ptr< ::std::string> message_; > > void operator=(AssertionResult const &); >}; > > > AssertionResult AssertionSuccess(); > > > AssertionResult AssertionFailure(); > > > > AssertionResult AssertionFailure(const Message& msg); ># 17381 "../gtest_contrib/gtest/gtest.h" >class Test { > public: > friend class TestInfo; > > > > typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc; > typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc; > > > virtual ~Test(); > > > > > > > > static void SetUpTestCase() {} > > > > > > > > static void TearDownTestCase() {} > > > static bool HasFatalFailure(); > > > static bool HasNonfatalFailure(); > > > > static bool HasFailure() { return HasFatalFailure() || HasNonfatalFailure(); } ># 17431 "../gtest_contrib/gtest/gtest.h" > static void RecordProperty(const char* key, const char* value); > static void RecordProperty(const char* key, int value); > > protected: > > Test(); > > > virtual void SetUp(); > > > virtual void TearDown(); > > private: > > > static bool HasSameFixtureClass(); > > > > > > > > virtual void TestBody() = 0; > > > void Run(); > > > > void DeleteSelf_() { delete this; } > > > const internal::GTestFlagSaver* const gtest_flag_saver_; ># 17483 "../gtest_contrib/gtest/gtest.h" > struct Setup_should_be_spelled_SetUp {}; > virtual Setup_should_be_spelled_SetUp* Setup() { return __null; } > > > Test(Test const &); void operator=(Test const &); >}; > >typedef internal::TimeInMillis TimeInMillis; > > > > > >class TestProperty { > public: > > > > TestProperty(const char* a_key, const char* a_value) : > key_(a_key), value_(a_value) { > } > > > const char* key() const { > return key_.c_str(); > } > > > const char* value() const { > return value_.c_str(); > } > > > void SetValue(const char* new_value) { > value_ = new_value; > } > > private: > > internal::String key_; > > internal::String value_; >}; > > > > > > > >class TestResult { > public: > > TestResult(); > > > ~TestResult(); > > > > int total_part_count() const; > > > int test_property_count() const; > > > bool Passed() const { return !Failed(); } > > > bool Failed() const; > > > bool HasFatalFailure() const; > > > bool HasNonfatalFailure() const; > > > TimeInMillis elapsed_time() const { return elapsed_time_; } > > > > > const TestPartResult& GetTestPartResult(int i) const; > > > > > const TestProperty& GetTestProperty(int i) const; > > private: > friend class TestInfo; > friend class UnitTest; > friend class internal::DefaultGlobalTestPartResultReporter; > friend class internal::ExecDeathTest; > friend class internal::TestResultAccessor; > friend class internal::UnitTestImpl; > friend class internal::WindowsDeathTest; > > > const std::vector<TestPartResult>& test_part_results() const { > return test_part_results_; > } > > > const std::vector<TestProperty>& test_properties() const { > return test_properties_; > } > > > void set_elapsed_time(TimeInMillis elapsed) { elapsed_time_ = elapsed; } > > > > > > > void RecordProperty(const TestProperty& test_property); > > > > > static bool ValidateTestProperty(const TestProperty& test_property); > > > void AddTestPartResult(const TestPartResult& test_part_result); > > > int death_test_count() const { return death_test_count_; } > > > int increment_death_test_count() { return ++death_test_count_; } > > > void ClearTestPartResults(); > > > void Clear(); > > > > internal::Mutex test_properites_mutex_; > > > std::vector<TestPartResult> test_part_results_; > > std::vector<TestProperty> test_properties_; > > int death_test_count_; > > TimeInMillis elapsed_time_; > > > TestResult(TestResult const &); void operator=(TestResult const &); >}; ># 17650 "../gtest_contrib/gtest/gtest.h" >class TestInfo { > public: > > > ~TestInfo(); > > > const char* test_case_name() const { return test_case_name_.c_str(); } > > > const char* name() const { return name_.c_str(); } > > > > const char* type_param() const { > if (type_param_.get() != __null) > return type_param_->c_str(); > return __null; > } > > > > const char* value_param() const { > if (value_param_.get() != __null) > return value_param_->c_str(); > return __null; > } ># 17694 "../gtest_contrib/gtest/gtest.h" > bool should_run() const { return should_run_; } > > > const TestResult* result() const { return &result_; } > > private: > > > friend class internal::DefaultDeathTestFactory; > > friend class Test; > friend class TestCase; > friend class internal::UnitTestImpl; > friend TestInfo* internal::MakeAndRegisterTestInfo( > const char* test_case_name, const char* name, > const char* type_param, > const char* value_param, > internal::TypeId fixture_class_id, > Test::SetUpTestCaseFunc set_up_tc, > Test::TearDownTestCaseFunc tear_down_tc, > internal::TestFactoryBase* factory); > > > > TestInfo(const char* test_case_name, const char* name, > const char* a_type_param, > const char* a_value_param, > internal::TypeId fixture_class_id, > internal::TestFactoryBase* factory); > > > > int increment_death_test_count() { > return result_.increment_death_test_count(); > } > > > > void Run(); > > static void ClearTestResult(TestInfo* test_info) { > test_info->result_.Clear(); > } > > > const std::string test_case_name_; > const std::string name_; > > > const internal::scoped_ptr<const ::std::string> type_param_; > > > const internal::scoped_ptr<const ::std::string> value_param_; > const internal::TypeId fixture_class_id_; > bool should_run_; > bool is_disabled_; > bool matches_filter_; > > internal::TestFactoryBase* const factory_; > > > > > TestResult result_; > > TestInfo(TestInfo const &); void operator=(TestInfo const &); >}; > > > > >class TestCase { > public: ># 17779 "../gtest_contrib/gtest/gtest.h" > TestCase(const char* name, const char* a_type_param, > Test::SetUpTestCaseFunc set_up_tc, > Test::TearDownTestCaseFunc tear_down_tc); > > > virtual ~TestCase(); > > > const char* name() const { return name_.c_str(); } > > > > const char* type_param() const { > if (type_param_.get() != __null) > return type_param_->c_str(); > return __null; > } > > > bool should_run() const { return should_run_; } > > > int successful_test_count() const; > > > int failed_test_count() const; > > > int disabled_test_count() const; > > > int test_to_run_count() const; > > > int total_test_count() const; > > > bool Passed() const { return !Failed(); } > > > bool Failed() const { return failed_test_count() > 0; } > > > TimeInMillis elapsed_time() const { return elapsed_time_; } > > > > const TestInfo* GetTestInfo(int i) const; > > private: > friend class Test; > friend class internal::UnitTestImpl; > > > std::vector<TestInfo*>& test_info_list() { return test_info_list_; } > > > const std::vector<TestInfo*>& test_info_list() const { > return test_info_list_; > } > > > > TestInfo* GetMutableTestInfo(int i); > > > void set_should_run(bool should) { should_run_ = should; } > > > > void AddTestInfo(TestInfo * test_info); > > > void ClearResult(); > > > static void ClearTestCaseResult(TestCase* test_case) { > test_case->ClearResult(); > } > > > void Run(); > > > > void RunSetUpTestCase() { (*set_up_tc_)(); } > > > > void RunTearDownTestCase() { (*tear_down_tc_)(); } > > > static bool TestPassed(const TestInfo* test_info) { > return test_info->should_run() && test_info->result()->Passed(); > } > > > static bool TestFailed(const TestInfo* test_info) { > return test_info->should_run() && test_info->result()->Failed(); > } > > > static bool TestDisabled(const TestInfo* test_info) { > return test_info->is_disabled_; > } > > > static bool ShouldRunTest(const TestInfo* test_info) { > return test_info->should_run(); > } > > > void ShuffleTests(internal::Random* random); > > > void UnshuffleTests(); > > > internal::String name_; > > > const internal::scoped_ptr<const ::std::string> type_param_; > > > std::vector<TestInfo*> test_info_list_; > > > > std::vector<int> test_indices_; > > Test::SetUpTestCaseFunc set_up_tc_; > > Test::TearDownTestCaseFunc tear_down_tc_; > > bool should_run_; > > TimeInMillis elapsed_time_; > > > TestCase(TestCase const &); void operator=(TestCase const &); >}; ># 17935 "../gtest_contrib/gtest/gtest.h" >class Environment { > public: > > virtual ~Environment() {} > > > virtual void SetUp() {} > > > virtual void TearDown() {} > private: > > > struct Setup_should_be_spelled_SetUp {}; > virtual Setup_should_be_spelled_SetUp* Setup() { return __null; } >}; > > > >class TestEventListener { > public: > virtual ~TestEventListener() {} > > > virtual void OnTestProgramStart(const UnitTest& unit_test) = 0; > > > > > virtual void OnTestIterationStart(const UnitTest& unit_test, > int iteration) = 0; > > > virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test) = 0; > > > virtual void OnEnvironmentsSetUpEnd(const UnitTest& unit_test) = 0; > > > virtual void OnTestCaseStart(const TestCase& test_case) = 0; > > > virtual void OnTestStart(const TestInfo& test_info) = 0; > > > virtual void OnTestPartResult(const TestPartResult& test_part_result) = 0; > > > virtual void OnTestEnd(const TestInfo& test_info) = 0; > > > virtual void OnTestCaseEnd(const TestCase& test_case) = 0; > > > virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test) = 0; > > > virtual void OnEnvironmentsTearDownEnd(const UnitTest& unit_test) = 0; > > > virtual void OnTestIterationEnd(const UnitTest& unit_test, > int iteration) = 0; > > > virtual void OnTestProgramEnd(const UnitTest& unit_test) = 0; >}; > > > > > > >class EmptyTestEventListener : public TestEventListener { > public: > virtual void OnTestProgramStart(const UnitTest& ) {} > virtual void OnTestIterationStart(const UnitTest& , > int ) {} > virtual void OnEnvironmentsSetUpStart(const UnitTest& ) {} > virtual void OnEnvironmentsSetUpEnd(const UnitTest& ) {} > virtual void OnTestCaseStart(const TestCase& ) {} > virtual void OnTestStart(const TestInfo& ) {} > virtual void OnTestPartResult(const TestPartResult& ) {} > virtual void OnTestEnd(const TestInfo& ) {} > virtual void OnTestCaseEnd(const TestCase& ) {} > virtual void OnEnvironmentsTearDownStart(const UnitTest& ) {} > virtual void OnEnvironmentsTearDownEnd(const UnitTest& ) {} > virtual void OnTestIterationEnd(const UnitTest& , > int ) {} > virtual void OnTestProgramEnd(const UnitTest& ) {} >}; > > >class TestEventListeners { > public: > TestEventListeners(); > ~TestEventListeners(); > > > > > void Append(TestEventListener* listener); > > > > > TestEventListener* Release(TestEventListener* listener); > > > > > > > TestEventListener* default_result_printer() const { > return default_result_printer_; > } ># 18058 "../gtest_contrib/gtest/gtest.h" > TestEventListener* default_xml_generator() const { > return default_xml_generator_; > } > > private: > friend class TestCase; > friend class TestInfo; > friend class internal::DefaultGlobalTestPartResultReporter; > friend class internal::NoExecDeathTest; > friend class internal::TestEventListenersAccessor; > friend class internal::UnitTestImpl; > > > > TestEventListener* repeater(); > > > > > > > void SetDefaultResultPrinter(TestEventListener* listener); > > > > > > > void SetDefaultXmlGenerator(TestEventListener* listener); > > > > bool EventForwardingEnabled() const; > void SuppressEventForwarding(); > > > internal::TestEventRepeater* repeater_; > > TestEventListener* default_result_printer_; > > TestEventListener* default_xml_generator_; > > > TestEventListeners(TestEventListeners const &); void operator=(TestEventListeners const &); >}; ># 18114 "../gtest_contrib/gtest/gtest.h" >class UnitTest { > public: > > > > static UnitTest* GetInstance(); > > > > > > > > int Run() __attribute__ ((warn_unused_result)); > > > > const char* original_working_dir() const; > > > > const TestCase* current_test_case() const; > > > > const TestInfo* current_test_info() const; > > > int random_seed() const; > > > > > > > internal::ParameterizedTestCaseRegistry& parameterized_test_registry(); > > > > int successful_test_case_count() const; > > > int failed_test_case_count() const; > > > int total_test_case_count() const; > > > > int test_case_to_run_count() const; > > > int successful_test_count() const; > > > int failed_test_count() const; > > > int disabled_test_count() const; > > > int total_test_count() const; > > > int test_to_run_count() const; > > > TimeInMillis elapsed_time() const; > > > bool Passed() const; > > > > bool Failed() const; > > > > const TestCase* GetTestCase(int i) const; > > > > TestEventListeners& listeners(); > > private: ># 18208 "../gtest_contrib/gtest/gtest.h" > Environment* AddEnvironment(Environment* env); > > > > > > void AddTestPartResult(TestPartResult::Type result_type, > const char* file_name, > int line_number, > const internal::String& message, > const internal::String& os_stack_trace); > > > > void RecordPropertyForCurrentTest(const char* key, const char* value); > > > > TestCase* GetMutableTestCase(int i); > > > internal::UnitTestImpl* impl() { return impl_; } > const internal::UnitTestImpl* impl() const { return impl_; } > > > > friend class Test; > friend class internal::AssertHelper; > friend class internal::ScopedTrace; > friend Environment* AddGlobalTestEnvironment(Environment* env); > friend internal::UnitTestImpl* internal::GetUnitTestImpl(); > friend void internal::ReportFailureInUnknownLocation( > TestPartResult::Type result_type, > const internal::String& message); > > > UnitTest(); > > > virtual ~UnitTest(); > > > > void PushGTestTrace(const internal::TraceInfo& trace); > > > void PopGTestTrace(); > > > > mutable internal::Mutex mutex_; > > > > > > internal::UnitTestImpl* impl_; > > > UnitTest(UnitTest const &); void operator=(UnitTest const &); >}; ># 18288 "../gtest_contrib/gtest/gtest.h" >inline Environment* AddGlobalTestEnvironment(Environment* env) { > return UnitTest::GetInstance()->AddEnvironment(env); >} ># 18301 "../gtest_contrib/gtest/gtest.h" > void InitGoogleTest(int* argc, char** argv); > > > > void InitGoogleTest(int* argc, wchar_t** argv); > >namespace internal { ># 18321 "../gtest_contrib/gtest/gtest.h" >template <typename T1, typename T2> >String FormatForComparisonFailureMessage(const T1& value, > const T2& ) { > > > return ::testing::PrintToString(value); >} > > >template <typename T1, typename T2> >AssertionResult CmpHelperEQ(const char* expected_expression, > const char* actual_expression, > const T1& expected, > const T2& actual) { > > > > > > > if (expected == actual) { > return AssertionSuccess(); > } > > > > > > return EqFailure(expected_expression, > actual_expression, > FormatForComparisonFailureMessage(expected, actual), > FormatForComparisonFailureMessage(actual, expected), > false); >} > > > > > AssertionResult CmpHelperEQ(const char* expected_expression, > const char* actual_expression, > BiggestInt expected, > BiggestInt actual); > > > > > >template <bool lhs_is_null_literal> >class EqHelper { > public: > > template <typename T1, typename T2> > static AssertionResult Compare(const char* expected_expression, > const char* actual_expression, > const T1& expected, > const T2& actual) { > return CmpHelperEQ(expected_expression, actual_expression, expected, > actual); > } > > > > > > > > static AssertionResult Compare(const char* expected_expression, > const char* actual_expression, > BiggestInt expected, > BiggestInt actual) { > return CmpHelperEQ(expected_expression, actual_expression, expected, > actual); > } >}; > > > >template <> >class EqHelper<true> { > public: > > > > > template <typename T1, typename T2> > static AssertionResult Compare( > const char* expected_expression, > const char* actual_expression, > const T1& expected, > const T2& actual, > > > > > > typename EnableIf<!is_pointer<T2>::value>::type* = 0) { > return CmpHelperEQ(expected_expression, actual_expression, expected, > actual); > } > > > > template <typename T> > static AssertionResult Compare( > const char* expected_expression, > const char* actual_expression, > > > > > > > Secret* , > T* actual) { > > return CmpHelperEQ(expected_expression, actual_expression, > static_cast<T*>(__null), actual); > } >}; ># 18451 "../gtest_contrib/gtest/gtest.h" >#define GTEST_IMPL_CMP_HELPER_(op_name,op) template <typename T1, typename T2>AssertionResult CmpHelper ##op_name(const char* expr1, const char* expr2, const T1& val1, const T2& val2) { if (val1 op val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " #op " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }}GTEST_API_ AssertionResult CmpHelper ##op_name( const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2) ># 18470 "../gtest_contrib/gtest/gtest.h" >template <typename T1, typename T2>AssertionResult CmpHelperNE(const char* expr1, const char* expr2, const T1& val1, const T2& val2) { if (val1 != val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " "!=" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} AssertionResult CmpHelperNE( const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2); > >template <typename T1, typename T2>AssertionResult CmpHelperLE(const char* expr1, const char* expr2, const T1& val1, const T2& val2) { if (val1 <= val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " "<=" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} AssertionResult CmpHelperLE( const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2); > >template <typename T1, typename T2>AssertionResult CmpHelperLT(const char* expr1, const char* expr2, const T1& val1, const T2& val2) { if (val1 < val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " "<" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} AssertionResult CmpHelperLT( const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2); > >template <typename T1, typename T2>AssertionResult CmpHelperGE(const char* expr1, const char* expr2, const T1& val1, const T2& val2) { if (val1 >= val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " ">=" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} AssertionResult CmpHelperGE( const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2); > >template <typename T1, typename T2>AssertionResult CmpHelperGT(const char* expr1, const char* expr2, const T1& val1, const T2& val2) { if (val1 > val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " ">" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} AssertionResult CmpHelperGT( const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2); > >#undef GTEST_IMPL_CMP_HELPER_ > > > > > AssertionResult CmpHelperSTREQ(const char* expected_expression, > const char* actual_expression, > const char* expected, > const char* actual); > > > > > AssertionResult CmpHelperSTRCASEEQ(const char* expected_expression, > const char* actual_expression, > const char* expected, > const char* actual); > > > > > AssertionResult CmpHelperSTRNE(const char* s1_expression, > const char* s2_expression, > const char* s1, > const char* s2); > > > > > AssertionResult CmpHelperSTRCASENE(const char* s1_expression, > const char* s2_expression, > const char* s1, > const char* s2); > > > > > > AssertionResult CmpHelperSTREQ(const char* expected_expression, > const char* actual_expression, > const wchar_t* expected, > const wchar_t* actual); > > > > > AssertionResult CmpHelperSTRNE(const char* s1_expression, > const char* s2_expression, > const wchar_t* s1, > const wchar_t* s2); > >} ># 18541 "../gtest_contrib/gtest/gtest.h" > AssertionResult IsSubstring( > const char* needle_expr, const char* haystack_expr, > const char* needle, const char* haystack); > AssertionResult IsSubstring( > const char* needle_expr, const char* haystack_expr, > const wchar_t* needle, const wchar_t* haystack); > AssertionResult IsNotSubstring( > const char* needle_expr, const char* haystack_expr, > const char* needle, const char* haystack); > AssertionResult IsNotSubstring( > const char* needle_expr, const char* haystack_expr, > const wchar_t* needle, const wchar_t* haystack); > AssertionResult IsSubstring( > const char* needle_expr, const char* haystack_expr, > const ::std::string& needle, const ::std::string& haystack); > AssertionResult IsNotSubstring( > const char* needle_expr, const char* haystack_expr, > const ::std::string& needle, const ::std::string& haystack); > > > AssertionResult IsSubstring( > const char* needle_expr, const char* haystack_expr, > const ::std::wstring& needle, const ::std::wstring& haystack); > AssertionResult IsNotSubstring( > const char* needle_expr, const char* haystack_expr, > const ::std::wstring& needle, const ::std::wstring& haystack); > > >namespace internal { ># 18578 "../gtest_contrib/gtest/gtest.h" >template <typename RawType> >AssertionResult CmpHelperFloatingPointEQ(const char* expected_expression, > const char* actual_expression, > RawType expected, > RawType actual) { > const FloatingPoint<RawType> lhs(expected), rhs(actual); > > if (lhs.AlmostEquals(rhs)) { > return AssertionSuccess(); > } > > ::std::stringstream expected_ss; > expected_ss << std::setprecision(std::numeric_limits<RawType>::digits10 + 2) > << expected; > > ::std::stringstream actual_ss; > actual_ss << std::setprecision(std::numeric_limits<RawType>::digits10 + 2) > << actual; > > return EqFailure(expected_expression, > actual_expression, > StringStreamToString(&expected_ss), > StringStreamToString(&actual_ss), > false); >} > > > > > AssertionResult DoubleNearPredFormat(const char* expr1, > const char* expr2, > const char* abs_error_expr, > double val1, > double val2, > double abs_error); > > > >class AssertHelper { > public: > > AssertHelper(TestPartResult::Type type, > const char* file, > int line, > const char* message); > ~AssertHelper(); > > > > void operator=(const Message& message) const; > > private: > > > > > struct AssertHelperData { > AssertHelperData(TestPartResult::Type t, > const char* srcfile, > int line_num, > const char* msg) > : type(t), file(srcfile), line(line_num), message(msg) { } > > TestPartResult::Type const type; > const char* const file; > int const line; > String const message; > > private: > AssertHelperData(AssertHelperData const &); void operator=(AssertHelperData const &); > }; > > AssertHelperData* const data_; > > AssertHelper(AssertHelper const &); void operator=(AssertHelper const &); >}; > >} ># 18692 "../gtest_contrib/gtest/gtest.h" >template <typename T> >class WithParamInterface { > public: > typedef T ParamType; > virtual ~WithParamInterface() {} > > > > > > > const ParamType& GetParam() const { return *parameter_; } > > private: > > > static void SetParam(const ParamType* parameter) { > parameter_ = parameter; > } > > > static const ParamType* parameter_; > > > template <class TestClass> friend class internal::ParameterizedTestFactory; >}; > >template <typename T> >const T* WithParamInterface<T>::parameter_ = __null; > > > > >template <typename T> >class TestWithParam : public Test, public WithParamInterface<T> { >}; ># 18757 "../gtest_contrib/gtest/gtest.h" >#define ADD_FAILURE() GTEST_NONFATAL_FAILURE_("Failed") > > > >#define ADD_FAILURE_AT(file,line) GTEST_MESSAGE_AT_(file, line, "Failed", ::testing::TestPartResult::kNonFatalFailure) > > > > >#define GTEST_FAIL() GTEST_FATAL_FAILURE_("Failed") > > > > >#define FAIL() GTEST_FAIL() > > > >#define GTEST_SUCCEED() GTEST_SUCCESS_("Succeeded") > > > > >#define SUCCEED() GTEST_SUCCEED() ># 18792 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_THROW(statement,expected_exception) GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_) > >#define EXPECT_NO_THROW(statement) GTEST_TEST_NO_THROW_(statement, GTEST_NONFATAL_FAILURE_) > >#define EXPECT_ANY_THROW(statement) GTEST_TEST_ANY_THROW_(statement, GTEST_NONFATAL_FAILURE_) > >#define ASSERT_THROW(statement,expected_exception) GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_) > >#define ASSERT_NO_THROW(statement) GTEST_TEST_NO_THROW_(statement, GTEST_FATAL_FAILURE_) > >#define ASSERT_ANY_THROW(statement) GTEST_TEST_ANY_THROW_(statement, GTEST_FATAL_FAILURE_) > > > > > >#define EXPECT_TRUE(condition) GTEST_TEST_BOOLEAN_(condition, #condition, false, true, GTEST_NONFATAL_FAILURE_) > > >#define EXPECT_FALSE(condition) GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, GTEST_NONFATAL_FAILURE_) > > >#define ASSERT_TRUE(condition) GTEST_TEST_BOOLEAN_(condition, #condition, false, true, GTEST_FATAL_FAILURE_) > > >#define ASSERT_FALSE(condition) GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, GTEST_FATAL_FAILURE_) ># 18858 "../gtest_contrib/gtest/gtest.h" >#define GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_ ># 18897 "../gtest_contrib/gtest/gtest.h" >#define GTEST_ASSERT_(expression,on_failure) GTEST_AMBIGUOUS_ELSE_BLOCKER_ if (const ::testing::AssertionResult gtest_ar = (expression)) ; else on_failure(gtest_ar.failure_message()) ># 18907 "../gtest_contrib/gtest/gtest.h" >template <typename Pred, > typename T1> >AssertionResult AssertPred1Helper(const char* pred_text, > const char* e1, > Pred pred, > const T1& v1) { > if (pred(v1)) return AssertionSuccess(); > > return AssertionFailure() << pred_text << "(" > << e1 << ") evaluates to false, where" > << "\n" << e1 << " evaluates to " << v1; >} > > > >#define GTEST_PRED_FORMAT1_(pred_format,v1,on_failure) GTEST_ASSERT_(pred_format(#v1, v1), on_failure) > > > > > >#define GTEST_PRED1_(pred,v1,on_failure) GTEST_ASSERT_(::testing::AssertPred1Helper(#pred, #v1, pred, v1), on_failure) > > > > > > >#define EXPECT_PRED_FORMAT1(pred_format,v1) GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_NONFATAL_FAILURE_) > >#define EXPECT_PRED1(pred,v1) GTEST_PRED1_(pred, v1, GTEST_NONFATAL_FAILURE_) > >#define ASSERT_PRED_FORMAT1(pred_format,v1) GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_FATAL_FAILURE_) > >#define ASSERT_PRED1(pred,v1) GTEST_PRED1_(pred, v1, GTEST_FATAL_FAILURE_) > > > > > > >template <typename Pred, > typename T1, > typename T2> >AssertionResult AssertPred2Helper(const char* pred_text, > const char* e1, > const char* e2, > Pred pred, > const T1& v1, > const T2& v2) { > if (pred(v1, v2)) return AssertionSuccess(); > > return AssertionFailure() << pred_text << "(" > << e1 << ", " > << e2 << ") evaluates to false, where" > << "\n" << e1 << " evaluates to " << v1 > << "\n" << e2 << " evaluates to " << v2; >} > > > >#define GTEST_PRED_FORMAT2_(pred_format,v1,v2,on_failure) GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), on_failure) > > > > > >#define GTEST_PRED2_(pred,v1,v2,on_failure) GTEST_ASSERT_(::testing::AssertPred2Helper(#pred, #v1, #v2, pred, v1, v2), on_failure) ># 18983 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_PRED_FORMAT2(pred_format,v1,v2) GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_) > >#define EXPECT_PRED2(pred,v1,v2) GTEST_PRED2_(pred, v1, v2, GTEST_NONFATAL_FAILURE_) > >#define ASSERT_PRED_FORMAT2(pred_format,v1,v2) GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_) > >#define ASSERT_PRED2(pred,v1,v2) GTEST_PRED2_(pred, v1, v2, GTEST_FATAL_FAILURE_) > > > > > > >template <typename Pred, > typename T1, > typename T2, > typename T3> >AssertionResult AssertPred3Helper(const char* pred_text, > const char* e1, > const char* e2, > const char* e3, > Pred pred, > const T1& v1, > const T2& v2, > const T3& v3) { > if (pred(v1, v2, v3)) return AssertionSuccess(); > > return AssertionFailure() << pred_text << "(" > << e1 << ", " > << e2 << ", " > << e3 << ") evaluates to false, where" > << "\n" << e1 << " evaluates to " << v1 > << "\n" << e2 << " evaluates to " << v2 > << "\n" << e3 << " evaluates to " << v3; >} > > > >#define GTEST_PRED_FORMAT3_(pred_format,v1,v2,v3,on_failure) GTEST_ASSERT_(pred_format(#v1, #v2, #v3, v1, v2, v3), on_failure) > > > > > >#define GTEST_PRED3_(pred,v1,v2,v3,on_failure) GTEST_ASSERT_(::testing::AssertPred3Helper(#pred, #v1, #v2, #v3, pred, v1, v2, v3), on_failure) ># 19038 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_PRED_FORMAT3(pred_format,v1,v2,v3) GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, GTEST_NONFATAL_FAILURE_) > >#define EXPECT_PRED3(pred,v1,v2,v3) GTEST_PRED3_(pred, v1, v2, v3, GTEST_NONFATAL_FAILURE_) > >#define ASSERT_PRED_FORMAT3(pred_format,v1,v2,v3) GTEST_PRED_FORMAT3_(pred_format, v1, v2, v3, GTEST_FATAL_FAILURE_) > >#define ASSERT_PRED3(pred,v1,v2,v3) GTEST_PRED3_(pred, v1, v2, v3, GTEST_FATAL_FAILURE_) > > > > > > >template <typename Pred, > typename T1, > typename T2, > typename T3, > typename T4> >AssertionResult AssertPred4Helper(const char* pred_text, > const char* e1, > const char* e2, > const char* e3, > const char* e4, > Pred pred, > const T1& v1, > const T2& v2, > const T3& v3, > const T4& v4) { > if (pred(v1, v2, v3, v4)) return AssertionSuccess(); > > return AssertionFailure() << pred_text << "(" > << e1 << ", " > << e2 << ", " > << e3 << ", " > << e4 << ") evaluates to false, where" > << "\n" << e1 << " evaluates to " << v1 > << "\n" << e2 << " evaluates to " << v2 > << "\n" << e3 << " evaluates to " << v3 > << "\n" << e4 << " evaluates to " << v4; >} > > > >#define GTEST_PRED_FORMAT4_(pred_format,v1,v2,v3,v4,on_failure) GTEST_ASSERT_(pred_format(#v1, #v2, #v3, #v4, v1, v2, v3, v4), on_failure) > > > > > >#define GTEST_PRED4_(pred,v1,v2,v3,v4,on_failure) GTEST_ASSERT_(::testing::AssertPred4Helper(#pred, #v1, #v2, #v3, #v4, pred, v1, v2, v3, v4), on_failure) ># 19100 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_PRED_FORMAT4(pred_format,v1,v2,v3,v4) GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, GTEST_NONFATAL_FAILURE_) > >#define EXPECT_PRED4(pred,v1,v2,v3,v4) GTEST_PRED4_(pred, v1, v2, v3, v4, GTEST_NONFATAL_FAILURE_) > >#define ASSERT_PRED_FORMAT4(pred_format,v1,v2,v3,v4) GTEST_PRED_FORMAT4_(pred_format, v1, v2, v3, v4, GTEST_FATAL_FAILURE_) > >#define ASSERT_PRED4(pred,v1,v2,v3,v4) GTEST_PRED4_(pred, v1, v2, v3, v4, GTEST_FATAL_FAILURE_) > > > > > > >template <typename Pred, > typename T1, > typename T2, > typename T3, > typename T4, > typename T5> >AssertionResult AssertPred5Helper(const char* pred_text, > const char* e1, > const char* e2, > const char* e3, > const char* e4, > const char* e5, > Pred pred, > const T1& v1, > const T2& v2, > const T3& v3, > const T4& v4, > const T5& v5) { > if (pred(v1, v2, v3, v4, v5)) return AssertionSuccess(); > > return AssertionFailure() << pred_text << "(" > << e1 << ", " > << e2 << ", " > << e3 << ", " > << e4 << ", " > << e5 << ") evaluates to false, where" > << "\n" << e1 << " evaluates to " << v1 > << "\n" << e2 << " evaluates to " << v2 > << "\n" << e3 << " evaluates to " << v3 > << "\n" << e4 << " evaluates to " << v4 > << "\n" << e5 << " evaluates to " << v5; >} > > > >#define GTEST_PRED_FORMAT5_(pred_format,v1,v2,v3,v4,v5,on_failure) GTEST_ASSERT_(pred_format(#v1, #v2, #v3, #v4, #v5, v1, v2, v3, v4, v5), on_failure) > > > > > >#define GTEST_PRED5_(pred,v1,v2,v3,v4,v5,on_failure) GTEST_ASSERT_(::testing::AssertPred5Helper(#pred, #v1, #v2, #v3, #v4, #v5, pred, v1, v2, v3, v4, v5), on_failure) ># 19169 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_PRED_FORMAT5(pred_format,v1,v2,v3,v4,v5) GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, GTEST_NONFATAL_FAILURE_) > >#define EXPECT_PRED5(pred,v1,v2,v3,v4,v5) GTEST_PRED5_(pred, v1, v2, v3, v4, v5, GTEST_NONFATAL_FAILURE_) > >#define ASSERT_PRED_FORMAT5(pred_format,v1,v2,v3,v4,v5) GTEST_PRED_FORMAT5_(pred_format, v1, v2, v3, v4, v5, GTEST_FATAL_FAILURE_) > >#define ASSERT_PRED5(pred,v1,v2,v3,v4,v5) GTEST_PRED5_(pred, v1, v2, v3, v4, v5, GTEST_FATAL_FAILURE_) ># 19228 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_EQ(expected,actual) EXPECT_PRED_FORMAT2(::testing::internal:: EqHelper<GTEST_IS_NULL_LITERAL_(expected)>::Compare, expected, actual) > > > >#define EXPECT_NE(expected,actual) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNE, expected, actual) > >#define EXPECT_LE(val1,val2) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2) > >#define EXPECT_LT(val1,val2) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2) > >#define EXPECT_GE(val1,val2) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2) > >#define EXPECT_GT(val1,val2) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2) > > >#define GTEST_ASSERT_EQ(expected,actual) ASSERT_PRED_FORMAT2(::testing::internal:: EqHelper<GTEST_IS_NULL_LITERAL_(expected)>::Compare, expected, actual) > > > >#define GTEST_ASSERT_NE(val1,val2) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2) > >#define GTEST_ASSERT_LE(val1,val2) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2) > >#define GTEST_ASSERT_LT(val1,val2) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2) > >#define GTEST_ASSERT_GE(val1,val2) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2) > >#define GTEST_ASSERT_GT(val1,val2) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2) > > > > > > >#define ASSERT_EQ(val1,val2) GTEST_ASSERT_EQ(val1, val2) > > > >#define ASSERT_NE(val1,val2) GTEST_ASSERT_NE(val1, val2) > > > >#define ASSERT_LE(val1,val2) GTEST_ASSERT_LE(val1, val2) > > > >#define ASSERT_LT(val1,val2) GTEST_ASSERT_LT(val1, val2) > > > >#define ASSERT_GE(val1,val2) GTEST_ASSERT_GE(val1, val2) > > > >#define ASSERT_GT(val1,val2) GTEST_ASSERT_GT(val1, val2) ># 19301 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_STREQ(expected,actual) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual) > >#define EXPECT_STRNE(s1,s2) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2) > >#define EXPECT_STRCASEEQ(expected,actual) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual) > >#define EXPECT_STRCASENE(s1,s2) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2) > > >#define ASSERT_STREQ(expected,actual) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual) > >#define ASSERT_STRNE(s1,s2) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2) > >#define ASSERT_STRCASEEQ(expected,actual) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual) > >#define ASSERT_STRCASENE(s1,s2) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2) ># 19333 "../gtest_contrib/gtest/gtest.h" >#define EXPECT_FLOAT_EQ(expected,actual) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<float>, expected, actual) > > > >#define EXPECT_DOUBLE_EQ(expected,actual) EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<double>, expected, actual) > > > >#define ASSERT_FLOAT_EQ(expected,actual) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<float>, expected, actual) > > > >#define ASSERT_DOUBLE_EQ(expected,actual) ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<double>, expected, actual) > > > >#define EXPECT_NEAR(val1,val2,abs_error) EXPECT_PRED_FORMAT3(::testing::internal::DoubleNearPredFormat, val1, val2, abs_error) > > > >#define ASSERT_NEAR(val1,val2,abs_error) ASSERT_PRED_FORMAT3(::testing::internal::DoubleNearPredFormat, val1, val2, abs_error) ># 19364 "../gtest_contrib/gtest/gtest.h" > AssertionResult FloatLE(const char* expr1, const char* expr2, > float val1, float val2); > AssertionResult DoubleLE(const char* expr1, const char* expr2, > double val1, double val2); ># 19405 "../gtest_contrib/gtest/gtest.h" >#define ASSERT_NO_FATAL_FAILURE(statement) GTEST_TEST_NO_FATAL_FAILURE_(statement, GTEST_FATAL_FAILURE_) > >#define EXPECT_NO_FATAL_FAILURE(statement) GTEST_TEST_NO_FATAL_FAILURE_(statement, GTEST_NONFATAL_FAILURE_) ># 19421 "../gtest_contrib/gtest/gtest.h" >#define SCOPED_TRACE(message) ::testing::internal::ScopedTrace GTEST_CONCAT_TOKEN_(gtest_trace_, __LINE__)( __FILE__, __LINE__, ::testing::Message() << (message)) ># 19455 "../gtest_contrib/gtest/gtest.h" >template <typename T1, typename T2> >bool StaticAssertTypeEq() { > (void)internal::StaticAssertTypeEqHelper<T1, T2>(); > return true; >} ># 19486 "../gtest_contrib/gtest/gtest.h" >#define GTEST_TEST(test_case_name,test_name) GTEST_TEST_(test_case_name, test_name, ::testing::Test, ::testing::internal::GetTestTypeId()) > > > > > > >#define TEST(test_case_name,test_name) GTEST_TEST(test_case_name, test_name) ># 19522 "../gtest_contrib/gtest/gtest.h" >#define TEST_F(test_fixture,test_name) GTEST_TEST_(test_fixture, test_name, test_fixture, ::testing::internal::GetTypeId<test_fixture>()) ># 19532 "../gtest_contrib/gtest/gtest.h" >#define RUN_ALL_TESTS() (::testing::UnitTest::GetInstance()->Run()) > > >} ># 40 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 110 "../gtest_contrib/gmock-gtest-all.cc" >#define GTEST_INCLUDE_GTEST_GTEST_SPI_H_ > > >namespace testing { ># 124 "../gtest_contrib/gmock-gtest-all.cc" >class ScopedFakeTestPartResultReporter > : public TestPartResultReporterInterface { > public: > > enum InterceptMode { > INTERCEPT_ONLY_CURRENT_THREAD, > INTERCEPT_ALL_THREADS > }; > > > > > > explicit ScopedFakeTestPartResultReporter(TestPartResultArray* result); > > > ScopedFakeTestPartResultReporter(InterceptMode intercept_mode, > TestPartResultArray* result); > > > virtual ~ScopedFakeTestPartResultReporter(); > > > > > > > virtual void ReportTestPartResult(const TestPartResult& result); > private: > void Init(); > > const InterceptMode intercept_mode_; > TestPartResultReporterInterface* old_reporter_; > TestPartResultArray* const result_; > > ScopedFakeTestPartResultReporter(ScopedFakeTestPartResultReporter const &); void operator=(ScopedFakeTestPartResultReporter const &); >}; > >namespace internal { > > > > > > >class SingleFailureChecker { > public: > > SingleFailureChecker(const TestPartResultArray* results, > TestPartResult::Type type, > const string& substr); > ~SingleFailureChecker(); > private: > const TestPartResultArray* const results_; > const TestPartResult::Type type_; > const string substr_; > > SingleFailureChecker(SingleFailureChecker const &); void operator=(SingleFailureChecker const &); >}; > >} > >} ># 211 "../gtest_contrib/gmock-gtest-all.cc" >#define EXPECT_FATAL_FAILURE(statement,substr) do { class GTestExpectFatalFailureHelper { public: static void Execute() { statement; } }; ::testing::TestPartResultArray gtest_failures; ::testing::internal::SingleFailureChecker gtest_checker( >est_failures, ::testing::TestPartResult::kFatalFailure, (substr)); { ::testing::ScopedFakeTestPartResultReporter gtest_reporter( ::testing::ScopedFakeTestPartResultReporter:: INTERCEPT_ONLY_CURRENT_THREAD, >est_failures); GTestExpectFatalFailureHelper::Execute(); } } while (::testing::internal::AlwaysFalse()) ># 228 "../gtest_contrib/gmock-gtest-all.cc" >#define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement,substr) do { class GTestExpectFatalFailureHelper { public: static void Execute() { statement; } }; ::testing::TestPartResultArray gtest_failures; ::testing::internal::SingleFailureChecker gtest_checker( >est_failures, ::testing::TestPartResult::kFatalFailure, (substr)); { ::testing::ScopedFakeTestPartResultReporter gtest_reporter( ::testing::ScopedFakeTestPartResultReporter:: INTERCEPT_ALL_THREADS, >est_failures); GTestExpectFatalFailureHelper::Execute(); } } while (::testing::internal::AlwaysFalse()) ># 277 "../gtest_contrib/gmock-gtest-all.cc" >#define EXPECT_NONFATAL_FAILURE(statement,substr) do { ::testing::TestPartResultArray gtest_failures; ::testing::internal::SingleFailureChecker gtest_checker( >est_failures, ::testing::TestPartResult::kNonFatalFailure, (substr)); { ::testing::ScopedFakeTestPartResultReporter gtest_reporter( ::testing::ScopedFakeTestPartResultReporter:: INTERCEPT_ONLY_CURRENT_THREAD, >est_failures); if (::testing::internal::AlwaysTrue()) { statement; } } } while (::testing::internal::AlwaysFalse()) ># 291 "../gtest_contrib/gmock-gtest-all.cc" >#define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement,substr) do { ::testing::TestPartResultArray gtest_failures; ::testing::internal::SingleFailureChecker gtest_checker( >est_failures, ::testing::TestPartResult::kNonFatalFailure, (substr)); { ::testing::ScopedFakeTestPartResultReporter gtest_reporter( ::testing::ScopedFakeTestPartResultReporter::INTERCEPT_ALL_THREADS, >est_failures); if (::testing::internal::AlwaysTrue()) { statement; } } } while (::testing::internal::AlwaysFalse()) ># 308 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "/usr/include/math.h" 1 3 4 ># 24 "/usr/include/math.h" 3 4 >#define _MATH_H 1 > > > >extern "C" { > > > ># 1 "/usr/include/bits/huge_val.h" 1 3 4 ># 27 "/usr/include/bits/huge_val.h" 3 4 >#define HUGE_VAL (__builtin_huge_val()) ># 33 "/usr/include/math.h" 2 3 4 > ># 1 "/usr/include/bits/huge_valf.h" 1 3 4 ># 27 "/usr/include/bits/huge_valf.h" 3 4 >#define HUGE_VALF (__builtin_huge_valf()) ># 35 "/usr/include/math.h" 2 3 4 ># 1 "/usr/include/bits/huge_vall.h" 1 3 4 ># 25 "/usr/include/bits/huge_vall.h" 3 4 >#define HUGE_VALL (__builtin_huge_vall()) ># 36 "/usr/include/math.h" 2 3 4 > > ># 1 "/usr/include/bits/inf.h" 1 3 4 ># 26 "/usr/include/bits/inf.h" 3 4 >#define INFINITY (__builtin_inff()) ># 39 "/usr/include/math.h" 2 3 4 > > ># 1 "/usr/include/bits/nan.h" 1 3 4 ># 28 "/usr/include/bits/nan.h" 3 4 >#define NAN (__builtin_nanf ("")) ># 42 "/usr/include/math.h" 2 3 4 > > > ># 1 "/usr/include/bits/mathdef.h" 1 3 4 ># 23 "/usr/include/bits/mathdef.h" 3 4 >#define _MATH_H_MATHDEF 1 > > > > >typedef float float_t; >typedef double double_t; ># 42 "/usr/include/bits/mathdef.h" 3 4 >#define FP_ILOGB0 (-2147483647 - 1) >#define FP_ILOGBNAN (-2147483647 - 1) ># 46 "/usr/include/math.h" 2 3 4 > > > > > > >#define __MATHCALL(function,suffix,args) __MATHDECL (_Mdouble_,function,suffix, args) > >#define __MATHDECL(type,function,suffix,args) __MATHDECL_1(type, function,suffix, args); __MATHDECL_1(type, __CONCAT(__,function),suffix, args) > > >#define __MATHCALLX(function,suffix,args,attrib) __MATHDECLX (_Mdouble_,function,suffix, args, attrib) > >#define __MATHDECLX(type,function,suffix,args,attrib) __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); __MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib) > > >#define __MATHDECL_1(type,function,suffix,args) extern type __MATH_PRECNAME(function,suffix) args __THROW > > >#define _Mdouble_ double >#define __MATH_PRECNAME(name,r) __CONCAT(name,r) >#define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_STD >#define _Mdouble_END_NAMESPACE __END_NAMESPACE_STD ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 52 "/usr/include/bits/mathcalls.h" 3 4 > > >extern double acos (double __x) throw (); extern double __acos (double __x) throw (); > >extern double asin (double __x) throw (); extern double __asin (double __x) throw (); > >extern double atan (double __x) throw (); extern double __atan (double __x) throw (); > >extern double atan2 (double __y, double __x) throw (); extern double __atan2 (double __y, double __x) throw (); > > >extern double cos (double __x) throw (); extern double __cos (double __x) throw (); > >extern double sin (double __x) throw (); extern double __sin (double __x) throw (); > >extern double tan (double __x) throw (); extern double __tan (double __x) throw (); > > > > >extern double cosh (double __x) throw (); extern double __cosh (double __x) throw (); > >extern double sinh (double __x) throw (); extern double __sinh (double __x) throw (); > >extern double tanh (double __x) throw (); extern double __tanh (double __x) throw (); > > > > >extern void sincos (double __x, double *__sinx, double *__cosx) throw (); extern void __sincos (double __x, double *__sinx, double *__cosx) throw () > ; > > > > > >extern double acosh (double __x) throw (); extern double __acosh (double __x) throw (); > >extern double asinh (double __x) throw (); extern double __asinh (double __x) throw (); > >extern double atanh (double __x) throw (); extern double __atanh (double __x) throw (); > > > > > > > >extern double exp (double __x) throw (); extern double __exp (double __x) throw (); > > >extern double frexp (double __x, int *__exponent) throw (); extern double __frexp (double __x, int *__exponent) throw (); > > >extern double ldexp (double __x, int __exponent) throw (); extern double __ldexp (double __x, int __exponent) throw (); > > >extern double log (double __x) throw (); extern double __log (double __x) throw (); > > >extern double log10 (double __x) throw (); extern double __log10 (double __x) throw (); > > >extern double modf (double __x, double *__iptr) throw (); extern double __modf (double __x, double *__iptr) throw () __attribute__ ((__nonnull__ (2))); > > > > >extern double exp10 (double __x) throw (); extern double __exp10 (double __x) throw (); > >extern double pow10 (double __x) throw (); extern double __pow10 (double __x) throw (); > > > > > >extern double expm1 (double __x) throw (); extern double __expm1 (double __x) throw (); > > >extern double log1p (double __x) throw (); extern double __log1p (double __x) throw (); > > >extern double logb (double __x) throw (); extern double __logb (double __x) throw (); > > > > > > >extern double exp2 (double __x) throw (); extern double __exp2 (double __x) throw (); > > >extern double log2 (double __x) throw (); extern double __log2 (double __x) throw (); > > > > > > > > >extern double pow (double __x, double __y) throw (); extern double __pow (double __x, double __y) throw (); > > >extern double sqrt (double __x) throw (); extern double __sqrt (double __x) throw (); > > > > > >extern double hypot (double __x, double __y) throw (); extern double __hypot (double __x, double __y) throw (); > > > > > > >extern double cbrt (double __x) throw (); extern double __cbrt (double __x) throw (); > > > > > > > > >extern double ceil (double __x) throw () __attribute__ ((__const__)); extern double __ceil (double __x) throw () __attribute__ ((__const__)); > > >extern double fabs (double __x) throw () __attribute__ ((__const__)); extern double __fabs (double __x) throw () __attribute__ ((__const__)); > > >extern double floor (double __x) throw () __attribute__ ((__const__)); extern double __floor (double __x) throw () __attribute__ ((__const__)); > > >extern double fmod (double __x, double __y) throw (); extern double __fmod (double __x, double __y) throw (); > > > > >extern int __isinf (double __value) throw () __attribute__ ((__const__)); > > >extern int __finite (double __value) throw () __attribute__ ((__const__)); > > > > > >extern int isinf (double __value) throw () __attribute__ ((__const__)); > > >extern int finite (double __value) throw () __attribute__ ((__const__)); > > >extern double drem (double __x, double __y) throw (); extern double __drem (double __x, double __y) throw (); > > > >extern double significand (double __x) throw (); extern double __significand (double __x) throw (); > > > > > >extern double copysign (double __x, double __y) throw () __attribute__ ((__const__)); extern double __copysign (double __x, double __y) throw () __attribute__ ((__const__)); > > > > > > >extern double nan (const char *__tagb) throw () __attribute__ ((__const__)); extern double __nan (const char *__tagb) throw () __attribute__ ((__const__)); > > > > > >extern int __isnan (double __value) throw () __attribute__ ((__const__)); > > > >extern int isnan (double __value) throw () __attribute__ ((__const__)); > > >extern double j0 (double) throw (); extern double __j0 (double) throw (); >extern double j1 (double) throw (); extern double __j1 (double) throw (); >extern double jn (int, double) throw (); extern double __jn (int, double) throw (); >extern double y0 (double) throw (); extern double __y0 (double) throw (); >extern double y1 (double) throw (); extern double __y1 (double) throw (); >extern double yn (int, double) throw (); extern double __yn (int, double) throw (); > > > > > > >extern double erf (double) throw (); extern double __erf (double) throw (); >extern double erfc (double) throw (); extern double __erfc (double) throw (); >extern double lgamma (double) throw (); extern double __lgamma (double) throw (); > > > > > > >extern double tgamma (double) throw (); extern double __tgamma (double) throw (); > > > > > >extern double gamma (double) throw (); extern double __gamma (double) throw (); > > > > > > >extern double lgamma_r (double, int *__signgamp) throw (); extern double __lgamma_r (double, int *__signgamp) throw (); > > > > > > > >extern double rint (double __x) throw (); extern double __rint (double __x) throw (); > > >extern double nextafter (double __x, double __y) throw () __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) throw () __attribute__ ((__const__)); > >extern double nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern double remainder (double __x, double __y) throw (); extern double __remainder (double __x, double __y) throw (); > > > >extern double scalbn (double __x, int __n) throw (); extern double __scalbn (double __x, int __n) throw (); > > > >extern int ilogb (double __x) throw (); extern int __ilogb (double __x) throw (); > > > > >extern double scalbln (double __x, long int __n) throw (); extern double __scalbln (double __x, long int __n) throw (); > > > >extern double nearbyint (double __x) throw (); extern double __nearbyint (double __x) throw (); > > > >extern double round (double __x) throw () __attribute__ ((__const__)); extern double __round (double __x) throw () __attribute__ ((__const__)); > > > >extern double trunc (double __x) throw () __attribute__ ((__const__)); extern double __trunc (double __x) throw () __attribute__ ((__const__)); > > > > >extern double remquo (double __x, double __y, int *__quo) throw (); extern double __remquo (double __x, double __y, int *__quo) throw (); > > > > > > >extern long int lrint (double __x) throw (); extern long int __lrint (double __x) throw (); >__extension__ >extern long long int llrint (double __x) throw (); extern long long int __llrint (double __x) throw (); > > > >extern long int lround (double __x) throw (); extern long int __lround (double __x) throw (); >__extension__ >extern long long int llround (double __x) throw (); extern long long int __llround (double __x) throw (); > > > >extern double fdim (double __x, double __y) throw (); extern double __fdim (double __x, double __y) throw (); > > >extern double fmax (double __x, double __y) throw () __attribute__ ((__const__)); extern double __fmax (double __x, double __y) throw () __attribute__ ((__const__)); > > >extern double fmin (double __x, double __y) throw () __attribute__ ((__const__)); extern double __fmin (double __x, double __y) throw () __attribute__ ((__const__)); > > > >extern int __fpclassify (double __value) throw () > __attribute__ ((__const__)); > > >extern int __signbit (double __value) throw () > __attribute__ ((__const__)); > > > >extern double fma (double __x, double __y, double __z) throw (); extern double __fma (double __x, double __y, double __z) throw (); > > > > > > > > >extern int __issignaling (double __value) throw () > __attribute__ ((__const__)); > > > > >extern double scalb (double __x, double __n) throw (); extern double __scalb (double __x, double __n) throw (); ># 70 "/usr/include/math.h" 2 3 4 >#undef _Mdouble_ >#undef _Mdouble_BEGIN_NAMESPACE >#undef _Mdouble_END_NAMESPACE >#undef __MATH_PRECNAME ># 82 "/usr/include/math.h" 3 4 >#define _Mfloat_ float > >#define _Mdouble_ _Mfloat_ >#define __MATH_PRECNAME(name,r) name ##f ##r >#define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_C99 >#define _Mdouble_END_NAMESPACE __END_NAMESPACE_C99 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 52 "/usr/include/bits/mathcalls.h" 3 4 > > >extern float acosf (float __x) throw (); extern float __acosf (float __x) throw (); > >extern float asinf (float __x) throw (); extern float __asinf (float __x) throw (); > >extern float atanf (float __x) throw (); extern float __atanf (float __x) throw (); > >extern float atan2f (float __y, float __x) throw (); extern float __atan2f (float __y, float __x) throw (); > > >extern float cosf (float __x) throw (); extern float __cosf (float __x) throw (); > >extern float sinf (float __x) throw (); extern float __sinf (float __x) throw (); > >extern float tanf (float __x) throw (); extern float __tanf (float __x) throw (); > > > > >extern float coshf (float __x) throw (); extern float __coshf (float __x) throw (); > >extern float sinhf (float __x) throw (); extern float __sinhf (float __x) throw (); > >extern float tanhf (float __x) throw (); extern float __tanhf (float __x) throw (); > > > > >extern void sincosf (float __x, float *__sinx, float *__cosx) throw (); extern void __sincosf (float __x, float *__sinx, float *__cosx) throw () > ; > > > > > >extern float acoshf (float __x) throw (); extern float __acoshf (float __x) throw (); > >extern float asinhf (float __x) throw (); extern float __asinhf (float __x) throw (); > >extern float atanhf (float __x) throw (); extern float __atanhf (float __x) throw (); > > > > > > > >extern float expf (float __x) throw (); extern float __expf (float __x) throw (); > > >extern float frexpf (float __x, int *__exponent) throw (); extern float __frexpf (float __x, int *__exponent) throw (); > > >extern float ldexpf (float __x, int __exponent) throw (); extern float __ldexpf (float __x, int __exponent) throw (); > > >extern float logf (float __x) throw (); extern float __logf (float __x) throw (); > > >extern float log10f (float __x) throw (); extern float __log10f (float __x) throw (); > > >extern float modff (float __x, float *__iptr) throw (); extern float __modff (float __x, float *__iptr) throw () __attribute__ ((__nonnull__ (2))); > > > > >extern float exp10f (float __x) throw (); extern float __exp10f (float __x) throw (); > >extern float pow10f (float __x) throw (); extern float __pow10f (float __x) throw (); > > > > > >extern float expm1f (float __x) throw (); extern float __expm1f (float __x) throw (); > > >extern float log1pf (float __x) throw (); extern float __log1pf (float __x) throw (); > > >extern float logbf (float __x) throw (); extern float __logbf (float __x) throw (); > > > > > > >extern float exp2f (float __x) throw (); extern float __exp2f (float __x) throw (); > > >extern float log2f (float __x) throw (); extern float __log2f (float __x) throw (); > > > > > > > > >extern float powf (float __x, float __y) throw (); extern float __powf (float __x, float __y) throw (); > > >extern float sqrtf (float __x) throw (); extern float __sqrtf (float __x) throw (); > > > > > >extern float hypotf (float __x, float __y) throw (); extern float __hypotf (float __x, float __y) throw (); > > > > > > >extern float cbrtf (float __x) throw (); extern float __cbrtf (float __x) throw (); > > > > > > > > >extern float ceilf (float __x) throw () __attribute__ ((__const__)); extern float __ceilf (float __x) throw () __attribute__ ((__const__)); > > >extern float fabsf (float __x) throw () __attribute__ ((__const__)); extern float __fabsf (float __x) throw () __attribute__ ((__const__)); > > >extern float floorf (float __x) throw () __attribute__ ((__const__)); extern float __floorf (float __x) throw () __attribute__ ((__const__)); > > >extern float fmodf (float __x, float __y) throw (); extern float __fmodf (float __x, float __y) throw (); > > > > >extern int __isinff (float __value) throw () __attribute__ ((__const__)); > > >extern int __finitef (float __value) throw () __attribute__ ((__const__)); > > > > > >extern int isinff (float __value) throw () __attribute__ ((__const__)); > > >extern int finitef (float __value) throw () __attribute__ ((__const__)); > > >extern float dremf (float __x, float __y) throw (); extern float __dremf (float __x, float __y) throw (); > > > >extern float significandf (float __x) throw (); extern float __significandf (float __x) throw (); > > > > > >extern float copysignf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) throw () __attribute__ ((__const__)); > > > > > > >extern float nanf (const char *__tagb) throw () __attribute__ ((__const__)); extern float __nanf (const char *__tagb) throw () __attribute__ ((__const__)); > > > > > >extern int __isnanf (float __value) throw () __attribute__ ((__const__)); > > > >extern int isnanf (float __value) throw () __attribute__ ((__const__)); > > >extern float j0f (float) throw (); extern float __j0f (float) throw (); >extern float j1f (float) throw (); extern float __j1f (float) throw (); >extern float jnf (int, float) throw (); extern float __jnf (int, float) throw (); >extern float y0f (float) throw (); extern float __y0f (float) throw (); >extern float y1f (float) throw (); extern float __y1f (float) throw (); >extern float ynf (int, float) throw (); extern float __ynf (int, float) throw (); > > > > > > >extern float erff (float) throw (); extern float __erff (float) throw (); >extern float erfcf (float) throw (); extern float __erfcf (float) throw (); >extern float lgammaf (float) throw (); extern float __lgammaf (float) throw (); > > > > > > >extern float tgammaf (float) throw (); extern float __tgammaf (float) throw (); > > > > > >extern float gammaf (float) throw (); extern float __gammaf (float) throw (); > > > > > > >extern float lgammaf_r (float, int *__signgamp) throw (); extern float __lgammaf_r (float, int *__signgamp) throw (); > > > > > > > >extern float rintf (float __x) throw (); extern float __rintf (float __x) throw (); > > >extern float nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) throw () __attribute__ ((__const__)); > >extern float nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern float remainderf (float __x, float __y) throw (); extern float __remainderf (float __x, float __y) throw (); > > > >extern float scalbnf (float __x, int __n) throw (); extern float __scalbnf (float __x, int __n) throw (); > > > >extern int ilogbf (float __x) throw (); extern int __ilogbf (float __x) throw (); > > > > >extern float scalblnf (float __x, long int __n) throw (); extern float __scalblnf (float __x, long int __n) throw (); > > > >extern float nearbyintf (float __x) throw (); extern float __nearbyintf (float __x) throw (); > > > >extern float roundf (float __x) throw () __attribute__ ((__const__)); extern float __roundf (float __x) throw () __attribute__ ((__const__)); > > > >extern float truncf (float __x) throw () __attribute__ ((__const__)); extern float __truncf (float __x) throw () __attribute__ ((__const__)); > > > > >extern float remquof (float __x, float __y, int *__quo) throw (); extern float __remquof (float __x, float __y, int *__quo) throw (); > > > > > > >extern long int lrintf (float __x) throw (); extern long int __lrintf (float __x) throw (); >__extension__ >extern long long int llrintf (float __x) throw (); extern long long int __llrintf (float __x) throw (); > > > >extern long int lroundf (float __x) throw (); extern long int __lroundf (float __x) throw (); >__extension__ >extern long long int llroundf (float __x) throw (); extern long long int __llroundf (float __x) throw (); > > > >extern float fdimf (float __x, float __y) throw (); extern float __fdimf (float __x, float __y) throw (); > > >extern float fmaxf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) throw () __attribute__ ((__const__)); > > >extern float fminf (float __x, float __y) throw () __attribute__ ((__const__)); extern float __fminf (float __x, float __y) throw () __attribute__ ((__const__)); > > > >extern int __fpclassifyf (float __value) throw () > __attribute__ ((__const__)); > > >extern int __signbitf (float __value) throw () > __attribute__ ((__const__)); > > > >extern float fmaf (float __x, float __y, float __z) throw (); extern float __fmaf (float __x, float __y, float __z) throw (); > > > > > > > > >extern int __issignalingf (float __value) throw () > __attribute__ ((__const__)); > > > > >extern float scalbf (float __x, float __n) throw (); extern float __scalbf (float __x, float __n) throw (); ># 89 "/usr/include/math.h" 2 3 4 >#undef _Mdouble_ >#undef _Mdouble_BEGIN_NAMESPACE >#undef _Mdouble_END_NAMESPACE >#undef __MATH_PRECNAME ># 125 "/usr/include/math.h" 3 4 >#define _Mlong_double_ long double > >#define _Mdouble_ _Mlong_double_ >#define __MATH_PRECNAME(name,r) name ##l ##r >#define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_C99 >#define _Mdouble_END_NAMESPACE __END_NAMESPACE_C99 >#define __MATH_DECLARE_LDOUBLE 1 ># 1 "/usr/include/bits/mathcalls.h" 1 3 4 ># 52 "/usr/include/bits/mathcalls.h" 3 4 > > >extern long double acosl (long double __x) throw (); extern long double __acosl (long double __x) throw (); > >extern long double asinl (long double __x) throw (); extern long double __asinl (long double __x) throw (); > >extern long double atanl (long double __x) throw (); extern long double __atanl (long double __x) throw (); > >extern long double atan2l (long double __y, long double __x) throw (); extern long double __atan2l (long double __y, long double __x) throw (); > > >extern long double cosl (long double __x) throw (); extern long double __cosl (long double __x) throw (); > >extern long double sinl (long double __x) throw (); extern long double __sinl (long double __x) throw (); > >extern long double tanl (long double __x) throw (); extern long double __tanl (long double __x) throw (); > > > > >extern long double coshl (long double __x) throw (); extern long double __coshl (long double __x) throw (); > >extern long double sinhl (long double __x) throw (); extern long double __sinhl (long double __x) throw (); > >extern long double tanhl (long double __x) throw (); extern long double __tanhl (long double __x) throw (); > > > > >extern void sincosl (long double __x, long double *__sinx, long double *__cosx) throw (); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) throw () > ; > > > > > >extern long double acoshl (long double __x) throw (); extern long double __acoshl (long double __x) throw (); > >extern long double asinhl (long double __x) throw (); extern long double __asinhl (long double __x) throw (); > >extern long double atanhl (long double __x) throw (); extern long double __atanhl (long double __x) throw (); > > > > > > > >extern long double expl (long double __x) throw (); extern long double __expl (long double __x) throw (); > > >extern long double frexpl (long double __x, int *__exponent) throw (); extern long double __frexpl (long double __x, int *__exponent) throw (); > > >extern long double ldexpl (long double __x, int __exponent) throw (); extern long double __ldexpl (long double __x, int __exponent) throw (); > > >extern long double logl (long double __x) throw (); extern long double __logl (long double __x) throw (); > > >extern long double log10l (long double __x) throw (); extern long double __log10l (long double __x) throw (); > > >extern long double modfl (long double __x, long double *__iptr) throw (); extern long double __modfl (long double __x, long double *__iptr) throw () __attribute__ ((__nonnull__ (2))); > > > > >extern long double exp10l (long double __x) throw (); extern long double __exp10l (long double __x) throw (); > >extern long double pow10l (long double __x) throw (); extern long double __pow10l (long double __x) throw (); > > > > > >extern long double expm1l (long double __x) throw (); extern long double __expm1l (long double __x) throw (); > > >extern long double log1pl (long double __x) throw (); extern long double __log1pl (long double __x) throw (); > > >extern long double logbl (long double __x) throw (); extern long double __logbl (long double __x) throw (); > > > > > > >extern long double exp2l (long double __x) throw (); extern long double __exp2l (long double __x) throw (); > > >extern long double log2l (long double __x) throw (); extern long double __log2l (long double __x) throw (); > > > > > > > > >extern long double powl (long double __x, long double __y) throw (); extern long double __powl (long double __x, long double __y) throw (); > > >extern long double sqrtl (long double __x) throw (); extern long double __sqrtl (long double __x) throw (); > > > > > >extern long double hypotl (long double __x, long double __y) throw (); extern long double __hypotl (long double __x, long double __y) throw (); > > > > > > >extern long double cbrtl (long double __x) throw (); extern long double __cbrtl (long double __x) throw (); > > > > > > > > >extern long double ceill (long double __x) throw () __attribute__ ((__const__)); extern long double __ceill (long double __x) throw () __attribute__ ((__const__)); > > >extern long double fabsl (long double __x) throw () __attribute__ ((__const__)); extern long double __fabsl (long double __x) throw () __attribute__ ((__const__)); > > >extern long double floorl (long double __x) throw () __attribute__ ((__const__)); extern long double __floorl (long double __x) throw () __attribute__ ((__const__)); > > >extern long double fmodl (long double __x, long double __y) throw (); extern long double __fmodl (long double __x, long double __y) throw (); > > > > >extern int __isinfl (long double __value) throw () __attribute__ ((__const__)); > > >extern int __finitel (long double __value) throw () __attribute__ ((__const__)); > > > > > >extern int isinfl (long double __value) throw () __attribute__ ((__const__)); > > >extern int finitel (long double __value) throw () __attribute__ ((__const__)); > > >extern long double dreml (long double __x, long double __y) throw (); extern long double __dreml (long double __x, long double __y) throw (); > > > >extern long double significandl (long double __x) throw (); extern long double __significandl (long double __x) throw (); > > > > > >extern long double copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) throw () __attribute__ ((__const__)); > > > > > > >extern long double nanl (const char *__tagb) throw () __attribute__ ((__const__)); extern long double __nanl (const char *__tagb) throw () __attribute__ ((__const__)); > > > > > >extern int __isnanl (long double __value) throw () __attribute__ ((__const__)); > > > >extern int isnanl (long double __value) throw () __attribute__ ((__const__)); > > >extern long double j0l (long double) throw (); extern long double __j0l (long double) throw (); >extern long double j1l (long double) throw (); extern long double __j1l (long double) throw (); >extern long double jnl (int, long double) throw (); extern long double __jnl (int, long double) throw (); >extern long double y0l (long double) throw (); extern long double __y0l (long double) throw (); >extern long double y1l (long double) throw (); extern long double __y1l (long double) throw (); >extern long double ynl (int, long double) throw (); extern long double __ynl (int, long double) throw (); > > > > > > >extern long double erfl (long double) throw (); extern long double __erfl (long double) throw (); >extern long double erfcl (long double) throw (); extern long double __erfcl (long double) throw (); >extern long double lgammal (long double) throw (); extern long double __lgammal (long double) throw (); > > > > > > >extern long double tgammal (long double) throw (); extern long double __tgammal (long double) throw (); > > > > > >extern long double gammal (long double) throw (); extern long double __gammal (long double) throw (); > > > > > > >extern long double lgammal_r (long double, int *__signgamp) throw (); extern long double __lgammal_r (long double, int *__signgamp) throw (); > > > > > > > >extern long double rintl (long double __x) throw (); extern long double __rintl (long double __x) throw (); > > >extern long double nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) throw () __attribute__ ((__const__)); > >extern long double nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern long double remainderl (long double __x, long double __y) throw (); extern long double __remainderl (long double __x, long double __y) throw (); > > > >extern long double scalbnl (long double __x, int __n) throw (); extern long double __scalbnl (long double __x, int __n) throw (); > > > >extern int ilogbl (long double __x) throw (); extern int __ilogbl (long double __x) throw (); > > > > >extern long double scalblnl (long double __x, long int __n) throw (); extern long double __scalblnl (long double __x, long int __n) throw (); > > > >extern long double nearbyintl (long double __x) throw (); extern long double __nearbyintl (long double __x) throw (); > > > >extern long double roundl (long double __x) throw () __attribute__ ((__const__)); extern long double __roundl (long double __x) throw () __attribute__ ((__const__)); > > > >extern long double truncl (long double __x) throw () __attribute__ ((__const__)); extern long double __truncl (long double __x) throw () __attribute__ ((__const__)); > > > > >extern long double remquol (long double __x, long double __y, int *__quo) throw (); extern long double __remquol (long double __x, long double __y, int *__quo) throw (); > > > > > > >extern long int lrintl (long double __x) throw (); extern long int __lrintl (long double __x) throw (); >__extension__ >extern long long int llrintl (long double __x) throw (); extern long long int __llrintl (long double __x) throw (); > > > >extern long int lroundl (long double __x) throw (); extern long int __lroundl (long double __x) throw (); >__extension__ >extern long long int llroundl (long double __x) throw (); extern long long int __llroundl (long double __x) throw (); > > > >extern long double fdiml (long double __x, long double __y) throw (); extern long double __fdiml (long double __x, long double __y) throw (); > > >extern long double fmaxl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __fmaxl (long double __x, long double __y) throw () __attribute__ ((__const__)); > > >extern long double fminl (long double __x, long double __y) throw () __attribute__ ((__const__)); extern long double __fminl (long double __x, long double __y) throw () __attribute__ ((__const__)); > > > >extern int __fpclassifyl (long double __value) throw () > __attribute__ ((__const__)); > > >extern int __signbitl (long double __value) throw () > __attribute__ ((__const__)); > > > >extern long double fmal (long double __x, long double __y, long double __z) throw (); extern long double __fmal (long double __x, long double __y, long double __z) throw (); > > > > > > > > >extern int __issignalingl (long double __value) throw () > __attribute__ ((__const__)); > > > > >extern long double scalbl (long double __x, long double __n) throw (); extern long double __scalbl (long double __x, long double __n) throw (); ># 133 "/usr/include/math.h" 2 3 4 >#undef _Mdouble_ >#undef _Mdouble_BEGIN_NAMESPACE >#undef _Mdouble_END_NAMESPACE >#undef __MATH_PRECNAME > > > > >#undef __MATHDECL_1 >#undef __MATHDECL >#undef __MATHCALL > > > > >extern int signgam; ># 189 "/usr/include/math.h" 3 4 >enum > { > FP_NAN = >#define FP_NAN 0 > 0, > FP_INFINITE = >#define FP_INFINITE 1 > 1, > FP_ZERO = >#define FP_ZERO 2 > 2, > FP_SUBNORMAL = >#define FP_SUBNORMAL 3 > 3, > FP_NORMAL = >#define FP_NORMAL 4 > 4 > }; > > > > > > >#define fpclassify(x) (sizeof (x) == sizeof (float) ? __fpclassifyf (x) : sizeof (x) == sizeof (double) ? __fpclassify (x) : __fpclassifyl (x)) ># 225 "/usr/include/math.h" 3 4 >#define signbit(x) (sizeof (x) == sizeof (float) ? __signbitf (x) : sizeof (x) == sizeof (double) ? __signbit (x) : __signbitl (x)) ># 237 "/usr/include/math.h" 3 4 >#define isfinite(x) (sizeof (x) == sizeof (float) ? __finitef (x) : sizeof (x) == sizeof (double) ? __finite (x) : __finitel (x)) > > > > > > > >#define isnormal(x) (fpclassify (x) == FP_NORMAL) > > > > > > > >#define isnan(x) (sizeof (x) == sizeof (float) ? __isnanf (x) : sizeof (x) == sizeof (double) ? __isnan (x) : __isnanl (x)) ># 265 "/usr/include/math.h" 3 4 >#define isinf(x) (sizeof (x) == sizeof (float) ? __isinff (x) : sizeof (x) == sizeof (double) ? __isinf (x) : __isinfl (x)) > > > > > > > >#define MATH_ERRNO 1 >#define MATH_ERREXCEPT 2 > > > > > >#define math_errhandling (MATH_ERRNO | MATH_ERREXCEPT) ># 291 "/usr/include/math.h" 3 4 >#define issignaling(x) (sizeof (x) == sizeof (float) ? __issignalingf (x) : sizeof (x) == sizeof (double) ? __issignaling (x) : __issignalingl (x)) ># 301 "/usr/include/math.h" 3 4 >typedef enum >{ > _IEEE_ = -1, > _SVID_, > _XOPEN_, > _POSIX_, > _ISOC_ >} _LIB_VERSION_TYPE; > > > > >extern _LIB_VERSION_TYPE _LIB_VERSION; ># 324 "/usr/include/math.h" 3 4 >struct __exception > > > > { > int type; > char *name; > double arg1; > double arg2; > double retval; > }; > > >extern int matherr (struct __exception *__exc) throw (); > > > > >#define X_TLOSS 1.41484755040568800000e+16 > > >#define DOMAIN 1 >#define SING 2 >#define OVERFLOW 3 >#define UNDERFLOW 4 >#define TLOSS 5 >#define PLOSS 6 > > >#define HUGE 3.40282347e+38F ># 367 "/usr/include/math.h" 3 4 >#define M_E 2.7182818284590452354 >#define M_LOG2E 1.4426950408889634074 >#define M_LOG10E 0.43429448190325182765 >#define M_LN2 0.69314718055994530942 >#define M_LN10 2.30258509299404568402 >#define M_PI 3.14159265358979323846 >#define M_PI_2 1.57079632679489661923 >#define M_PI_4 0.78539816339744830962 >#define M_1_PI 0.31830988618379067154 >#define M_2_PI 0.63661977236758134308 >#define M_2_SQRTPI 1.12837916709551257390 >#define M_SQRT2 1.41421356237309504880 >#define M_SQRT1_2 0.70710678118654752440 > > > > > > >#define M_El 2.718281828459045235360287471352662498L >#define M_LOG2El 1.442695040888963407359924681001892137L >#define M_LOG10El 0.434294481903251827651128918916605082L >#define M_LN2l 0.693147180559945309417232121458176568L >#define M_LN10l 2.302585092994045684017991454684364208L >#define M_PIl 3.141592653589793238462643383279502884L >#define M_PI_2l 1.570796326794896619231321691639751442L >#define M_PI_4l 0.785398163397448309615660845819875721L >#define M_1_PIl 0.318309886183790671537767526745028724L >#define M_2_PIl 0.636619772367581343075535053490057448L >#define M_2_SQRTPIl 1.128379167095512573896158903121545172L >#define M_SQRT2l 1.414213562373095048801688724209698079L >#define M_SQRT1_2l 0.707106781186547524400844362104849039L ># 416 "/usr/include/math.h" 3 4 >#define isgreater(x,y) __builtin_isgreater(x, y) >#define isgreaterequal(x,y) __builtin_isgreaterequal(x, y) >#define isless(x,y) __builtin_isless(x, y) >#define islessequal(x,y) __builtin_islessequal(x, y) >#define islessgreater(x,y) __builtin_islessgreater(x, y) >#define isunordered(u,v) __builtin_isunordered(u, v) ># 488 "/usr/include/math.h" 3 4 >} ># 309 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdarg.h" 1 3 4 ># 31 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdarg.h" 3 4 >#define _STDARG_H >#define _ANSI_STDARG_H_ > >#undef __need___va_list ># 47 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdarg.h" 3 4 >#define va_start(v,l) __builtin_va_start(v,l) >#define va_end(v) __builtin_va_end(v) >#define va_arg(v,l) __builtin_va_arg(v,l) > >#define va_copy(d,s) __builtin_va_copy(d,s) > >#define __va_copy(d,s) __builtin_va_copy(d,s) ># 104 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdarg.h" 3 4 >#define _VA_LIST_ > > >#define _VA_LIST > > > > > >#define _VA_LIST_T_H > > >#define __va_list__ ># 310 "../gtest_contrib/gmock-gtest-all.cc" 2 > > ># 1 "/usr/include/wchar.h" 1 3 4 ># 899 "/usr/include/wchar.h" 3 4 >#undef __need_mbstate_t >#undef __need_wint_t ># 313 "../gtest_contrib/gmock-gtest-all.cc" 2 > > ># 1 "/usr/include/c++/4.8.2/algorithm" 1 3 ># 56 "/usr/include/c++/4.8.2/algorithm" 3 >#define _GLIBCXX_ALGORITHM 1 > > ># 59 "/usr/include/c++/4.8.2/algorithm" 3 > > > ># 1 "/usr/include/c++/4.8.2/bits/stl_algo.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 >#define _STL_ALGO_H 1 > ># 1 "/usr/include/c++/4.8.2/cstdlib" 1 3 ># 39 "/usr/include/c++/4.8.2/cstdlib" 3 > ># 40 "/usr/include/c++/4.8.2/cstdlib" 3 > > > > >#define _GLIBCXX_CSTDLIB 1 ># 75 "/usr/include/c++/4.8.2/cstdlib" 3 >#undef abort >#undef abs >#undef atexit > > > > > >#undef atof >#undef atoi >#undef atol >#undef bsearch >#undef calloc >#undef div >#undef exit >#undef free >#undef getenv >#undef labs >#undef ldiv >#undef malloc >#undef mblen >#undef mbstowcs >#undef mbtowc >#undef qsort > > > > > >#undef rand >#undef realloc >#undef srand >#undef strtod >#undef strtol >#undef strtoul >#undef system >#undef wcstombs >#undef wctomb > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > using ::div_t; > using ::ldiv_t; > > using ::abort; > using ::abs; > using ::atexit; > > > > > > using ::atof; > using ::atoi; > using ::atol; > using ::bsearch; > using ::calloc; > using ::div; > using ::exit; > using ::free; > using ::getenv; > using ::labs; > using ::ldiv; > using ::malloc; > > using ::mblen; > using ::mbstowcs; > using ::mbtowc; > > using ::qsort; > > > > > > using ::rand; > using ::realloc; > using ::srand; > using ::strtod; > using ::strtol; > using ::strtoul; > using ::system; > > using ::wcstombs; > using ::wctomb; > > > > inline long > abs(long __i) { return __builtin_labs(__i); } > > inline ldiv_t > div(long __i, long __j) { return ldiv(__i, __j); } > > > > inline long long > abs(long long __x) { return __builtin_llabs (__x); } > > > > inline __int128 > abs(__int128 __x) { return __x >= 0 ? __x : -__x; } > > > >} > > > >#undef _Exit >#undef llabs >#undef lldiv >#undef atoll >#undef strtoll >#undef strtoull >#undef strtof >#undef strtold > >namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) >{ > > > > using ::lldiv_t; > > > > > > using ::_Exit; > > > > using ::llabs; > > inline lldiv_t > div(long long __n, long long __d) > { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } > > using ::lldiv; ># 228 "/usr/include/c++/4.8.2/cstdlib" 3 > using ::atoll; > using ::strtoll; > using ::strtoull; > > using ::strtof; > using ::strtold; > > >} > >namespace std >{ > > using ::__gnu_cxx::lldiv_t; > > using ::__gnu_cxx::_Exit; > > using ::__gnu_cxx::llabs; > using ::__gnu_cxx::div; > using ::__gnu_cxx::lldiv; > > using ::__gnu_cxx::atoll; > using ::__gnu_cxx::strtof; > using ::__gnu_cxx::strtoll; > using ::__gnu_cxx::strtoull; > using ::__gnu_cxx::strtold; >} ># 60 "/usr/include/c++/4.8.2/bits/stl_algo.h" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 1 3 ># 31 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 >#define _GLIBCXX_ALGORITHMFWD_H 1 > > ># 34 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 ># 42 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 203 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 > template<typename _FIter, typename _Tp> > bool > binary_search(_FIter, _FIter, const _Tp&); > > template<typename _FIter, typename _Tp, typename _Compare> > bool > binary_search(_FIter, _FIter, const _Tp&, _Compare); > > template<typename _IIter, typename _OIter> > _OIter > copy(_IIter, _IIter, _OIter); > > template<typename _BIter1, typename _BIter2> > _BIter2 > copy_backward(_BIter1, _BIter1, _BIter2); ># 232 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 > template<typename _FIter, typename _Tp> > pair<_FIter, _FIter> > equal_range(_FIter, _FIter, const _Tp&); > > template<typename _FIter, typename _Tp, typename _Compare> > pair<_FIter, _FIter> > equal_range(_FIter, _FIter, const _Tp&, _Compare); > > template<typename _FIter, typename _Tp> > void > fill(_FIter, _FIter, const _Tp&); > > template<typename _OIter, typename _Size, typename _Tp> > _OIter > fill_n(_OIter, _Size, const _Tp&); > > > > template<typename _FIter1, typename _FIter2> > _FIter1 > find_end(_FIter1, _FIter1, _FIter2, _FIter2); > > template<typename _FIter1, typename _FIter2, typename _BinaryPredicate> > _FIter1 > find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); ># 271 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 > template<typename _IIter1, typename _IIter2> > bool > includes(_IIter1, _IIter1, _IIter2, _IIter2); > > template<typename _IIter1, typename _IIter2, typename _Compare> > bool > includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); > > template<typename _BIter> > void > inplace_merge(_BIter, _BIter, _BIter); > > template<typename _BIter, typename _Compare> > void > inplace_merge(_BIter, _BIter, _BIter, _Compare); ># 334 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 > template<typename _FIter1, typename _FIter2> > void > iter_swap(_FIter1, _FIter2); > > template<typename _FIter, typename _Tp> > _FIter > lower_bound(_FIter, _FIter, const _Tp&); > > template<typename _FIter, typename _Tp, typename _Compare> > _FIter > lower_bound(_FIter, _FIter, const _Tp&, _Compare); > > template<typename _RAIter> > void > make_heap(_RAIter, _RAIter); > > template<typename _RAIter, typename _Compare> > void > make_heap(_RAIter, _RAIter, _Compare); > > template<typename _Tp> > const _Tp& > max(const _Tp&, const _Tp&); > > template<typename _Tp, typename _Compare> > const _Tp& > max(const _Tp&, const _Tp&, _Compare); > > > > > template<typename _Tp> > const _Tp& > min(const _Tp&, const _Tp&); > > template<typename _Tp, typename _Compare> > const _Tp& > min(const _Tp&, const _Tp&, _Compare); ># 419 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 > template<typename _BIter> > bool > next_permutation(_BIter, _BIter); > > template<typename _BIter, typename _Compare> > bool > next_permutation(_BIter, _BIter, _Compare); ># 436 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 > template<typename _IIter, typename _RAIter> > _RAIter > partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); > > template<typename _IIter, typename _RAIter, typename _Compare> > _RAIter > partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); ># 457 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 > template<typename _RAIter> > void > pop_heap(_RAIter, _RAIter); > > template<typename _RAIter, typename _Compare> > void > pop_heap(_RAIter, _RAIter, _Compare); > > template<typename _BIter> > bool > prev_permutation(_BIter, _BIter); > > template<typename _BIter, typename _Compare> > bool > prev_permutation(_BIter, _BIter, _Compare); > > template<typename _RAIter> > void > push_heap(_RAIter, _RAIter); > > template<typename _RAIter, typename _Compare> > void > push_heap(_RAIter, _RAIter, _Compare); > > > > template<typename _FIter, typename _Tp> > _FIter > remove(_FIter, _FIter, const _Tp&); > > template<typename _FIter, typename _Predicate> > _FIter > remove_if(_FIter, _FIter, _Predicate); > > template<typename _IIter, typename _OIter, typename _Tp> > _OIter > remove_copy(_IIter, _IIter, _OIter, const _Tp&); > > template<typename _IIter, typename _OIter, typename _Predicate> > _OIter > remove_copy_if(_IIter, _IIter, _OIter, _Predicate); > > > > template<typename _IIter, typename _OIter, typename _Tp> > _OIter > replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); > > template<typename _Iter, typename _OIter, typename _Predicate, typename _Tp> > _OIter > replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); > > > > template<typename _BIter> > void > reverse(_BIter, _BIter); > > template<typename _BIter, typename _OIter> > _OIter > reverse_copy(_BIter, _BIter, _OIter); > > template<typename _FIter> > void > rotate(_FIter, _FIter, _FIter); > > template<typename _FIter, typename _OIter> > _OIter > rotate_copy(_FIter, _FIter, _FIter, _OIter); ># 540 "/usr/include/c++/4.8.2/bits/algorithmfwd.h" 3 > template<typename _RAIter> > void > sort_heap(_RAIter, _RAIter); > > template<typename _RAIter, typename _Compare> > void > sort_heap(_RAIter, _RAIter, _Compare); > > template<typename _BIter, typename _Predicate> > _BIter > stable_partition(_BIter, _BIter, _Predicate); > > template<typename _Tp> > void > swap(_Tp&, _Tp&) > > > > > ; > > template<typename _Tp, size_t _Nm> > void > swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) > > > > ; > > template<typename _FIter1, typename _FIter2> > _FIter2 > swap_ranges(_FIter1, _FIter1, _FIter2); > > > > template<typename _FIter> > _FIter > unique(_FIter, _FIter); > > template<typename _FIter, typename _BinaryPredicate> > _FIter > unique(_FIter, _FIter, _BinaryPredicate); > > > > template<typename _FIter, typename _Tp> > _FIter > upper_bound(_FIter, _FIter, const _Tp&); > > template<typename _FIter, typename _Tp, typename _Compare> > _FIter > upper_bound(_FIter, _FIter, const _Tp&, _Compare); > > > > > > template<typename _FIter> > _FIter > adjacent_find(_FIter, _FIter); > > template<typename _FIter, typename _BinaryPredicate> > _FIter > adjacent_find(_FIter, _FIter, _BinaryPredicate); > > template<typename _IIter, typename _Tp> > typename iterator_traits<_IIter>::difference_type > count(_IIter, _IIter, const _Tp&); > > template<typename _IIter, typename _Predicate> > typename iterator_traits<_IIter>::difference_type > count_if(_IIter, _IIter, _Predicate); > > template<typename _IIter1, typename _IIter2> > bool > equal(_IIter1, _IIter1, _IIter2); > > template<typename _IIter1, typename _IIter2, typename _BinaryPredicate> > bool > equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); > > template<typename _IIter, typename _Tp> > _IIter > find(_IIter, _IIter, const _Tp&); > > template<typename _FIter1, typename _FIter2> > _FIter1 > find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); > > template<typename _FIter1, typename _FIter2, typename _BinaryPredicate> > _FIter1 > find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); > > template<typename _IIter, typename _Predicate> > _IIter > find_if(_IIter, _IIter, _Predicate); > > template<typename _IIter, typename _Funct> > _Funct > for_each(_IIter, _IIter, _Funct); > > template<typename _FIter, typename _Generator> > void > generate(_FIter, _FIter, _Generator); > > template<typename _OIter, typename _Size, typename _Generator> > _OIter > generate_n(_OIter, _Size, _Generator); > > template<typename _IIter1, typename _IIter2> > bool > lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); > > template<typename _IIter1, typename _IIter2, typename _Compare> > bool > lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); > > template<typename _FIter> > _FIter > max_element(_FIter, _FIter); > > template<typename _FIter, typename _Compare> > _FIter > max_element(_FIter, _FIter, _Compare); > > template<typename _IIter1, typename _IIter2, typename _OIter> > _OIter > merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); > > template<typename _IIter1, typename _IIter2, typename _OIter, > typename _Compare> > _OIter > merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); > > template<typename _FIter> > _FIter > min_element(_FIter, _FIter); > > template<typename _FIter, typename _Compare> > _FIter > min_element(_FIter, _FIter, _Compare); > > template<typename _IIter1, typename _IIter2> > pair<_IIter1, _IIter2> > mismatch(_IIter1, _IIter1, _IIter2); > > template<typename _IIter1, typename _IIter2, typename _BinaryPredicate> > pair<_IIter1, _IIter2> > mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); > > template<typename _RAIter> > void > nth_element(_RAIter, _RAIter, _RAIter); > > template<typename _RAIter, typename _Compare> > void > nth_element(_RAIter, _RAIter, _RAIter, _Compare); > > template<typename _RAIter> > void > partial_sort(_RAIter, _RAIter, _RAIter); > > template<typename _RAIter, typename _Compare> > void > partial_sort(_RAIter, _RAIter, _RAIter, _Compare); > > template<typename _BIter, typename _Predicate> > _BIter > partition(_BIter, _BIter, _Predicate); > > template<typename _RAIter> > void > random_shuffle(_RAIter, _RAIter); > > template<typename _RAIter, typename _Generator> > void > random_shuffle(_RAIter, _RAIter, > > > > _Generator&); > > > template<typename _FIter, typename _Tp> > void > replace(_FIter, _FIter, const _Tp&, const _Tp&); > > template<typename _FIter, typename _Predicate, typename _Tp> > void > replace_if(_FIter, _FIter, _Predicate, const _Tp&); > > template<typename _FIter1, typename _FIter2> > _FIter1 > search(_FIter1, _FIter1, _FIter2, _FIter2); > > template<typename _FIter1, typename _FIter2, typename _BinaryPredicate> > _FIter1 > search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); > > template<typename _FIter, typename _Size, typename _Tp> > _FIter > search_n(_FIter, _FIter, _Size, const _Tp&); > > template<typename _FIter, typename _Size, typename _Tp, > typename _BinaryPredicate> > _FIter > search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); > > template<typename _IIter1, typename _IIter2, typename _OIter> > _OIter > set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); > > template<typename _IIter1, typename _IIter2, typename _OIter, > typename _Compare> > _OIter > set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); > > template<typename _IIter1, typename _IIter2, typename _OIter> > _OIter > set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); > > template<typename _IIter1, typename _IIter2, typename _OIter, > typename _Compare> > _OIter > set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); > > template<typename _IIter1, typename _IIter2, typename _OIter> > _OIter > set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); > > template<typename _IIter1, typename _IIter2, typename _OIter, > typename _Compare> > _OIter > set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, > _OIter, _Compare); > > template<typename _IIter1, typename _IIter2, typename _OIter> > _OIter > set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); > > template<typename _IIter1, typename _IIter2, typename _OIter, > typename _Compare> > _OIter > set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); > > template<typename _RAIter> > void > sort(_RAIter, _RAIter); > > template<typename _RAIter, typename _Compare> > void > sort(_RAIter, _RAIter, _Compare); > > template<typename _RAIter> > void > stable_sort(_RAIter, _RAIter); > > template<typename _RAIter, typename _Compare> > void > stable_sort(_RAIter, _RAIter, _Compare); > > template<typename _IIter, typename _OIter, typename _UnaryOperation> > _OIter > transform(_IIter, _IIter, _OIter, _UnaryOperation); > > template<typename _IIter1, typename _IIter2, typename _OIter, > typename _BinaryOperation> > _OIter > transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); > > template<typename _IIter, typename _OIter> > _OIter > unique_copy(_IIter, _IIter, _OIter); > > template<typename _IIter, typename _OIter, typename _BinaryPredicate> > _OIter > unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); > > >} ># 61 "/usr/include/c++/4.8.2/bits/stl_algo.h" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_heap.h" 1 3 ># 56 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 >#define _STL_HEAP_H 1 > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > > > > > template<typename _RandomAccessIterator, typename _Distance> > _Distance > __is_heap_until(_RandomAccessIterator __first, _Distance __n) > { > _Distance __parent = 0; > for (_Distance __child = 1; __child < __n; ++__child) > { > if (__first[__parent] < __first[__child]) > return __child; > if ((__child & 1) == 0) > ++__parent; > } > return __n; > } > > template<typename _RandomAccessIterator, typename _Distance, > typename _Compare> > _Distance > __is_heap_until(_RandomAccessIterator __first, _Distance __n, > _Compare __comp) > { > _Distance __parent = 0; > for (_Distance __child = 1; __child < __n; ++__child) > { > if (__comp(__first[__parent], __first[__child])) > return __child; > if ((__child & 1) == 0) > ++__parent; > } > return __n; > } > > > > template<typename _RandomAccessIterator, typename _Distance> > inline bool > __is_heap(_RandomAccessIterator __first, _Distance __n) > { return std::__is_heap_until(__first, __n) == __n; } > > template<typename _RandomAccessIterator, typename _Compare, > typename _Distance> > inline bool > __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) > { return std::__is_heap_until(__first, __n, __comp) == __n; } > > template<typename _RandomAccessIterator> > inline bool > __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) > { return std::__is_heap(__first, std::distance(__first, __last)); } > > template<typename _RandomAccessIterator, typename _Compare> > inline bool > __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, > _Compare __comp) > { return std::__is_heap(__first, __comp, std::distance(__first, __last)); } > > > > > template<typename _RandomAccessIterator, typename _Distance, typename _Tp> > void > __push_heap(_RandomAccessIterator __first, > _Distance __holeIndex, _Distance __topIndex, _Tp __value) > { > _Distance __parent = (__holeIndex - 1) / 2; > while (__holeIndex > __topIndex && *(__first + __parent) < __value) > { > *(__first + __holeIndex) = (*(__first + __parent)); > __holeIndex = __parent; > __parent = (__holeIndex - 1) / 2; > } > *(__first + __holeIndex) = (__value); > } ># 154 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 > template<typename _RandomAccessIterator> > inline void > push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > > > > > ; > ; > > _ValueType __value = (*(__last - 1)); > std::__push_heap(__first, _DistanceType((__last - __first) - 1), > _DistanceType(0), (__value)); > } > > template<typename _RandomAccessIterator, typename _Distance, typename _Tp, > typename _Compare> > void > __push_heap(_RandomAccessIterator __first, _Distance __holeIndex, > _Distance __topIndex, _Tp __value, _Compare __comp) > { > _Distance __parent = (__holeIndex - 1) / 2; > while (__holeIndex > __topIndex > && __comp(*(__first + __parent), __value)) > { > *(__first + __holeIndex) = (*(__first + __parent)); > __holeIndex = __parent; > __parent = (__holeIndex - 1) / 2; > } > *(__first + __holeIndex) = (__value); > } ># 204 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 > template<typename _RandomAccessIterator, typename _Compare> > inline void > push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, > _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > > > > ; > ; > > _ValueType __value = (*(__last - 1)); > std::__push_heap(__first, _DistanceType((__last - __first) - 1), > _DistanceType(0), (__value), __comp); > } > > template<typename _RandomAccessIterator, typename _Distance, typename _Tp> > void > __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, > _Distance __len, _Tp __value) > { > const _Distance __topIndex = __holeIndex; > _Distance __secondChild = __holeIndex; > while (__secondChild < (__len - 1) / 2) > { > __secondChild = 2 * (__secondChild + 1); > if (*(__first + __secondChild) < *(__first + (__secondChild - 1))) > __secondChild--; > *(__first + __holeIndex) = (*(__first + __secondChild)); > __holeIndex = __secondChild; > } > if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) > { > __secondChild = 2 * (__secondChild + 1); > *(__first + __holeIndex) = (*(__first + (__secondChild - 1))) > ; > __holeIndex = __secondChild - 1; > } > std::__push_heap(__first, __holeIndex, __topIndex, > (__value)); > } > > template<typename _RandomAccessIterator> > inline void > __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, > _RandomAccessIterator __result) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > _ValueType __value = (*__result); > *__result = (*__first); > std::__adjust_heap(__first, _DistanceType(0), > _DistanceType(__last - __first), > (__value)); > } ># 279 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 > template<typename _RandomAccessIterator> > inline void > pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > > > > > ; > ; > ; > > if (__last - __first > 1) > { > --__last; > std::__pop_heap(__first, __last, __last); > } > } > > template<typename _RandomAccessIterator, typename _Distance, > typename _Tp, typename _Compare> > void > __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, > _Distance __len, _Tp __value, _Compare __comp) > { > const _Distance __topIndex = __holeIndex; > _Distance __secondChild = __holeIndex; > while (__secondChild < (__len - 1) / 2) > { > __secondChild = 2 * (__secondChild + 1); > if (__comp(*(__first + __secondChild), > *(__first + (__secondChild - 1)))) > __secondChild--; > *(__first + __holeIndex) = (*(__first + __secondChild)); > __holeIndex = __secondChild; > } > if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) > { > __secondChild = 2 * (__secondChild + 1); > *(__first + __holeIndex) = (*(__first + (__secondChild - 1))) > ; > __holeIndex = __secondChild - 1; > } > std::__push_heap(__first, __holeIndex, __topIndex, > (__value), __comp); > } > > template<typename _RandomAccessIterator, typename _Compare> > inline void > __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, > _RandomAccessIterator __result, _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > _ValueType __value = (*__result); > *__result = (*__first); > std::__adjust_heap(__first, _DistanceType(0), > _DistanceType(__last - __first), > (__value), __comp); > } ># 357 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 > template<typename _RandomAccessIterator, typename _Compare> > inline void > pop_heap(_RandomAccessIterator __first, > _RandomAccessIterator __last, _Compare __comp) > { > > > > ; > ; > ; > > if (__last - __first > 1) > { > --__last; > std::__pop_heap(__first, __last, __last, __comp); > } > } ># 384 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 > template<typename _RandomAccessIterator> > void > make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > > > > > ; > > if (__last - __first < 2) > return; > > const _DistanceType __len = __last - __first; > _DistanceType __parent = (__len - 2) / 2; > while (true) > { > _ValueType __value = (*(__first + __parent)); > std::__adjust_heap(__first, __parent, __len, (__value)); > if (__parent == 0) > return; > __parent--; > } > } ># 424 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 > template<typename _RandomAccessIterator, typename _Compare> > void > make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, > _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > > > > ; > > if (__last - __first < 2) > return; > > const _DistanceType __len = __last - __first; > _DistanceType __parent = (__len - 2) / 2; > while (true) > { > _ValueType __value = (*(__first + __parent)); > std::__adjust_heap(__first, __parent, __len, (__value), > __comp); > if (__parent == 0) > return; > __parent--; > } > } ># 463 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 > template<typename _RandomAccessIterator> > void > sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) > { > > > > > > ; > ; > > while (__last - __first > 1) > { > --__last; > std::__pop_heap(__first, __last, __last); > } > } ># 492 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 > template<typename _RandomAccessIterator, typename _Compare> > void > sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, > _Compare __comp) > { > > > > ; > ; > > while (__last - __first > 1) > { > --__last; > std::__pop_heap(__first, __last, __last, __comp); > } > } ># 589 "/usr/include/c++/4.8.2/bits/stl_heap.h" 3 > >} ># 62 "/usr/include/c++/4.8.2/bits/stl_algo.h" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_tempbuf.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_tempbuf.h" 3 >#define _STL_TEMPBUF_H 1 > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 83 "/usr/include/c++/4.8.2/bits/stl_tempbuf.h" 3 > template<typename _Tp> > pair<_Tp*, ptrdiff_t> > get_temporary_buffer(ptrdiff_t __len) > { > const ptrdiff_t __max = > __gnu_cxx::__numeric_traits<ptrdiff_t>::__max / sizeof(_Tp); > if (__len > __max) > __len = __max; > > while (__len > 0) > { > _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), > std::nothrow)); > if (__tmp != 0) > return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); > __len /= 2; > } > return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); > } ># 110 "/usr/include/c++/4.8.2/bits/stl_tempbuf.h" 3 > template<typename _Tp> > inline void > return_temporary_buffer(_Tp* __p) > { ::operator delete(__p, std::nothrow); } > > > > > > > > template<typename _ForwardIterator, typename _Tp> > class _Temporary_buffer > { > > > > public: > typedef _Tp value_type; > typedef value_type* pointer; > typedef pointer iterator; > typedef ptrdiff_t size_type; > > protected: > size_type _M_original_len; > size_type _M_len; > pointer _M_buffer; > > public: > > size_type > size() const > { return _M_len; } > > > size_type > requested_size() const > { return _M_original_len; } > > > iterator > begin() > { return _M_buffer; } > > > iterator > end() > { return _M_buffer + _M_len; } > > > > > > _Temporary_buffer(_ForwardIterator __first, _ForwardIterator __last); > > ~_Temporary_buffer() > { > std::_Destroy(_M_buffer, _M_buffer + _M_len); > std::return_temporary_buffer(_M_buffer); > } > > private: > > _Temporary_buffer(const _Temporary_buffer&); > > void > operator=(const _Temporary_buffer&); > }; > > > template<bool> > struct __uninitialized_construct_buf_dispatch > { > template<typename _Pointer, typename _ForwardIterator> > static void > __ucr(_Pointer __first, _Pointer __last, > _ForwardIterator __seed) > { > if(__first == __last) > return; > > _Pointer __cur = __first; > try > { > std::_Construct(std::__addressof(*__first), > (*__seed)); > _Pointer __prev = __cur; > ++__cur; > for(; __cur != __last; ++__cur, ++__prev) > std::_Construct(std::__addressof(*__cur), > (*__prev)); > *__seed = (*__prev); > } > catch(...) > { > std::_Destroy(__first, __cur); > throw; > } > } > }; > > template<> > struct __uninitialized_construct_buf_dispatch<true> > { > template<typename _Pointer, typename _ForwardIterator> > static void > __ucr(_Pointer, _Pointer, _ForwardIterator) { } > }; ># 229 "/usr/include/c++/4.8.2/bits/stl_tempbuf.h" 3 > template<typename _Pointer, typename _ForwardIterator> > inline void > __uninitialized_construct_buf(_Pointer __first, _Pointer __last, > _ForwardIterator __seed) > { > typedef typename std::iterator_traits<_Pointer>::value_type > _ValueType; > > std::__uninitialized_construct_buf_dispatch< > __has_trivial_constructor(_ValueType)>:: > __ucr(__first, __last, __seed); > } > > template<typename _ForwardIterator, typename _Tp> > _Temporary_buffer<_ForwardIterator, _Tp>:: > _Temporary_buffer(_ForwardIterator __first, _ForwardIterator __last) > : _M_original_len(std::distance(__first, __last)), > _M_len(0), _M_buffer(0) > { > try > { > std::pair<pointer, size_type> __p(std::get_temporary_buffer< > value_type>(_M_original_len)); > _M_buffer = __p.first; > _M_len = __p.second; > if (_M_buffer) > std::__uninitialized_construct_buf(_M_buffer, _M_buffer + _M_len, > __first); > } > catch(...) > { > std::return_temporary_buffer(_M_buffer); > _M_buffer = 0; > _M_len = 0; > throw; > } > } > > >} ># 63 "/usr/include/c++/4.8.2/bits/stl_algo.h" 2 3 ># 71 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > > > > template<typename _Iterator> > void > __move_median_to_first(_Iterator __result, _Iterator __a, > _Iterator __b, _Iterator __c) > { > > > > > if (*__a < *__b) > { > if (*__b < *__c) > std::iter_swap(__result, __b); > else if (*__a < *__c) > std::iter_swap(__result, __c); > else > std::iter_swap(__result, __a); > } > else if (*__a < *__c) > std::iter_swap(__result, __a); > else if (*__b < *__c) > std::iter_swap(__result, __c); > else > std::iter_swap(__result, __b); > } > > > template<typename _Iterator, typename _Compare> > void > __move_median_to_first(_Iterator __result, _Iterator __a, > _Iterator __b, _Iterator __c, > _Compare __comp) > { > > > > > > if (__comp(*__a, *__b)) > { > if (__comp(*__b, *__c)) > std::iter_swap(__result, __b); > else if (__comp(*__a, *__c)) > std::iter_swap(__result, __c); > else > std::iter_swap(__result, __a); > } > else if (__comp(*__a, *__c)) > std::iter_swap(__result, __a); > else if (__comp(*__b, *__c)) > std::iter_swap(__result, __c); > else > std::iter_swap(__result, __b); > } > > > > > template<typename _InputIterator, typename _Tp> > inline _InputIterator > __find(_InputIterator __first, _InputIterator __last, > const _Tp& __val, input_iterator_tag) > { > while (__first != __last && !(*__first == __val)) > ++__first; > return __first; > } > > > template<typename _InputIterator, typename _Predicate> > inline _InputIterator > __find_if(_InputIterator __first, _InputIterator __last, > _Predicate __pred, input_iterator_tag) > { > while (__first != __last && !bool(__pred(*__first))) > ++__first; > return __first; > } > > > template<typename _RandomAccessIterator, typename _Tp> > _RandomAccessIterator > __find(_RandomAccessIterator __first, _RandomAccessIterator __last, > const _Tp& __val, random_access_iterator_tag) > { > typename iterator_traits<_RandomAccessIterator>::difference_type > __trip_count = (__last - __first) >> 2; > > for (; __trip_count > 0; --__trip_count) > { > if (*__first == __val) > return __first; > ++__first; > > if (*__first == __val) > return __first; > ++__first; > > if (*__first == __val) > return __first; > ++__first; > > if (*__first == __val) > return __first; > ++__first; > } > > switch (__last - __first) > { > case 3: > if (*__first == __val) > return __first; > ++__first; > case 2: > if (*__first == __val) > return __first; > ++__first; > case 1: > if (*__first == __val) > return __first; > ++__first; > case 0: > default: > return __last; > } > } > > > template<typename _RandomAccessIterator, typename _Predicate> > _RandomAccessIterator > __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, > _Predicate __pred, random_access_iterator_tag) > { > typename iterator_traits<_RandomAccessIterator>::difference_type > __trip_count = (__last - __first) >> 2; > > for (; __trip_count > 0; --__trip_count) > { > if (__pred(*__first)) > return __first; > ++__first; > > if (__pred(*__first)) > return __first; > ++__first; > > if (__pred(*__first)) > return __first; > ++__first; > > if (__pred(*__first)) > return __first; > ++__first; > } > > switch (__last - __first) > { > case 3: > if (__pred(*__first)) > return __first; > ++__first; > case 2: > if (__pred(*__first)) > return __first; > ++__first; > case 1: > if (__pred(*__first)) > return __first; > ++__first; > case 0: > default: > return __last; > } > } > > > template<typename _InputIterator, typename _Predicate> > inline _InputIterator > __find_if_not(_InputIterator __first, _InputIterator __last, > _Predicate __pred, input_iterator_tag) > { > while (__first != __last && bool(__pred(*__first))) > ++__first; > return __first; > } > > > template<typename _RandomAccessIterator, typename _Predicate> > _RandomAccessIterator > __find_if_not(_RandomAccessIterator __first, _RandomAccessIterator __last, > _Predicate __pred, random_access_iterator_tag) > { > typename iterator_traits<_RandomAccessIterator>::difference_type > __trip_count = (__last - __first) >> 2; > > for (; __trip_count > 0; --__trip_count) > { > if (!bool(__pred(*__first))) > return __first; > ++__first; > > if (!bool(__pred(*__first))) > return __first; > ++__first; > > if (!bool(__pred(*__first))) > return __first; > ++__first; > > if (!bool(__pred(*__first))) > return __first; > ++__first; > } > > switch (__last - __first) > { > case 3: > if (!bool(__pred(*__first))) > return __first; > ++__first; > case 2: > if (!bool(__pred(*__first))) > return __first; > ++__first; > case 1: > if (!bool(__pred(*__first))) > return __first; > ++__first; > case 0: > default: > return __last; > } > } > > > template<typename _InputIterator, typename _Predicate> > inline _InputIterator > __find_if_not(_InputIterator __first, _InputIterator __last, > _Predicate __pred) > { > return std::__find_if_not(__first, __last, __pred, > std::__iterator_category(__first)); > } > > > > > template<typename _InputIterator, typename _Predicate, typename _Distance> > _InputIterator > __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) > { > for (; __len; --__len, ++__first) > if (!bool(__pred(*__first))) > break; > return __first; > } ># 351 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Integer, typename _Tp> > _ForwardIterator > __search_n(_ForwardIterator __first, _ForwardIterator __last, > _Integer __count, const _Tp& __val, > std::forward_iterator_tag) > { > __first = std::find(__first, __last, __val); > while (__first != __last) > { > typename iterator_traits<_ForwardIterator>::difference_type > __n = __count; > _ForwardIterator __i = __first; > ++__i; > while (__i != __last && __n != 1 && *__i == __val) > { > ++__i; > --__n; > } > if (__n == 1) > return __first; > if (__i == __last) > return __last; > __first = std::find(++__i, __last, __val); > } > return __last; > } > > > > > > > template<typename _RandomAccessIter, typename _Integer, typename _Tp> > _RandomAccessIter > __search_n(_RandomAccessIter __first, _RandomAccessIter __last, > _Integer __count, const _Tp& __val, > std::random_access_iterator_tag) > { > > typedef typename std::iterator_traits<_RandomAccessIter>::difference_type > _DistanceType; > > _DistanceType __tailSize = __last - __first; > _DistanceType __remainder = __count; > > while (__remainder <= __tailSize) > { > __first += __remainder; > __tailSize -= __remainder; > > > _RandomAccessIter __backTrack = __first; > while (*--__backTrack == __val) > { > if (--__remainder == 0) > return (__first - __count); > } > __remainder = __count + 1 - (__first - __backTrack); > } > return __last; > } ># 421 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Integer, typename _Tp, > typename _BinaryPredicate> > _ForwardIterator > __search_n(_ForwardIterator __first, _ForwardIterator __last, > _Integer __count, const _Tp& __val, > _BinaryPredicate __binary_pred, std::forward_iterator_tag) > { > while (__first != __last && !bool(__binary_pred(*__first, __val))) > ++__first; > > while (__first != __last) > { > typename iterator_traits<_ForwardIterator>::difference_type > __n = __count; > _ForwardIterator __i = __first; > ++__i; > while (__i != __last && __n != 1 && bool(__binary_pred(*__i, __val))) > { > ++__i; > --__n; > } > if (__n == 1) > return __first; > if (__i == __last) > return __last; > __first = ++__i; > while (__first != __last > && !bool(__binary_pred(*__first, __val))) > ++__first; > } > return __last; > } > > > > > > > > template<typename _RandomAccessIter, typename _Integer, typename _Tp, > typename _BinaryPredicate> > _RandomAccessIter > __search_n(_RandomAccessIter __first, _RandomAccessIter __last, > _Integer __count, const _Tp& __val, > _BinaryPredicate __binary_pred, std::random_access_iterator_tag) > { > > typedef typename std::iterator_traits<_RandomAccessIter>::difference_type > _DistanceType; > > _DistanceType __tailSize = __last - __first; > _DistanceType __remainder = __count; > > while (__remainder <= __tailSize) > { > __first += __remainder; > __tailSize -= __remainder; > > > _RandomAccessIter __backTrack = __first; > while (__binary_pred(*--__backTrack, __val)) > { > if (--__remainder == 0) > return (__first - __count); > } > __remainder = __count + 1 - (__first - __backTrack); > } > return __last; > } > > > template<typename _ForwardIterator1, typename _ForwardIterator2> > _ForwardIterator1 > __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, > _ForwardIterator2 __first2, _ForwardIterator2 __last2, > forward_iterator_tag, forward_iterator_tag) > { > if (__first2 == __last2) > return __last1; > else > { > _ForwardIterator1 __result = __last1; > while (1) > { > _ForwardIterator1 __new_result > = std::search(__first1, __last1, __first2, __last2); > if (__new_result == __last1) > return __result; > else > { > __result = __new_result; > __first1 = __new_result; > ++__first1; > } > } > } > } > > template<typename _ForwardIterator1, typename _ForwardIterator2, > typename _BinaryPredicate> > _ForwardIterator1 > __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, > _ForwardIterator2 __first2, _ForwardIterator2 __last2, > forward_iterator_tag, forward_iterator_tag, > _BinaryPredicate __comp) > { > if (__first2 == __last2) > return __last1; > else > { > _ForwardIterator1 __result = __last1; > while (1) > { > _ForwardIterator1 __new_result > = std::search(__first1, __last1, __first2, > __last2, __comp); > if (__new_result == __last1) > return __result; > else > { > __result = __new_result; > __first1 = __new_result; > ++__first1; > } > } > } > } > > > template<typename _BidirectionalIterator1, typename _BidirectionalIterator2> > _BidirectionalIterator1 > __find_end(_BidirectionalIterator1 __first1, > _BidirectionalIterator1 __last1, > _BidirectionalIterator2 __first2, > _BidirectionalIterator2 __last2, > bidirectional_iterator_tag, bidirectional_iterator_tag) > { > > > > > > > typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; > typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; > > _RevIterator1 __rlast1(__first1); > _RevIterator2 __rlast2(__first2); > _RevIterator1 __rresult = std::search(_RevIterator1(__last1), > __rlast1, > _RevIterator2(__last2), > __rlast2); > > if (__rresult == __rlast1) > return __last1; > else > { > _BidirectionalIterator1 __result = __rresult.base(); > std::advance(__result, -std::distance(__first2, __last2)); > return __result; > } > } > > template<typename _BidirectionalIterator1, typename _BidirectionalIterator2, > typename _BinaryPredicate> > _BidirectionalIterator1 > __find_end(_BidirectionalIterator1 __first1, > _BidirectionalIterator1 __last1, > _BidirectionalIterator2 __first2, > _BidirectionalIterator2 __last2, > bidirectional_iterator_tag, bidirectional_iterator_tag, > _BinaryPredicate __comp) > { > > > > > > > typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; > typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; > > _RevIterator1 __rlast1(__first1); > _RevIterator2 __rlast2(__first2); > _RevIterator1 __rresult = std::search(_RevIterator1(__last1), __rlast1, > _RevIterator2(__last2), __rlast2, > __comp); > > if (__rresult == __rlast1) > return __last1; > else > { > _BidirectionalIterator1 __result = __rresult.base(); > std::advance(__result, -std::distance(__first2, __last2)); > return __result; > } > } ># 645 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator1, typename _ForwardIterator2> > inline _ForwardIterator1 > find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, > _ForwardIterator2 __first2, _ForwardIterator2 __last2) > { > > > > > > > ; > ; > > return std::__find_end(__first1, __last1, __first2, __last2, > std::__iterator_category(__first1), > std::__iterator_category(__first2)); > } ># 692 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator1, typename _ForwardIterator2, > typename _BinaryPredicate> > inline _ForwardIterator1 > find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, > _ForwardIterator2 __first2, _ForwardIterator2 __last2, > _BinaryPredicate __comp) > { > > > > > > > ; > ; > > return std::__find_end(__first1, __last1, __first2, __last2, > std::__iterator_category(__first1), > std::__iterator_category(__first2), > __comp); > } ># 871 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _OutputIterator, typename _Tp> > _OutputIterator > remove_copy(_InputIterator __first, _InputIterator __last, > _OutputIterator __result, const _Tp& __value) > { > > > > > > > ; > > for (; __first != __last; ++__first) > if (!(*__first == __value)) > { > *__result = *__first; > ++__result; > } > return __result; > } ># 908 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _OutputIterator, > typename _Predicate> > _OutputIterator > remove_copy_if(_InputIterator __first, _InputIterator __last, > _OutputIterator __result, _Predicate __pred) > { > > > > > > > ; > > for (; __first != __last; ++__first) > if (!bool(__pred(*__first))) > { > *__result = *__first; > ++__result; > } > return __result; > } ># 1089 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Tp> > _ForwardIterator > remove(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __value) > { > > > > > > ; > > __first = std::find(__first, __last, __value); > if(__first == __last) > return __first; > _ForwardIterator __result = __first; > ++__first; > for(; __first != __last; ++__first) > if(!(*__first == __value)) > { > *__result = (*__first); > ++__result; > } > return __result; > } ># 1132 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Predicate> > _ForwardIterator > remove_if(_ForwardIterator __first, _ForwardIterator __last, > _Predicate __pred) > { > > > > > > ; > > __first = std::find_if(__first, __last, __pred); > if(__first == __last) > return __first; > _ForwardIterator __result = __first; > ++__first; > for(; __first != __last; ++__first) > if(!bool(__pred(*__first))) > { > *__result = (*__first); > ++__result; > } > return __result; > } ># 1172 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator> > _ForwardIterator > unique(_ForwardIterator __first, _ForwardIterator __last) > { > > > > > > ; > > > __first = std::adjacent_find(__first, __last); > if (__first == __last) > return __last; > > > _ForwardIterator __dest = __first; > ++__first; > while (++__first != __last) > if (!(*__dest == *__first)) > *++__dest = (*__first); > return ++__dest; > } ># 1212 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _BinaryPredicate> > _ForwardIterator > unique(_ForwardIterator __first, _ForwardIterator __last, > _BinaryPredicate __binary_pred) > { > > > > > > > ; > > > __first = std::adjacent_find(__first, __last, __binary_pred); > if (__first == __last) > return __last; > > > _ForwardIterator __dest = __first; > ++__first; > while (++__first != __last) > if (!bool(__binary_pred(*__dest, *__first))) > *++__dest = (*__first); > return ++__dest; > } > > > > > > > template<typename _ForwardIterator, typename _OutputIterator> > _OutputIterator > __unique_copy(_ForwardIterator __first, _ForwardIterator __last, > _OutputIterator __result, > forward_iterator_tag, output_iterator_tag) > { > > _ForwardIterator __next = __first; > *__result = *__first; > while (++__next != __last) > if (!(*__first == *__next)) > { > __first = __next; > *++__result = *__first; > } > return ++__result; > } > > > > > > > template<typename _InputIterator, typename _OutputIterator> > _OutputIterator > __unique_copy(_InputIterator __first, _InputIterator __last, > _OutputIterator __result, > input_iterator_tag, output_iterator_tag) > { > > typename iterator_traits<_InputIterator>::value_type __value = *__first; > *__result = __value; > while (++__first != __last) > if (!(__value == *__first)) > { > __value = *__first; > *++__result = __value; > } > return ++__result; > } > > > > > > > template<typename _InputIterator, typename _ForwardIterator> > _ForwardIterator > __unique_copy(_InputIterator __first, _InputIterator __last, > _ForwardIterator __result, > input_iterator_tag, forward_iterator_tag) > { > > *__result = *__first; > while (++__first != __last) > if (!(*__result == *__first)) > *++__result = *__first; > return ++__result; > } > > > > > > > > template<typename _ForwardIterator, typename _OutputIterator, > typename _BinaryPredicate> > _OutputIterator > __unique_copy(_ForwardIterator __first, _ForwardIterator __last, > _OutputIterator __result, _BinaryPredicate __binary_pred, > forward_iterator_tag, output_iterator_tag) > { > > > > > > _ForwardIterator __next = __first; > *__result = *__first; > while (++__next != __last) > if (!bool(__binary_pred(*__first, *__next))) > { > __first = __next; > *++__result = *__first; > } > return ++__result; > } > > > > > > > > template<typename _InputIterator, typename _OutputIterator, > typename _BinaryPredicate> > _OutputIterator > __unique_copy(_InputIterator __first, _InputIterator __last, > _OutputIterator __result, _BinaryPredicate __binary_pred, > input_iterator_tag, output_iterator_tag) > { > > > > > > typename iterator_traits<_InputIterator>::value_type __value = *__first; > *__result = __value; > while (++__first != __last) > if (!bool(__binary_pred(__value, *__first))) > { > __value = *__first; > *++__result = __value; > } > return ++__result; > } > > > > > > > > template<typename _InputIterator, typename _ForwardIterator, > typename _BinaryPredicate> > _ForwardIterator > __unique_copy(_InputIterator __first, _InputIterator __last, > _ForwardIterator __result, _BinaryPredicate __binary_pred, > input_iterator_tag, forward_iterator_tag) > { > > > > > > *__result = *__first; > while (++__first != __last) > if (!bool(__binary_pred(*__result, *__first))) > *++__result = *__first; > return ++__result; > } > > > > > > > template<typename _BidirectionalIterator> > void > __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, > bidirectional_iterator_tag) > { > while (true) > if (__first == __last || __first == --__last) > return; > else > { > std::iter_swap(__first, __last); > ++__first; > } > } > > > > > > > template<typename _RandomAccessIterator> > void > __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, > random_access_iterator_tag) > { > if (__first == __last) > return; > --__last; > while (__first < __last) > { > std::iter_swap(__first, __last); > ++__first; > --__last; > } > } ># 1440 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _BidirectionalIterator> > inline void > reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) > { > > > > ; > std::__reverse(__first, __last, std::__iterator_category(__first)); > } ># 1467 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _BidirectionalIterator, typename _OutputIterator> > _OutputIterator > reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, > _OutputIterator __result) > { > > > > > > ; > > while (__first != __last) > { > --__last; > *__result = *__last; > ++__result; > } > return __result; > } > > > > > > template<typename _EuclideanRingElement> > _EuclideanRingElement > __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) > { > while (__n != 0) > { > _EuclideanRingElement __t = __m % __n; > __m = __n; > __n = __t; > } > return __m; > } > > > template<typename _ForwardIterator> > void > __rotate(_ForwardIterator __first, > _ForwardIterator __middle, > _ForwardIterator __last, > forward_iterator_tag) > { > if (__first == __middle || __last == __middle) > return; > > _ForwardIterator __first2 = __middle; > do > { > std::iter_swap(__first, __first2); > ++__first; > ++__first2; > if (__first == __middle) > __middle = __first2; > } > while (__first2 != __last); > > __first2 = __middle; > > while (__first2 != __last) > { > std::iter_swap(__first, __first2); > ++__first; > ++__first2; > if (__first == __middle) > __middle = __first2; > else if (__first2 == __last) > __first2 = __middle; > } > } > > > template<typename _BidirectionalIterator> > void > __rotate(_BidirectionalIterator __first, > _BidirectionalIterator __middle, > _BidirectionalIterator __last, > bidirectional_iterator_tag) > { > > > > > if (__first == __middle || __last == __middle) > return; > > std::__reverse(__first, __middle, bidirectional_iterator_tag()); > std::__reverse(__middle, __last, bidirectional_iterator_tag()); > > while (__first != __middle && __middle != __last) > { > std::iter_swap(__first, --__last); > ++__first; > } > > if (__first == __middle) > std::__reverse(__middle, __last, bidirectional_iterator_tag()); > else > std::__reverse(__first, __middle, bidirectional_iterator_tag()); > } > > > template<typename _RandomAccessIterator> > void > __rotate(_RandomAccessIterator __first, > _RandomAccessIterator __middle, > _RandomAccessIterator __last, > random_access_iterator_tag) > { > > > > > if (__first == __middle || __last == __middle) > return; > > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _Distance; > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > _Distance __n = __last - __first; > _Distance __k = __middle - __first; > > if (__k == __n - __k) > { > std::swap_ranges(__first, __middle, __middle); > return; > } > > _RandomAccessIterator __p = __first; > > for (;;) > { > if (__k < __n - __k) > { > if (__is_pod(_ValueType) && __k == 1) > { > _ValueType __t = (*__p); > std::copy(__p + 1, __p + __n, __p); > *(__p + __n - 1) = (__t); > return; > } > _RandomAccessIterator __q = __p + __k; > for (_Distance __i = 0; __i < __n - __k; ++ __i) > { > std::iter_swap(__p, __q); > ++__p; > ++__q; > } > __n %= __k; > if (__n == 0) > return; > std::swap(__n, __k); > __k = __n - __k; > } > else > { > __k = __n - __k; > if (__is_pod(_ValueType) && __k == 1) > { > _ValueType __t = (*(__p + __n - 1)); > std::copy_backward(__p, __p + __n - 1, __p + __n); > *__p = (__t); > return; > } > _RandomAccessIterator __q = __p + __n; > __p = __q - __k; > for (_Distance __i = 0; __i < __n - __k; ++ __i) > { > --__p; > --__q; > std::iter_swap(__p, __q); > } > __n %= __k; > if (__n == 0) > return; > std::swap(__n, __k); > } > } > } ># 1673 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator> > inline void > rotate(_ForwardIterator __first, _ForwardIterator __middle, > _ForwardIterator __last) > { > > > > ; > ; > > typedef typename iterator_traits<_ForwardIterator>::iterator_category > _IterType; > std::__rotate(__first, __middle, __last, _IterType()); > } ># 1709 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _OutputIterator> > _OutputIterator > rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, > _ForwardIterator __last, _OutputIterator __result) > { > > > > > ; > ; > > return std::copy(__first, __middle, > std::copy(__middle, __last, __result)); > } > > > template<typename _ForwardIterator, typename _Predicate> > _ForwardIterator > __partition(_ForwardIterator __first, _ForwardIterator __last, > _Predicate __pred, forward_iterator_tag) > { > if (__first == __last) > return __first; > > while (__pred(*__first)) > if (++__first == __last) > return __first; > > _ForwardIterator __next = __first; > > while (++__next != __last) > if (__pred(*__next)) > { > std::iter_swap(__first, __next); > ++__first; > } > > return __first; > } > > > template<typename _BidirectionalIterator, typename _Predicate> > _BidirectionalIterator > __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, > _Predicate __pred, bidirectional_iterator_tag) > { > while (true) > { > while (true) > if (__first == __last) > return __first; > else if (__pred(*__first)) > ++__first; > else > break; > --__last; > while (true) > if (__first == __last) > return __first; > else if (!bool(__pred(*__last))) > --__last; > else > break; > std::iter_swap(__first, __last); > ++__first; > } > } > > > > > > > template<typename _ForwardIterator, typename _Predicate, typename _Distance> > _ForwardIterator > __inplace_stable_partition(_ForwardIterator __first, > _Predicate __pred, _Distance __len) > { > if (__len == 1) > return __first; > _ForwardIterator __middle = __first; > std::advance(__middle, __len / 2); > _ForwardIterator __left_split = > std::__inplace_stable_partition(__first, __pred, __len / 2); > > > _Distance __right_len = __len - __len / 2; > _ForwardIterator __right_split = > std::__find_if_not_n(__middle, __right_len, __pred); > if (__right_len) > __right_split = std::__inplace_stable_partition(__middle, > __pred, > __right_len); > std::rotate(__left_split, __middle, __right_split); > std::advance(__left_split, std::distance(__middle, __right_split)); > return __left_split; > } > > > > > > > > template<typename _ForwardIterator, typename _Pointer, typename _Predicate, > typename _Distance> > _ForwardIterator > __stable_partition_adaptive(_ForwardIterator __first, > _ForwardIterator __last, > _Predicate __pred, _Distance __len, > _Pointer __buffer, > _Distance __buffer_size) > { > if (__len <= __buffer_size) > { > _ForwardIterator __result1 = __first; > _Pointer __result2 = __buffer; > > > > *__result2 = (*__first); > ++__result2; > ++__first; > for (; __first != __last; ++__first) > if (__pred(*__first)) > { > *__result1 = (*__first); > ++__result1; > } > else > { > *__result2 = (*__first); > ++__result2; > } > std::copy(__buffer, __result2, __result1); > return __result1; > } > else > { > _ForwardIterator __middle = __first; > std::advance(__middle, __len / 2); > _ForwardIterator __left_split = > std::__stable_partition_adaptive(__first, __middle, __pred, > __len / 2, __buffer, > __buffer_size); > > > _Distance __right_len = __len - __len / 2; > _ForwardIterator __right_split = > std::__find_if_not_n(__middle, __right_len, __pred); > if (__right_len) > __right_split = > std::__stable_partition_adaptive(__right_split, __last, __pred, > __right_len, > __buffer, __buffer_size); > std::rotate(__left_split, __middle, __right_split); > std::advance(__left_split, std::distance(__middle, __right_split)); > return __left_split; > } > } ># 1888 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Predicate> > _ForwardIterator > stable_partition(_ForwardIterator __first, _ForwardIterator __last, > _Predicate __pred) > { > > > > > > ; > > __first = std::__find_if_not(__first, __last, __pred); > > if (__first == __last) > return __first; > else > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > typedef typename iterator_traits<_ForwardIterator>::difference_type > _DistanceType; > > _Temporary_buffer<_ForwardIterator, _ValueType> __buf(__first, > __last); > if (__buf.size() > 0) > return > std::__stable_partition_adaptive(__first, __last, __pred, > _DistanceType(__buf.requested_size()), > __buf.begin(), > _DistanceType(__buf.size())); > else > return > std::__inplace_stable_partition(__first, __pred, > _DistanceType(__buf.requested_size())); > } > } > > > template<typename _RandomAccessIterator> > void > __heap_select(_RandomAccessIterator __first, > _RandomAccessIterator __middle, > _RandomAccessIterator __last) > { > std::make_heap(__first, __middle); > for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) > if (*__i < *__first) > std::__pop_heap(__first, __middle, __i); > } > > > template<typename _RandomAccessIterator, typename _Compare> > void > __heap_select(_RandomAccessIterator __first, > _RandomAccessIterator __middle, > _RandomAccessIterator __last, _Compare __comp) > { > std::make_heap(__first, __middle, __comp); > for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) > if (__comp(*__i, *__first)) > std::__pop_heap(__first, __middle, __i, __comp); > } ># 1972 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _RandomAccessIterator> > _RandomAccessIterator > partial_sort_copy(_InputIterator __first, _InputIterator __last, > _RandomAccessIterator __result_first, > _RandomAccessIterator __result_last) > { > typedef typename iterator_traits<_InputIterator>::value_type > _InputValueType; > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _OutputValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > > > > > > > > ; > ; > > if (__result_first == __result_last) > return __result_last; > _RandomAccessIterator __result_real_last = __result_first; > while(__first != __last && __result_real_last != __result_last) > { > *__result_real_last = *__first; > ++__result_real_last; > ++__first; > } > std::make_heap(__result_first, __result_real_last); > while (__first != __last) > { > if (*__first < *__result_first) > std::__adjust_heap(__result_first, _DistanceType(0), > _DistanceType(__result_real_last > - __result_first), > _InputValueType(*__first)); > ++__first; > } > std::sort_heap(__result_first, __result_real_last); > return __result_real_last; > } ># 2038 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _RandomAccessIterator, typename _Compare> > _RandomAccessIterator > partial_sort_copy(_InputIterator __first, _InputIterator __last, > _RandomAccessIterator __result_first, > _RandomAccessIterator __result_last, > _Compare __comp) > { > typedef typename iterator_traits<_InputIterator>::value_type > _InputValueType; > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _OutputValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > > > > > > > > > > > ; > ; > > if (__result_first == __result_last) > return __result_last; > _RandomAccessIterator __result_real_last = __result_first; > while(__first != __last && __result_real_last != __result_last) > { > *__result_real_last = *__first; > ++__result_real_last; > ++__first; > } > std::make_heap(__result_first, __result_real_last, __comp); > while (__first != __last) > { > if (__comp(*__first, *__result_first)) > std::__adjust_heap(__result_first, _DistanceType(0), > _DistanceType(__result_real_last > - __result_first), > _InputValueType(*__first), > __comp); > ++__first; > } > std::sort_heap(__result_first, __result_real_last, __comp); > return __result_real_last; > } > > > template<typename _RandomAccessIterator> > void > __unguarded_linear_insert(_RandomAccessIterator __last) > { > typename iterator_traits<_RandomAccessIterator>::value_type > __val = (*__last); > _RandomAccessIterator __next = __last; > --__next; > while (__val < *__next) > { > *__last = (*__next); > __last = __next; > --__next; > } > *__last = (__val); > } > > > template<typename _RandomAccessIterator, typename _Compare> > void > __unguarded_linear_insert(_RandomAccessIterator __last, > _Compare __comp) > { > typename iterator_traits<_RandomAccessIterator>::value_type > __val = (*__last); > _RandomAccessIterator __next = __last; > --__next; > while (__comp(__val, *__next)) > { > *__last = (*__next); > __last = __next; > --__next; > } > *__last = (__val); > } > > > template<typename _RandomAccessIterator> > void > __insertion_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last) > { > if (__first == __last) > return; > > for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) > { > if (*__i < *__first) > { > typename iterator_traits<_RandomAccessIterator>::value_type > __val = (*__i); > std::copy_backward(__first, __i, __i + 1); > *__first = (__val); > } > else > std::__unguarded_linear_insert(__i); > } > } > > > template<typename _RandomAccessIterator, typename _Compare> > void > __insertion_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last, _Compare __comp) > { > if (__first == __last) return; > > for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) > { > if (__comp(*__i, *__first)) > { > typename iterator_traits<_RandomAccessIterator>::value_type > __val = (*__i); > std::copy_backward(__first, __i, __i + 1); > *__first = (__val); > } > else > std::__unguarded_linear_insert(__i, __comp); > } > } > > > template<typename _RandomAccessIterator> > inline void > __unguarded_insertion_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > for (_RandomAccessIterator __i = __first; __i != __last; ++__i) > std::__unguarded_linear_insert(__i); > } > > > template<typename _RandomAccessIterator, typename _Compare> > inline void > __unguarded_insertion_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last, _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > for (_RandomAccessIterator __i = __first; __i != __last; ++__i) > std::__unguarded_linear_insert(__i, __comp); > } > > > > > > enum { _S_threshold = 16 }; > > > template<typename _RandomAccessIterator> > void > __final_insertion_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last) > { > if (__last - __first > int(_S_threshold)) > { > std::__insertion_sort(__first, __first + int(_S_threshold)); > std::__unguarded_insertion_sort(__first + int(_S_threshold), __last); > } > else > std::__insertion_sort(__first, __last); > } > > > template<typename _RandomAccessIterator, typename _Compare> > void > __final_insertion_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last, _Compare __comp) > { > if (__last - __first > int(_S_threshold)) > { > std::__insertion_sort(__first, __first + int(_S_threshold), __comp); > std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, > __comp); > } > else > std::__insertion_sort(__first, __last, __comp); > } > > > template<typename _RandomAccessIterator, typename _Tp> > _RandomAccessIterator > __unguarded_partition(_RandomAccessIterator __first, > _RandomAccessIterator __last, const _Tp& __pivot) > { > while (true) > { > while (*__first < __pivot) > ++__first; > --__last; > while (__pivot < *__last) > --__last; > if (!(__first < __last)) > return __first; > std::iter_swap(__first, __last); > ++__first; > } > } > > > template<typename _RandomAccessIterator, typename _Tp, typename _Compare> > _RandomAccessIterator > __unguarded_partition(_RandomAccessIterator __first, > _RandomAccessIterator __last, > const _Tp& __pivot, _Compare __comp) > { > while (true) > { > while (__comp(*__first, __pivot)) > ++__first; > --__last; > while (__comp(__pivot, *__last)) > --__last; > if (!(__first < __last)) > return __first; > std::iter_swap(__first, __last); > ++__first; > } > } > > > template<typename _RandomAccessIterator> > inline _RandomAccessIterator > __unguarded_partition_pivot(_RandomAccessIterator __first, > _RandomAccessIterator __last) > { > _RandomAccessIterator __mid = __first + (__last - __first) / 2; > std::__move_median_to_first(__first, __first + 1, __mid, __last - 1); > return std::__unguarded_partition(__first + 1, __last, *__first); > } > > > > template<typename _RandomAccessIterator, typename _Compare> > inline _RandomAccessIterator > __unguarded_partition_pivot(_RandomAccessIterator __first, > _RandomAccessIterator __last, _Compare __comp) > { > _RandomAccessIterator __mid = __first + (__last - __first) / 2; > std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, > __comp); > return std::__unguarded_partition(__first + 1, __last, *__first, __comp); > } > > > template<typename _RandomAccessIterator, typename _Size> > void > __introsort_loop(_RandomAccessIterator __first, > _RandomAccessIterator __last, > _Size __depth_limit) > { > while (__last - __first > int(_S_threshold)) > { > if (__depth_limit == 0) > { > std::partial_sort(__first, __last, __last); > return; > } > --__depth_limit; > _RandomAccessIterator __cut = > std::__unguarded_partition_pivot(__first, __last); > std::__introsort_loop(__cut, __last, __depth_limit); > __last = __cut; > } > } > > > template<typename _RandomAccessIterator, typename _Size, typename _Compare> > void > __introsort_loop(_RandomAccessIterator __first, > _RandomAccessIterator __last, > _Size __depth_limit, _Compare __comp) > { > while (__last - __first > int(_S_threshold)) > { > if (__depth_limit == 0) > { > std::partial_sort(__first, __last, __last, __comp); > return; > } > --__depth_limit; > _RandomAccessIterator __cut = > std::__unguarded_partition_pivot(__first, __last, __comp); > std::__introsort_loop(__cut, __last, __depth_limit, __comp); > __last = __cut; > } > } > > > > template<typename _RandomAccessIterator, typename _Size> > void > __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, > _RandomAccessIterator __last, _Size __depth_limit) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > while (__last - __first > 3) > { > if (__depth_limit == 0) > { > std::__heap_select(__first, __nth + 1, __last); > > > std::iter_swap(__first, __nth); > return; > } > --__depth_limit; > _RandomAccessIterator __cut = > std::__unguarded_partition_pivot(__first, __last); > if (__cut <= __nth) > __first = __cut; > else > __last = __cut; > } > std::__insertion_sort(__first, __last); > } > > template<typename _RandomAccessIterator, typename _Size, typename _Compare> > void > __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, > _RandomAccessIterator __last, _Size __depth_limit, > _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > while (__last - __first > 3) > { > if (__depth_limit == 0) > { > std::__heap_select(__first, __nth + 1, __last, __comp); > > std::iter_swap(__first, __nth); > return; > } > --__depth_limit; > _RandomAccessIterator __cut = > std::__unguarded_partition_pivot(__first, __last, __comp); > if (__cut <= __nth) > __first = __cut; > else > __last = __cut; > } > std::__insertion_sort(__first, __last, __comp); > } ># 2423 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Tp, typename _Compare> > _ForwardIterator > lower_bound(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __val, _Compare __comp) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > typedef typename iterator_traits<_ForwardIterator>::difference_type > _DistanceType; > > > > > > > ; > > _DistanceType __len = std::distance(__first, __last); > > while (__len > 0) > { > _DistanceType __half = __len >> 1; > _ForwardIterator __middle = __first; > std::advance(__middle, __half); > if (__comp(*__middle, __val)) > { > __first = __middle; > ++__first; > __len = __len - __half - 1; > } > else > __len = __half; > } > return __first; > } ># 2470 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Tp> > _ForwardIterator > upper_bound(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __val) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > typedef typename iterator_traits<_ForwardIterator>::difference_type > _DistanceType; > > > > > ; > > _DistanceType __len = std::distance(__first, __last); > > while (__len > 0) > { > _DistanceType __half = __len >> 1; > _ForwardIterator __middle = __first; > std::advance(__middle, __half); > if (__val < *__middle) > __len = __half; > else > { > __first = __middle; > ++__first; > __len = __len - __half - 1; > } > } > return __first; > } ># 2519 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Tp, typename _Compare> > _ForwardIterator > upper_bound(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __val, _Compare __comp) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > typedef typename iterator_traits<_ForwardIterator>::difference_type > _DistanceType; > > > > > > > ; > > _DistanceType __len = std::distance(__first, __last); > > while (__len > 0) > { > _DistanceType __half = __len >> 1; > _ForwardIterator __middle = __first; > std::advance(__middle, __half); > if (__comp(__val, *__middle)) > __len = __half; > else > { > __first = __middle; > ++__first; > __len = __len - __half - 1; > } > } > return __first; > } ># 2572 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Tp> > pair<_ForwardIterator, _ForwardIterator> > equal_range(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __val) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > typedef typename iterator_traits<_ForwardIterator>::difference_type > _DistanceType; > > > > > > ; > ; > > _DistanceType __len = std::distance(__first, __last); > > while (__len > 0) > { > _DistanceType __half = __len >> 1; > _ForwardIterator __middle = __first; > std::advance(__middle, __half); > if (*__middle < __val) > { > __first = __middle; > ++__first; > __len = __len - __half - 1; > } > else if (__val < *__middle) > __len = __half; > else > { > _ForwardIterator __left = std::lower_bound(__first, __middle, > __val); > std::advance(__first, __len); > _ForwardIterator __right = std::upper_bound(++__middle, __first, > __val); > return pair<_ForwardIterator, _ForwardIterator>(__left, __right); > } > } > return pair<_ForwardIterator, _ForwardIterator>(__first, __first); > } ># 2634 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Tp, typename _Compare> > pair<_ForwardIterator, _ForwardIterator> > equal_range(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __val, _Compare __comp) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > typedef typename iterator_traits<_ForwardIterator>::difference_type > _DistanceType; > > > > > > > > > ; > > ; > > _DistanceType __len = std::distance(__first, __last); > > while (__len > 0) > { > _DistanceType __half = __len >> 1; > _ForwardIterator __middle = __first; > std::advance(__middle, __half); > if (__comp(*__middle, __val)) > { > __first = __middle; > ++__first; > __len = __len - __half - 1; > } > else if (__comp(__val, *__middle)) > __len = __half; > else > { > _ForwardIterator __left = std::lower_bound(__first, __middle, > __val, __comp); > std::advance(__first, __len); > _ForwardIterator __right = std::upper_bound(++__middle, __first, > __val, __comp); > return pair<_ForwardIterator, _ForwardIterator>(__left, __right); > } > } > return pair<_ForwardIterator, _ForwardIterator>(__first, __first); > } ># 2695 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Tp> > bool > binary_search(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __val) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > > > > > ; > ; > > _ForwardIterator __i = std::lower_bound(__first, __last, __val); > return __i != __last && !(__val < *__i); > } ># 2728 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Tp, typename _Compare> > bool > binary_search(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __val, _Compare __comp) > { > typedef typename iterator_traits<_ForwardIterator>::value_type > _ValueType; > > > > > > > ; > > ; > > _ForwardIterator __i = std::lower_bound(__first, __last, __val, __comp); > return __i != __last && !bool(__comp(__val, *__i)); > } > > > > > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator> > void > __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result) > { > while (__first1 != __last1 && __first2 != __last2) > { > if (*__first2 < *__first1) > { > *__result = (*__first2); > ++__first2; > } > else > { > *__result = (*__first1); > ++__first1; > } > ++__result; > } > if (__first1 != __last1) > std::copy(__first1, __last1, __result); > } > > > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator, typename _Compare> > void > __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result, _Compare __comp) > { > while (__first1 != __last1 && __first2 != __last2) > { > if (__comp(*__first2, *__first1)) > { > *__result = (*__first2); > ++__first2; > } > else > { > *__result = (*__first1); > ++__first1; > } > ++__result; > } > if (__first1 != __last1) > std::copy(__first1, __last1, __result); > } > > > template<typename _BidirectionalIterator1, typename _BidirectionalIterator2, > typename _BidirectionalIterator3> > void > __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, > _BidirectionalIterator1 __last1, > _BidirectionalIterator2 __first2, > _BidirectionalIterator2 __last2, > _BidirectionalIterator3 __result) > { > if (__first1 == __last1) > { > std::copy_backward(__first2, __last2, __result); > return; > } > else if (__first2 == __last2) > return; > > --__last1; > --__last2; > while (true) > { > if (*__last2 < *__last1) > { > *--__result = (*__last1); > if (__first1 == __last1) > { > std::copy_backward(__first2, ++__last2, __result); > return; > } > --__last1; > } > else > { > *--__result = (*__last2); > if (__first2 == __last2) > return; > --__last2; > } > } > } > > > template<typename _BidirectionalIterator1, typename _BidirectionalIterator2, > typename _BidirectionalIterator3, typename _Compare> > void > __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, > _BidirectionalIterator1 __last1, > _BidirectionalIterator2 __first2, > _BidirectionalIterator2 __last2, > _BidirectionalIterator3 __result, > _Compare __comp) > { > if (__first1 == __last1) > { > std::copy_backward(__first2, __last2, __result); > return; > } > else if (__first2 == __last2) > return; > > --__last1; > --__last2; > while (true) > { > if (__comp(*__last2, *__last1)) > { > *--__result = (*__last1); > if (__first1 == __last1) > { > std::copy_backward(__first2, ++__last2, __result); > return; > } > --__last1; > } > else > { > *--__result = (*__last2); > if (__first2 == __last2) > return; > --__last2; > } > } > } > > > template<typename _BidirectionalIterator1, typename _BidirectionalIterator2, > typename _Distance> > _BidirectionalIterator1 > __rotate_adaptive(_BidirectionalIterator1 __first, > _BidirectionalIterator1 __middle, > _BidirectionalIterator1 __last, > _Distance __len1, _Distance __len2, > _BidirectionalIterator2 __buffer, > _Distance __buffer_size) > { > _BidirectionalIterator2 __buffer_end; > if (__len1 > __len2 && __len2 <= __buffer_size) > { > if (__len2) > { > __buffer_end = std::copy(__middle, __last, __buffer); > std::copy_backward(__first, __middle, __last); > return std::copy(__buffer, __buffer_end, __first); > } > else > return __first; > } > else if (__len1 <= __buffer_size) > { > if (__len1) > { > __buffer_end = std::copy(__first, __middle, __buffer); > std::copy(__middle, __last, __first); > return std::copy_backward(__buffer, __buffer_end, __last); > } > else > return __last; > } > else > { > std::rotate(__first, __middle, __last); > std::advance(__first, std::distance(__middle, __last)); > return __first; > } > } > > > template<typename _BidirectionalIterator, typename _Distance, > typename _Pointer> > void > __merge_adaptive(_BidirectionalIterator __first, > _BidirectionalIterator __middle, > _BidirectionalIterator __last, > _Distance __len1, _Distance __len2, > _Pointer __buffer, _Distance __buffer_size) > { > if (__len1 <= __len2 && __len1 <= __buffer_size) > { > _Pointer __buffer_end = std::copy(__first, __middle, __buffer); > std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, > __first); > } > else if (__len2 <= __buffer_size) > { > _Pointer __buffer_end = std::copy(__middle, __last, __buffer); > std::__move_merge_adaptive_backward(__first, __middle, __buffer, > __buffer_end, __last); > } > else > { > _BidirectionalIterator __first_cut = __first; > _BidirectionalIterator __second_cut = __middle; > _Distance __len11 = 0; > _Distance __len22 = 0; > if (__len1 > __len2) > { > __len11 = __len1 / 2; > std::advance(__first_cut, __len11); > __second_cut = std::lower_bound(__middle, __last, > *__first_cut); > __len22 = std::distance(__middle, __second_cut); > } > else > { > __len22 = __len2 / 2; > std::advance(__second_cut, __len22); > __first_cut = std::upper_bound(__first, __middle, > *__second_cut); > __len11 = std::distance(__first, __first_cut); > } > _BidirectionalIterator __new_middle = > std::__rotate_adaptive(__first_cut, __middle, __second_cut, > __len1 - __len11, __len22, __buffer, > __buffer_size); > std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, > __len22, __buffer, __buffer_size); > std::__merge_adaptive(__new_middle, __second_cut, __last, > __len1 - __len11, > __len2 - __len22, __buffer, __buffer_size); > } > } > > > template<typename _BidirectionalIterator, typename _Distance, > typename _Pointer, typename _Compare> > void > __merge_adaptive(_BidirectionalIterator __first, > _BidirectionalIterator __middle, > _BidirectionalIterator __last, > _Distance __len1, _Distance __len2, > _Pointer __buffer, _Distance __buffer_size, > _Compare __comp) > { > if (__len1 <= __len2 && __len1 <= __buffer_size) > { > _Pointer __buffer_end = std::copy(__first, __middle, __buffer); > std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, > __first, __comp); > } > else if (__len2 <= __buffer_size) > { > _Pointer __buffer_end = std::copy(__middle, __last, __buffer); > std::__move_merge_adaptive_backward(__first, __middle, __buffer, > __buffer_end, __last, __comp); > } > else > { > _BidirectionalIterator __first_cut = __first; > _BidirectionalIterator __second_cut = __middle; > _Distance __len11 = 0; > _Distance __len22 = 0; > if (__len1 > __len2) > { > __len11 = __len1 / 2; > std::advance(__first_cut, __len11); > __second_cut = std::lower_bound(__middle, __last, *__first_cut, > __comp); > __len22 = std::distance(__middle, __second_cut); > } > else > { > __len22 = __len2 / 2; > std::advance(__second_cut, __len22); > __first_cut = std::upper_bound(__first, __middle, *__second_cut, > __comp); > __len11 = std::distance(__first, __first_cut); > } > _BidirectionalIterator __new_middle = > std::__rotate_adaptive(__first_cut, __middle, __second_cut, > __len1 - __len11, __len22, __buffer, > __buffer_size); > std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, > __len22, __buffer, __buffer_size, __comp); > std::__merge_adaptive(__new_middle, __second_cut, __last, > __len1 - __len11, > __len2 - __len22, __buffer, > __buffer_size, __comp); > } > } > > > template<typename _BidirectionalIterator, typename _Distance> > void > __merge_without_buffer(_BidirectionalIterator __first, > _BidirectionalIterator __middle, > _BidirectionalIterator __last, > _Distance __len1, _Distance __len2) > { > if (__len1 == 0 || __len2 == 0) > return; > if (__len1 + __len2 == 2) > { > if (*__middle < *__first) > std::iter_swap(__first, __middle); > return; > } > _BidirectionalIterator __first_cut = __first; > _BidirectionalIterator __second_cut = __middle; > _Distance __len11 = 0; > _Distance __len22 = 0; > if (__len1 > __len2) > { > __len11 = __len1 / 2; > std::advance(__first_cut, __len11); > __second_cut = std::lower_bound(__middle, __last, *__first_cut); > __len22 = std::distance(__middle, __second_cut); > } > else > { > __len22 = __len2 / 2; > std::advance(__second_cut, __len22); > __first_cut = std::upper_bound(__first, __middle, *__second_cut); > __len11 = std::distance(__first, __first_cut); > } > std::rotate(__first_cut, __middle, __second_cut); > _BidirectionalIterator __new_middle = __first_cut; > std::advance(__new_middle, std::distance(__middle, __second_cut)); > std::__merge_without_buffer(__first, __first_cut, __new_middle, > __len11, __len22); > std::__merge_without_buffer(__new_middle, __second_cut, __last, > __len1 - __len11, __len2 - __len22); > } > > > template<typename _BidirectionalIterator, typename _Distance, > typename _Compare> > void > __merge_without_buffer(_BidirectionalIterator __first, > _BidirectionalIterator __middle, > _BidirectionalIterator __last, > _Distance __len1, _Distance __len2, > _Compare __comp) > { > if (__len1 == 0 || __len2 == 0) > return; > if (__len1 + __len2 == 2) > { > if (__comp(*__middle, *__first)) > std::iter_swap(__first, __middle); > return; > } > _BidirectionalIterator __first_cut = __first; > _BidirectionalIterator __second_cut = __middle; > _Distance __len11 = 0; > _Distance __len22 = 0; > if (__len1 > __len2) > { > __len11 = __len1 / 2; > std::advance(__first_cut, __len11); > __second_cut = std::lower_bound(__middle, __last, *__first_cut, > __comp); > __len22 = std::distance(__middle, __second_cut); > } > else > { > __len22 = __len2 / 2; > std::advance(__second_cut, __len22); > __first_cut = std::upper_bound(__first, __middle, *__second_cut, > __comp); > __len11 = std::distance(__first, __first_cut); > } > std::rotate(__first_cut, __middle, __second_cut); > _BidirectionalIterator __new_middle = __first_cut; > std::advance(__new_middle, std::distance(__middle, __second_cut)); > std::__merge_without_buffer(__first, __first_cut, __new_middle, > __len11, __len22, __comp); > std::__merge_without_buffer(__new_middle, __second_cut, __last, > __len1 - __len11, __len2 - __len22, __comp); > } ># 3152 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _BidirectionalIterator> > void > inplace_merge(_BidirectionalIterator __first, > _BidirectionalIterator __middle, > _BidirectionalIterator __last) > { > typedef typename iterator_traits<_BidirectionalIterator>::value_type > _ValueType; > typedef typename iterator_traits<_BidirectionalIterator>::difference_type > _DistanceType; > > > > > > ; > ; > > if (__first == __middle || __middle == __last) > return; > > _DistanceType __len1 = std::distance(__first, __middle); > _DistanceType __len2 = std::distance(__middle, __last); > > _Temporary_buffer<_BidirectionalIterator, _ValueType> __buf(__first, > __last); > if (__buf.begin() == 0) > std::__merge_without_buffer(__first, __middle, __last, __len1, __len2); > else > std::__merge_adaptive(__first, __middle, __last, __len1, __len2, > __buf.begin(), _DistanceType(__buf.size())); > } ># 3207 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _BidirectionalIterator, typename _Compare> > void > inplace_merge(_BidirectionalIterator __first, > _BidirectionalIterator __middle, > _BidirectionalIterator __last, > _Compare __comp) > { > typedef typename iterator_traits<_BidirectionalIterator>::value_type > _ValueType; > typedef typename iterator_traits<_BidirectionalIterator>::difference_type > _DistanceType; > > > > > > > ; > ; > > if (__first == __middle || __middle == __last) > return; > > const _DistanceType __len1 = std::distance(__first, __middle); > const _DistanceType __len2 = std::distance(__middle, __last); > > _Temporary_buffer<_BidirectionalIterator, _ValueType> __buf(__first, > __last); > if (__buf.begin() == 0) > std::__merge_without_buffer(__first, __middle, __last, __len1, > __len2, __comp); > else > std::__merge_adaptive(__first, __middle, __last, __len1, __len2, > __buf.begin(), _DistanceType(__buf.size()), > __comp); > } > > > > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator> > _OutputIterator > __move_merge(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result) > { > while (__first1 != __last1 && __first2 != __last2) > { > if (*__first2 < *__first1) > { > *__result = (*__first2); > ++__first2; > } > else > { > *__result = (*__first1); > ++__first1; > } > ++__result; > } > return std::copy(__first2, __last2, std::copy(__first1, __last1, __result)) > > ; > } > > > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator, typename _Compare> > _OutputIterator > __move_merge(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result, _Compare __comp) > { > while (__first1 != __last1 && __first2 != __last2) > { > if (__comp(*__first2, *__first1)) > { > *__result = (*__first2); > ++__first2; > } > else > { > *__result = (*__first1); > ++__first1; > } > ++__result; > } > return std::copy(__first2, __last2, std::copy(__first1, __last1, __result)) > > ; > } > > template<typename _RandomAccessIterator1, typename _RandomAccessIterator2, > typename _Distance> > void > __merge_sort_loop(_RandomAccessIterator1 __first, > _RandomAccessIterator1 __last, > _RandomAccessIterator2 __result, > _Distance __step_size) > { > const _Distance __two_step = 2 * __step_size; > > while (__last - __first >= __two_step) > { > __result = std::__move_merge(__first, __first + __step_size, > __first + __step_size, > __first + __two_step, __result); > __first += __two_step; > } > > __step_size = std::min(_Distance(__last - __first), __step_size); > std::__move_merge(__first, __first + __step_size, > __first + __step_size, __last, __result); > } > > template<typename _RandomAccessIterator1, typename _RandomAccessIterator2, > typename _Distance, typename _Compare> > void > __merge_sort_loop(_RandomAccessIterator1 __first, > _RandomAccessIterator1 __last, > _RandomAccessIterator2 __result, _Distance __step_size, > _Compare __comp) > { > const _Distance __two_step = 2 * __step_size; > > while (__last - __first >= __two_step) > { > __result = std::__move_merge(__first, __first + __step_size, > __first + __step_size, > __first + __two_step, > __result, __comp); > __first += __two_step; > } > __step_size = std::min(_Distance(__last - __first), __step_size); > > std::__move_merge(__first,__first + __step_size, > __first + __step_size, __last, __result, __comp); > } > > template<typename _RandomAccessIterator, typename _Distance> > void > __chunk_insertion_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last, > _Distance __chunk_size) > { > while (__last - __first >= __chunk_size) > { > std::__insertion_sort(__first, __first + __chunk_size); > __first += __chunk_size; > } > std::__insertion_sort(__first, __last); > } > > template<typename _RandomAccessIterator, typename _Distance, > typename _Compare> > void > __chunk_insertion_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last, > _Distance __chunk_size, _Compare __comp) > { > while (__last - __first >= __chunk_size) > { > std::__insertion_sort(__first, __first + __chunk_size, __comp); > __first += __chunk_size; > } > std::__insertion_sort(__first, __last, __comp); > } > > enum { _S_chunk_size = 7 }; > > template<typename _RandomAccessIterator, typename _Pointer> > void > __merge_sort_with_buffer(_RandomAccessIterator __first, > _RandomAccessIterator __last, > _Pointer __buffer) > { > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _Distance; > > const _Distance __len = __last - __first; > const _Pointer __buffer_last = __buffer + __len; > > _Distance __step_size = _S_chunk_size; > std::__chunk_insertion_sort(__first, __last, __step_size); > > while (__step_size < __len) > { > std::__merge_sort_loop(__first, __last, __buffer, __step_size); > __step_size *= 2; > std::__merge_sort_loop(__buffer, __buffer_last, __first, __step_size); > __step_size *= 2; > } > } > > template<typename _RandomAccessIterator, typename _Pointer, typename _Compare> > void > __merge_sort_with_buffer(_RandomAccessIterator __first, > _RandomAccessIterator __last, > _Pointer __buffer, _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _Distance; > > const _Distance __len = __last - __first; > const _Pointer __buffer_last = __buffer + __len; > > _Distance __step_size = _S_chunk_size; > std::__chunk_insertion_sort(__first, __last, __step_size, __comp); > > while (__step_size < __len) > { > std::__merge_sort_loop(__first, __last, __buffer, > __step_size, __comp); > __step_size *= 2; > std::__merge_sort_loop(__buffer, __buffer_last, __first, > __step_size, __comp); > __step_size *= 2; > } > } > > template<typename _RandomAccessIterator, typename _Pointer, > typename _Distance> > void > __stable_sort_adaptive(_RandomAccessIterator __first, > _RandomAccessIterator __last, > _Pointer __buffer, _Distance __buffer_size) > { > const _Distance __len = (__last - __first + 1) / 2; > const _RandomAccessIterator __middle = __first + __len; > if (__len > __buffer_size) > { > std::__stable_sort_adaptive(__first, __middle, > __buffer, __buffer_size); > std::__stable_sort_adaptive(__middle, __last, > __buffer, __buffer_size); > } > else > { > std::__merge_sort_with_buffer(__first, __middle, __buffer); > std::__merge_sort_with_buffer(__middle, __last, __buffer); > } > std::__merge_adaptive(__first, __middle, __last, > _Distance(__middle - __first), > _Distance(__last - __middle), > __buffer, __buffer_size); > } > > template<typename _RandomAccessIterator, typename _Pointer, > typename _Distance, typename _Compare> > void > __stable_sort_adaptive(_RandomAccessIterator __first, > _RandomAccessIterator __last, > _Pointer __buffer, _Distance __buffer_size, > _Compare __comp) > { > const _Distance __len = (__last - __first + 1) / 2; > const _RandomAccessIterator __middle = __first + __len; > if (__len > __buffer_size) > { > std::__stable_sort_adaptive(__first, __middle, __buffer, > __buffer_size, __comp); > std::__stable_sort_adaptive(__middle, __last, __buffer, > __buffer_size, __comp); > } > else > { > std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); > std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); > } > std::__merge_adaptive(__first, __middle, __last, > _Distance(__middle - __first), > _Distance(__last - __middle), > __buffer, __buffer_size, > __comp); > } > > > template<typename _RandomAccessIterator> > void > __inplace_stable_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last) > { > if (__last - __first < 15) > { > std::__insertion_sort(__first, __last); > return; > } > _RandomAccessIterator __middle = __first + (__last - __first) / 2; > std::__inplace_stable_sort(__first, __middle); > std::__inplace_stable_sort(__middle, __last); > std::__merge_without_buffer(__first, __middle, __last, > __middle - __first, > __last - __middle); > } > > > template<typename _RandomAccessIterator, typename _Compare> > void > __inplace_stable_sort(_RandomAccessIterator __first, > _RandomAccessIterator __last, _Compare __comp) > { > if (__last - __first < 15) > { > std::__insertion_sort(__first, __last, __comp); > return; > } > _RandomAccessIterator __middle = __first + (__last - __first) / 2; > std::__inplace_stable_sort(__first, __middle, __comp); > std::__inplace_stable_sort(__middle, __last, __comp); > std::__merge_without_buffer(__first, __middle, __last, > __middle - __first, > __last - __middle, > __comp); > } ># 3547 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2> > bool > includes(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > if (*__first2 < *__first1) > return false; > else if(*__first1 < *__first2) > ++__first1; > else > ++__first1, ++__first2; > > return __first2 == __last2; > } ># 3597 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _Compare> > bool > includes(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _Compare __comp) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > if (__comp(*__first2, *__first1)) > return false; > else if(__comp(*__first1, *__first2)) > ++__first1; > else > ++__first1, ++__first2; > > return __first2 == __last2; > } ># 3652 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _BidirectionalIterator> > bool > next_permutation(_BidirectionalIterator __first, > _BidirectionalIterator __last) > { > > > > > > ; > > if (__first == __last) > return false; > _BidirectionalIterator __i = __first; > ++__i; > if (__i == __last) > return false; > __i = __last; > --__i; > > for(;;) > { > _BidirectionalIterator __ii = __i; > --__i; > if (*__i < *__ii) > { > _BidirectionalIterator __j = __last; > while (!(*__i < *--__j)) > {} > std::iter_swap(__i, __j); > std::reverse(__ii, __last); > return true; > } > if (__i == __first) > { > std::reverse(__first, __last); > return false; > } > } > } ># 3709 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _BidirectionalIterator, typename _Compare> > bool > next_permutation(_BidirectionalIterator __first, > _BidirectionalIterator __last, _Compare __comp) > { > > > > > > > ; > > if (__first == __last) > return false; > _BidirectionalIterator __i = __first; > ++__i; > if (__i == __last) > return false; > __i = __last; > --__i; > > for(;;) > { > _BidirectionalIterator __ii = __i; > --__i; > if (__comp(*__i, *__ii)) > { > _BidirectionalIterator __j = __last; > while (!bool(__comp(*__i, *--__j))) > {} > std::iter_swap(__i, __j); > std::reverse(__ii, __last); > return true; > } > if (__i == __first) > { > std::reverse(__first, __last); > return false; > } > } > } ># 3765 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _BidirectionalIterator> > bool > prev_permutation(_BidirectionalIterator __first, > _BidirectionalIterator __last) > { > > > > > > ; > > if (__first == __last) > return false; > _BidirectionalIterator __i = __first; > ++__i; > if (__i == __last) > return false; > __i = __last; > --__i; > > for(;;) > { > _BidirectionalIterator __ii = __i; > --__i; > if (*__ii < *__i) > { > _BidirectionalIterator __j = __last; > while (!(*--__j < *__i)) > {} > std::iter_swap(__i, __j); > std::reverse(__ii, __last); > return true; > } > if (__i == __first) > { > std::reverse(__first, __last); > return false; > } > } > } ># 3822 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _BidirectionalIterator, typename _Compare> > bool > prev_permutation(_BidirectionalIterator __first, > _BidirectionalIterator __last, _Compare __comp) > { > > > > > > > ; > > if (__first == __last) > return false; > _BidirectionalIterator __i = __first; > ++__i; > if (__i == __last) > return false; > __i = __last; > --__i; > > for(;;) > { > _BidirectionalIterator __ii = __i; > --__i; > if (__comp(*__ii, *__i)) > { > _BidirectionalIterator __j = __last; > while (!bool(__comp(*--__j, *__i))) > {} > std::iter_swap(__i, __j); > std::reverse(__ii, __last); > return true; > } > if (__i == __first) > { > std::reverse(__first, __last); > return false; > } > } > } ># 3882 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _OutputIterator, typename _Tp> > _OutputIterator > replace_copy(_InputIterator __first, _InputIterator __last, > _OutputIterator __result, > const _Tp& __old_value, const _Tp& __new_value) > { > > > > > > > ; > > for (; __first != __last; ++__first, ++__result) > if (*__first == __old_value) > *__result = __new_value; > else > *__result = *__first; > return __result; > } ># 3919 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _OutputIterator, > typename _Predicate, typename _Tp> > _OutputIterator > replace_copy_if(_InputIterator __first, _InputIterator __last, > _OutputIterator __result, > _Predicate __pred, const _Tp& __new_value) > { > > > > > > > ; > > for (; __first != __last; ++__first, ++__result) > if (__pred(*__first)) > *__result = __new_value; > else > *__result = *__first; > return __result; > } ># 4393 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > > > ># 4409 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _Function> > _Function > for_each(_InputIterator __first, _InputIterator __last, _Function __f) > { > > > ; > for (; __first != __last; ++__first) > __f(*__first); > return (__f); > } ># 4430 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _Tp> > inline _InputIterator > find(_InputIterator __first, _InputIterator __last, > const _Tp& __val) > { > > > > > ; > return std::__find(__first, __last, __val, > std::__iterator_category(__first)); > } ># 4454 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _Predicate> > inline _InputIterator > find_if(_InputIterator __first, _InputIterator __last, > _Predicate __pred) > { > > > > > ; > return std::__find_if(__first, __last, __pred, > std::__iterator_category(__first)); > } ># 4484 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _ForwardIterator> > _InputIterator > find_first_of(_InputIterator __first1, _InputIterator __last1, > _ForwardIterator __first2, _ForwardIterator __last2) > { > > > > > > > ; > ; > > for (; __first1 != __last1; ++__first1) > for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) > if (*__first1 == *__iter) > return __first1; > return __last1; > } ># 4524 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _ForwardIterator, > typename _BinaryPredicate> > _InputIterator > find_first_of(_InputIterator __first1, _InputIterator __last1, > _ForwardIterator __first2, _ForwardIterator __last2, > _BinaryPredicate __comp) > { > > > > > > > ; > ; > > for (; __first1 != __last1; ++__first1) > for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) > if (__comp(*__first1, *__iter)) > return __first1; > return __last1; > } ># 4556 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator> > _ForwardIterator > adjacent_find(_ForwardIterator __first, _ForwardIterator __last) > { > > > > > ; > if (__first == __last) > return __last; > _ForwardIterator __next = __first; > while(++__next != __last) > { > if (*__first == *__next) > return __first; > __first = __next; > } > return __last; > } ># 4588 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _BinaryPredicate> > _ForwardIterator > adjacent_find(_ForwardIterator __first, _ForwardIterator __last, > _BinaryPredicate __binary_pred) > { > > > > > > ; > if (__first == __last) > return __last; > _ForwardIterator __next = __first; > while(++__next != __last) > { > if (__binary_pred(*__first, *__next)) > return __first; > __first = __next; > } > return __last; > } ># 4620 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _Tp> > typename iterator_traits<_InputIterator>::difference_type > count(_InputIterator __first, _InputIterator __last, const _Tp& __value) > { > > > > > ; > typename iterator_traits<_InputIterator>::difference_type __n = 0; > for (; __first != __last; ++__first) > if (*__first == __value) > ++__n; > return __n; > } ># 4645 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _Predicate> > typename iterator_traits<_InputIterator>::difference_type > count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) > { > > > > > ; > typename iterator_traits<_InputIterator>::difference_type __n = 0; > for (; __first != __last; ++__first) > if (__pred(*__first)) > ++__n; > return __n; > } ># 4687 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator1, typename _ForwardIterator2> > _ForwardIterator1 > search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, > _ForwardIterator2 __first2, _ForwardIterator2 __last2) > { > > > > > > > ; > ; > > > if (__first1 == __last1 || __first2 == __last2) > return __first1; > > > _ForwardIterator2 __p1(__first2); > if (++__p1 == __last2) > return std::find(__first1, __last1, *__first2); > > > _ForwardIterator2 __p; > _ForwardIterator1 __current = __first1; > > for (;;) > { > __first1 = std::find(__first1, __last1, *__first2); > if (__first1 == __last1) > return __last1; > > __p = __p1; > __current = __first1; > if (++__current == __last1) > return __last1; > > while (*__current == *__p) > { > if (++__p == __last2) > return __first1; > if (++__current == __last1) > return __last1; > } > ++__first1; > } > return __first1; > } ># 4758 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator1, typename _ForwardIterator2, > typename _BinaryPredicate> > _ForwardIterator1 > search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, > _ForwardIterator2 __first2, _ForwardIterator2 __last2, > _BinaryPredicate __predicate) > { > > > > > > > ; > ; > > > if (__first1 == __last1 || __first2 == __last2) > return __first1; > > > _ForwardIterator2 __p1(__first2); > if (++__p1 == __last2) > { > while (__first1 != __last1 > && !bool(__predicate(*__first1, *__first2))) > ++__first1; > return __first1; > } > > > _ForwardIterator2 __p; > _ForwardIterator1 __current = __first1; > > for (;;) > { > while (__first1 != __last1 > && !bool(__predicate(*__first1, *__first2))) > ++__first1; > if (__first1 == __last1) > return __last1; > > __p = __p1; > __current = __first1; > if (++__current == __last1) > return __last1; > > while (__predicate(*__current, *__p)) > { > if (++__p == __last2) > return __first1; > if (++__current == __last1) > return __last1; > } > ++__first1; > } > return __first1; > } ># 4833 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Integer, typename _Tp> > _ForwardIterator > search_n(_ForwardIterator __first, _ForwardIterator __last, > _Integer __count, const _Tp& __val) > { > > > > > ; > > if (__count <= 0) > return __first; > if (__count == 1) > return std::find(__first, __last, __val); > return std::__search_n(__first, __last, __count, __val, > std::__iterator_category(__first)); > } ># 4870 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Integer, typename _Tp, > typename _BinaryPredicate> > _ForwardIterator > search_n(_ForwardIterator __first, _ForwardIterator __last, > _Integer __count, const _Tp& __val, > _BinaryPredicate __binary_pred) > { > > > > > ; > > if (__count <= 0) > return __first; > if (__count == 1) > { > while (__first != __last && !bool(__binary_pred(*__first, __val))) > ++__first; > return __first; > } > return std::__search_n(__first, __last, __count, __val, __binary_pred, > std::__iterator_category(__first)); > } ># 4912 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _OutputIterator, > typename _UnaryOperation> > _OutputIterator > transform(_InputIterator __first, _InputIterator __last, > _OutputIterator __result, _UnaryOperation __unary_op) > { > > > > > > ; > > for (; __first != __last; ++__first, ++__result) > *__result = __unary_op(*__first); > return __result; > } ># 4949 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator, typename _BinaryOperation> > _OutputIterator > transform(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _OutputIterator __result, > _BinaryOperation __binary_op) > { > > > > > > > ; > > for (; __first1 != __last1; ++__first1, ++__first2, ++__result) > *__result = __binary_op(*__first1, *__first2); > return __result; > } ># 4982 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Tp> > void > replace(_ForwardIterator __first, _ForwardIterator __last, > const _Tp& __old_value, const _Tp& __new_value) > { > > > > > > > > ; > > for (; __first != __last; ++__first) > if (*__first == __old_value) > *__first = __new_value; > } ># 5014 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Predicate, typename _Tp> > void > replace_if(_ForwardIterator __first, _ForwardIterator __last, > _Predicate __pred, const _Tp& __new_value) > { > > > > > > > > ; > > for (; __first != __last; ++__first) > if (__pred(*__first)) > *__first = __new_value; > } ># 5046 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Generator> > void > generate(_ForwardIterator __first, _ForwardIterator __last, > _Generator __gen) > { > > > > > ; > > for (; __first != __last; ++__first) > *__first = __gen(); > } ># 5077 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _OutputIterator, typename _Size, typename _Generator> > _OutputIterator > generate_n(_OutputIterator __first, _Size __n, _Generator __gen) > { > > > > > > for (__decltype(__n + 0) __niter = __n; > __niter > 0; --__niter, ++__first) > *__first = __gen(); > return __first; > } ># 5114 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _OutputIterator> > inline _OutputIterator > unique_copy(_InputIterator __first, _InputIterator __last, > _OutputIterator __result) > { > > > > > > > ; > > if (__first == __last) > return __result; > return std::__unique_copy(__first, __last, __result, > std::__iterator_category(__first), > std::__iterator_category(__result)); > } ># 5153 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator, typename _OutputIterator, > typename _BinaryPredicate> > inline _OutputIterator > unique_copy(_InputIterator __first, _InputIterator __last, > _OutputIterator __result, > _BinaryPredicate __binary_pred) > { > > > > > ; > > if (__first == __last) > return __result; > return std::__unique_copy(__first, __last, __result, __binary_pred, > std::__iterator_category(__first), > std::__iterator_category(__result)); > } ># 5185 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator> > inline void > random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) > { > > > > ; > > if (__first != __last) > for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) > std::iter_swap(__i, __first + (std::rand() % ((__i - __first) + 1))); > } ># 5213 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator, typename _RandomNumberGenerator> > void > random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, > > > > _RandomNumberGenerator& __rand) > > { > > > > ; > > if (__first == __last) > return; > for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) > std::iter_swap(__i, __first + __rand((__i - __first) + 1)); > } ># 5249 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Predicate> > inline _ForwardIterator > partition(_ForwardIterator __first, _ForwardIterator __last, > _Predicate __pred) > { > > > > > > ; > > return std::__partition(__first, __last, __pred, > std::__iterator_category(__first)); > } ># 5283 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator> > inline void > partial_sort(_RandomAccessIterator __first, > _RandomAccessIterator __middle, > _RandomAccessIterator __last) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > > > > > ; > ; > > std::__heap_select(__first, __middle, __last); > std::sort_heap(__first, __middle); > } ># 5322 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator, typename _Compare> > inline void > partial_sort(_RandomAccessIterator __first, > _RandomAccessIterator __middle, > _RandomAccessIterator __last, > _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > > > > > > ; > ; > > std::__heap_select(__first, __middle, __last, __comp); > std::sort_heap(__first, __middle, __comp); > } ># 5359 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator> > inline void > nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, > _RandomAccessIterator __last) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > > > > > ; > ; > > if (__first == __last || __nth == __last) > return; > > std::__introselect(__first, __nth, __last, > std::__lg(__last - __first) * 2); > } ># 5398 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator, typename _Compare> > inline void > nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, > _RandomAccessIterator __last, _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > > > > > > ; > ; > > if (__first == __last || __nth == __last) > return; > > std::__introselect(__first, __nth, __last, > std::__lg(__last - __first) * 2, __comp); > } ># 5436 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator> > inline void > sort(_RandomAccessIterator __first, _RandomAccessIterator __last) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > > > > > ; > > if (__first != __last) > { > std::__introsort_loop(__first, __last, > std::__lg(__last - __first) * 2); > std::__final_insertion_sort(__first, __last); > } > } ># 5472 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator, typename _Compare> > inline void > sort(_RandomAccessIterator __first, _RandomAccessIterator __last, > _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > > > > > > > ; > > if (__first != __last) > { > std::__introsort_loop(__first, __last, > std::__lg(__last - __first) * 2, __comp); > std::__final_insertion_sort(__first, __last, __comp); > } > } ># 5514 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator> > _OutputIterator > merge(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > { > if (*__first2 < *__first1) > { > *__result = *__first2; > ++__first2; > } > else > { > *__result = *__first1; > ++__first1; > } > ++__result; > } > return std::copy(__first2, __last2, std::copy(__first1, __last1, > __result)); > } ># 5578 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator, typename _Compare> > _OutputIterator > merge(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result, _Compare __comp) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > { > if (__comp(*__first2, *__first1)) > { > *__result = *__first2; > ++__first2; > } > else > { > *__result = *__first1; > ++__first1; > } > ++__result; > } > return std::copy(__first2, __last2, std::copy(__first1, __last1, > __result)); > } ># 5638 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator> > inline void > stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > > > > > ; > > _Temporary_buffer<_RandomAccessIterator, _ValueType> __buf(__first, > __last); > if (__buf.begin() == 0) > std::__inplace_stable_sort(__first, __last); > else > std::__stable_sort_adaptive(__first, __last, __buf.begin(), > _DistanceType(__buf.size())); > } ># 5680 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _RandomAccessIterator, typename _Compare> > inline void > stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, > _Compare __comp) > { > typedef typename iterator_traits<_RandomAccessIterator>::value_type > _ValueType; > typedef typename iterator_traits<_RandomAccessIterator>::difference_type > _DistanceType; > > > > > > > > ; > > _Temporary_buffer<_RandomAccessIterator, _ValueType> __buf(__first, > __last); > if (__buf.begin() == 0) > std::__inplace_stable_sort(__first, __last, __comp); > else > std::__stable_sort_adaptive(__first, __last, __buf.begin(), > _DistanceType(__buf.size()), __comp); > } ># 5726 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator> > _OutputIterator > set_union(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > { > if (*__first1 < *__first2) > { > *__result = *__first1; > ++__first1; > } > else if (*__first2 < *__first1) > { > *__result = *__first2; > ++__first2; > } > else > { > *__result = *__first1; > ++__first1; > ++__first2; > } > ++__result; > } > return std::copy(__first2, __last2, std::copy(__first1, __last1, > __result)); > } ># 5793 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator, typename _Compare> > _OutputIterator > set_union(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result, _Compare __comp) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > { > if (__comp(*__first1, *__first2)) > { > *__result = *__first1; > ++__first1; > } > else if (__comp(*__first2, *__first1)) > { > *__result = *__first2; > ++__first2; > } > else > { > *__result = *__first1; > ++__first1; > ++__first2; > } > ++__result; > } > return std::copy(__first2, __last2, std::copy(__first1, __last1, > __result)); > } ># 5860 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator> > _OutputIterator > set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > if (*__first1 < *__first2) > ++__first1; > else if (*__first2 < *__first1) > ++__first2; > else > { > *__result = *__first1; > ++__first1; > ++__first2; > ++__result; > } > return __result; > } ># 5917 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator, typename _Compare> > _OutputIterator > set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result, _Compare __comp) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > if (__comp(*__first1, *__first2)) > ++__first1; > else if (__comp(*__first2, *__first1)) > ++__first2; > else > { > *__result = *__first1; > ++__first1; > ++__first2; > ++__result; > } > return __result; > } ># 5975 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator> > _OutputIterator > set_difference(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > if (*__first1 < *__first2) > { > *__result = *__first1; > ++__first1; > ++__result; > } > else if (*__first2 < *__first1) > ++__first2; > else > { > ++__first1; > ++__first2; > } > return std::copy(__first1, __last1, __result); > } ># 6036 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator, typename _Compare> > _OutputIterator > set_difference(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result, _Compare __comp) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > if (__comp(*__first1, *__first2)) > { > *__result = *__first1; > ++__first1; > ++__result; > } > else if (__comp(*__first2, *__first1)) > ++__first2; > else > { > ++__first1; > ++__first2; > } > return std::copy(__first1, __last1, __result); > } ># 6094 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator> > _OutputIterator > set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > if (*__first1 < *__first2) > { > *__result = *__first1; > ++__first1; > ++__result; > } > else if (*__first2 < *__first1) > { > *__result = *__first2; > ++__first2; > ++__result; > } > else > { > ++__first1; > ++__first2; > } > return std::copy(__first2, __last2, std::copy(__first1, > __last1, __result)); > } ># 6160 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _InputIterator1, typename _InputIterator2, > typename _OutputIterator, typename _Compare> > _OutputIterator > set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, > _InputIterator2 __first2, _InputIterator2 __last2, > _OutputIterator __result, > _Compare __comp) > { > typedef typename iterator_traits<_InputIterator1>::value_type > _ValueType1; > typedef typename iterator_traits<_InputIterator2>::value_type > _ValueType2; > > > > > > > > > > > > > ; > ; > > while (__first1 != __last1 && __first2 != __last2) > if (__comp(*__first1, *__first2)) > { > *__result = *__first1; > ++__first1; > ++__result; > } > else if (__comp(*__first2, *__first1)) > { > *__result = *__first2; > ++__first2; > ++__result; > } > else > { > ++__first1; > ++__first2; > } > return std::copy(__first2, __last2, > std::copy(__first1, __last1, __result)); > } ># 6217 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator> > _ForwardIterator > min_element(_ForwardIterator __first, _ForwardIterator __last) > { > > > > > ; > > if (__first == __last) > return __first; > _ForwardIterator __result = __first; > while (++__first != __last) > if (*__first < *__result) > __result = __first; > return __result; > } ># 6245 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Compare> > _ForwardIterator > min_element(_ForwardIterator __first, _ForwardIterator __last, > _Compare __comp) > { > > > > > > ; > > if (__first == __last) > return __first; > _ForwardIterator __result = __first; > while (++__first != __last) > if (__comp(*__first, *__result)) > __result = __first; > return __result; > } ># 6273 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator> > _ForwardIterator > max_element(_ForwardIterator __first, _ForwardIterator __last) > { > > > > > ; > > if (__first == __last) > return __first; > _ForwardIterator __result = __first; > while (++__first != __last) > if (*__result < *__first) > __result = __first; > return __result; > } ># 6301 "/usr/include/c++/4.8.2/bits/stl_algo.h" 3 > template<typename _ForwardIterator, typename _Compare> > _ForwardIterator > max_element(_ForwardIterator __first, _ForwardIterator __last, > _Compare __comp) > { > > > > > > ; > > if (__first == __last) return __first; > _ForwardIterator __result = __first; > while (++__first != __last) > if (__comp(*__result, *__first)) > __result = __first; > return __result; > } > > >} ># 63 "/usr/include/c++/4.8.2/algorithm" 2 3 ># 316 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 324 "../gtest_contrib/gmock-gtest-all.cc" >#define GTEST_HAS_GETTIMEOFDAY_ 1 > ># 1 "/usr/include/fcntl.h" 1 3 4 ># 23 "/usr/include/fcntl.h" 3 4 >#define _FCNTL_H 1 > > > > >extern "C" { > > > > > > ># 1 "/usr/include/bits/fcntl.h" 1 3 4 ># 24 "/usr/include/bits/fcntl.h" 3 4 >#define __O_LARGEFILE 0 > > > > >#define F_GETLK64 5 >#define F_SETLK64 6 >#define F_SETLKW64 7 > > > >struct flock > { > short int l_type; > short int l_whence; > > __off_t l_start; > __off_t l_len; > > > > > __pid_t l_pid; > }; > > >struct flock64 > { > short int l_type; > short int l_whence; > __off64_t l_start; > __off64_t l_len; > __pid_t l_pid; > }; > > > ># 1 "/usr/include/bits/fcntl-linux.h" 1 3 4 ># 38 "/usr/include/bits/fcntl-linux.h" 3 4 ># 1 "/usr/include/bits/uio.h" 1 3 4 ># 23 "/usr/include/bits/uio.h" 3 4 >#define _BITS_UIO_H 1 ># 39 "/usr/include/bits/uio.h" 3 4 >#define UIO_MAXIOV 1024 > > > >struct iovec > { > void *iov_base; > size_t iov_len; > }; ># 39 "/usr/include/bits/fcntl-linux.h" 2 3 4 > > > >#define O_ACCMODE 0003 >#define O_RDONLY 00 >#define O_WRONLY 01 >#define O_RDWR 02 > >#define O_CREAT 0100 > > >#define O_EXCL 0200 > > >#define O_NOCTTY 0400 > > >#define O_TRUNC 01000 > > >#define O_APPEND 02000 > > >#define O_NONBLOCK 04000 > > >#define O_NDELAY O_NONBLOCK > > >#define O_SYNC 04010000 > >#define O_FSYNC O_SYNC > >#define O_ASYNC 020000 > > > > > > >#define __O_DIRECTORY 0200000 > > >#define __O_NOFOLLOW 0400000 > > >#define __O_CLOEXEC 02000000 > > >#define __O_DIRECT 040000 > > >#define __O_NOATIME 01000000 > > >#define __O_PATH 010000000 > > >#define __O_DSYNC 010000 > > > > >#define F_GETLK 5 >#define F_SETLK 6 >#define F_SETLKW 7 ># 118 "/usr/include/bits/fcntl-linux.h" 3 4 >#define O_LARGEFILE __O_LARGEFILE > > > >#define O_DIRECTORY __O_DIRECTORY >#define O_NOFOLLOW __O_NOFOLLOW >#define O_CLOEXEC __O_CLOEXEC > > > >#define O_DIRECT __O_DIRECT >#define O_NOATIME __O_NOATIME >#define O_PATH __O_PATH > > > > > > >#define O_DSYNC __O_DSYNC > > > >#define O_RSYNC O_SYNC > > > > >#define F_DUPFD 0 >#define F_GETFD 1 >#define F_SETFD 2 >#define F_GETFL 3 >#define F_SETFL 4 > > >#define __F_SETOWN 8 >#define __F_GETOWN 9 > > > >#define F_SETOWN __F_SETOWN >#define F_GETOWN __F_GETOWN > > > >#define __F_SETSIG 10 >#define __F_GETSIG 11 > > >#define __F_SETOWN_EX 15 >#define __F_GETOWN_EX 16 > > > >#define F_SETSIG __F_SETSIG >#define F_GETSIG __F_GETSIG >#define F_SETOWN_EX __F_SETOWN_EX >#define F_GETOWN_EX __F_GETOWN_EX > > > >#define F_SETLEASE 1024 >#define F_GETLEASE 1025 >#define F_NOTIFY 1026 >#define F_SETPIPE_SZ 1031 >#define F_GETPIPE_SZ 1032 > > >#define F_DUPFD_CLOEXEC 1030 > > > > >#define FD_CLOEXEC 1 > > > >#define F_RDLCK 0 >#define F_WRLCK 1 >#define F_UNLCK 2 > > > > > >#define F_EXLCK 4 >#define F_SHLCK 8 > > > > >#define LOCK_SH 1 >#define LOCK_EX 2 >#define LOCK_NB 4 > >#define LOCK_UN 8 > > > >#define LOCK_MAND 32 >#define LOCK_READ 64 >#define LOCK_WRITE 128 >#define LOCK_RW 192 > > > > >#define DN_ACCESS 0x00000001 >#define DN_MODIFY 0x00000002 >#define DN_CREATE 0x00000004 >#define DN_DELETE 0x00000008 >#define DN_RENAME 0x00000010 >#define DN_ATTRIB 0x00000020 >#define DN_MULTISHOT 0x80000000 > > > > > >enum __pid_type > { > F_OWNER_TID = 0, > F_OWNER_PID, > F_OWNER_PGRP, > F_OWNER_GID = F_OWNER_PGRP > }; > > >struct f_owner_ex > { > enum __pid_type type; > __pid_t pid; > }; > > > > > >#define FAPPEND O_APPEND >#define FFSYNC O_FSYNC >#define FASYNC O_ASYNC >#define FNONBLOCK O_NONBLOCK >#define FNDELAY O_NDELAY > > > >#define __POSIX_FADV_DONTNEED 4 >#define __POSIX_FADV_NOREUSE 5 > > > >#define POSIX_FADV_NORMAL 0 >#define POSIX_FADV_RANDOM 1 >#define POSIX_FADV_SEQUENTIAL 2 >#define POSIX_FADV_WILLNEED 3 >#define POSIX_FADV_DONTNEED __POSIX_FADV_DONTNEED >#define POSIX_FADV_NOREUSE __POSIX_FADV_NOREUSE > > > > > >#define SYNC_FILE_RANGE_WAIT_BEFORE 1 > > >#define SYNC_FILE_RANGE_WRITE 2 > > >#define SYNC_FILE_RANGE_WAIT_AFTER 4 > > > > >#define SPLICE_F_MOVE 1 >#define SPLICE_F_NONBLOCK 2 > > >#define SPLICE_F_MORE 4 >#define SPLICE_F_GIFT 8 > > > >#define FALLOC_FL_KEEP_SIZE 1 > > >#define FALLOC_FL_PUNCH_HOLE 2 > > > >struct file_handle >{ > unsigned int handle_bytes; > int handle_type; > > unsigned char f_handle[0]; >}; > > >#define MAX_HANDLE_SZ 128 > > >extern "C" { > > > > >extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) > throw (); > > > > > > >extern int sync_file_range (int __fd, __off64_t __offset, __off64_t __count, > unsigned int __flags); > > > > > > >extern ssize_t vmsplice (int __fdout, const struct iovec *__iov, > size_t __count, unsigned int __flags); > > > > > >extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout, > __off64_t *__offout, size_t __len, > unsigned int __flags); > > > > > >extern ssize_t tee (int __fdin, int __fdout, size_t __len, > unsigned int __flags); > > > > > > >extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len); ># 374 "/usr/include/bits/fcntl-linux.h" 3 4 >extern int fallocate64 (int __fd, int __mode, __off64_t __offset, > __off64_t __len); > > > > >extern int name_to_handle_at (int __dfd, const char *__name, > struct file_handle *__handle, int *__mnt_id, > int __flags) throw (); > > > > > >extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle, > int __flags); > > > >} ># 61 "/usr/include/bits/fcntl.h" 2 3 4 ># 36 "/usr/include/fcntl.h" 2 3 4 ># 66 "/usr/include/fcntl.h" 3 4 >#define __need_timespec > ># 1 "/usr/include/bits/stat.h" 1 3 4 ># 69 "/usr/include/fcntl.h" 2 3 4 > >#define S_IFMT __S_IFMT >#define S_IFDIR __S_IFDIR >#define S_IFCHR __S_IFCHR >#define S_IFBLK __S_IFBLK >#define S_IFREG __S_IFREG > >#define S_IFIFO __S_IFIFO > > >#define S_IFLNK __S_IFLNK > > >#define S_IFSOCK __S_IFSOCK > > > > >#define S_ISUID __S_ISUID >#define S_ISGID __S_ISGID > > > >#define S_ISVTX __S_ISVTX > > >#define S_IRUSR __S_IREAD >#define S_IWUSR __S_IWRITE >#define S_IXUSR __S_IEXEC > >#define S_IRWXU (__S_IREAD|__S_IWRITE|__S_IEXEC) > >#define S_IRGRP (S_IRUSR >> 3) >#define S_IWGRP (S_IWUSR >> 3) >#define S_IXGRP (S_IXUSR >> 3) > >#define S_IRWXG (S_IRWXU >> 3) > >#define S_IROTH (S_IRGRP >> 3) >#define S_IWOTH (S_IWGRP >> 3) >#define S_IXOTH (S_IXGRP >> 3) > >#define S_IRWXO (S_IRWXG >> 3) ># 127 "/usr/include/fcntl.h" 3 4 >#define SEEK_SET 0 >#define SEEK_CUR 1 >#define SEEK_END 2 ># 139 "/usr/include/fcntl.h" 3 4 >#define AT_FDCWD -100 > > >#define AT_SYMLINK_NOFOLLOW 0x100 >#define AT_REMOVEDIR 0x200 > >#define AT_SYMLINK_FOLLOW 0x400 > >#define AT_NO_AUTOMOUNT 0x800 > >#define AT_EMPTY_PATH 0x1000 > >#define AT_EACCESS 0x200 ># 160 "/usr/include/fcntl.h" 3 4 >extern int fcntl (int __fd, int __cmd, ...); ># 169 "/usr/include/fcntl.h" 3 4 >extern int open (const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1))); ># 179 "/usr/include/fcntl.h" 3 4 >extern int open64 (const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1))); ># 193 "/usr/include/fcntl.h" 3 4 >extern int openat (int __fd, const char *__file, int __oflag, ...) > __attribute__ ((__nonnull__ (2))); ># 204 "/usr/include/fcntl.h" 3 4 >extern int openat64 (int __fd, const char *__file, int __oflag, ...) > __attribute__ ((__nonnull__ (2))); ># 215 "/usr/include/fcntl.h" 3 4 >extern int creat (const char *__file, mode_t __mode) __attribute__ ((__nonnull__ (1))); ># 225 "/usr/include/fcntl.h" 3 4 >extern int creat64 (const char *__file, mode_t __mode) __attribute__ ((__nonnull__ (1))); ># 261 "/usr/include/fcntl.h" 3 4 >extern int posix_fadvise (int __fd, off_t __offset, off_t __len, > int __advise) throw (); ># 273 "/usr/include/fcntl.h" 3 4 >extern int posix_fadvise64 (int __fd, off64_t __offset, off64_t __len, > int __advise) throw (); ># 283 "/usr/include/fcntl.h" 3 4 >extern int posix_fallocate (int __fd, off_t __offset, off_t __len); ># 294 "/usr/include/fcntl.h" 3 4 >extern int posix_fallocate64 (int __fd, off64_t __offset, off64_t __len); ># 305 "/usr/include/fcntl.h" 3 4 >} ># 327 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 1 3 4 ># 30 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 3 4 >#define _GCC_LIMITS_H_ > > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/syslimits.h" 1 3 4 > > > > > >#define _GCC_NEXT_LIMITS_H ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 1 3 4 ># 168 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 3 4 ># 1 "/usr/include/limits.h" 1 3 4 ># 23 "/usr/include/limits.h" 3 4 >#define _LIBC_LIMITS_H_ 1 > > > > > > > >#define MB_LEN_MAX 16 ># 131 "/usr/include/limits.h" 3 4 >#define LLONG_MIN (-LLONG_MAX-1) > > >#define LLONG_MAX __LONG_LONG_MAX__ > > >#define ULLONG_MAX (LLONG_MAX * 2ULL + 1) > > > > > ># 1 "/usr/include/bits/posix1_lim.h" 1 3 4 ># 25 "/usr/include/bits/posix1_lim.h" 3 4 >#define _BITS_POSIX1_LIM_H 1 > > > > > >#define _POSIX_AIO_LISTIO_MAX 2 > > >#define _POSIX_AIO_MAX 1 > > >#define _POSIX_ARG_MAX 4096 > > > >#define _POSIX_CHILD_MAX 25 > > > > > >#define _POSIX_DELAYTIMER_MAX 32 > > > >#define _POSIX_HOST_NAME_MAX 255 > > >#define _POSIX_LINK_MAX 8 > > >#define _POSIX_LOGIN_NAME_MAX 9 > > >#define _POSIX_MAX_CANON 255 > > > >#define _POSIX_MAX_INPUT 255 > > >#define _POSIX_MQ_OPEN_MAX 8 > > >#define _POSIX_MQ_PRIO_MAX 32 > > >#define _POSIX_NAME_MAX 14 > > > >#define _POSIX_NGROUPS_MAX 8 > > > > > > >#define _POSIX_OPEN_MAX 20 > > > > > > > >#define _POSIX_FD_SETSIZE _POSIX_OPEN_MAX > > > >#define _POSIX_PATH_MAX 256 > > >#define _POSIX_PIPE_BUF 512 > > > >#define _POSIX_RE_DUP_MAX 255 > > >#define _POSIX_RTSIG_MAX 8 > > >#define _POSIX_SEM_NSEMS_MAX 256 > > >#define _POSIX_SEM_VALUE_MAX 32767 > > >#define _POSIX_SIGQUEUE_MAX 32 > > >#define _POSIX_SSIZE_MAX 32767 > > >#define _POSIX_STREAM_MAX 8 > > >#define _POSIX_SYMLINK_MAX 255 > > > >#define _POSIX_SYMLOOP_MAX 8 > > >#define _POSIX_TIMER_MAX 32 > > >#define _POSIX_TTY_NAME_MAX 9 > > > >#define _POSIX_TZNAME_MAX 6 > > > > > > >#define _POSIX_QLIMIT 1 > > > >#define _POSIX_HIWAT _POSIX_PIPE_BUF > > >#define _POSIX_UIO_MAXIOV 16 > > > >#define _POSIX_CLOCKRES_MIN 20000000 > > > ># 1 "/usr/include/bits/local_lim.h" 1 3 4 ># 25 "/usr/include/bits/local_lim.h" 3 4 >#define __undef_NR_OPEN > > >#define __undef_LINK_MAX > > >#define __undef_OPEN_MAX > > >#define __undef_ARG_MAX > > > ># 1 "/usr/include/linux/limits.h" 1 3 4 > >#define _LINUX_LIMITS_H > >#define NR_OPEN 1024 > >#define NGROUPS_MAX 65536 >#define ARG_MAX 131072 >#define LINK_MAX 127 >#define MAX_CANON 255 >#define MAX_INPUT 255 >#define NAME_MAX 255 >#define PATH_MAX 4096 >#define PIPE_BUF 4096 >#define XATTR_NAME_MAX 255 >#define XATTR_SIZE_MAX 65536 >#define XATTR_LIST_MAX 65536 > >#define RTSIG_MAX 32 ># 39 "/usr/include/bits/local_lim.h" 2 3 4 > > > >#undef NR_OPEN >#undef __undef_NR_OPEN > > > >#undef LINK_MAX >#undef __undef_LINK_MAX > > > >#undef OPEN_MAX >#undef __undef_OPEN_MAX > > > >#undef ARG_MAX >#undef __undef_ARG_MAX > > > >#define _POSIX_THREAD_KEYS_MAX 128 > >#define PTHREAD_KEYS_MAX 1024 > > >#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 > >#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS > > >#define _POSIX_THREAD_THREADS_MAX 64 > >#undef PTHREAD_THREADS_MAX > > > >#define AIO_PRIO_DELTA_MAX 20 > > >#define PTHREAD_STACK_MIN 16384 > > >#define DELAYTIMER_MAX 2147483647 > > >#define TTY_NAME_MAX 32 > > >#define LOGIN_NAME_MAX 256 > > >#define HOST_NAME_MAX 64 > > >#define MQ_PRIO_MAX 32768 > > >#define SEM_VALUE_MAX (2147483647) ># 161 "/usr/include/bits/posix1_lim.h" 2 3 4 > > > >#define SSIZE_MAX LONG_MAX ># 144 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/posix2_lim.h" 1 3 4 ># 23 "/usr/include/bits/posix2_lim.h" 3 4 >#define _BITS_POSIX2_LIM_H 1 > > > >#define _POSIX2_BC_BASE_MAX 99 > > >#define _POSIX2_BC_DIM_MAX 2048 > > >#define _POSIX2_BC_SCALE_MAX 99 > > >#define _POSIX2_BC_STRING_MAX 1000 > > > >#define _POSIX2_COLL_WEIGHTS_MAX 2 > > > >#define _POSIX2_EXPR_NEST_MAX 32 > > >#define _POSIX2_LINE_MAX 2048 > > > >#define _POSIX2_RE_DUP_MAX 255 > > > >#define _POSIX2_CHARCLASS_NAME_MAX 14 > > > > > > > >#define BC_BASE_MAX _POSIX2_BC_BASE_MAX > > >#define BC_DIM_MAX _POSIX2_BC_DIM_MAX > > >#define BC_SCALE_MAX _POSIX2_BC_SCALE_MAX > > >#define BC_STRING_MAX _POSIX2_BC_STRING_MAX > > >#define COLL_WEIGHTS_MAX 255 > > >#define EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX > > >#define LINE_MAX _POSIX2_LINE_MAX > > >#define CHARCLASS_NAME_MAX 2048 > > > >#define RE_DUP_MAX (0x7fff) ># 148 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/xopen_lim.h" 1 3 4 ># 30 "/usr/include/bits/xopen_lim.h" 3 4 >#define _XOPEN_LIM_H 1 > >#define __need_IOV_MAX ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 23 "/usr/include/bits/stdio_lim.h" 3 4 >#define L_tmpnam 20 >#define TMP_MAX 238328 >#define FILENAME_MAX 4096 > > >#define L_ctermid 9 > >#define L_cuserid 9 > > > > > >#undef FOPEN_MAX >#define FOPEN_MAX 16 > > > >#define IOV_MAX 1024 ># 34 "/usr/include/bits/xopen_lim.h" 2 3 4 ># 65 "/usr/include/bits/xopen_lim.h" 3 4 >#define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV > > > > >#define NL_ARGMAX _POSIX_ARG_MAX > > >#define NL_LANGMAX _POSIX2_LINE_MAX > > >#define NL_MSGMAX INT_MAX > > > >#define NL_NMAX INT_MAX > > >#define NL_SETMAX INT_MAX > > >#define NL_TEXTMAX INT_MAX > > >#define NZERO 20 ># 109 "/usr/include/bits/xopen_lim.h" 3 4 >#define WORD_BIT 32 ># 132 "/usr/include/bits/xopen_lim.h" 3 4 >#define LONG_BIT 64 ># 152 "/usr/include/limits.h" 2 3 4 ># 169 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 2 3 4 ># 8 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/syslimits.h" 2 3 4 >#undef _GCC_NEXT_LIMITS_H ># 35 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 2 3 4 ># 60 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 3 4 >#define _LIMITS_H___ > > >#undef CHAR_BIT >#define CHAR_BIT __CHAR_BIT__ > > > > > > > >#undef SCHAR_MIN >#define SCHAR_MIN (-SCHAR_MAX - 1) >#undef SCHAR_MAX >#define SCHAR_MAX __SCHAR_MAX__ > > >#undef UCHAR_MAX > > > >#define UCHAR_MAX (SCHAR_MAX * 2 + 1) ># 96 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 3 4 >#undef CHAR_MIN >#define CHAR_MIN SCHAR_MIN >#undef CHAR_MAX >#define CHAR_MAX SCHAR_MAX > > > >#undef SHRT_MIN >#define SHRT_MIN (-SHRT_MAX - 1) >#undef SHRT_MAX >#define SHRT_MAX __SHRT_MAX__ > > >#undef USHRT_MAX > > > >#define USHRT_MAX (SHRT_MAX * 2 + 1) > > > >#undef INT_MIN >#define INT_MIN (-INT_MAX - 1) >#undef INT_MAX >#define INT_MAX __INT_MAX__ > > >#undef UINT_MAX >#define UINT_MAX (INT_MAX * 2U + 1U) > > > >#undef LONG_MIN >#define LONG_MIN (-LONG_MAX - 1L) >#undef LONG_MAX >#define LONG_MAX __LONG_MAX__ > > >#undef ULONG_MAX >#define ULONG_MAX (LONG_MAX * 2UL + 1UL) ># 151 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 3 4 >#undef LONG_LONG_MIN >#define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL) >#undef LONG_LONG_MAX >#define LONG_LONG_MAX __LONG_LONG_MAX__ > > >#undef ULONG_LONG_MAX >#define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1ULL) ># 328 "../gtest_contrib/gmock-gtest-all.cc" 2 > > > ># 1 "/usr/include/sys/mman.h" 1 3 4 ># 20 "/usr/include/sys/mman.h" 3 4 >#define _SYS_MMAN_H 1 > > > >#define __need_size_t ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 26 "/usr/include/sys/mman.h" 2 3 4 ># 41 "/usr/include/sys/mman.h" 3 4 ># 1 "/usr/include/bits/mman.h" 1 3 4 ># 28 "/usr/include/bits/mman.h" 3 4 >#define MAP_32BIT 0x40 > > > > >#define MAP_GROWSDOWN 0x00100 >#define MAP_DENYWRITE 0x00800 >#define MAP_EXECUTABLE 0x01000 >#define MAP_LOCKED 0x02000 >#define MAP_NORESERVE 0x04000 >#define MAP_POPULATE 0x08000 >#define MAP_NONBLOCK 0x10000 >#define MAP_STACK 0x20000 >#define MAP_HUGETLB 0x40000 > > > ># 1 "/usr/include/bits/mman-linux.h" 1 3 4 ># 32 "/usr/include/bits/mman-linux.h" 3 4 >#define PROT_READ 0x1 >#define PROT_WRITE 0x2 >#define PROT_EXEC 0x4 >#define PROT_NONE 0x0 >#define PROT_GROWSDOWN 0x01000000 > >#define PROT_GROWSUP 0x02000000 > > > >#define MAP_SHARED 0x01 >#define MAP_PRIVATE 0x02 > >#define MAP_TYPE 0x0f > > > >#define MAP_FIXED 0x10 > >#define MAP_FILE 0 > > > >#define MAP_ANONYMOUS 0x20 > >#define MAP_ANON MAP_ANONYMOUS > >#define MAP_HUGE_SHIFT 26 >#define MAP_HUGE_MASK 0x3f > > > >#define MS_ASYNC 1 >#define MS_SYNC 4 >#define MS_INVALIDATE 2 > > > >#define MREMAP_MAYMOVE 1 >#define MREMAP_FIXED 2 > > > > >#define MADV_NORMAL 0 >#define MADV_RANDOM 1 >#define MADV_SEQUENTIAL 2 >#define MADV_WILLNEED 3 >#define MADV_DONTNEED 4 >#define MADV_REMOVE 9 >#define MADV_DONTFORK 10 >#define MADV_DOFORK 11 >#define MADV_MERGEABLE 12 >#define MADV_UNMERGEABLE 13 >#define MADV_HUGEPAGE 14 >#define MADV_NOHUGEPAGE 15 >#define MADV_DONTDUMP 16 > >#define MADV_DODUMP 17 >#define MADV_HWPOISON 100 > > > > >#define POSIX_MADV_NORMAL 0 >#define POSIX_MADV_RANDOM 1 >#define POSIX_MADV_SEQUENTIAL 2 >#define POSIX_MADV_WILLNEED 3 >#define POSIX_MADV_DONTNEED 4 > > > > >#define MCL_CURRENT 1 >#define MCL_FUTURE 2 ># 45 "/usr/include/bits/mman.h" 2 3 4 ># 42 "/usr/include/sys/mman.h" 2 3 4 > > >#define MAP_FAILED ((void *) -1) > >extern "C" { ># 57 "/usr/include/sys/mman.h" 3 4 >extern void *mmap (void *__addr, size_t __len, int __prot, > int __flags, int __fd, __off_t __offset) throw (); ># 70 "/usr/include/sys/mman.h" 3 4 >extern void *mmap64 (void *__addr, size_t __len, int __prot, > int __flags, int __fd, __off64_t __offset) throw (); > > > > >extern int munmap (void *__addr, size_t __len) throw (); > > > > >extern int mprotect (void *__addr, size_t __len, int __prot) throw (); > > > > > > > >extern int msync (void *__addr, size_t __len, int __flags); > > > > >extern int madvise (void *__addr, size_t __len, int __advice) throw (); > > > >extern int posix_madvise (void *__addr, size_t __len, int __advice) throw (); > > > > >extern int mlock (const void *__addr, size_t __len) throw (); > > >extern int munlock (const void *__addr, size_t __len) throw (); > > > > >extern int mlockall (int __flags) throw (); > > > >extern int munlockall (void) throw (); > > > > > > > >extern int mincore (void *__start, size_t __len, unsigned char *__vec) > throw (); ># 133 "/usr/include/sys/mman.h" 3 4 >extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, > int __flags, ...) throw (); > > > >extern int remap_file_pages (void *__start, size_t __size, int __prot, > size_t __pgoff, int __flags) throw (); > > > > >extern int shm_open (const char *__name, int __oflag, mode_t __mode); > > >extern int shm_unlink (const char *__name); > >} ># 332 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 1 "/usr/include/sys/time.h" 1 3 4 ># 19 "/usr/include/sys/time.h" 3 4 >#define _SYS_TIME_H 1 > > > > >#define __need_time_t > >#define __need_timeval ># 1 "/usr/include/bits/time.h" 1 3 4 ># 99 "/usr/include/bits/time.h" 3 4 >#undef __need_timeval ># 28 "/usr/include/sys/time.h" 2 3 4 ># 37 "/usr/include/sys/time.h" 3 4 >extern "C" { > > > >#define TIMEVAL_TO_TIMESPEC(tv,ts) { (ts)->tv_sec = (tv)->tv_sec; (ts)->tv_nsec = (tv)->tv_usec * 1000; } > > > >#define TIMESPEC_TO_TIMEVAL(tv,ts) { (tv)->tv_sec = (ts)->tv_sec; (tv)->tv_usec = (ts)->tv_nsec / 1000; } ># 55 "/usr/include/sys/time.h" 3 4 >struct timezone > { > int tz_minuteswest; > int tz_dsttime; > }; > >typedef struct timezone *__restrict __timezone_ptr_t; ># 71 "/usr/include/sys/time.h" 3 4 >extern int gettimeofday (struct timeval *__restrict __tv, > __timezone_ptr_t __tz) throw () __attribute__ ((__nonnull__ (1))); > > > > >extern int settimeofday (const struct timeval *__tv, > const struct timezone *__tz) > throw (); > > > > > >extern int adjtime (const struct timeval *__delta, > struct timeval *__olddelta) throw (); > > > > >enum __itimer_which > { > > ITIMER_REAL = 0, >#define ITIMER_REAL ITIMER_REAL > > ITIMER_VIRTUAL = 1, >#define ITIMER_VIRTUAL ITIMER_VIRTUAL > > > ITIMER_PROF = 2 >#define ITIMER_PROF ITIMER_PROF > }; > > > >struct itimerval > { > > struct timeval it_interval; > > struct timeval it_value; > }; > > > > > > >typedef int __itimer_which_t; > > > > >extern int getitimer (__itimer_which_t __which, > struct itimerval *__value) throw (); > > > > >extern int setitimer (__itimer_which_t __which, > const struct itimerval *__restrict __new, > struct itimerval *__restrict __old) throw (); > > > > >extern int utimes (const char *__file, const struct timeval __tvp[2]) > throw () __attribute__ ((__nonnull__ (1))); > > > >extern int lutimes (const char *__file, const struct timeval __tvp[2]) > throw () __attribute__ ((__nonnull__ (1))); > > >extern int futimes (int __fd, const struct timeval __tvp[2]) throw (); > > > > > > >extern int futimesat (int __fd, const char *__file, > const struct timeval __tvp[2]) throw (); > > > > > > >#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) >#define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) >#define timercmp(a,b,CMP) (((a)->tv_sec == (b)->tv_sec) ? ((a)->tv_usec CMP (b)->tv_usec) : ((a)->tv_sec CMP (b)->tv_sec)) > > > >#define timeradd(a,b,result) do { (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; (result)->tv_usec = (a)->tv_usec + (b)->tv_usec; if ((result)->tv_usec >= 1000000) { ++(result)->tv_sec; (result)->tv_usec -= 1000000; } } while (0) ># 178 "/usr/include/sys/time.h" 3 4 >#define timersub(a,b,result) do { (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; if ((result)->tv_usec < 0) { --(result)->tv_sec; (result)->tv_usec += 1000000; } } while (0) ># 189 "/usr/include/sys/time.h" 3 4 >} ># 333 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 388 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "/usr/include/c++/4.8.2/stdexcept" 1 3 ># 34 "/usr/include/c++/4.8.2/stdexcept" 3 >#define _GLIBCXX_STDEXCEPT 1 > > ># 37 "/usr/include/c++/4.8.2/stdexcept" 3 > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 55 "/usr/include/c++/4.8.2/stdexcept" 3 > class logic_error : public exception > { > string _M_msg; > > public: > > explicit > logic_error(const string& __arg); > > virtual ~logic_error() throw(); > > > > virtual const char* > what() const throw(); > }; > > > > class domain_error : public logic_error > { > public: > explicit domain_error(const string& __arg); > virtual ~domain_error() throw(); > }; > > > class invalid_argument : public logic_error > { > public: > explicit invalid_argument(const string& __arg); > virtual ~invalid_argument() throw(); > }; > > > > class length_error : public logic_error > { > public: > explicit length_error(const string& __arg); > virtual ~length_error() throw(); > }; > > > > class out_of_range : public logic_error > { > public: > explicit out_of_range(const string& __arg); > virtual ~out_of_range() throw(); > }; > > > > > > > class runtime_error : public exception > { > string _M_msg; > > public: > > explicit > runtime_error(const string& __arg); > > virtual ~runtime_error() throw(); > > > > virtual const char* > what() const throw(); > }; > > > class range_error : public runtime_error > { > public: > explicit range_error(const string& __arg); > virtual ~range_error() throw(); > }; > > > class overflow_error : public runtime_error > { > public: > explicit overflow_error(const string& __arg); > virtual ~overflow_error() throw(); > }; > > > class underflow_error : public runtime_error > { > public: > explicit underflow_error(const string& __arg); > virtual ~underflow_error() throw(); > }; > > > > >} ># 389 "../gtest_contrib/gmock-gtest-all.cc" 2 > > > ># 1 "/usr/include/arpa/inet.h" 1 3 4 ># 19 "/usr/include/arpa/inet.h" 3 4 >#define _ARPA_INET_H 1 > > ># 1 "/usr/include/netinet/in.h" 1 3 4 ># 19 "/usr/include/netinet/in.h" 3 4 >#define _NETINET_IN_H 1 > > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdint.h" 1 3 4 ># 9 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdint.h" 3 4 ># 1 "/usr/include/stdint.h" 1 3 4 ># 23 "/usr/include/stdint.h" 3 4 >#define _STDINT_H 1 > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 28 "/usr/include/stdint.h" 2 3 4 ># 48 "/usr/include/stdint.h" 3 4 >typedef unsigned char uint8_t; >typedef unsigned short int uint16_t; > >typedef unsigned int uint32_t; >#define __uint32_t_defined > > >typedef unsigned long int uint64_t; ># 65 "/usr/include/stdint.h" 3 4 >typedef signed char int_least8_t; >typedef short int int_least16_t; >typedef int int_least32_t; > >typedef long int int_least64_t; > > > > > > >typedef unsigned char uint_least8_t; >typedef unsigned short int uint_least16_t; >typedef unsigned int uint_least32_t; > >typedef unsigned long int uint_least64_t; ># 90 "/usr/include/stdint.h" 3 4 >typedef signed char int_fast8_t; > >typedef long int int_fast16_t; >typedef long int int_fast32_t; >typedef long int int_fast64_t; ># 103 "/usr/include/stdint.h" 3 4 >typedef unsigned char uint_fast8_t; > >typedef unsigned long int uint_fast16_t; >typedef unsigned long int uint_fast32_t; >typedef unsigned long int uint_fast64_t; ># 122 "/usr/include/stdint.h" 3 4 >typedef unsigned long int uintptr_t; ># 134 "/usr/include/stdint.h" 3 4 >typedef long int intmax_t; >typedef unsigned long int uintmax_t; ># 145 "/usr/include/stdint.h" 3 4 >#define __INT64_C(c) c ## L >#define __UINT64_C(c) c ## UL ># 155 "/usr/include/stdint.h" 3 4 >#define INT8_MIN (-128) >#define INT16_MIN (-32767-1) >#define INT32_MIN (-2147483647-1) >#define INT64_MIN (-__INT64_C(9223372036854775807)-1) > >#define INT8_MAX (127) >#define INT16_MAX (32767) >#define INT32_MAX (2147483647) >#define INT64_MAX (__INT64_C(9223372036854775807)) > > >#define UINT8_MAX (255) >#define UINT16_MAX (65535) >#define UINT32_MAX (4294967295U) >#define UINT64_MAX (__UINT64_C(18446744073709551615)) > > > >#define INT_LEAST8_MIN (-128) >#define INT_LEAST16_MIN (-32767-1) >#define INT_LEAST32_MIN (-2147483647-1) >#define INT_LEAST64_MIN (-__INT64_C(9223372036854775807)-1) > >#define INT_LEAST8_MAX (127) >#define INT_LEAST16_MAX (32767) >#define INT_LEAST32_MAX (2147483647) >#define INT_LEAST64_MAX (__INT64_C(9223372036854775807)) > > >#define UINT_LEAST8_MAX (255) >#define UINT_LEAST16_MAX (65535) >#define UINT_LEAST32_MAX (4294967295U) >#define UINT_LEAST64_MAX (__UINT64_C(18446744073709551615)) > > > >#define INT_FAST8_MIN (-128) > >#define INT_FAST16_MIN (-9223372036854775807L-1) >#define INT_FAST32_MIN (-9223372036854775807L-1) > > > > >#define INT_FAST64_MIN (-__INT64_C(9223372036854775807)-1) > >#define INT_FAST8_MAX (127) > >#define INT_FAST16_MAX (9223372036854775807L) >#define INT_FAST32_MAX (9223372036854775807L) > > > > >#define INT_FAST64_MAX (__INT64_C(9223372036854775807)) > > >#define UINT_FAST8_MAX (255) > >#define UINT_FAST16_MAX (18446744073709551615UL) >#define UINT_FAST32_MAX (18446744073709551615UL) > > > > >#define UINT_FAST64_MAX (__UINT64_C(18446744073709551615)) > > > > >#define INTPTR_MIN (-9223372036854775807L-1) >#define INTPTR_MAX (9223372036854775807L) >#define UINTPTR_MAX (18446744073709551615UL) ># 236 "/usr/include/stdint.h" 3 4 >#define INTMAX_MIN (-__INT64_C(9223372036854775807)-1) > >#define INTMAX_MAX (__INT64_C(9223372036854775807)) > > >#define UINTMAX_MAX (__UINT64_C(18446744073709551615)) > > > > > > >#define PTRDIFF_MIN (-9223372036854775807L-1) >#define PTRDIFF_MAX (9223372036854775807L) > > > > > > >#define SIG_ATOMIC_MIN (-2147483647-1) >#define SIG_ATOMIC_MAX (2147483647) > > > >#define SIZE_MAX (18446744073709551615UL) ># 274 "/usr/include/stdint.h" 3 4 >#define WINT_MIN (0u) >#define WINT_MAX (4294967295u) > > >#define INT8_C(c) c >#define INT16_C(c) c >#define INT32_C(c) c > >#define INT64_C(c) c ## L > > > > > >#define UINT8_C(c) c >#define UINT16_C(c) c >#define UINT32_C(c) c ## U > >#define UINT64_C(c) c ## UL > > > > > > >#define INTMAX_C(c) c ## L >#define UINTMAX_C(c) c ## UL ># 10 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stdint.h" 2 3 4 > > > >#define _GCC_WRAP_STDINT_H ># 23 "/usr/include/netinet/in.h" 2 3 4 ># 1 "/usr/include/sys/socket.h" 1 3 4 ># 20 "/usr/include/sys/socket.h" 3 4 >#define _SYS_SOCKET_H 1 > > > >extern "C" { > ># 1 "/usr/include/sys/uio.h" 1 3 4 ># 19 "/usr/include/sys/uio.h" 3 4 >#define _SYS_UIO_H 1 > > > > > >extern "C" { > > ># 1 "/usr/include/bits/uio.h" 1 3 4 ># 54 "/usr/include/bits/uio.h" 3 4 >#define _BITS_UIO_H_FOR_SYS_UIO_H 1 > >extern "C" { > > >extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, > unsigned long int __liovcnt, > const struct iovec *__rvec, > unsigned long int __riovcnt, > unsigned long int __flags) > throw (); > > >extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, > unsigned long int __liovcnt, > const struct iovec *__rvec, > unsigned long int __riovcnt, > unsigned long int __flags) > throw (); > >} ># 29 "/usr/include/sys/uio.h" 2 3 4 ># 39 "/usr/include/sys/uio.h" 3 4 >extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) > ; ># 50 "/usr/include/sys/uio.h" 3 4 >extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) > ; ># 65 "/usr/include/sys/uio.h" 3 4 >extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, > __off_t __offset) ; ># 77 "/usr/include/sys/uio.h" 3 4 >extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, > __off_t __offset) ; ># 103 "/usr/include/sys/uio.h" 3 4 >extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, > __off64_t __offset) ; ># 115 "/usr/include/sys/uio.h" 3 4 >extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, > __off64_t __offset) ; > > > >} ># 27 "/usr/include/sys/socket.h" 2 3 4 >#define __need_size_t ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 29 "/usr/include/sys/socket.h" 2 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 32 "/usr/include/sys/socket.h" 2 3 4 > > > > > > ># 1 "/usr/include/bits/socket.h" 1 3 4 ># 20 "/usr/include/bits/socket.h" 3 4 >#define __BITS_SOCKET_H > > > > > >#define __need_size_t ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 28 "/usr/include/bits/socket.h" 2 3 4 ># 38 "/usr/include/bits/socket.h" 3 4 ># 1 "/usr/include/bits/socket_type.h" 1 3 4 ># 24 "/usr/include/bits/socket_type.h" 3 4 >enum __socket_type >{ > SOCK_STREAM = 1, > >#define SOCK_STREAM SOCK_STREAM > SOCK_DGRAM = 2, > >#define SOCK_DGRAM SOCK_DGRAM > SOCK_RAW = 3, >#define SOCK_RAW SOCK_RAW > SOCK_RDM = 4, >#define SOCK_RDM SOCK_RDM > SOCK_SEQPACKET = 5, > >#define SOCK_SEQPACKET SOCK_SEQPACKET > SOCK_DCCP = 6, >#define SOCK_DCCP SOCK_DCCP > SOCK_PACKET = 10, > > >#define SOCK_PACKET SOCK_PACKET > > > > > SOCK_CLOEXEC = 02000000, > >#define SOCK_CLOEXEC SOCK_CLOEXEC > SOCK_NONBLOCK = 00004000 > >#define SOCK_NONBLOCK SOCK_NONBLOCK >}; ># 39 "/usr/include/bits/socket.h" 2 3 4 > > >#define PF_UNSPEC 0 >#define PF_LOCAL 1 >#define PF_UNIX PF_LOCAL >#define PF_FILE PF_LOCAL >#define PF_INET 2 >#define PF_AX25 3 >#define PF_IPX 4 >#define PF_APPLETALK 5 >#define PF_NETROM 6 >#define PF_BRIDGE 7 >#define PF_ATMPVC 8 >#define PF_X25 9 >#define PF_INET6 10 >#define PF_ROSE 11 >#define PF_DECnet 12 >#define PF_NETBEUI 13 >#define PF_SECURITY 14 >#define PF_KEY 15 >#define PF_NETLINK 16 >#define PF_ROUTE PF_NETLINK >#define PF_PACKET 17 >#define PF_ASH 18 >#define PF_ECONET 19 >#define PF_ATMSVC 20 >#define PF_RDS 21 >#define PF_SNA 22 >#define PF_IRDA 23 >#define PF_PPPOX 24 >#define PF_WANPIPE 25 >#define PF_LLC 26 >#define PF_CAN 29 >#define PF_TIPC 30 >#define PF_BLUETOOTH 31 >#define PF_IUCV 32 >#define PF_RXRPC 33 >#define PF_ISDN 34 >#define PF_PHONET 35 >#define PF_IEEE802154 36 >#define PF_CAIF 37 >#define PF_ALG 38 >#define PF_NFC 39 >#define PF_VSOCK 40 >#define PF_MAX 41 > > >#define AF_UNSPEC PF_UNSPEC >#define AF_LOCAL PF_LOCAL >#define AF_UNIX PF_UNIX >#define AF_FILE PF_FILE >#define AF_INET PF_INET >#define AF_AX25 PF_AX25 >#define AF_IPX PF_IPX >#define AF_APPLETALK PF_APPLETALK >#define AF_NETROM PF_NETROM >#define AF_BRIDGE PF_BRIDGE >#define AF_ATMPVC PF_ATMPVC >#define AF_X25 PF_X25 >#define AF_INET6 PF_INET6 >#define AF_ROSE PF_ROSE >#define AF_DECnet PF_DECnet >#define AF_NETBEUI PF_NETBEUI >#define AF_SECURITY PF_SECURITY >#define AF_KEY PF_KEY >#define AF_NETLINK PF_NETLINK >#define AF_ROUTE PF_ROUTE >#define AF_PACKET PF_PACKET >#define AF_ASH PF_ASH >#define AF_ECONET PF_ECONET >#define AF_ATMSVC PF_ATMSVC >#define AF_RDS PF_RDS >#define AF_SNA PF_SNA >#define AF_IRDA PF_IRDA >#define AF_PPPOX PF_PPPOX >#define AF_WANPIPE PF_WANPIPE >#define AF_LLC PF_LLC >#define AF_CAN PF_CAN >#define AF_TIPC PF_TIPC >#define AF_BLUETOOTH PF_BLUETOOTH >#define AF_IUCV PF_IUCV >#define AF_RXRPC PF_RXRPC >#define AF_ISDN PF_ISDN >#define AF_PHONET PF_PHONET >#define AF_IEEE802154 PF_IEEE802154 >#define AF_CAIF PF_CAIF >#define AF_ALG PF_ALG >#define AF_NFC PF_NFC >#define AF_VSOCK PF_VSOCK >#define AF_MAX PF_MAX > > > > > >#define SOL_RAW 255 >#define SOL_DECNET 261 >#define SOL_X25 262 >#define SOL_PACKET 263 >#define SOL_ATM 264 >#define SOL_AAL 265 >#define SOL_IRDA 266 > > >#define SOMAXCONN 128 > > ># 1 "/usr/include/bits/sockaddr.h" 1 3 4 ># 24 "/usr/include/bits/sockaddr.h" 3 4 >#define _BITS_SOCKADDR_H 1 > > > >typedef unsigned short int sa_family_t; > > > > > >#define __SOCKADDR_COMMON(sa_prefix) sa_family_t sa_prefix ##family > > >#define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int)) ># 147 "/usr/include/bits/socket.h" 2 3 4 > > >struct sockaddr > { > sa_family_t sa_family; > char sa_data[14]; > }; > > > > >#define __ss_aligntype unsigned long int >#define _SS_SIZE 128 >#define _SS_PADSIZE (_SS_SIZE - (2 * sizeof (__ss_aligntype))) > >struct sockaddr_storage > { > sa_family_t ss_family; > unsigned long int __ss_align; > char __ss_padding[(128 - (2 * sizeof (unsigned long int)))]; > }; > > > >enum > { > MSG_OOB = 0x01, >#define MSG_OOB MSG_OOB > MSG_PEEK = 0x02, >#define MSG_PEEK MSG_PEEK > MSG_DONTROUTE = 0x04, >#define MSG_DONTROUTE MSG_DONTROUTE > > > MSG_TRYHARD = MSG_DONTROUTE, >#define MSG_TRYHARD MSG_DONTROUTE > > MSG_CTRUNC = 0x08, >#define MSG_CTRUNC MSG_CTRUNC > MSG_PROXY = 0x10, >#define MSG_PROXY MSG_PROXY > MSG_TRUNC = 0x20, >#define MSG_TRUNC MSG_TRUNC > MSG_DONTWAIT = 0x40, >#define MSG_DONTWAIT MSG_DONTWAIT > MSG_EOR = 0x80, >#define MSG_EOR MSG_EOR > MSG_WAITALL = 0x100, >#define MSG_WAITALL MSG_WAITALL > MSG_FIN = 0x200, >#define MSG_FIN MSG_FIN > MSG_SYN = 0x400, >#define MSG_SYN MSG_SYN > MSG_CONFIRM = 0x800, >#define MSG_CONFIRM MSG_CONFIRM > MSG_RST = 0x1000, >#define MSG_RST MSG_RST > MSG_ERRQUEUE = 0x2000, >#define MSG_ERRQUEUE MSG_ERRQUEUE > MSG_NOSIGNAL = 0x4000, >#define MSG_NOSIGNAL MSG_NOSIGNAL > MSG_MORE = 0x8000, >#define MSG_MORE MSG_MORE > MSG_WAITFORONE = 0x10000, >#define MSG_WAITFORONE MSG_WAITFORONE > MSG_FASTOPEN = 0x20000000, >#define MSG_FASTOPEN MSG_FASTOPEN > > MSG_CMSG_CLOEXEC = 0x40000000 > > >#define MSG_CMSG_CLOEXEC MSG_CMSG_CLOEXEC > }; > > > > >struct msghdr > { > void *msg_name; > socklen_t msg_namelen; > > struct iovec *msg_iov; > size_t msg_iovlen; > > void *msg_control; > size_t msg_controllen; > > > > > int msg_flags; > }; > > >struct cmsghdr > { > size_t cmsg_len; > > > > > int cmsg_level; > int cmsg_type; > > __extension__ unsigned char __cmsg_data []; > > }; > > > >#define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data) > > > >#define CMSG_NXTHDR(mhdr,cmsg) __cmsg_nxthdr (mhdr, cmsg) >#define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) 0) > > >#define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) > >#define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr))) > >#define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) > >extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, > struct cmsghdr *__cmsg) throw (); ># 299 "/usr/include/bits/socket.h" 3 4 >enum > { > SCM_RIGHTS = 0x01 >#define SCM_RIGHTS SCM_RIGHTS > > , SCM_CREDENTIALS = 0x02 >#define SCM_CREDENTIALS SCM_CREDENTIALS > > }; > > > >struct ucred >{ > pid_t pid; > uid_t uid; > gid_t gid; >}; ># 345 "/usr/include/bits/socket.h" 3 4 ># 1 "/usr/include/asm/socket.h" 1 3 4 ># 1 "/usr/include/asm-generic/socket.h" 1 3 4 > >#define __ASM_GENERIC_SOCKET_H > ># 1 "/usr/include/asm/sockios.h" 1 3 4 ># 1 "/usr/include/asm-generic/sockios.h" 1 3 4 > >#define __ASM_GENERIC_SOCKIOS_H > > >#define FIOSETOWN 0x8901 >#define SIOCSPGRP 0x8902 >#define FIOGETOWN 0x8903 >#define SIOCGPGRP 0x8904 >#define SIOCATMARK 0x8905 >#define SIOCGSTAMP 0x8906 >#define SIOCGSTAMPNS 0x8907 ># 1 "/usr/include/asm/sockios.h" 2 3 4 ># 5 "/usr/include/asm-generic/socket.h" 2 3 4 > > >#define SOL_SOCKET 1 > >#define SO_DEBUG 1 >#define SO_REUSEADDR 2 >#define SO_TYPE 3 >#define SO_ERROR 4 >#define SO_DONTROUTE 5 >#define SO_BROADCAST 6 >#define SO_SNDBUF 7 >#define SO_RCVBUF 8 >#define SO_SNDBUFFORCE 32 >#define SO_RCVBUFFORCE 33 >#define SO_KEEPALIVE 9 >#define SO_OOBINLINE 10 >#define SO_NO_CHECK 11 >#define SO_PRIORITY 12 >#define SO_LINGER 13 >#define SO_BSDCOMPAT 14 >#define SO_REUSEPORT 15 > >#define SO_PASSCRED 16 >#define SO_PEERCRED 17 >#define SO_RCVLOWAT 18 >#define SO_SNDLOWAT 19 >#define SO_RCVTIMEO 20 >#define SO_SNDTIMEO 21 > > > >#define SO_SECURITY_AUTHENTICATION 22 >#define SO_SECURITY_ENCRYPTION_TRANSPORT 23 >#define SO_SECURITY_ENCRYPTION_NETWORK 24 > >#define SO_BINDTODEVICE 25 > > >#define SO_ATTACH_FILTER 26 >#define SO_DETACH_FILTER 27 >#define SO_GET_FILTER SO_ATTACH_FILTER > >#define SO_PEERNAME 28 >#define SO_TIMESTAMP 29 >#define SCM_TIMESTAMP SO_TIMESTAMP > >#define SO_ACCEPTCONN 30 > >#define SO_PEERSEC 31 >#define SO_PASSSEC 34 >#define SO_TIMESTAMPNS 35 >#define SCM_TIMESTAMPNS SO_TIMESTAMPNS > >#define SO_MARK 36 > >#define SO_TIMESTAMPING 37 >#define SCM_TIMESTAMPING SO_TIMESTAMPING > >#define SO_PROTOCOL 38 >#define SO_DOMAIN 39 > >#define SO_RXQ_OVFL 40 > >#define SO_WIFI_STATUS 41 >#define SCM_WIFI_STATUS SO_WIFI_STATUS >#define SO_PEEK_OFF 42 > > >#define SO_NOFCS 43 > >#define SO_LOCK_FILTER 44 > >#define SO_SELECT_ERR_QUEUE 45 > >#define SO_BUSY_POLL 46 ># 1 "/usr/include/asm/socket.h" 2 3 4 ># 346 "/usr/include/bits/socket.h" 2 3 4 ># 379 "/usr/include/bits/socket.h" 3 4 >struct linger > { > int l_onoff; > int l_linger; > }; ># 39 "/usr/include/sys/socket.h" 2 3 4 > > > > >struct osockaddr > { > unsigned short int sa_family; > unsigned char sa_data[14]; > }; > > > > >enum >{ > SHUT_RD = 0, >#define SHUT_RD SHUT_RD > SHUT_WR, >#define SHUT_WR SHUT_WR > SHUT_RDWR >#define SHUT_RDWR SHUT_RDWR >}; ># 69 "/usr/include/sys/socket.h" 3 4 >#define __SOCKADDR_ARG struct sockaddr *__restrict >#define __CONST_SOCKADDR_ARG const struct sockaddr * ># 101 "/usr/include/sys/socket.h" 3 4 >struct mmsghdr > { > struct msghdr msg_hdr; > unsigned int msg_len; > > }; > > > > > > >extern int socket (int __domain, int __type, int __protocol) throw (); > > > > > >extern int socketpair (int __domain, int __type, int __protocol, > int __fds[2]) throw (); > > >extern int bind (int __fd, const struct sockaddr * __addr, socklen_t __len) > throw (); > > >extern int getsockname (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __len) throw (); ># 137 "/usr/include/sys/socket.h" 3 4 >extern int connect (int __fd, const struct sockaddr * __addr, socklen_t __len); > > > >extern int getpeername (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __len) throw (); > > > > > > >extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags); > > > > > > >extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags); > > > > > > >extern ssize_t sendto (int __fd, const void *__buf, size_t __n, > int __flags, const struct sockaddr * __addr, > socklen_t __addr_len); ># 174 "/usr/include/sys/socket.h" 3 4 >extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, > int __flags, struct sockaddr *__restrict __addr, > socklen_t *__restrict __addr_len); > > > > > > > >extern ssize_t sendmsg (int __fd, const struct msghdr *__message, > int __flags); > > > > > > > >extern int sendmmsg (int __fd, struct mmsghdr *__vmessages, > unsigned int __vlen, int __flags); > > > > > > > >extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags); > > > > > > > >extern int recvmmsg (int __fd, struct mmsghdr *__vmessages, > unsigned int __vlen, int __flags, > const struct timespec *__tmo); > > > > > > >extern int getsockopt (int __fd, int __level, int __optname, > void *__restrict __optval, > socklen_t *__restrict __optlen) throw (); > > > > >extern int setsockopt (int __fd, int __level, int __optname, > const void *__optval, socklen_t __optlen) throw (); > > > > > >extern int listen (int __fd, int __n) throw (); ># 243 "/usr/include/sys/socket.h" 3 4 >extern int accept (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __addr_len); > > > > > > >extern int accept4 (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __addr_len, int __flags); ># 261 "/usr/include/sys/socket.h" 3 4 >extern int shutdown (int __fd, int __how) throw (); > > > > >extern int sockatmark (int __fd) throw (); > > > > > > > >extern int isfdtype (int __fd, int __fdtype) throw (); ># 283 "/usr/include/sys/socket.h" 3 4 >} ># 24 "/usr/include/netinet/in.h" 2 3 4 > > > >extern "C" { > > >enum > { > IPPROTO_IP = 0, >#define IPPROTO_IP IPPROTO_IP > IPPROTO_HOPOPTS = 0, >#define IPPROTO_HOPOPTS IPPROTO_HOPOPTS > IPPROTO_ICMP = 1, >#define IPPROTO_ICMP IPPROTO_ICMP > IPPROTO_IGMP = 2, >#define IPPROTO_IGMP IPPROTO_IGMP > IPPROTO_IPIP = 4, >#define IPPROTO_IPIP IPPROTO_IPIP > IPPROTO_TCP = 6, >#define IPPROTO_TCP IPPROTO_TCP > IPPROTO_EGP = 8, >#define IPPROTO_EGP IPPROTO_EGP > IPPROTO_PUP = 12, >#define IPPROTO_PUP IPPROTO_PUP > IPPROTO_UDP = 17, >#define IPPROTO_UDP IPPROTO_UDP > IPPROTO_IDP = 22, >#define IPPROTO_IDP IPPROTO_IDP > IPPROTO_TP = 29, >#define IPPROTO_TP IPPROTO_TP > IPPROTO_DCCP = 33, >#define IPPROTO_DCCP IPPROTO_DCCP > IPPROTO_IPV6 = 41, >#define IPPROTO_IPV6 IPPROTO_IPV6 > IPPROTO_ROUTING = 43, >#define IPPROTO_ROUTING IPPROTO_ROUTING > IPPROTO_FRAGMENT = 44, >#define IPPROTO_FRAGMENT IPPROTO_FRAGMENT > IPPROTO_RSVP = 46, >#define IPPROTO_RSVP IPPROTO_RSVP > IPPROTO_GRE = 47, >#define IPPROTO_GRE IPPROTO_GRE > IPPROTO_ESP = 50, >#define IPPROTO_ESP IPPROTO_ESP > IPPROTO_AH = 51, >#define IPPROTO_AH IPPROTO_AH > IPPROTO_ICMPV6 = 58, >#define IPPROTO_ICMPV6 IPPROTO_ICMPV6 > IPPROTO_NONE = 59, >#define IPPROTO_NONE IPPROTO_NONE > IPPROTO_DSTOPTS = 60, >#define IPPROTO_DSTOPTS IPPROTO_DSTOPTS > IPPROTO_MTP = 92, >#define IPPROTO_MTP IPPROTO_MTP > IPPROTO_ENCAP = 98, >#define IPPROTO_ENCAP IPPROTO_ENCAP > IPPROTO_PIM = 103, >#define IPPROTO_PIM IPPROTO_PIM > IPPROTO_COMP = 108, >#define IPPROTO_COMP IPPROTO_COMP > IPPROTO_SCTP = 132, >#define IPPROTO_SCTP IPPROTO_SCTP > IPPROTO_UDPLITE = 136, >#define IPPROTO_UDPLITE IPPROTO_UDPLITE > IPPROTO_RAW = 255, >#define IPPROTO_RAW IPPROTO_RAW > IPPROTO_MAX > }; > > > >typedef uint16_t in_port_t; > > >enum > { > IPPORT_ECHO = 7, > IPPORT_DISCARD = 9, > IPPORT_SYSTAT = 11, > IPPORT_DAYTIME = 13, > IPPORT_NETSTAT = 15, > IPPORT_FTP = 21, > IPPORT_TELNET = 23, > IPPORT_SMTP = 25, > IPPORT_TIMESERVER = 37, > IPPORT_NAMESERVER = 42, > IPPORT_WHOIS = 43, > IPPORT_MTP = 57, > > IPPORT_TFTP = 69, > IPPORT_RJE = 77, > IPPORT_FINGER = 79, > IPPORT_TTYLINK = 87, > IPPORT_SUPDUP = 95, > > > IPPORT_EXECSERVER = 512, > IPPORT_LOGINSERVER = 513, > IPPORT_CMDSERVER = 514, > IPPORT_EFSSERVER = 520, > > > IPPORT_BIFFUDP = 512, > IPPORT_WHOSERVER = 513, > IPPORT_ROUTESERVER = 520, > > > IPPORT_RESERVED = 1024, > > > IPPORT_USERRESERVED = 5000 > }; > > > >typedef uint32_t in_addr_t; >struct in_addr > { > in_addr_t s_addr; > }; > > > > > > > >#define IN_CLASSA(a) ((((in_addr_t)(a)) & 0x80000000) == 0) >#define IN_CLASSA_NET 0xff000000 >#define IN_CLASSA_NSHIFT 24 >#define IN_CLASSA_HOST (0xffffffff & ~IN_CLASSA_NET) >#define IN_CLASSA_MAX 128 > >#define IN_CLASSB(a) ((((in_addr_t)(a)) & 0xc0000000) == 0x80000000) >#define IN_CLASSB_NET 0xffff0000 >#define IN_CLASSB_NSHIFT 16 >#define IN_CLASSB_HOST (0xffffffff & ~IN_CLASSB_NET) >#define IN_CLASSB_MAX 65536 > >#define IN_CLASSC(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xc0000000) >#define IN_CLASSC_NET 0xffffff00 >#define IN_CLASSC_NSHIFT 8 >#define IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET) > >#define IN_CLASSD(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xe0000000) >#define IN_MULTICAST(a) IN_CLASSD(a) > >#define IN_EXPERIMENTAL(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xe0000000) >#define IN_BADCLASS(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000) > > >#define INADDR_ANY ((in_addr_t) 0x00000000) > >#define INADDR_BROADCAST ((in_addr_t) 0xffffffff) > >#define INADDR_NONE ((in_addr_t) 0xffffffff) > > >#define IN_LOOPBACKNET 127 > > >#define INADDR_LOOPBACK ((in_addr_t) 0x7f000001) > > > >#define INADDR_UNSPEC_GROUP ((in_addr_t) 0xe0000000) >#define INADDR_ALLHOSTS_GROUP ((in_addr_t) 0xe0000001) >#define INADDR_ALLRTRS_GROUP ((in_addr_t) 0xe0000002) >#define INADDR_MAX_LOCAL_GROUP ((in_addr_t) 0xe00000ff) > > > >struct in6_addr > { > union > { > uint8_t __u6_addr8[16]; > > uint16_t __u6_addr16[8]; > uint32_t __u6_addr32[4]; > > } __in6_u; >#define s6_addr __in6_u.__u6_addr8 > >#define s6_addr16 __in6_u.__u6_addr16 >#define s6_addr32 __in6_u.__u6_addr32 > > }; > >extern const struct in6_addr in6addr_any; >extern const struct in6_addr in6addr_loopback; >#define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } >#define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } > >#define INET_ADDRSTRLEN 16 >#define INET6_ADDRSTRLEN 46 > > > >struct sockaddr_in > { > sa_family_t sin_family; > in_port_t sin_port; > struct in_addr sin_addr; > > > unsigned char sin_zero[sizeof (struct sockaddr) - > (sizeof (unsigned short int)) - > sizeof (in_port_t) - > sizeof (struct in_addr)]; > }; > > >struct sockaddr_in6 > { > sa_family_t sin6_family; > in_port_t sin6_port; > uint32_t sin6_flowinfo; > struct in6_addr sin6_addr; > uint32_t sin6_scope_id; > }; > > > > >struct ip_mreq > { > > struct in_addr imr_multiaddr; > > > struct in_addr imr_interface; > }; > >struct ip_mreq_source > { > > struct in_addr imr_multiaddr; > > > struct in_addr imr_interface; > > > struct in_addr imr_sourceaddr; > }; > > > > >struct ipv6_mreq > { > > struct in6_addr ipv6mr_multiaddr; > > > unsigned int ipv6mr_interface; > }; > > > > >struct group_req > { > > uint32_t gr_interface; > > > struct sockaddr_storage gr_group; > }; > >struct group_source_req > { > > uint32_t gsr_interface; > > > struct sockaddr_storage gsr_group; > > > struct sockaddr_storage gsr_source; > }; > > > >struct ip_msfilter > { > > struct in_addr imsf_multiaddr; > > > struct in_addr imsf_interface; > > > uint32_t imsf_fmode; > > > uint32_t imsf_numsrc; > > struct in_addr imsf_slist[1]; > }; > >#define IP_MSFILTER_SIZE(numsrc) (sizeof (struct ip_msfilter) - sizeof (struct in_addr) + (numsrc) * sizeof (struct in_addr)) > > > >struct group_filter > { > > uint32_t gf_interface; > > > struct sockaddr_storage gf_group; > > > uint32_t gf_fmode; > > > uint32_t gf_numsrc; > > struct sockaddr_storage gf_slist[1]; >}; > >#define GROUP_FILTER_SIZE(numsrc) (sizeof (struct group_filter) - sizeof (struct sockaddr_storage) + ((numsrc) * sizeof (struct sockaddr_storage))) > > > > > > > ># 1 "/usr/include/bits/in.h" 1 3 4 ># 27 "/usr/include/bits/in.h" 3 4 >#define IP_OPTIONS 4 >#define IP_HDRINCL 3 >#define IP_TOS 1 >#define IP_TTL 2 >#define IP_RECVOPTS 6 > >#define IP_RECVRETOPTS IP_RETOPTS >#define IP_RETOPTS 7 >#define IP_MULTICAST_IF 32 >#define IP_MULTICAST_TTL 33 >#define IP_MULTICAST_LOOP 34 >#define IP_ADD_MEMBERSHIP 35 >#define IP_DROP_MEMBERSHIP 36 >#define IP_UNBLOCK_SOURCE 37 >#define IP_BLOCK_SOURCE 38 >#define IP_ADD_SOURCE_MEMBERSHIP 39 >#define IP_DROP_SOURCE_MEMBERSHIP 40 >#define IP_MSFILTER 41 > >#define MCAST_JOIN_GROUP 42 >#define MCAST_BLOCK_SOURCE 43 >#define MCAST_UNBLOCK_SOURCE 44 >#define MCAST_LEAVE_GROUP 45 >#define MCAST_JOIN_SOURCE_GROUP 46 >#define MCAST_LEAVE_SOURCE_GROUP 47 >#define MCAST_MSFILTER 48 >#define IP_MULTICAST_ALL 49 >#define IP_UNICAST_IF 50 > >#define MCAST_EXCLUDE 0 >#define MCAST_INCLUDE 1 > > >#define IP_ROUTER_ALERT 5 >#define IP_PKTINFO 8 >#define IP_PKTOPTIONS 9 >#define IP_PMTUDISC 10 >#define IP_MTU_DISCOVER 10 >#define IP_RECVERR 11 >#define IP_RECVTTL 12 >#define IP_RECVTOS 13 >#define IP_MTU 14 >#define IP_FREEBIND 15 >#define IP_IPSEC_POLICY 16 >#define IP_XFRM_POLICY 17 >#define IP_PASSSEC 18 >#define IP_TRANSPARENT 19 >#define IP_MULTICAST_ALL 49 > > >#define IP_ORIGDSTADDR 20 >#define IP_RECVORIGDSTADDR IP_ORIGDSTADDR > >#define IP_MINTTL 21 > > > >#define IP_PMTUDISC_DONT 0 >#define IP_PMTUDISC_WANT 1 >#define IP_PMTUDISC_DO 2 >#define IP_PMTUDISC_PROBE 3 > > >#define SOL_IP 0 > >#define IP_DEFAULT_MULTICAST_TTL 1 >#define IP_DEFAULT_MULTICAST_LOOP 1 >#define IP_MAX_MEMBERSHIPS 20 > > > > > >struct ip_opts > { > struct in_addr ip_dst; > char ip_opts[40]; > }; > > >struct ip_mreqn > { > struct in_addr imr_multiaddr; > struct in_addr imr_address; > int imr_ifindex; > }; > > >struct in_pktinfo > { > int ipi_ifindex; > struct in_addr ipi_spec_dst; > struct in_addr ipi_addr; > }; > > > > > >#define IPV6_ADDRFORM 1 >#define IPV6_2292PKTINFO 2 >#define IPV6_2292HOPOPTS 3 >#define IPV6_2292DSTOPTS 4 >#define IPV6_2292RTHDR 5 >#define IPV6_2292PKTOPTIONS 6 >#define IPV6_CHECKSUM 7 >#define IPV6_2292HOPLIMIT 8 > >#define SCM_SRCRT IPV6_RXSRCRT > >#define IPV6_NEXTHOP 9 >#define IPV6_AUTHHDR 10 >#define IPV6_UNICAST_HOPS 16 >#define IPV6_MULTICAST_IF 17 >#define IPV6_MULTICAST_HOPS 18 >#define IPV6_MULTICAST_LOOP 19 >#define IPV6_JOIN_GROUP 20 >#define IPV6_LEAVE_GROUP 21 >#define IPV6_ROUTER_ALERT 22 >#define IPV6_MTU_DISCOVER 23 >#define IPV6_MTU 24 >#define IPV6_RECVERR 25 >#define IPV6_V6ONLY 26 >#define IPV6_JOIN_ANYCAST 27 >#define IPV6_LEAVE_ANYCAST 28 >#define IPV6_IPSEC_POLICY 34 >#define IPV6_XFRM_POLICY 35 > >#define IPV6_RECVPKTINFO 49 >#define IPV6_PKTINFO 50 >#define IPV6_RECVHOPLIMIT 51 >#define IPV6_HOPLIMIT 52 >#define IPV6_RECVHOPOPTS 53 >#define IPV6_HOPOPTS 54 >#define IPV6_RTHDRDSTOPTS 55 >#define IPV6_RECVRTHDR 56 >#define IPV6_RTHDR 57 >#define IPV6_RECVDSTOPTS 58 >#define IPV6_DSTOPTS 59 > >#define IPV6_RECVTCLASS 66 >#define IPV6_TCLASS 67 > > >#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP >#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP >#define IPV6_RXHOPOPTS IPV6_HOPOPTS >#define IPV6_RXDSTOPTS IPV6_DSTOPTS > > >#define IPV6_PMTUDISC_DONT 0 >#define IPV6_PMTUDISC_WANT 1 >#define IPV6_PMTUDISC_DO 2 >#define IPV6_PMTUDISC_PROBE 3 > > >#define SOL_IPV6 41 >#define SOL_ICMPV6 58 > > >#define IPV6_RTHDR_LOOSE 0 >#define IPV6_RTHDR_STRICT 1 > >#define IPV6_RTHDR_TYPE_0 0 ># 355 "/usr/include/netinet/in.h" 2 3 4 ># 363 "/usr/include/netinet/in.h" 3 4 >extern uint32_t ntohl (uint32_t __netlong) throw () __attribute__ ((__const__)); >extern uint16_t ntohs (uint16_t __netshort) > throw () __attribute__ ((__const__)); >extern uint32_t htonl (uint32_t __hostlong) > throw () __attribute__ ((__const__)); >extern uint16_t htons (uint16_t __hostshort) > throw () __attribute__ ((__const__)); > > > > ># 1 "/usr/include/bits/byteswap.h" 1 3 4 ># 375 "/usr/include/netinet/in.h" 2 3 4 ># 398 "/usr/include/netinet/in.h" 3 4 >#define IN6_IS_ADDR_UNSPECIFIED(a) (__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (a); __a->s6_addr32[0] == 0 && __a->s6_addr32[1] == 0 && __a->s6_addr32[2] == 0 && __a->s6_addr32[3] == 0; })) > > > > > > > >#define IN6_IS_ADDR_LOOPBACK(a) (__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (a); __a->s6_addr32[0] == 0 && __a->s6_addr32[1] == 0 && __a->s6_addr32[2] == 0 && __a->s6_addr32[3] == htonl (1); })) > > > > > > > >#define IN6_IS_ADDR_LINKLOCAL(a) (__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (a); (__a->s6_addr32[0] & htonl (0xffc00000)) == htonl (0xfe800000); })) > > > > >#define IN6_IS_ADDR_SITELOCAL(a) (__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (a); (__a->s6_addr32[0] & htonl (0xffc00000)) == htonl (0xfec00000); })) > > > > >#define IN6_IS_ADDR_V4MAPPED(a) (__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (a); __a->s6_addr32[0] == 0 && __a->s6_addr32[1] == 0 && __a->s6_addr32[2] == htonl (0xffff); })) > > > > > > >#define IN6_IS_ADDR_V4COMPAT(a) (__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (a); __a->s6_addr32[0] == 0 && __a->s6_addr32[1] == 0 && __a->s6_addr32[2] == 0 && ntohl (__a->s6_addr32[3]) > 1; })) > > > > > > > >#define IN6_ARE_ADDR_EQUAL(a,b) (__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (a); const struct in6_addr *__b = (const struct in6_addr *) (b); __a->s6_addr32[0] == __b->s6_addr32[0] && __a->s6_addr32[1] == __b->s6_addr32[1] && __a->s6_addr32[2] == __b->s6_addr32[2] && __a->s6_addr32[3] == __b->s6_addr32[3]; })) ># 486 "/usr/include/netinet/in.h" 3 4 >#define IN6_IS_ADDR_MULTICAST(a) (((const uint8_t *) (a))[0] == 0xff) > > > >extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) throw (); > > >extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in) > throw (); > > > >#define IN6_IS_ADDR_MC_NODELOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((const uint8_t *) (a))[1] & 0xf) == 0x1)) > > > >#define IN6_IS_ADDR_MC_LINKLOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((const uint8_t *) (a))[1] & 0xf) == 0x2)) > > > >#define IN6_IS_ADDR_MC_SITELOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((const uint8_t *) (a))[1] & 0xf) == 0x5)) > > > >#define IN6_IS_ADDR_MC_ORGLOCAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((const uint8_t *) (a))[1] & 0xf) == 0x8)) > > > >#define IN6_IS_ADDR_MC_GLOBAL(a) (IN6_IS_ADDR_MULTICAST(a) && ((((const uint8_t *) (a))[1] & 0xf) == 0xe)) > > > > > >struct cmsghdr; > > >struct in6_pktinfo > { > struct in6_addr ipi6_addr; > unsigned int ipi6_ifindex; > }; > > >struct ip6_mtuinfo > { > struct sockaddr_in6 ip6m_addr; > uint32_t ip6m_mtu; > }; > > > >extern int inet6_option_space (int __nbytes) > throw () __attribute__ ((__deprecated__)); >extern int inet6_option_init (void *__bp, struct cmsghdr **__cmsgp, > int __type) throw () __attribute__ ((__deprecated__)); >extern int inet6_option_append (struct cmsghdr *__cmsg, > const uint8_t *__typep, int __multx, > int __plusy) throw () __attribute__ ((__deprecated__)); >extern uint8_t *inet6_option_alloc (struct cmsghdr *__cmsg, int __datalen, > int __multx, int __plusy) > throw () __attribute__ ((__deprecated__)); >extern int inet6_option_next (const struct cmsghdr *__cmsg, > uint8_t **__tptrp) > throw () __attribute__ ((__deprecated__)); >extern int inet6_option_find (const struct cmsghdr *__cmsg, > uint8_t **__tptrp, int __type) > throw () __attribute__ ((__deprecated__)); > > > >extern int inet6_opt_init (void *__extbuf, socklen_t __extlen) throw (); >extern int inet6_opt_append (void *__extbuf, socklen_t __extlen, int __offset, > uint8_t __type, socklen_t __len, uint8_t __align, > void **__databufp) throw (); >extern int inet6_opt_finish (void *__extbuf, socklen_t __extlen, int __offset) > throw (); >extern int inet6_opt_set_val (void *__databuf, int __offset, void *__val, > socklen_t __vallen) throw (); >extern int inet6_opt_next (void *__extbuf, socklen_t __extlen, int __offset, > uint8_t *__typep, socklen_t *__lenp, > void **__databufp) throw (); >extern int inet6_opt_find (void *__extbuf, socklen_t __extlen, int __offset, > uint8_t __type, socklen_t *__lenp, > void **__databufp) throw (); >extern int inet6_opt_get_val (void *__databuf, int __offset, void *__val, > socklen_t __vallen) throw (); > > > >extern socklen_t inet6_rth_space (int __type, int __segments) throw (); >extern void *inet6_rth_init (void *__bp, socklen_t __bp_len, int __type, > int __segments) throw (); >extern int inet6_rth_add (void *__bp, const struct in6_addr *__addr) throw (); >extern int inet6_rth_reverse (const void *__in, void *__out) throw (); >extern int inet6_rth_segments (const void *__bp) throw (); >extern struct in6_addr *inet6_rth_getaddr (const void *__bp, int __index) > throw (); > > > > > >extern int getipv4sourcefilter (int __s, struct in_addr __interface_addr, > struct in_addr __group, uint32_t *__fmode, > uint32_t *__numsrc, struct in_addr *__slist) > throw (); > > >extern int setipv4sourcefilter (int __s, struct in_addr __interface_addr, > struct in_addr __group, uint32_t __fmode, > uint32_t __numsrc, > const struct in_addr *__slist) > throw (); > > > >extern int getsourcefilter (int __s, uint32_t __interface_addr, > const struct sockaddr *__group, > socklen_t __grouplen, uint32_t *__fmode, > uint32_t *__numsrc, > struct sockaddr_storage *__slist) throw (); > > >extern int setsourcefilter (int __s, uint32_t __interface_addr, > const struct sockaddr *__group, > socklen_t __grouplen, uint32_t __fmode, > uint32_t __numsrc, > const struct sockaddr_storage *__slist) throw (); > > >} ># 23 "/usr/include/arpa/inet.h" 2 3 4 > > > > > > > >extern "C" { > > > >extern in_addr_t inet_addr (const char *__cp) throw (); > > >extern in_addr_t inet_lnaof (struct in_addr __in) throw (); > > > >extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host) > throw (); > > >extern in_addr_t inet_netof (struct in_addr __in) throw (); > > > >extern in_addr_t inet_network (const char *__cp) throw (); > > > >extern char *inet_ntoa (struct in_addr __in) throw (); > > > > >extern int inet_pton (int __af, const char *__restrict __cp, > void *__restrict __buf) throw (); > > > > >extern const char *inet_ntop (int __af, const void *__restrict __cp, > char *__restrict __buf, socklen_t __len) > throw (); > > > > > > >extern int inet_aton (const char *__cp, struct in_addr *__inp) throw (); > > > >extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) throw (); > > > > >extern char *inet_net_ntop (int __af, const void *__cp, int __bits, > char *__buf, size_t __len) throw (); > > > > >extern int inet_net_pton (int __af, const char *__cp, > void *__buf, size_t __len) throw (); > > > > >extern unsigned int inet_nsap_addr (const char *__cp, > unsigned char *__buf, int __len) throw (); > > > >extern char *inet_nsap_ntoa (int __len, const unsigned char *__cp, > char *__buf) throw (); > > >} ># 393 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 1 "/usr/include/netdb.h" 1 3 4 ># 23 "/usr/include/netdb.h" 3 4 >#define _NETDB_H 1 ># 32 "/usr/include/netdb.h" 3 4 ># 1 "/usr/include/rpc/netdb.h" 1 3 4 ># 37 "/usr/include/rpc/netdb.h" 3 4 >#define _RPC_NETDB_H 1 > > > >#define __need_size_t ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 158 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_ptrdiff_t ># 234 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_size_t ># 343 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_wchar_t ># 397 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef NULL > >#define NULL __null ># 408 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 3 4 >#undef __need_NULL > > > > >#define offsetof(TYPE,MEMBER) __builtin_offsetof (TYPE, MEMBER) ># 43 "/usr/include/rpc/netdb.h" 2 3 4 > >extern "C" { > >struct rpcent >{ > char *r_name; > char **r_aliases; > int r_number; >}; > >extern void setrpcent (int __stayopen) throw (); >extern void endrpcent (void) throw (); >extern struct rpcent *getrpcbyname (const char *__name) throw (); >extern struct rpcent *getrpcbynumber (int __number) throw (); >extern struct rpcent *getrpcent (void) throw (); > > >extern int getrpcbyname_r (const char *__name, struct rpcent *__result_buf, > char *__buffer, size_t __buflen, > struct rpcent **__result) throw (); > >extern int getrpcbynumber_r (int __number, struct rpcent *__result_buf, > char *__buffer, size_t __buflen, > struct rpcent **__result) throw (); > >extern int getrpcent_r (struct rpcent *__result_buf, char *__buffer, > size_t __buflen, struct rpcent **__result) throw (); > > >} ># 33 "/usr/include/netdb.h" 2 3 4 > > > >#define __need_sigevent_t ># 1 "/usr/include/bits/siginfo.h" 1 3 4 ># 24 "/usr/include/bits/siginfo.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 > > > >#define __WORDSIZE 64 > > > > > >#define __WORDSIZE_TIME64_COMPAT32 1 > >#define __SYSCALL_WORDSIZE 64 ># 25 "/usr/include/bits/siginfo.h" 2 3 4 ># 38 "/usr/include/netdb.h" 2 3 4 >#define __need_timespec > > > ># 1 "/usr/include/bits/netdb.h" 1 3 4 ># 26 "/usr/include/bits/netdb.h" 3 4 >struct netent >{ > char *n_name; > char **n_aliases; > int n_addrtype; > uint32_t n_net; >}; ># 43 "/usr/include/netdb.h" 2 3 4 > > >#define _PATH_HEQUIV "/etc/hosts.equiv" >#define _PATH_HOSTS "/etc/hosts" >#define _PATH_NETWORKS "/etc/networks" >#define _PATH_NSSWITCH_CONF "/etc/nsswitch.conf" >#define _PATH_PROTOCOLS "/etc/protocols" >#define _PATH_SERVICES "/etc/services" > > >extern "C" { > > > > >#define h_errno (*__h_errno_location ()) > > >extern int *__h_errno_location (void) throw () __attribute__ ((__const__)); > > > >#define HOST_NOT_FOUND 1 >#define TRY_AGAIN 2 > >#define NO_RECOVERY 3 > >#define NO_DATA 4 > > > >#define NETDB_INTERNAL -1 >#define NETDB_SUCCESS 0 >#define NO_ADDRESS NO_DATA > > > > >#define IPPORT_RESERVED 1024 > > > > >#define SCOPE_DELIMITER '%' > > > > > >extern void herror (const char *__str) throw (); > > >extern const char *hstrerror (int __err_num) throw (); > > > > >struct hostent >{ > char *h_name; > char **h_aliases; > int h_addrtype; > int h_length; > char **h_addr_list; > >#define h_addr h_addr_list[0] > >}; > > > > > > >extern void sethostent (int __stay_open); > > > > > >extern void endhostent (void); > > > > > > >extern struct hostent *gethostent (void); > > > > > > >extern struct hostent *gethostbyaddr (const void *__addr, __socklen_t __len, > int __type); > > > > > >extern struct hostent *gethostbyname (const char *__name); ># 155 "/usr/include/netdb.h" 3 4 >extern struct hostent *gethostbyname2 (const char *__name, int __af); ># 167 "/usr/include/netdb.h" 3 4 >extern int gethostent_r (struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); > >extern int gethostbyaddr_r (const void *__restrict __addr, __socklen_t __len, > int __type, > struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); > >extern int gethostbyname_r (const char *__restrict __name, > struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); > >extern int gethostbyname2_r (const char *__restrict __name, int __af, > struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); ># 198 "/usr/include/netdb.h" 3 4 >extern void setnetent (int __stay_open); > > > > > >extern void endnetent (void); > > > > > > >extern struct netent *getnetent (void); > > > > > > >extern struct netent *getnetbyaddr (uint32_t __net, int __type); > > > > > >extern struct netent *getnetbyname (const char *__name); ># 237 "/usr/include/netdb.h" 3 4 >extern int getnetent_r (struct netent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct netent **__restrict __result, > int *__restrict __h_errnop); > >extern int getnetbyaddr_r (uint32_t __net, int __type, > struct netent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct netent **__restrict __result, > int *__restrict __h_errnop); > >extern int getnetbyname_r (const char *__restrict __name, > struct netent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct netent **__restrict __result, > int *__restrict __h_errnop); > > > > >struct servent >{ > char *s_name; > char **s_aliases; > int s_port; > char *s_proto; >}; > > > > > > >extern void setservent (int __stay_open); > > > > > >extern void endservent (void); > > > > > > >extern struct servent *getservent (void); > > > > > > >extern struct servent *getservbyname (const char *__name, const char *__proto); > > > > > > >extern struct servent *getservbyport (int __port, const char *__proto); ># 308 "/usr/include/netdb.h" 3 4 >extern int getservent_r (struct servent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct servent **__restrict __result); > >extern int getservbyname_r (const char *__restrict __name, > const char *__restrict __proto, > struct servent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct servent **__restrict __result); > >extern int getservbyport_r (int __port, const char *__restrict __proto, > struct servent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct servent **__restrict __result); > > > > >struct protoent >{ > char *p_name; > char **p_aliases; > int p_proto; >}; > > > > > > >extern void setprotoent (int __stay_open); > > > > > >extern void endprotoent (void); > > > > > > >extern struct protoent *getprotoent (void); > > > > > >extern struct protoent *getprotobyname (const char *__name); > > > > > >extern struct protoent *getprotobynumber (int __proto); ># 374 "/usr/include/netdb.h" 3 4 >extern int getprotoent_r (struct protoent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct protoent **__restrict __result); > >extern int getprotobyname_r (const char *__restrict __name, > struct protoent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct protoent **__restrict __result); > >extern int getprotobynumber_r (int __proto, > struct protoent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct protoent **__restrict __result); ># 395 "/usr/include/netdb.h" 3 4 >extern int setnetgrent (const char *__netgroup); > > > > > > > >extern void endnetgrent (void); ># 412 "/usr/include/netdb.h" 3 4 >extern int getnetgrent (char **__restrict __hostp, > char **__restrict __userp, > char **__restrict __domainp); ># 423 "/usr/include/netdb.h" 3 4 >extern int innetgr (const char *__netgroup, const char *__host, > const char *__user, const char *__domain); > > > > > > > >extern int getnetgrent_r (char **__restrict __hostp, > char **__restrict __userp, > char **__restrict __domainp, > char *__restrict __buffer, size_t __buflen); ># 451 "/usr/include/netdb.h" 3 4 >extern int rcmd (char **__restrict __ahost, unsigned short int __rport, > const char *__restrict __locuser, > const char *__restrict __remuser, > const char *__restrict __cmd, int *__restrict __fd2p); ># 463 "/usr/include/netdb.h" 3 4 >extern int rcmd_af (char **__restrict __ahost, unsigned short int __rport, > const char *__restrict __locuser, > const char *__restrict __remuser, > const char *__restrict __cmd, int *__restrict __fd2p, > sa_family_t __af); ># 479 "/usr/include/netdb.h" 3 4 >extern int rexec (char **__restrict __ahost, int __rport, > const char *__restrict __name, > const char *__restrict __pass, > const char *__restrict __cmd, int *__restrict __fd2p); ># 491 "/usr/include/netdb.h" 3 4 >extern int rexec_af (char **__restrict __ahost, int __rport, > const char *__restrict __name, > const char *__restrict __pass, > const char *__restrict __cmd, int *__restrict __fd2p, > sa_family_t __af); ># 505 "/usr/include/netdb.h" 3 4 >extern int ruserok (const char *__rhost, int __suser, > const char *__remuser, const char *__locuser); ># 515 "/usr/include/netdb.h" 3 4 >extern int ruserok_af (const char *__rhost, int __suser, > const char *__remuser, const char *__locuser, > sa_family_t __af); ># 528 "/usr/include/netdb.h" 3 4 >extern int iruserok (uint32_t __raddr, int __suser, > const char *__remuser, const char *__locuser); ># 539 "/usr/include/netdb.h" 3 4 >extern int iruserok_af (const void *__raddr, int __suser, > const char *__remuser, const char *__locuser, > sa_family_t __af); ># 551 "/usr/include/netdb.h" 3 4 >extern int rresvport (int *__alport); ># 560 "/usr/include/netdb.h" 3 4 >extern int rresvport_af (int *__alport, sa_family_t __af); > > > > > > >struct addrinfo >{ > int ai_flags; > int ai_family; > int ai_socktype; > int ai_protocol; > socklen_t ai_addrlen; > struct sockaddr *ai_addr; > char *ai_canonname; > struct addrinfo *ai_next; >}; > > > >struct gaicb >{ > const char *ar_name; > const char *ar_service; > const struct addrinfo *ar_request; > struct addrinfo *ar_result; > > int __return; > int __unused[5]; >}; > > >#define GAI_WAIT 0 >#define GAI_NOWAIT 1 > > > >#define AI_PASSIVE 0x0001 >#define AI_CANONNAME 0x0002 >#define AI_NUMERICHOST 0x0004 >#define AI_V4MAPPED 0x0008 >#define AI_ALL 0x0010 >#define AI_ADDRCONFIG 0x0020 > > >#define AI_IDN 0x0040 > > >#define AI_CANONIDN 0x0080 >#define AI_IDN_ALLOW_UNASSIGNED 0x0100 > >#define AI_IDN_USE_STD3_ASCII_RULES 0x0200 > > >#define AI_NUMERICSERV 0x0400 > > >#define EAI_BADFLAGS -1 >#define EAI_NONAME -2 >#define EAI_AGAIN -3 >#define EAI_FAIL -4 >#define EAI_FAMILY -6 >#define EAI_SOCKTYPE -7 >#define EAI_SERVICE -8 >#define EAI_MEMORY -10 >#define EAI_SYSTEM -11 >#define EAI_OVERFLOW -12 > >#define EAI_NODATA -5 >#define EAI_ADDRFAMILY -9 >#define EAI_INPROGRESS -100 >#define EAI_CANCELED -101 >#define EAI_NOTCANCELED -102 >#define EAI_ALLDONE -103 >#define EAI_INTR -104 >#define EAI_IDN_ENCODE -105 > > > >#define NI_MAXHOST 1025 >#define NI_MAXSERV 32 > > >#define NI_NUMERICHOST 1 >#define NI_NUMERICSERV 2 >#define NI_NOFQDN 4 >#define NI_NAMEREQD 8 >#define NI_DGRAM 16 > >#define NI_IDN 32 >#define NI_IDN_ALLOW_UNASSIGNED 64 > >#define NI_IDN_USE_STD3_ASCII_RULES 128 ># 662 "/usr/include/netdb.h" 3 4 >extern int getaddrinfo (const char *__restrict __name, > const char *__restrict __service, > const struct addrinfo *__restrict __req, > struct addrinfo **__restrict __pai); > > >extern void freeaddrinfo (struct addrinfo *__ai) throw (); > > >extern const char *gai_strerror (int __ecode) throw (); > > > > > >extern int getnameinfo (const struct sockaddr *__restrict __sa, > socklen_t __salen, char *__restrict __host, > socklen_t __hostlen, char *__restrict __serv, > socklen_t __servlen, int __flags); ># 692 "/usr/include/netdb.h" 3 4 >extern int getaddrinfo_a (int __mode, struct gaicb *__list[], > int __ent, struct sigevent *__restrict __sig); ># 703 "/usr/include/netdb.h" 3 4 >extern int gai_suspend (const struct gaicb *const __list[], int __ent, > const struct timespec *__timeout); > > >extern int gai_error (struct gaicb *__req) throw (); > > >extern int gai_cancel (struct gaicb *__gaicbp) throw (); > > >} ># 394 "../gtest_contrib/gmock-gtest-all.cc" 2 > > > > > > > >#define GTEST_IMPLEMENTATION_ 1 ># 439 "../gtest_contrib/gmock-gtest-all.cc" >#define GTEST_SRC_GTEST_INTERNAL_INL_H_ ># 450 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "/usr/include/errno.h" 1 3 4 ># 27 "/usr/include/errno.h" 3 4 >#define _ERRNO_H 1 > > > >extern "C" { > > > ># 1 "/usr/include/bits/errno.h" 1 3 4 ># 21 "/usr/include/bits/errno.h" 3 4 >#undef EDOM >#undef EILSEQ >#undef ERANGE ># 1 "/usr/include/linux/errno.h" 1 3 4 ># 1 "/usr/include/asm/errno.h" 1 3 4 ># 1 "/usr/include/asm-generic/errno.h" 1 3 4 > >#define _ASM_GENERIC_ERRNO_H > ># 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 > >#define _ASM_GENERIC_ERRNO_BASE_H > >#define EPERM 1 >#define ENOENT 2 >#define ESRCH 3 >#define EINTR 4 >#define EIO 5 >#define ENXIO 6 >#define E2BIG 7 >#define ENOEXEC 8 >#define EBADF 9 >#define ECHILD 10 >#define EAGAIN 11 >#define ENOMEM 12 >#define EACCES 13 >#define EFAULT 14 >#define ENOTBLK 15 >#define EBUSY 16 >#define EEXIST 17 >#define EXDEV 18 >#define ENODEV 19 >#define ENOTDIR 20 >#define EISDIR 21 >#define EINVAL 22 >#define ENFILE 23 >#define EMFILE 24 >#define ENOTTY 25 >#define ETXTBSY 26 >#define EFBIG 27 >#define ENOSPC 28 >#define ESPIPE 29 >#define EROFS 30 >#define EMLINK 31 >#define EPIPE 32 >#define EDOM 33 >#define ERANGE 34 ># 5 "/usr/include/asm-generic/errno.h" 2 3 4 > >#define EDEADLK 35 >#define ENAMETOOLONG 36 >#define ENOLCK 37 >#define ENOSYS 38 >#define ENOTEMPTY 39 >#define ELOOP 40 >#define EWOULDBLOCK EAGAIN >#define ENOMSG 42 >#define EIDRM 43 >#define ECHRNG 44 >#define EL2NSYNC 45 >#define EL3HLT 46 >#define EL3RST 47 >#define ELNRNG 48 >#define EUNATCH 49 >#define ENOCSI 50 >#define EL2HLT 51 >#define EBADE 52 >#define EBADR 53 >#define EXFULL 54 >#define ENOANO 55 >#define EBADRQC 56 >#define EBADSLT 57 > >#define EDEADLOCK EDEADLK > >#define EBFONT 59 >#define ENOSTR 60 >#define ENODATA 61 >#define ETIME 62 >#define ENOSR 63 >#define ENONET 64 >#define ENOPKG 65 >#define EREMOTE 66 >#define ENOLINK 67 >#define EADV 68 >#define ESRMNT 69 >#define ECOMM 70 >#define EPROTO 71 >#define EMULTIHOP 72 >#define EDOTDOT 73 >#define EBADMSG 74 >#define EOVERFLOW 75 >#define ENOTUNIQ 76 >#define EBADFD 77 >#define EREMCHG 78 >#define ELIBACC 79 >#define ELIBBAD 80 >#define ELIBSCN 81 >#define ELIBMAX 82 >#define ELIBEXEC 83 >#define EILSEQ 84 >#define ERESTART 85 >#define ESTRPIPE 86 >#define EUSERS 87 >#define ENOTSOCK 88 >#define EDESTADDRREQ 89 >#define EMSGSIZE 90 >#define EPROTOTYPE 91 >#define ENOPROTOOPT 92 >#define EPROTONOSUPPORT 93 >#define ESOCKTNOSUPPORT 94 >#define EOPNOTSUPP 95 >#define EPFNOSUPPORT 96 >#define EAFNOSUPPORT 97 >#define EADDRINUSE 98 >#define EADDRNOTAVAIL 99 >#define ENETDOWN 100 >#define ENETUNREACH 101 >#define ENETRESET 102 >#define ECONNABORTED 103 >#define ECONNRESET 104 >#define ENOBUFS 105 >#define EISCONN 106 >#define ENOTCONN 107 >#define ESHUTDOWN 108 >#define ETOOMANYREFS 109 >#define ETIMEDOUT 110 >#define ECONNREFUSED 111 >#define EHOSTDOWN 112 >#define EHOSTUNREACH 113 >#define EALREADY 114 >#define EINPROGRESS 115 >#define ESTALE 116 >#define EUCLEAN 117 >#define ENOTNAM 118 >#define ENAVAIL 119 >#define EISNAM 120 >#define EREMOTEIO 121 >#define EDQUOT 122 > >#define ENOMEDIUM 123 >#define EMEDIUMTYPE 124 >#define ECANCELED 125 >#define ENOKEY 126 >#define EKEYEXPIRED 127 >#define EKEYREVOKED 128 >#define EKEYREJECTED 129 > > >#define EOWNERDEAD 130 >#define ENOTRECOVERABLE 131 > >#define ERFKILL 132 > >#define EHWPOISON 133 ># 1 "/usr/include/asm/errno.h" 2 3 4 ># 1 "/usr/include/linux/errno.h" 2 3 4 ># 25 "/usr/include/bits/errno.h" 2 3 4 > > >#define ENOTSUP EOPNOTSUPP ># 50 "/usr/include/bits/errno.h" 3 4 >extern int *__errno_location (void) throw () __attribute__ ((__const__)); > > > >#define errno (*__errno_location ()) ># 36 "/usr/include/errno.h" 2 3 4 >#undef __need_Emath ># 54 "/usr/include/errno.h" 3 4 >extern char *program_invocation_name, *program_invocation_short_name; > > > >} ># 68 "/usr/include/errno.h" 3 4 >typedef int error_t; >#define __error_t_defined 1 > >#undef __need_error_t ># 451 "../gtest_contrib/gmock-gtest-all.cc" 2 > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/stddef.h" 1 3 4 ># 453 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 466 "../gtest_contrib/gmock-gtest-all.cc" >namespace testing { > > > > > > > extern bool FLAGS_gtest_death_test_use_fork; > >namespace internal { > > > > extern const TypeId kTestTypeIdInGoogleTest; > > >const char kAlsoRunDisabledTestsFlag[] = "also_run_disabled_tests"; >const char kBreakOnFailureFlag[] = "break_on_failure"; >const char kCatchExceptionsFlag[] = "catch_exceptions"; >const char kColorFlag[] = "color"; >const char kFilterFlag[] = "filter"; >const char kListTestsFlag[] = "list_tests"; >const char kOutputFlag[] = "output"; >const char kPrintTimeFlag[] = "print_time"; >const char kRandomSeedFlag[] = "random_seed"; >const char kRepeatFlag[] = "repeat"; >const char kShuffleFlag[] = "shuffle"; >const char kStackTraceDepthFlag[] = "stack_trace_depth"; >const char kStreamResultToFlag[] = "stream_result_to"; >const char kThrowOnFailureFlag[] = "throw_on_failure"; > > >const int kMaxRandomSeed = 99999; > > > > extern bool g_help_flag; > > > TimeInMillis GetTimeInMillis(); > > > bool ShouldUseColor(bool stdout_is_tty); > > > std::string FormatTimeInMillisAsSeconds(TimeInMillis ms); > > > > > > bool ParseInt32Flag( > const char* str, const char* flag, Int32* value); > > > >inline int GetRandomSeedFromFlag(Int32 random_seed_flag) { > const unsigned int raw_seed = (random_seed_flag == 0) ? > static_cast<unsigned int>(GetTimeInMillis()) : > static_cast<unsigned int>(random_seed_flag); > > > > const int normalized_seed = > static_cast<int>((raw_seed - 1U) % > static_cast<unsigned int>(kMaxRandomSeed)) + 1; > return normalized_seed; >} > > > > >inline int GetNextRandomSeed(int seed) { > switch (0) case 0: default: if (::testing::internal::IsTrue(1 <= seed && seed <= kMaxRandomSeed)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 539).GetStream() << "Condition " "1 <= seed && seed <= kMaxRandomSeed" " failed. " > << "Invalid random seed " << seed << " - must be in [1, " > << kMaxRandomSeed << "]."; > const int next_seed = seed + 1; > return (next_seed > kMaxRandomSeed) ? 1 : next_seed; >} > > > >class GTestFlagSaver { > public: > > GTestFlagSaver() { > also_run_disabled_tests_ = FLAGS_gtest_also_run_disabled_tests; > break_on_failure_ = FLAGS_gtest_break_on_failure; > catch_exceptions_ = FLAGS_gtest_catch_exceptions; > color_ = FLAGS_gtest_color; > death_test_style_ = FLAGS_gtest_death_test_style; > death_test_use_fork_ = FLAGS_gtest_death_test_use_fork; > filter_ = FLAGS_gtest_filter; > internal_run_death_test_ = FLAGS_gtest_internal_run_death_test; > list_tests_ = FLAGS_gtest_list_tests; > output_ = FLAGS_gtest_output; > print_time_ = FLAGS_gtest_print_time; > random_seed_ = FLAGS_gtest_random_seed; > repeat_ = FLAGS_gtest_repeat; > shuffle_ = FLAGS_gtest_shuffle; > stack_trace_depth_ = FLAGS_gtest_stack_trace_depth; > stream_result_to_ = FLAGS_gtest_stream_result_to; > throw_on_failure_ = FLAGS_gtest_throw_on_failure; > } > > > ~GTestFlagSaver() { > FLAGS_gtest_also_run_disabled_tests = also_run_disabled_tests_; > FLAGS_gtest_break_on_failure = break_on_failure_; > FLAGS_gtest_catch_exceptions = catch_exceptions_; > FLAGS_gtest_color = color_; > FLAGS_gtest_death_test_style = death_test_style_; > FLAGS_gtest_death_test_use_fork = death_test_use_fork_; > FLAGS_gtest_filter = filter_; > FLAGS_gtest_internal_run_death_test = internal_run_death_test_; > FLAGS_gtest_list_tests = list_tests_; > FLAGS_gtest_output = output_; > FLAGS_gtest_print_time = print_time_; > FLAGS_gtest_random_seed = random_seed_; > FLAGS_gtest_repeat = repeat_; > FLAGS_gtest_shuffle = shuffle_; > FLAGS_gtest_stack_trace_depth = stack_trace_depth_; > FLAGS_gtest_stream_result_to = stream_result_to_; > FLAGS_gtest_throw_on_failure = throw_on_failure_; > } > private: > > bool also_run_disabled_tests_; > bool break_on_failure_; > bool catch_exceptions_; > String color_; > String death_test_style_; > bool death_test_use_fork_; > String filter_; > String internal_run_death_test_; > bool list_tests_; > String output_; > bool print_time_; > bool pretty_; > internal::Int32 random_seed_; > internal::Int32 repeat_; > bool shuffle_; > internal::Int32 stack_trace_depth_; > String stream_result_to_; > bool throw_on_failure_; >} __attribute__ ((unused)); ># 621 "../gtest_contrib/gmock-gtest-all.cc" > char* CodePointToUtf8(UInt32 code_point, char* str); ># 636 "../gtest_contrib/gmock-gtest-all.cc" > String WideStringToUtf8(const wchar_t* str, int num_chars); > > > > > >void WriteToShardStatusFileIfNeeded(); > > > > > > > > bool ShouldShard(const char* total_shards_str, > const char* shard_index_str, > bool in_subprocess_for_death_test); > > > > > Int32 Int32FromEnvOrDie(const char* env_var, Int32 default_val); > > > > > > bool ShouldRunTestOnShard( > int total_shards, int shard_index, int test_id); > > > > > >template <class Container, typename Predicate> >inline int CountIf(const Container& c, Predicate predicate) { > > > int count = 0; > for (typename Container::const_iterator it = c.begin(); it != c.end(); ++it) { > if (predicate(*it)) > ++count; > } > return count; >} > > >template <class Container, typename Functor> >void ForEach(const Container& c, Functor functor) { > std::for_each(c.begin(), c.end(), functor); >} > > > >template <typename E> >inline E GetElementOr(const std::vector<E>& v, int i, E default_value) { > return (i < 0 || i >= static_cast<int>(v.size())) ? default_value : v[i]; >} > > > > > >template <typename E> >void ShuffleRange(internal::Random* random, int begin, int end, > std::vector<E>* v) { > const int size = static_cast<int>(v->size()); > switch (0) case 0: default: if (::testing::internal::IsTrue(0 <= begin && begin <= size)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 703).GetStream() << "Condition " "0 <= begin && begin <= size" " failed. " > << "Invalid shuffle range start " << begin << ": must be in range [0, " > << size << "]."; > switch (0) case 0: default: if (::testing::internal::IsTrue(begin <= end && end <= size)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 706).GetStream() << "Condition " "begin <= end && end <= size" " failed. " > << "Invalid shuffle range finish " << end << ": must be in range [" > << begin << ", " << size << "]."; > > > > for (int range_width = end - begin; range_width >= 2; range_width--) { > const int last_in_range = begin + range_width - 1; > const int selected = begin + random->Generate(range_width); > std::swap((*v)[selected], (*v)[last_in_range]); > } >} > > >template <typename E> >inline void Shuffle(internal::Random* random, std::vector<E>* v) { > ShuffleRange(random, 0, static_cast<int>(v->size()), v); >} > > > >template <typename T> >static void Delete(T* x) { > delete x; >} > > > > >class TestPropertyKeyIs { > public: > > > > explicit TestPropertyKeyIs(const char* key) > : key_(key) {} > > > bool operator()(const TestProperty& test_property) const { > return String(test_property.key()).Compare(key_) == 0; > } > > private: > String key_; >}; ># 762 "../gtest_contrib/gmock-gtest-all.cc" >class UnitTestOptions { > public: > > > > static String GetOutputFormat(); > > > > > static String GetAbsolutePathToOutputFile(); ># 781 "../gtest_contrib/gmock-gtest-all.cc" > static bool PatternMatchesString(const char *pattern, const char *str); > > > > static bool FilterMatchesTest(const String &test_case_name, > const String &test_name); ># 799 "../gtest_contrib/gmock-gtest-all.cc" > static bool MatchesFilter(const String& name, const char* filter); >}; > > > > FilePath GetCurrentExecutableName(); > > >class OsStackTraceGetterInterface { > public: > OsStackTraceGetterInterface() {} > virtual ~OsStackTraceGetterInterface() {} > > > > > > > > virtual String CurrentStackTrace(int max_depth, int skip_count) = 0; > > > > > virtual void UponLeavingGTest() = 0; > > private: > OsStackTraceGetterInterface(OsStackTraceGetterInterface const &); void operator=(OsStackTraceGetterInterface const &); >}; > > >class OsStackTraceGetter : public OsStackTraceGetterInterface { > public: > OsStackTraceGetter() : caller_frame_(__null) {} > virtual String CurrentStackTrace(int max_depth, int skip_count); > virtual void UponLeavingGTest(); > > > > static const char* const kElidedFramesMarker; > > private: > Mutex mutex_; > > > > > > void* caller_frame_; > > OsStackTraceGetter(OsStackTraceGetter const &); void operator=(OsStackTraceGetter const &); >}; > > >struct TraceInfo { > const char* file; > int line; > String message; >}; > > > >class DefaultGlobalTestPartResultReporter > : public TestPartResultReporterInterface { > public: > explicit DefaultGlobalTestPartResultReporter(UnitTestImpl* unit_test); > > > virtual void ReportTestPartResult(const TestPartResult& result); > > private: > UnitTestImpl* const unit_test_; > > DefaultGlobalTestPartResultReporter(DefaultGlobalTestPartResultReporter const &); void operator=(DefaultGlobalTestPartResultReporter const &); >}; > > > >class DefaultPerThreadTestPartResultReporter > : public TestPartResultReporterInterface { > public: > explicit DefaultPerThreadTestPartResultReporter(UnitTestImpl* unit_test); > > > virtual void ReportTestPartResult(const TestPartResult& result); > > private: > UnitTestImpl* const unit_test_; > > DefaultPerThreadTestPartResultReporter(DefaultPerThreadTestPartResultReporter const &); void operator=(DefaultPerThreadTestPartResultReporter const &); >}; > > > > > >class UnitTestImpl { > public: > explicit UnitTestImpl(UnitTest* parent); > virtual ~UnitTestImpl(); ># 908 "../gtest_contrib/gmock-gtest-all.cc" > TestPartResultReporterInterface* GetGlobalTestPartResultReporter(); > > > void SetGlobalTestPartResultReporter( > TestPartResultReporterInterface* reporter); > > > TestPartResultReporterInterface* GetTestPartResultReporterForCurrentThread(); > > > void SetTestPartResultReporterForCurrentThread( > TestPartResultReporterInterface* reporter); > > > int successful_test_case_count() const; > > > int failed_test_case_count() const; > > > int total_test_case_count() const; > > > > int test_case_to_run_count() const; > > > int successful_test_count() const; > > > int failed_test_count() const; > > > int disabled_test_count() const; > > > int total_test_count() const; > > > int test_to_run_count() const; > > > TimeInMillis elapsed_time() const { return elapsed_time_; } > > > bool Passed() const { return !Failed(); } > > > > bool Failed() const { > return failed_test_case_count() > 0 || ad_hoc_test_result()->Failed(); > } > > > > const TestCase* GetTestCase(int i) const { > const int index = GetElementOr(test_case_indices_, i, -1); > return index < 0 ? __null : test_cases_[i]; > } > > > > TestCase* GetMutableTestCase(int i) { > const int index = GetElementOr(test_case_indices_, i, -1); > return index < 0 ? __null : test_cases_[index]; > } > > > TestEventListeners* listeners() { return &listeners_; } > > > > TestResult* current_test_result(); > > > const TestResult* ad_hoc_test_result() const { return &ad_hoc_test_result_; } > > > > > > > void set_os_stack_trace_getter(OsStackTraceGetterInterface* getter); > > > > > OsStackTraceGetterInterface* os_stack_trace_getter(); ># 1007 "../gtest_contrib/gmock-gtest-all.cc" > String CurrentOsStackTraceExceptTop(int skip_count); ># 1019 "../gtest_contrib/gmock-gtest-all.cc" > TestCase* GetTestCase(const char* test_case_name, > const char* type_param, > Test::SetUpTestCaseFunc set_up_tc, > Test::TearDownTestCaseFunc tear_down_tc); ># 1031 "../gtest_contrib/gmock-gtest-all.cc" > void AddTestInfo(Test::SetUpTestCaseFunc set_up_tc, > Test::TearDownTestCaseFunc tear_down_tc, > TestInfo* test_info) { > > > > > > > > if (original_working_dir_.IsEmpty()) { > original_working_dir_.Set(FilePath::GetCurrentDir()); > switch (0) case 0: default: if (::testing::internal::IsTrue(!original_working_dir_.IsEmpty())) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 1043).GetStream() << "Condition " "!original_working_dir_.IsEmpty()" " failed. " > << "Failed to get the current working directory."; > } > > GetTestCase(test_info->test_case_name(), > test_info->type_param(), > set_up_tc, > tear_down_tc)->AddTestInfo(test_info); > } > > > > > internal::ParameterizedTestCaseRegistry& parameterized_test_registry() { > return parameterized_test_registry_; > } > > > > void set_current_test_case(TestCase* a_current_test_case) { > current_test_case_ = a_current_test_case; > } > > > > > void set_current_test_info(TestInfo* a_current_test_info) { > current_test_info_ = a_current_test_info; > } > > > > > > > > void RegisterParameterizedTests(); > > > > > > bool RunAllTests(); > > > void ClearNonAdHocTestResult() { > ForEach(test_cases_, TestCase::ClearTestCaseResult); > } > > > void ClearAdHocTestResult() { > ad_hoc_test_result_.Clear(); > } > > enum ReactionToSharding { > HONOR_SHARDING_PROTOCOL, > IGNORE_SHARDING_PROTOCOL > }; > > > > > > > > int FilterTests(ReactionToSharding shard_tests); > > > void ListTestsMatchingFilter(); > > const TestCase* current_test_case() const { return current_test_case_; } > TestInfo* current_test_info() { return current_test_info_; } > const TestInfo* current_test_info() const { return current_test_info_; } > > > > std::vector<Environment*>& environments() { return environments_; } > > > std::vector<TraceInfo>& gtest_trace_stack() { > return *(gtest_trace_stack_.pointer()); > } > const std::vector<TraceInfo>& gtest_trace_stack() const { > return gtest_trace_stack_.get(); > } > > > void InitDeathTestSubprocessControlInfo() { > internal_run_death_test_flag_.reset(ParseInternalRunDeathTestFlag()); > } > > > > > const InternalRunDeathTestFlag* internal_run_death_test_flag() const { > return internal_run_death_test_flag_.get(); > } > > > internal::DeathTestFactory* death_test_factory() { > return death_test_factory_.get(); > } > > void SuppressTestEventsIfInSubprocess(); > > friend class ReplaceDeathTestFactory; > > > > > void ConfigureXmlOutput(); > > > > > void ConfigureStreamingOutput(); > > > > > > > > void PostFlagParsingInit(); > > > int random_seed() const { return random_seed_; } > > > internal::Random* random() { return &random_; } > > > > void ShuffleTests(); > > > void UnshuffleTests(); > > > > bool catch_exceptions() const { return catch_exceptions_; } > > private: > friend class ::testing::UnitTest; > > > > void set_catch_exceptions(bool value) { catch_exceptions_ = value; } > > > UnitTest* const parent_; > > > > internal::FilePath original_working_dir_; > > > DefaultGlobalTestPartResultReporter default_global_test_part_result_reporter_; > DefaultPerThreadTestPartResultReporter > default_per_thread_test_part_result_reporter_; > > > TestPartResultReporterInterface* global_test_part_result_repoter_; > > > internal::Mutex global_test_part_result_reporter_mutex_; > > > internal::ThreadLocal<TestPartResultReporterInterface*> > per_thread_test_part_result_reporter_; > > > > std::vector<Environment*> environments_; > > > > std::vector<TestCase*> test_cases_; > > > > > > std::vector<int> test_case_indices_; > > > > > internal::ParameterizedTestCaseRegistry parameterized_test_registry_; > > > bool parameterized_tests_registered_; > > > > int last_death_test_case_; > > > > > > TestCase* current_test_case_; > > > > > > TestInfo* current_test_info_; ># 1260 "../gtest_contrib/gmock-gtest-all.cc" > TestResult ad_hoc_test_result_; > > > > TestEventListeners listeners_; > > > > > > OsStackTraceGetterInterface* os_stack_trace_getter_; > > > bool post_flag_parse_init_performed_; > > > int random_seed_; > > > internal::Random random_; > > > TimeInMillis elapsed_time_; > > > > > internal::scoped_ptr<InternalRunDeathTestFlag> internal_run_death_test_flag_; > internal::scoped_ptr<internal::DeathTestFactory> death_test_factory_; > > > > internal::ThreadLocal<std::vector<TraceInfo> > gtest_trace_stack_; > > > > bool catch_exceptions_; > > UnitTestImpl(UnitTestImpl const &); void operator=(UnitTestImpl const &); >}; > > > >inline UnitTestImpl* GetUnitTestImpl() { > return UnitTest::GetInstance()->impl(); >} ># 1329 "../gtest_contrib/gmock-gtest-all.cc" > void ParseGoogleTestFlagsOnly(int* argc, char** argv); > void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv); > > > > > > String GetLastErrnoDescription(); ># 1368 "../gtest_contrib/gmock-gtest-all.cc" >template <typename Integer> >bool ParseNaturalNumber(const ::std::string& str, Integer* number) { > > > > if (str.empty() || !IsDigit(str[0])) { > return false; > } > (*__errno_location ()) = 0; > > char* end; ># 1390 "../gtest_contrib/gmock-gtest-all.cc" > typedef unsigned long long BiggestConvertible; > const BiggestConvertible parsed = strtoull(str.c_str(), &end, 10); > > > > const bool parse_success = *end == '\0' && (*__errno_location ()) == 0; > > > > switch (0) case 0: default: if (::testing::internal::IsTrue(sizeof(Integer) <= sizeof(parsed))) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 1399).GetStream() << "Condition " "sizeof(Integer) <= sizeof(parsed)" " failed. "; > > const Integer result = static_cast<Integer>(parsed); > if (parse_success && static_cast<BiggestConvertible>(result) == parsed) { > *number = result; > return true; > } > return false; >} ># 1416 "../gtest_contrib/gmock-gtest-all.cc" >class TestResultAccessor { > public: > static void RecordProperty(TestResult* test_result, > const TestProperty& property) { > test_result->RecordProperty(property); > } > > static void ClearTestPartResults(TestResult* test_result) { > test_result->ClearTestPartResults(); > } > > static const std::vector<testing::TestPartResult>& test_part_results( > const TestResult& test_result) { > return test_result.test_part_results(); > } >}; > >} >} > > >#undef GTEST_IMPLEMENTATION_ > > > > > >namespace testing { > >using internal::CountIf; >using internal::ForEach; >using internal::GetElementOr; >using internal::Shuffle; > > > > > >static const char kDisableTestFilter[] = "DISABLED_*:*/DISABLED_*"; > > > > >static const char kDeathTestCaseFilter[] = "*DeathTest:*DeathTest/*"; > > >static const char kUniversalFilter[] = "*"; > > >static const char kDefaultOutputFile[] = "test_detail.xml"; > > >static const char kTestShardIndex[] = "GTEST_SHARD_INDEX"; > >static const char kTestTotalShards[] = "GTEST_TOTAL_SHARDS"; > >static const char kTestShardStatusFile[] = "GTEST_SHARD_STATUS_FILE"; > >namespace internal { > > > >const char kStackTraceMarker[] = "\nStack trace:\n"; > > > >bool g_help_flag = false; > >} > > bool FLAGS_gtest_also_run_disabled_tests = (internal::BoolFromGTestEnv("also_run_disabled_tests", false)) > > > ; > > bool FLAGS_gtest_break_on_failure = (internal::BoolFromGTestEnv("break_on_failure", false)) > > > ; > > bool FLAGS_gtest_catch_exceptions = (internal::BoolFromGTestEnv("catch_exceptions", true)) > > > > ; > > ::testing::internal::String FLAGS_gtest_color = (internal::StringFromGTestEnv("color", "auto")) > > > > > > ; > > ::testing::internal::String FLAGS_gtest_filter = (internal::StringFromGTestEnv("filter", kUniversalFilter)) > > > > > > > ; > > bool FLAGS_gtest_list_tests = (false) > ; > > ::testing::internal::String FLAGS_gtest_output = (internal::StringFromGTestEnv("output", "")) ># 1532 "../gtest_contrib/gmock-gtest-all.cc" > ; > > bool FLAGS_gtest_print_time = (internal::BoolFromGTestEnv("print_time", true)) > > > > ; > > ::testing::internal::Int32 FLAGS_gtest_random_seed = (internal::Int32FromGTestEnv("random_seed", 0)) > > > > ; > > ::testing::internal::Int32 FLAGS_gtest_repeat = (internal::Int32FromGTestEnv("repeat", 1)) > > > > ; > > bool FLAGS_gtest_show_internal_stack_frames = (false) > > > ; > > bool FLAGS_gtest_shuffle = (internal::BoolFromGTestEnv("shuffle", false)) > > > > ; > > ::testing::internal::Int32 FLAGS_gtest_stack_trace_depth = (internal::Int32FromGTestEnv("stack_trace_depth", kMaxStackTraceDepth)) > > > > ; > > ::testing::internal::String FLAGS_gtest_stream_result_to = (internal::StringFromGTestEnv("stream_result_to", "")) > > > > > ; > > bool FLAGS_gtest_throw_on_failure = (internal::BoolFromGTestEnv("throw_on_failure", false)) > > > > > ; > >namespace internal { > > > > >UInt32 Random::Generate(UInt32 range) { > > state_ = (1103515245U*state_ + 12345U) % kMaxRange; > > switch (0) case 0: default: if (::testing::internal::IsTrue(range > 0)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 1592).GetStream() << "Condition " "range > 0" " failed. " > << "Cannot generate a number in the range [0, 0)."; > switch (0) case 0: default: if (::testing::internal::IsTrue(range <= kMaxRange)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 1594).GetStream() << "Condition " "range <= kMaxRange" " failed. " > << "Generation of a number in [0, " << range << ") was requested, " > << "but this can only generate numbers in [0, " << kMaxRange << ")."; > > > > > return state_ % range; >} ># 1612 "../gtest_contrib/gmock-gtest-all.cc" >int g_init_gtest_count = 0; >static bool GTestIsInitialized() { return g_init_gtest_count != 0; } > > > > >static int SumOverTestCaseList(const std::vector<TestCase*>& case_list, > int (TestCase::*method)() const) { > int sum = 0; > for (size_t i = 0; i < case_list.size(); i++) { > sum += (case_list[i]->*method)(); > } > return sum; >} > > >static bool TestCasePassed(const TestCase* test_case) { > return test_case->should_run() && test_case->Passed(); >} > > >static bool TestCaseFailed(const TestCase* test_case) { > return test_case->should_run() && test_case->Failed(); >} > > > >static bool ShouldRunTestCase(const TestCase* test_case) { > return test_case->should_run(); >} > > >AssertHelper::AssertHelper(TestPartResult::Type type, > const char* file, > int line, > const char* message) > : data_(new AssertHelperData(type, file, line, message)) { >} > >AssertHelper::~AssertHelper() { > delete data_; >} > > >void AssertHelper::operator=(const Message& message) const { > UnitTest::GetInstance()-> > AddTestPartResult(data_->type, data_->file, data_->line, > AppendUserMessage(data_->message, message), > UnitTest::GetInstance()->impl() > ->CurrentOsStackTraceExceptTop(1) > > ); >} > > >::testing::internal::MutexBase g_linked_ptr_mutex = { { { 0, 0, 0, 0, 0, 0, 0, { 0, 0 } } }, 0 }; > > >String g_executable_path; > > > >FilePath GetCurrentExecutableName() { > FilePath result; > > > > > result.Set(FilePath(g_executable_path)); > > > return result.RemoveDirectoryName(); >} > > > > >String UnitTestOptions::GetOutputFormat() { > const char* const gtest_output_flag = FLAGS_gtest_output.c_str(); > if (gtest_output_flag == __null) return String(""); > > const char* const colon = strchr(gtest_output_flag, ':'); > return (colon == __null) ? > String(gtest_output_flag) : > String(gtest_output_flag, colon - gtest_output_flag); >} > > > >String UnitTestOptions::GetAbsolutePathToOutputFile() { > const char* const gtest_output_flag = FLAGS_gtest_output.c_str(); > if (gtest_output_flag == __null) > return String(""); > > const char* const colon = strchr(gtest_output_flag, ':'); > if (colon == __null) > return String(internal::FilePath::ConcatPaths( > internal::FilePath( > UnitTest::GetInstance()->original_working_dir()), > internal::FilePath(kDefaultOutputFile)).ToString() ); > > internal::FilePath output_name(colon + 1); > if (!output_name.IsAbsolutePath()) > > > > > output_name = internal::FilePath::ConcatPaths( > internal::FilePath(UnitTest::GetInstance()->original_working_dir()), > internal::FilePath(colon + 1)); > > if (!output_name.IsDirectory()) > return output_name.ToString(); > > internal::FilePath result(internal::FilePath::GenerateUniqueFileName( > output_name, internal::GetCurrentExecutableName(), > GetOutputFormat().c_str())); > return result.ToString(); >} > > > > > > >bool UnitTestOptions::PatternMatchesString(const char *pattern, > const char *str) { > switch (*pattern) { > case '\0': > case ':': > return *str == '\0'; > case '?': > return *str != '\0' && PatternMatchesString(pattern + 1, str + 1); > case '*': > return (*str != '\0' && PatternMatchesString(pattern, str + 1)) || > PatternMatchesString(pattern + 1, str); > default: > return *pattern == *str && > PatternMatchesString(pattern + 1, str + 1); > } >} > >bool UnitTestOptions::MatchesFilter(const String& name, const char* filter) { > const char *cur_pattern = filter; > for (;;) { > if (PatternMatchesString(cur_pattern, name.c_str())) { > return true; > } > > > cur_pattern = strchr(cur_pattern, ':'); > > > if (cur_pattern == __null) { > return false; > } > > > cur_pattern++; > } >} > > > > > >bool UnitTestOptions::FilterMatchesTest(const String &test_case_name, > const String &test_name) { > const String& full_name = String::Format("%s.%s", > test_case_name.c_str(), > test_name.c_str()); > > > > const char* const p = FLAGS_gtest_filter.c_str(); > const char* const dash = strchr(p, '-'); > String positive; > String negative; > if (dash == __null) { > positive = FLAGS_gtest_filter.c_str(); > negative = String(""); > } else { > positive = String(p, dash - p); > negative = String(dash+1); > if (positive.empty()) { > > positive = kUniversalFilter; > } > } > > > > return (MatchesFilter(full_name, positive.c_str()) && > !MatchesFilter(full_name, negative.c_str())); >} ># 1836 "../gtest_contrib/gmock-gtest-all.cc" >} > > > > >ScopedFakeTestPartResultReporter::ScopedFakeTestPartResultReporter( > TestPartResultArray* result) > : intercept_mode_(INTERCEPT_ONLY_CURRENT_THREAD), > result_(result) { > Init(); >} > > > > >ScopedFakeTestPartResultReporter::ScopedFakeTestPartResultReporter( > InterceptMode intercept_mode, TestPartResultArray* result) > : intercept_mode_(intercept_mode), > result_(result) { > Init(); >} > >void ScopedFakeTestPartResultReporter::Init() { > internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); > if (intercept_mode_ == INTERCEPT_ALL_THREADS) { > old_reporter_ = impl->GetGlobalTestPartResultReporter(); > impl->SetGlobalTestPartResultReporter(this); > } else { > old_reporter_ = impl->GetTestPartResultReporterForCurrentThread(); > impl->SetTestPartResultReporterForCurrentThread(this); > } >} > > > >ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter() { > internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); > if (intercept_mode_ == INTERCEPT_ALL_THREADS) { > impl->SetGlobalTestPartResultReporter(old_reporter_); > } else { > impl->SetTestPartResultReporterForCurrentThread(old_reporter_); > } >} > > > >void ScopedFakeTestPartResultReporter::ReportTestPartResult( > const TestPartResult& result) { > result_->Append(result); >} > >namespace internal { ># 1898 "../gtest_contrib/gmock-gtest-all.cc" >TypeId GetTestTypeId() { > return GetTypeId<Test>(); >} > > > >extern const TypeId kTestTypeIdInGoogleTest = GetTestTypeId(); > > > > >AssertionResult HasOneFailure(const char* , > const char* , > const char* , > const TestPartResultArray& results, > TestPartResult::Type type, > const string& substr) { > const String expected(type == TestPartResult::kFatalFailure ? > "1 fatal failure" : > "1 non-fatal failure"); > Message msg; > if (results.size() != 1) { > msg << "Expected: " << expected << "\n" > << " Actual: " << results.size() << " failures"; > for (int i = 0; i < results.size(); i++) { > msg << "\n" << results.GetTestPartResult(i); > } > return AssertionFailure() << msg; > } > > const TestPartResult& r = results.GetTestPartResult(0); > if (r.type() != type) { > return AssertionFailure() << "Expected: " << expected << "\n" > << " Actual:\n" > << r; > } > > if (strstr(r.message(), substr.c_str()) == __null) { > return AssertionFailure() << "Expected: " << expected << " containing \"" > << substr << "\"\n" > << " Actual:\n" > << r; > } > > return AssertionSuccess(); >} > > > > >SingleFailureChecker:: SingleFailureChecker( > const TestPartResultArray* results, > TestPartResult::Type type, > const string& substr) > : results_(results), > type_(type), > substr_(substr) {} > > > > > >SingleFailureChecker::~SingleFailureChecker() { > switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (HasOneFailure("*results_", "type_", "substr_", *results_, type_, substr_))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "../gtest_contrib/gmock-gtest-all.cc", 1961, gtest_ar.failure_message()) = ::testing::Message(); >} > >DefaultGlobalTestPartResultReporter::DefaultGlobalTestPartResultReporter( > UnitTestImpl* unit_test) : unit_test_(unit_test) {} > >void DefaultGlobalTestPartResultReporter::ReportTestPartResult( > const TestPartResult& result) { > unit_test_->current_test_result()->AddTestPartResult(result); > unit_test_->listeners()->repeater()->OnTestPartResult(result); >} > >DefaultPerThreadTestPartResultReporter::DefaultPerThreadTestPartResultReporter( > UnitTestImpl* unit_test) : unit_test_(unit_test) {} > >void DefaultPerThreadTestPartResultReporter::ReportTestPartResult( > const TestPartResult& result) { > unit_test_->GetGlobalTestPartResultReporter()->ReportTestPartResult(result); >} > > >TestPartResultReporterInterface* >UnitTestImpl::GetGlobalTestPartResultReporter() { > internal::MutexLock lock(&global_test_part_result_reporter_mutex_); > return global_test_part_result_repoter_; >} > > >void UnitTestImpl::SetGlobalTestPartResultReporter( > TestPartResultReporterInterface* reporter) { > internal::MutexLock lock(&global_test_part_result_reporter_mutex_); > global_test_part_result_repoter_ = reporter; >} > > >TestPartResultReporterInterface* >UnitTestImpl::GetTestPartResultReporterForCurrentThread() { > return per_thread_test_part_result_reporter_.get(); >} > > >void UnitTestImpl::SetTestPartResultReporterForCurrentThread( > TestPartResultReporterInterface* reporter) { > per_thread_test_part_result_reporter_.set(reporter); >} > > >int UnitTestImpl::successful_test_case_count() const { > return CountIf(test_cases_, TestCasePassed); >} > > >int UnitTestImpl::failed_test_case_count() const { > return CountIf(test_cases_, TestCaseFailed); >} > > >int UnitTestImpl::total_test_case_count() const { > return static_cast<int>(test_cases_.size()); >} > > > >int UnitTestImpl::test_case_to_run_count() const { > return CountIf(test_cases_, ShouldRunTestCase); >} > > >int UnitTestImpl::successful_test_count() const { > return SumOverTestCaseList(test_cases_, &TestCase::successful_test_count); >} > > >int UnitTestImpl::failed_test_count() const { > return SumOverTestCaseList(test_cases_, &TestCase::failed_test_count); >} > > >int UnitTestImpl::disabled_test_count() const { > return SumOverTestCaseList(test_cases_, &TestCase::disabled_test_count); >} > > >int UnitTestImpl::total_test_count() const { > return SumOverTestCaseList(test_cases_, &TestCase::total_test_count); >} > > >int UnitTestImpl::test_to_run_count() const { > return SumOverTestCaseList(test_cases_, &TestCase::test_to_run_count); >} ># 2063 "../gtest_contrib/gmock-gtest-all.cc" >String UnitTestImpl::CurrentOsStackTraceExceptTop(int skip_count) { > (void)skip_count; > return String(""); >} > > >TimeInMillis GetTimeInMillis() { ># 2112 "../gtest_contrib/gmock-gtest-all.cc" > struct timeval now; > gettimeofday(&now, __null); > return static_cast<TimeInMillis>(now.tv_sec) * 1000 + now.tv_usec / 1000; > > > >} ># 2131 "../gtest_contrib/gmock-gtest-all.cc" >String String::ShowCStringQuoted(const char* c_str) { > return c_str ? String::Format("\"%s\"", c_str) : String("(null)"); >} > > > > > >static char* CloneString(const char* str, size_t length) { > if (str == __null) { > return __null; > } else { > char* const clone = new char[length + 1]; > posix::StrNCpy(clone, str, length); > clone[length] = '\0'; > return clone; > } >} > > > > >const char * String::CloneCString(const char* c_str) { > return (c_str == __null) ? > __null : CloneString(c_str, strlen(c_str)); >} ># 2199 "../gtest_contrib/gmock-gtest-all.cc" >bool String::CStringEquals(const char * lhs, const char * rhs) { > if ( lhs == __null ) return rhs == __null; > > if ( rhs == __null ) return false; > > return strcmp(lhs, rhs) == 0; >} > > > > > >static void StreamWideCharsToMessage(const wchar_t* wstr, size_t length, > Message* msg) { > > > > > > for (size_t i = 0; i != length; ) { > if (wstr[i] != L'\0') { > *msg << WideStringToUtf8(wstr + i, static_cast<int>(length - i)); > while (i != length && wstr[i] != L'\0') > i++; > } else { > *msg << '\0'; > i++; > } > } >} > > > >} > > > > >Message& Message::operator <<(const ::std::wstring& wstr) { > internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this); > return *this; >} ># 2254 "../gtest_contrib/gmock-gtest-all.cc" >AssertionResult::AssertionResult(const AssertionResult& other) > : success_(other.success_), > message_(other.message_.get() != __null ? > new ::std::string(*other.message_) : > static_cast< ::std::string*>(__null)) { >} > > >AssertionResult AssertionResult::operator!() const { > AssertionResult negation(!success_); > if (message_.get() != __null) > negation << *message_; > return negation; >} > > >AssertionResult AssertionSuccess() { > return AssertionResult(true); >} > > >AssertionResult AssertionFailure() { > return AssertionResult(false); >} > > > >AssertionResult AssertionFailure(const Message& message) { > return AssertionFailure() << message; >} > >namespace internal { ># 2302 "../gtest_contrib/gmock-gtest-all.cc" >AssertionResult EqFailure(const char* expected_expression, > const char* actual_expression, > const String& expected_value, > const String& actual_value, > bool ignoring_case) { > Message msg; > msg << "Value of: " << actual_expression; > if (actual_value != actual_expression) { > msg << "\n Actual: " << actual_value; > } > > msg << "\nExpected: " << expected_expression; > if (ignoring_case) { > msg << " (ignoring case)"; > } > if (expected_value != expected_expression) { > msg << "\nWhich is: " << expected_value; > } > > return AssertionFailure() << msg; >} > > >String GetBoolAssertionFailureMessage(const AssertionResult& assertion_result, > const char* expression_text, > const char* actual_predicate_value, > const char* expected_predicate_value) { > const char* actual_message = assertion_result.message(); > Message msg; > msg << "Value of: " << expression_text > << "\n Actual: " << actual_predicate_value; > if (actual_message[0] != '\0') > msg << " (" << actual_message << ")"; > msg << "\nExpected: " << expected_predicate_value; > return msg.GetString(); >} > > >AssertionResult DoubleNearPredFormat(const char* expr1, > const char* expr2, > const char* abs_error_expr, > double val1, > double val2, > double abs_error) { > const double diff = fabs(val1 - val2); > if (diff <= abs_error) return AssertionSuccess(); > > > > return AssertionFailure() > << "The difference between " << expr1 << " and " << expr2 > << " is " << diff << ", which exceeds " << abs_error_expr << ", where\n" > << expr1 << " evaluates to " << val1 << ",\n" > << expr2 << " evaluates to " << val2 << ", and\n" > << abs_error_expr << " evaluates to " << abs_error << "."; >} > > > >template <typename RawType> >AssertionResult FloatingPointLE(const char* expr1, > const char* expr2, > RawType val1, > RawType val2) { > > if (val1 < val2) { > return AssertionSuccess(); > } > > > const FloatingPoint<RawType> lhs(val1), rhs(val2); > if (lhs.AlmostEquals(rhs)) { > return AssertionSuccess(); > } > > > > > > ::std::stringstream val1_ss; > val1_ss << std::setprecision(std::numeric_limits<RawType>::digits10 + 2) > << val1; > > ::std::stringstream val2_ss; > val2_ss << std::setprecision(std::numeric_limits<RawType>::digits10 + 2) > << val2; > > return AssertionFailure() > << "Expected: (" << expr1 << ") <= (" << expr2 << ")\n" > << " Actual: " << StringStreamToString(&val1_ss) << " vs " > << StringStreamToString(&val2_ss); >} > >} > > > >AssertionResult FloatLE(const char* expr1, const char* expr2, > float val1, float val2) { > return internal::FloatingPointLE<float>(expr1, expr2, val1, val2); >} > > > >AssertionResult DoubleLE(const char* expr1, const char* expr2, > double val1, double val2) { > return internal::FloatingPointLE<double>(expr1, expr2, val1, val2); >} > >namespace internal { > > > >AssertionResult CmpHelperEQ(const char* expected_expression, > const char* actual_expression, > BiggestInt expected, > BiggestInt actual) { > if (expected == actual) { > return AssertionSuccess(); > } > > return EqFailure(expected_expression, > actual_expression, > FormatForComparisonFailureMessage(expected, actual), > FormatForComparisonFailureMessage(actual, expected), > false); >} > > > > >#define GTEST_IMPL_CMP_HELPER_(op_name,op) AssertionResult CmpHelper ##op_name(const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2) { if (val1 op val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " #op " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} ># 2448 "../gtest_contrib/gmock-gtest-all.cc" >AssertionResult CmpHelperNE(const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2) { if (val1 != val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " "!=" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} > > >AssertionResult CmpHelperLE(const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2) { if (val1 <= val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " "<=" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} > > >AssertionResult CmpHelperLT(const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2) { if (val1 < val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " "<" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} > > >AssertionResult CmpHelperGE(const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2) { if (val1 >= val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " ">=" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} > > >AssertionResult CmpHelperGT(const char* expr1, const char* expr2, BiggestInt val1, BiggestInt val2) { if (val1 > val2) { return AssertionSuccess(); } else { return AssertionFailure() << "Expected: (" << expr1 << ") " ">" " (" << expr2 << "), actual: " << FormatForComparisonFailureMessage(val1, val2) << " vs " << FormatForComparisonFailureMessage(val2, val1); }} > >#undef GTEST_IMPL_CMP_HELPER_ > > >AssertionResult CmpHelperSTREQ(const char* expected_expression, > const char* actual_expression, > const char* expected, > const char* actual) { > if (String::CStringEquals(expected, actual)) { > return AssertionSuccess(); > } > > return EqFailure(expected_expression, > actual_expression, > String::ShowCStringQuoted(expected), > String::ShowCStringQuoted(actual), > false); >} > > >AssertionResult CmpHelperSTRCASEEQ(const char* expected_expression, > const char* actual_expression, > const char* expected, > const char* actual) { > if (String::CaseInsensitiveCStringEquals(expected, actual)) { > return AssertionSuccess(); > } > > return EqFailure(expected_expression, > actual_expression, > String::ShowCStringQuoted(expected), > String::ShowCStringQuoted(actual), > true); >} > > >AssertionResult CmpHelperSTRNE(const char* s1_expression, > const char* s2_expression, > const char* s1, > const char* s2) { > if (!String::CStringEquals(s1, s2)) { > return AssertionSuccess(); > } else { > return AssertionFailure() << "Expected: (" << s1_expression << ") != (" > << s2_expression << "), actual: \"" > << s1 << "\" vs \"" << s2 << "\""; > } >} > > >AssertionResult CmpHelperSTRCASENE(const char* s1_expression, > const char* s2_expression, > const char* s1, > const char* s2) { > if (!String::CaseInsensitiveCStringEquals(s1, s2)) { > return AssertionSuccess(); > } else { > return AssertionFailure() > << "Expected: (" << s1_expression << ") != (" > << s2_expression << ") (ignoring case), actual: \"" > << s1 << "\" vs \"" << s2 << "\""; > } >} > >} > >namespace { > > > > > > > >bool IsSubstringPred(const char* needle, const char* haystack) { > if (needle == __null || haystack == __null) > return needle == haystack; > > return strstr(haystack, needle) != __null; >} > >bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { > if (needle == __null || haystack == __null) > return needle == haystack; > > return wcsstr(haystack, needle) != __null; >} > > >template <typename StringType> >bool IsSubstringPred(const StringType& needle, > const StringType& haystack) { > return haystack.find(needle) != StringType::npos; >} > > > > > >template <typename StringType> >AssertionResult IsSubstringImpl( > bool expected_to_be_substring, > const char* needle_expr, const char* haystack_expr, > const StringType& needle, const StringType& haystack) { > if (IsSubstringPred(needle, haystack) == expected_to_be_substring) > return AssertionSuccess(); > > const bool is_wide_string = sizeof(needle[0]) > 1; > const char* const begin_string_quote = is_wide_string ? "L\"" : "\""; > return AssertionFailure() > << "Value of: " << needle_expr << "\n" > << " Actual: " << begin_string_quote << needle << "\"\n" > << "Expected: " << (expected_to_be_substring ? "" : "not ") > << "a substring of " << haystack_expr << "\n" > << "Which is: " << begin_string_quote << haystack << "\""; >} > >} > > > > > >AssertionResult IsSubstring( > const char* needle_expr, const char* haystack_expr, > const char* needle, const char* haystack) { > return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); >} > >AssertionResult IsSubstring( > const char* needle_expr, const char* haystack_expr, > const wchar_t* needle, const wchar_t* haystack) { > return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); >} > >AssertionResult IsNotSubstring( > const char* needle_expr, const char* haystack_expr, > const char* needle, const char* haystack) { > return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); >} > >AssertionResult IsNotSubstring( > const char* needle_expr, const char* haystack_expr, > const wchar_t* needle, const wchar_t* haystack) { > return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); >} > >AssertionResult IsSubstring( > const char* needle_expr, const char* haystack_expr, > const ::std::string& needle, const ::std::string& haystack) { > return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); >} > >AssertionResult IsNotSubstring( > const char* needle_expr, const char* haystack_expr, > const ::std::string& needle, const ::std::string& haystack) { > return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); >} > > >AssertionResult IsSubstring( > const char* needle_expr, const char* haystack_expr, > const ::std::wstring& needle, const ::std::wstring& haystack) { > return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); >} > >AssertionResult IsNotSubstring( > const char* needle_expr, const char* haystack_expr, > const ::std::wstring& needle, const ::std::wstring& haystack) { > return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); >} > > >namespace internal { ># 2711 "../gtest_contrib/gmock-gtest-all.cc" >const UInt32 kMaxCodePoint1 = (static_cast<UInt32>(1) << 7) - 1; > > >const UInt32 kMaxCodePoint2 = (static_cast<UInt32>(1) << (5 + 6)) - 1; > > >const UInt32 kMaxCodePoint3 = (static_cast<UInt32>(1) << (4 + 2*6)) - 1; > > >const UInt32 kMaxCodePoint4 = (static_cast<UInt32>(1) << (3 + 3*6)) - 1; > > > > >inline UInt32 ChopLowBits(UInt32* bits, int n) { > const UInt32 low_bits = *bits & ((static_cast<UInt32>(1) << n) - 1); > *bits >>= n; > return low_bits; >} ># 2739 "../gtest_contrib/gmock-gtest-all.cc" >char* CodePointToUtf8(UInt32 code_point, char* str) { > if (code_point <= kMaxCodePoint1) { > str[1] = '\0'; > str[0] = static_cast<char>(code_point); > } else if (code_point <= kMaxCodePoint2) { > str[2] = '\0'; > str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); > str[0] = static_cast<char>(0xC0 | code_point); > } else if (code_point <= kMaxCodePoint3) { > str[3] = '\0'; > str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); > str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); > str[0] = static_cast<char>(0xE0 | code_point); > } else if (code_point <= kMaxCodePoint4) { > str[4] = '\0'; > str[3] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); > str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); > str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); > str[0] = static_cast<char>(0xF0 | code_point); > } else { > > > > > > posix::StrNCpy( > str, String::Format("(Invalid Unicode 0x%X)", code_point).c_str(), 32); > str[31] = '\0'; > > } > return str; >} ># 2779 "../gtest_contrib/gmock-gtest-all.cc" >inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) { > return sizeof(wchar_t) == 2 && > (first & 0xFC00) == 0xD800 && (second & 0xFC00) == 0xDC00; >} > > >inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first, > wchar_t second) { > const UInt32 mask = (1 << 10) - 1; > return (sizeof(wchar_t) == 2) ? > (((first & mask) << 10) | (second & mask)) + 0x10000 : > > > static_cast<UInt32>(first); >} ># 2808 "../gtest_contrib/gmock-gtest-all.cc" >String WideStringToUtf8(const wchar_t* str, int num_chars) { > if (num_chars == -1) > num_chars = static_cast<int>(wcslen(str)); > > ::std::stringstream stream; > for (int i = 0; i < num_chars; ++i) { > UInt32 unicode_code_point; > > if (str[i] == L'\0') { > break; > } else if (i + 1 < num_chars && IsUtf16SurrogatePair(str[i], str[i + 1])) { > unicode_code_point = CreateCodePointFromUtf16SurrogatePair(str[i], > str[i + 1]); > i++; > } else { > unicode_code_point = static_cast<UInt32>(str[i]); > } > > char buffer[32]; > stream << CodePointToUtf8(unicode_code_point, buffer); > } > return StringStreamToString(&stream); >} > > > >String String::ShowWideCString(const wchar_t * wide_c_str) { > if (wide_c_str == __null) return String("(null)"); > > return String(internal::WideStringToUtf8(wide_c_str, -1).c_str()); >} > > > >String String::ShowWideCStringQuoted(const wchar_t* wide_c_str) { > if (wide_c_str == __null) return String("(null)"); > > return String::Format("L\"%s\"", > String::ShowWideCString(wide_c_str).c_str()); >} > > > > > > > >bool String::WideCStringEquals(const wchar_t * lhs, const wchar_t * rhs) { > if (lhs == __null) return rhs == __null; > > if (rhs == __null) return false; > > return wcscmp(lhs, rhs) == 0; >} > > >AssertionResult CmpHelperSTREQ(const char* expected_expression, > const char* actual_expression, > const wchar_t* expected, > const wchar_t* actual) { > if (String::WideCStringEquals(expected, actual)) { > return AssertionSuccess(); > } > > return EqFailure(expected_expression, > actual_expression, > String::ShowWideCStringQuoted(expected), > String::ShowWideCStringQuoted(actual), > false); >} > > >AssertionResult CmpHelperSTRNE(const char* s1_expression, > const char* s2_expression, > const wchar_t* s1, > const wchar_t* s2) { > if (!String::WideCStringEquals(s1, s2)) { > return AssertionSuccess(); > } > > return AssertionFailure() << "Expected: (" << s1_expression << ") != (" > << s2_expression << "), actual: " > << String::ShowWideCStringQuoted(s1) > << " vs " << String::ShowWideCStringQuoted(s2); >} > > > > > > > >bool String::CaseInsensitiveCStringEquals(const char * lhs, const char * rhs) { > if (lhs == __null) > return rhs == __null; > if (rhs == __null) > return false; > return posix::StrCaseCmp(lhs, rhs) == 0; >} ># 2920 "../gtest_contrib/gmock-gtest-all.cc" >bool String::CaseInsensitiveWideCStringEquals(const wchar_t* lhs, > const wchar_t* rhs) { > if (lhs == __null) return rhs == __null; > > if (rhs == __null) return false; > > > > > return wcscasecmp(lhs, rhs) == 0; ># 2940 "../gtest_contrib/gmock-gtest-all.cc" >} > > > > >int String::Compare(const String & rhs) const { > const char* const lhs_c_str = c_str(); > const char* const rhs_c_str = rhs.c_str(); > > if (lhs_c_str == __null) { > return rhs_c_str == __null ? 0 : -1; > } else if (rhs_c_str == __null) { > return 1; > } > > const size_t shorter_str_len = > length() <= rhs.length() ? length() : rhs.length(); > for (size_t i = 0; i != shorter_str_len; i++) { > if (lhs_c_str[i] < rhs_c_str[i]) { > return -1; > } else if (lhs_c_str[i] > rhs_c_str[i]) { > return 1; > } > } > return (length() < rhs.length()) ? -1 : > (length() > rhs.length()) ? 1 : 0; >} > > > >bool String::EndsWith(const char* suffix) const { > if (suffix == __null || CStringEquals(suffix, "")) return true; > > if (c_str() == __null) return false; > > const size_t this_len = strlen(c_str()); > const size_t suffix_len = strlen(suffix); > return (this_len >= suffix_len) && > CStringEquals(c_str() + this_len - suffix_len, suffix); >} > > > >bool String::EndsWithCaseInsensitive(const char* suffix) const { > if (suffix == __null || CStringEquals(suffix, "")) return true; > > if (c_str() == __null) return false; > > const size_t this_len = strlen(c_str()); > const size_t suffix_len = strlen(suffix); > return (this_len >= suffix_len) && > CaseInsensitiveCStringEquals(c_str() + this_len - suffix_len, suffix); >} ># 3004 "../gtest_contrib/gmock-gtest-all.cc" >String String::Format(const char * format, ...) { > va_list args; > __builtin_va_start(args,format); > > char buffer[4096]; > const int kBufferSize = sizeof(buffer)/sizeof(buffer[0]); ># 3021 "../gtest_contrib/gmock-gtest-all.cc" > const int size = vsnprintf(buffer, kBufferSize, format, args); > > __builtin_va_end(args); > > > > > > > if (size < 0 || size >= kBufferSize) { > return String("<formatting error or buffer exceeded>"); > } else { > return String(buffer, size); > } >} > > > >String StringStreamToString(::std::stringstream* ss) { > const ::std::string& str = ss->str(); > const char* const start = str.c_str(); > const char* const end = start + str.length(); > > > > ::std::stringstream helper; > for (const char* ch = start; ch != end; ++ch) { > if (*ch == '\0') { > helper << "\\0"; > } else { > helper.put(*ch); > } > } > > return String(helper.str().c_str()); >} > > >String AppendUserMessage(const String& gtest_msg, > const Message& user_msg) { > > const String user_msg_string = user_msg.GetString(); > if (user_msg_string.empty()) { > return gtest_msg; > } > > Message msg; > msg << gtest_msg << "\n" << user_msg_string; > > return msg.GetString(); >} > >} > > > > >TestResult::TestResult() > : death_test_count_(0), > elapsed_time_(0) { >} > > >TestResult::~TestResult() { >} > > > > >const TestPartResult& TestResult::GetTestPartResult(int i) const { > if (i < 0 || i >= total_part_count()) > internal::posix::Abort(); > return test_part_results_.at(i); >} > > > > >const TestProperty& TestResult::GetTestProperty(int i) const { > if (i < 0 || i >= test_property_count()) > internal::posix::Abort(); > return test_properties_.at(i); >} > > >void TestResult::ClearTestPartResults() { > test_part_results_.clear(); >} > > >void TestResult::AddTestPartResult(const TestPartResult& test_part_result) { > test_part_results_.push_back(test_part_result); >} > > > > >void TestResult::RecordProperty(const TestProperty& test_property) { > if (!ValidateTestProperty(test_property)) { > return; > } > internal::MutexLock lock(&test_properites_mutex_); > const std::vector<TestProperty>::iterator property_with_matching_key = > std::find_if(test_properties_.begin(), test_properties_.end(), > internal::TestPropertyKeyIs(test_property.key())); > if (property_with_matching_key == test_properties_.end()) { > test_properties_.push_back(test_property); > return; > } > property_with_matching_key->SetValue(test_property.value()); >} > > > >bool TestResult::ValidateTestProperty(const TestProperty& test_property) { > internal::String key(test_property.key()); > if (key == "name" || key == "status" || key == "time" || key == "classname") { > ::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "../gtest_contrib/gmock-gtest-all.cc", 3138, "Failed") = ::testing::Message() > << "Reserved key used in RecordProperty(): " > << key > << " ('name', 'status', 'time', and 'classname' are reserved by " > << "Google Test" << ")"; > return false; > } > return true; >} > > >void TestResult::Clear() { > test_part_results_.clear(); > test_properties_.clear(); > death_test_count_ = 0; > elapsed_time_ = 0; >} > > >bool TestResult::Failed() const { > for (int i = 0; i < total_part_count(); ++i) { > if (GetTestPartResult(i).failed()) > return true; > } > return false; >} > > >static bool TestPartFatallyFailed(const TestPartResult& result) { > return result.fatally_failed(); >} > > >bool TestResult::HasFatalFailure() const { > return CountIf(test_part_results_, TestPartFatallyFailed) > 0; >} > > >static bool TestPartNonfatallyFailed(const TestPartResult& result) { > return result.nonfatally_failed(); >} > > >bool TestResult::HasNonfatalFailure() const { > return CountIf(test_part_results_, TestPartNonfatallyFailed) > 0; >} > > > >int TestResult::total_part_count() const { > return static_cast<int>(test_part_results_.size()); >} > > >int TestResult::test_property_count() const { > return static_cast<int>(test_properties_.size()); >} > > > > > > >Test::Test() > : gtest_flag_saver_(new internal::GTestFlagSaver) { >} > > >Test::~Test() { > delete gtest_flag_saver_; >} > > > > >void Test::SetUp() { >} > > > > >void Test::TearDown() { >} > > >void Test::RecordProperty(const char* key, const char* value) { > UnitTest::GetInstance()->RecordPropertyForCurrentTest(key, value); >} > > >void Test::RecordProperty(const char* key, int value) { > Message value_message; > value_message << value; > RecordProperty(key, value_message.GetString().c_str()); >} > >namespace internal { > >void ReportFailureInUnknownLocation(TestPartResult::Type result_type, > const String& message) { > > > UnitTest::GetInstance()->AddTestPartResult( > result_type, > __null, > -1, > message, > String()); >} > >} > > > > > > >bool Test::HasSameFixtureClass() { > internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); > const TestCase* const test_case = impl->current_test_case(); > > > const TestInfo* const first_test_info = test_case->test_info_list()[0]; > const internal::TypeId first_fixture_id = first_test_info->fixture_class_id_; > const char* const first_test_name = first_test_info->name(); > > > const TestInfo* const this_test_info = impl->current_test_info(); > const internal::TypeId this_fixture_id = this_test_info->fixture_class_id_; > const char* const this_test_name = this_test_info->name(); > > if (this_fixture_id != first_fixture_id) { > > const bool first_is_TEST = first_fixture_id == internal::GetTestTypeId(); > > const bool this_is_TEST = this_fixture_id == internal::GetTestTypeId(); > > if (first_is_TEST || this_is_TEST) { > > > > > > > const char* const TEST_name = > first_is_TEST ? first_test_name : this_test_name; > const char* const TEST_F_name = > first_is_TEST ? this_test_name : first_test_name; > > ::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "../gtest_contrib/gmock-gtest-all.cc", 3287, "Failed") = ::testing::Message() > << "All tests in the same test case must use the same test fixture\n" > << "class, so mixing TEST_F and TEST in the same test case is\n" > << "illegal. In test case " << this_test_info->test_case_name() > << ",\n" > << "test " << TEST_F_name << " is defined using TEST_F but\n" > << "test " << TEST_name << " is defined using TEST. You probably\n" > << "want to change the TEST to TEST_F or move it to another test\n" > << "case."; > } else { > > > ::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "../gtest_contrib/gmock-gtest-all.cc", 3299, "Failed") = ::testing::Message() > << "All tests in the same test case must use the same test fixture\n" > << "class. However, in test case " > << this_test_info->test_case_name() << ",\n" > << "you defined test " << first_test_name > << " and test " << this_test_name << "\n" > << "using two different test fixture classes. This can happen if\n" > << "the two classes are from different namespaces or translation\n" > << "units and have the same name. You should probably rename one\n" > << "of the classes to put the tests into different test cases."; > } > return false; > } > > return true; >} ># 3336 "../gtest_contrib/gmock-gtest-all.cc" >static internal::String FormatCxxExceptionMessage(const char* description, > const char* location) { > Message message; > if (description != __null) { > message << "C++ exception with description \"" << description << "\""; > } else { > message << "Unknown C++ exception"; > } > message << " thrown in " << location << "."; > > return message.GetString(); >} > >static internal::String PrintTestPartResultToString( > const TestPartResult& test_part_result); > > > > > > > >class GoogleTestFailureException : public ::std::runtime_error { > public: > explicit GoogleTestFailureException(const TestPartResult& failure) > : ::std::runtime_error(PrintTestPartResultToString(failure).c_str()) {} >}; > > >namespace internal { ># 3374 "../gtest_contrib/gmock-gtest-all.cc" >template <class T, typename Result> >Result HandleSehExceptionsInMethodIfSupported( > T* object, Result (T::*method)(), const char* location) { ># 3393 "../gtest_contrib/gmock-gtest-all.cc" > (void)location; > return (object->*method)(); > >} > > > > >template <class T, typename Result> >Result HandleExceptionsInMethodIfSupported( > T* object, Result (T::*method)(), const char* location) { ># 3427 "../gtest_contrib/gmock-gtest-all.cc" > if (internal::GetUnitTestImpl()->catch_exceptions()) { > > try { > return HandleSehExceptionsInMethodIfSupported(object, method, location); > } catch (const GoogleTestFailureException&) { > > > throw; > } catch (const std::exception& e) { > internal::ReportFailureInUnknownLocation( > TestPartResult::kFatalFailure, > FormatCxxExceptionMessage(e.what(), location)); > } catch (...) { > internal::ReportFailureInUnknownLocation( > TestPartResult::kFatalFailure, > FormatCxxExceptionMessage(__null, location)); > } > return static_cast<Result>(0); > > > > } else { > return (object->*method)(); > } >} > >} > > >void Test::Run() { > if (!HasSameFixtureClass()) return; > > internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); > impl->os_stack_trace_getter()->UponLeavingGTest(); > internal::HandleExceptionsInMethodIfSupported(this, &Test::SetUp, "SetUp()"); > > if (!HasFatalFailure()) { > impl->os_stack_trace_getter()->UponLeavingGTest(); > internal::HandleExceptionsInMethodIfSupported( > this, &Test::TestBody, "the test body"); > } > > > > > impl->os_stack_trace_getter()->UponLeavingGTest(); > internal::HandleExceptionsInMethodIfSupported( > this, &Test::TearDown, "TearDown()"); >} > > >bool Test::HasFatalFailure() { > return internal::GetUnitTestImpl()->current_test_result()->HasFatalFailure(); >} > > >bool Test::HasNonfatalFailure() { > return internal::GetUnitTestImpl()->current_test_result()-> > HasNonfatalFailure(); >} > > > > > > > >TestInfo::TestInfo(const char* a_test_case_name, > const char* a_name, > const char* a_type_param, > const char* a_value_param, > internal::TypeId fixture_class_id, > internal::TestFactoryBase* factory) > : test_case_name_(a_test_case_name), > name_(a_name), > type_param_(a_type_param ? new std::string(a_type_param) : __null), > value_param_(a_value_param ? new std::string(a_value_param) : __null), > fixture_class_id_(fixture_class_id), > should_run_(false), > is_disabled_(false), > matches_filter_(false), > factory_(factory), > result_() {} > > >TestInfo::~TestInfo() { delete factory_; } > >namespace internal { ># 3533 "../gtest_contrib/gmock-gtest-all.cc" >TestInfo* MakeAndRegisterTestInfo( > const char* test_case_name, const char* name, > const char* type_param, > const char* value_param, > TypeId fixture_class_id, > SetUpTestCaseFunc set_up_tc, > TearDownTestCaseFunc tear_down_tc, > TestFactoryBase* factory) { > TestInfo* const test_info = > new TestInfo(test_case_name, name, type_param, value_param, > fixture_class_id, factory); > GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info); > return test_info; >} > > >void ReportInvalidTestCaseType(const char* test_case_name, > const char* file, int line) { > Message errors; > errors > << "Attempted redefinition of test case " << test_case_name << ".\n" > << "All tests in the same test case must use the same test fixture\n" > << "class. However, in test case " << test_case_name << ", you tried\n" > << "to define a test using a fixture class different from the one\n" > << "used earlier. This can happen if the two fixture classes are\n" > << "from different namespaces and have the same name. You should\n" > << "probably rename one of the classes to put the tests into different\n" > << "test cases."; > > fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(), > errors.GetString().c_str()); >} > > >} > >namespace { ># 3579 "../gtest_contrib/gmock-gtest-all.cc" >class TestNameIs { > public: > > > > explicit TestNameIs(const char* name) > : name_(name) {} > > > bool operator()(const TestInfo * test_info) const { > return test_info && internal::String(test_info->name()).Compare(name_) == 0; > } > > private: > internal::String name_; >}; > >} > >namespace internal { > > > > >void UnitTestImpl::RegisterParameterizedTests() { > > if (!parameterized_tests_registered_) { > parameterized_test_registry_.RegisterTests(); > parameterized_tests_registered_ = true; > } > >} > >} > > > >void TestInfo::Run() { > if (!should_run_) return; > > > internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); > impl->set_current_test_info(this); > > TestEventListener* repeater = UnitTest::GetInstance()->listeners().repeater(); > > > repeater->OnTestStart(*this); > > const TimeInMillis start = internal::GetTimeInMillis(); > > impl->os_stack_trace_getter()->UponLeavingGTest(); > > > Test* const test = internal::HandleExceptionsInMethodIfSupported( > factory_, &internal::TestFactoryBase::CreateTest, > "the test fixture's constructor"); > > > > if ((test != __null) && !Test::HasFatalFailure()) { > > > test->Run(); > } > > > impl->os_stack_trace_getter()->UponLeavingGTest(); > internal::HandleExceptionsInMethodIfSupported( > test, &Test::DeleteSelf_, "the test fixture's destructor"); > > result_.set_elapsed_time(internal::GetTimeInMillis() - start); > > > repeater->OnTestEnd(*this); > > > > impl->set_current_test_info(__null); >} > > > > >int TestCase::successful_test_count() const { > return CountIf(test_info_list_, TestPassed); >} > > >int TestCase::failed_test_count() const { > return CountIf(test_info_list_, TestFailed); >} > >int TestCase::disabled_test_count() const { > return CountIf(test_info_list_, TestDisabled); >} > > >int TestCase::test_to_run_count() const { > return CountIf(test_info_list_, ShouldRunTest); >} > > >int TestCase::total_test_count() const { > return static_cast<int>(test_info_list_.size()); >} ># 3695 "../gtest_contrib/gmock-gtest-all.cc" >TestCase::TestCase(const char* a_name, const char* a_type_param, > Test::SetUpTestCaseFunc set_up_tc, > Test::TearDownTestCaseFunc tear_down_tc) > : name_(a_name), > type_param_(a_type_param ? new std::string(a_type_param) : __null), > set_up_tc_(set_up_tc), > tear_down_tc_(tear_down_tc), > should_run_(false), > elapsed_time_(0) { >} > > >TestCase::~TestCase() { > > ForEach(test_info_list_, internal::Delete<TestInfo>); >} > > > >const TestInfo* TestCase::GetTestInfo(int i) const { > const int index = GetElementOr(test_indices_, i, -1); > return index < 0 ? __null : test_info_list_[index]; >} > > > >TestInfo* TestCase::GetMutableTestInfo(int i) { > const int index = GetElementOr(test_indices_, i, -1); > return index < 0 ? __null : test_info_list_[index]; >} > > > >void TestCase::AddTestInfo(TestInfo * test_info) { > test_info_list_.push_back(test_info); > test_indices_.push_back(static_cast<int>(test_indices_.size())); >} > > >void TestCase::Run() { > if (!should_run_) return; > > internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); > impl->set_current_test_case(this); > > TestEventListener* repeater = UnitTest::GetInstance()->listeners().repeater(); > > repeater->OnTestCaseStart(*this); > impl->os_stack_trace_getter()->UponLeavingGTest(); > internal::HandleExceptionsInMethodIfSupported( > this, &TestCase::RunSetUpTestCase, "SetUpTestCase()"); > > const internal::TimeInMillis start = internal::GetTimeInMillis(); > for (int i = 0; i < total_test_count(); i++) { > GetMutableTestInfo(i)->Run(); > } > elapsed_time_ = internal::GetTimeInMillis() - start; > > impl->os_stack_trace_getter()->UponLeavingGTest(); > internal::HandleExceptionsInMethodIfSupported( > this, &TestCase::RunTearDownTestCase, "TearDownTestCase()"); > > repeater->OnTestCaseEnd(*this); > impl->set_current_test_case(__null); >} > > >void TestCase::ClearResult() { > ForEach(test_info_list_, TestInfo::ClearTestResult); >} > > >void TestCase::ShuffleTests(internal::Random* random) { > Shuffle(random, &test_indices_); >} > > >void TestCase::UnshuffleTests() { > for (size_t i = 0; i < test_indices_.size(); i++) { > test_indices_[i] = static_cast<int>(i); > } >} > > > > > > >static internal::String FormatCountableNoun(int count, > const char * singular_form, > const char * plural_form) { > return internal::String::Format("%d %s", count, > count == 1 ? singular_form : plural_form); >} > > >static internal::String FormatTestCount(int test_count) { > return FormatCountableNoun(test_count, "test", "tests"); >} > > >static internal::String FormatTestCaseCount(int test_case_count) { > return FormatCountableNoun(test_case_count, "test case", "test cases"); >} > > > > > >static const char * TestPartResultTypeToString(TestPartResult::Type type) { > switch (type) { > case TestPartResult::kSuccess: > return "Success"; > > case TestPartResult::kNonFatalFailure: > case TestPartResult::kFatalFailure: > > > > return "Failure\n"; > > default: > return "Unknown result type"; > } >} > > >static internal::String PrintTestPartResultToString( > const TestPartResult& test_part_result) { > return (Message() > << internal::FormatFileLocation(test_part_result.file_name(), > test_part_result.line_number()) > << " " << TestPartResultTypeToString(test_part_result.type()) > << test_part_result.message()).GetString(); >} > > >static void PrintTestPartResult(const TestPartResult& test_part_result) { > const internal::String& result = > PrintTestPartResultToString(test_part_result); > printf("%s\n", result.c_str()); > fflush(stdout); ># 3848 "../gtest_contrib/gmock-gtest-all.cc" >} > > > >namespace internal { > >enum GTestColor { > COLOR_DEFAULT, > COLOR_RED, > COLOR_GREEN, > COLOR_YELLOW >}; ># 3877 "../gtest_contrib/gmock-gtest-all.cc" >const char* GetAnsiColorCode(GTestColor color) { > switch (color) { > case COLOR_RED: return "1"; > case COLOR_GREEN: return "2"; > case COLOR_YELLOW: return "3"; > default: return __null; > }; >} > > > > >bool ShouldUseColor(bool stdout_is_tty) { > const char* const gtest_color = FLAGS_gtest_color.c_str(); > > if (String::CaseInsensitiveCStringEquals(gtest_color, "auto")) { > > > > > > > const char* const term = posix::GetEnv("TERM"); > const bool term_supports_color = > String::CStringEquals(term, "xterm") || > String::CStringEquals(term, "xterm-color") || > String::CStringEquals(term, "xterm-256color") || > String::CStringEquals(term, "screen") || > String::CStringEquals(term, "linux") || > String::CStringEquals(term, "cygwin"); > return stdout_is_tty && term_supports_color; > > } > > return String::CaseInsensitiveCStringEquals(gtest_color, "yes") || > String::CaseInsensitiveCStringEquals(gtest_color, "true") || > String::CaseInsensitiveCStringEquals(gtest_color, "t") || > String::CStringEquals(gtest_color, "1"); > > > >} > > > > > >void ColoredPrintf(GTestColor color, const char* fmt, ...) { > va_list args; > __builtin_va_start(args,fmt); > > > > > static const bool in_color_mode = > ShouldUseColor(posix::IsATTY(posix::FileNo(stdout)) != 0); > const bool use_color = in_color_mode && (color != COLOR_DEFAULT); > > > > if (!use_color) { > vprintf(fmt, args); > __builtin_va_end(args); > return; > } ># 3963 "../gtest_contrib/gmock-gtest-all.cc" > printf("\033[0;3%sm", GetAnsiColorCode(color)); > vprintf(fmt, args); > printf("\033[m"); > > __builtin_va_end(args); >} > >void PrintFullTestCommentIfPresent(const TestInfo& test_info) { > const char* const type_param = test_info.type_param(); > const char* const value_param = test_info.value_param(); > > if (type_param != __null || value_param != __null) { > printf(", where "); > if (type_param != __null) { > printf("TypeParam = %s", type_param); > if (value_param != __null) > printf(" and "); > } > if (value_param != __null) { > printf("GetParam() = %s", value_param); > } > } >} > > > > >class PrettyUnitTestResultPrinter : public TestEventListener { > public: > PrettyUnitTestResultPrinter() {} > static void PrintTestName(const char * test_case, const char * test) { > printf("%s.%s", test_case, test); > } > > > virtual void OnTestProgramStart(const UnitTest& ) {} > virtual void OnTestIterationStart(const UnitTest& unit_test, int iteration); > virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test); > virtual void OnEnvironmentsSetUpEnd(const UnitTest& ) {} > virtual void OnTestCaseStart(const TestCase& test_case); > virtual void OnTestStart(const TestInfo& test_info); > virtual void OnTestPartResult(const TestPartResult& result); > virtual void OnTestEnd(const TestInfo& test_info); > virtual void OnTestCaseEnd(const TestCase& test_case); > virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test); > virtual void OnEnvironmentsTearDownEnd(const UnitTest& ) {} > virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration); > virtual void OnTestProgramEnd(const UnitTest& ) {} > > private: > static void PrintFailedTests(const UnitTest& unit_test); > > internal::String test_case_name_; >}; > > >void PrettyUnitTestResultPrinter::OnTestIterationStart( > const UnitTest& unit_test, int iteration) { > if (FLAGS_gtest_repeat != 1) > printf("\nRepeating all tests (iteration %d) . . .\n\n", iteration + 1); > > const char* const filter = FLAGS_gtest_filter.c_str(); > > > > if (!internal::String::CStringEquals(filter, kUniversalFilter)) { > ColoredPrintf(COLOR_YELLOW, > "Note: %s filter = %s\n", "Google Test", filter); > } > > if (internal::ShouldShard(kTestTotalShards, kTestShardIndex, false)) { > const Int32 shard_index = Int32FromEnvOrDie(kTestShardIndex, -1); > ColoredPrintf(COLOR_YELLOW, > "Note: This is test shard %d of %s.\n", > static_cast<int>(shard_index) + 1, > internal::posix::GetEnv(kTestTotalShards)); > } > > if (FLAGS_gtest_shuffle) { > ColoredPrintf(COLOR_YELLOW, > "Note: Randomizing tests' orders with a seed of %d .\n", > unit_test.random_seed()); > } > > ColoredPrintf(COLOR_GREEN, "[==========] "); > printf("Running %s from %s.\n", > FormatTestCount(unit_test.test_to_run_count()).c_str(), > FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str()); > fflush(stdout); >} > >void PrettyUnitTestResultPrinter::OnEnvironmentsSetUpStart( > const UnitTest& ) { > ColoredPrintf(COLOR_GREEN, "[----------] "); > printf("Global test environment set-up.\n"); > fflush(stdout); >} > >void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) { > test_case_name_ = test_case.name(); > const internal::String counts = > FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); > ColoredPrintf(COLOR_GREEN, "[----------] "); > printf("%s from %s", counts.c_str(), test_case_name_.c_str()); > if (test_case.type_param() == __null) { > printf("\n"); > } else { > printf(", where TypeParam = %s\n", test_case.type_param()); > } > fflush(stdout); >} > >void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) { > ColoredPrintf(COLOR_GREEN, "[ RUN ] "); > PrintTestName(test_case_name_.c_str(), test_info.name()); > printf("\n"); > fflush(stdout); >} > > >void PrettyUnitTestResultPrinter::OnTestPartResult( > const TestPartResult& result) { > > if (result.type() == TestPartResult::kSuccess) > return; > > > PrintTestPartResult(result); > fflush(stdout); >} > >void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) { > if (test_info.result()->Passed()) { > ColoredPrintf(COLOR_GREEN, "[ OK ] "); > } else { > ColoredPrintf(COLOR_RED, "[ FAILED ] "); > } > PrintTestName(test_case_name_.c_str(), test_info.name()); > if (test_info.result()->Failed()) > PrintFullTestCommentIfPresent(test_info); > > if (FLAGS_gtest_print_time) { > printf(" (%s ms)\n", internal::StreamableToString( > test_info.result()->elapsed_time()).c_str()); > } else { > printf("\n"); > } > fflush(stdout); >} > >void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) { > if (!FLAGS_gtest_print_time) return; > > test_case_name_ = test_case.name(); > const internal::String counts = > FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); > ColoredPrintf(COLOR_GREEN, "[----------] "); > printf("%s from %s (%s ms total)\n\n", > counts.c_str(), test_case_name_.c_str(), > internal::StreamableToString(test_case.elapsed_time()).c_str()); > fflush(stdout); >} > >void PrettyUnitTestResultPrinter::OnEnvironmentsTearDownStart( > const UnitTest& ) { > ColoredPrintf(COLOR_GREEN, "[----------] "); > printf("Global test environment tear-down\n"); > fflush(stdout); >} > > >void PrettyUnitTestResultPrinter::PrintFailedTests(const UnitTest& unit_test) { > const int failed_test_count = unit_test.failed_test_count(); > if (failed_test_count == 0) { > return; > } > > for (int i = 0; i < unit_test.total_test_case_count(); ++i) { > const TestCase& test_case = *unit_test.GetTestCase(i); > if (!test_case.should_run() || (test_case.failed_test_count() == 0)) { > continue; > } > for (int j = 0; j < test_case.total_test_count(); ++j) { > const TestInfo& test_info = *test_case.GetTestInfo(j); > if (!test_info.should_run() || test_info.result()->Passed()) { > continue; > } > ColoredPrintf(COLOR_RED, "[ FAILED ] "); > printf("%s.%s", test_case.name(), test_info.name()); > PrintFullTestCommentIfPresent(test_info); > printf("\n"); > } > } >} > >void PrettyUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, > int ) { > ColoredPrintf(COLOR_GREEN, "[==========] "); > printf("%s from %s ran.", > FormatTestCount(unit_test.test_to_run_count()).c_str(), > FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str()); > if (FLAGS_gtest_print_time) { > printf(" (%s ms total)", > internal::StreamableToString(unit_test.elapsed_time()).c_str()); > } > printf("\n"); > ColoredPrintf(COLOR_GREEN, "[ PASSED ] "); > printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str()); > > int num_failures = unit_test.failed_test_count(); > if (!unit_test.Passed()) { > const int failed_test_count = unit_test.failed_test_count(); > ColoredPrintf(COLOR_RED, "[ FAILED ] "); > printf("%s, listed below:\n", FormatTestCount(failed_test_count).c_str()); > PrintFailedTests(unit_test); > printf("\n%2d FAILED %s\n", num_failures, > num_failures == 1 ? "TEST" : "TESTS"); > } > > int num_disabled = unit_test.disabled_test_count(); > if (num_disabled && !FLAGS_gtest_also_run_disabled_tests) { > if (!num_failures) { > printf("\n"); > } > ColoredPrintf(COLOR_YELLOW, > " YOU HAVE %d DISABLED %s\n\n", > num_disabled, > num_disabled == 1 ? "TEST" : "TESTS"); > } > > fflush(stdout); >} > > > > > > >class TestEventRepeater : public TestEventListener { > public: > TestEventRepeater() : forwarding_enabled_(true) {} > virtual ~TestEventRepeater(); > void Append(TestEventListener *listener); > TestEventListener* Release(TestEventListener* listener); > > > > bool forwarding_enabled() const { return forwarding_enabled_; } > void set_forwarding_enabled(bool enable) { forwarding_enabled_ = enable; } > > virtual void OnTestProgramStart(const UnitTest& unit_test); > virtual void OnTestIterationStart(const UnitTest& unit_test, int iteration); > virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test); > virtual void OnEnvironmentsSetUpEnd(const UnitTest& unit_test); > virtual void OnTestCaseStart(const TestCase& test_case); > virtual void OnTestStart(const TestInfo& test_info); > virtual void OnTestPartResult(const TestPartResult& result); > virtual void OnTestEnd(const TestInfo& test_info); > virtual void OnTestCaseEnd(const TestCase& test_case); > virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test); > virtual void OnEnvironmentsTearDownEnd(const UnitTest& unit_test); > virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration); > virtual void OnTestProgramEnd(const UnitTest& unit_test); > > private: > > > bool forwarding_enabled_; > > std::vector<TestEventListener*> listeners_; > > TestEventRepeater(TestEventRepeater const &); void operator=(TestEventRepeater const &); >}; > >TestEventRepeater::~TestEventRepeater() { > ForEach(listeners_, Delete<TestEventListener>); >} > >void TestEventRepeater::Append(TestEventListener *listener) { > listeners_.push_back(listener); >} > > >TestEventListener* TestEventRepeater::Release(TestEventListener *listener) { > for (size_t i = 0; i < listeners_.size(); ++i) { > if (listeners_[i] == listener) { > listeners_.erase(listeners_.begin() + i); > return listener; > } > } > > return __null; >} > > > >#define GTEST_REPEATER_METHOD_(Name,Type) void TestEventRepeater::Name(const Type& parameter) { if (forwarding_enabled_) { for (size_t i = 0; i < listeners_.size(); i++) { listeners_[i]->Name(parameter); } } } ># 4269 "../gtest_contrib/gmock-gtest-all.cc" >#define GTEST_REVERSE_REPEATER_METHOD_(Name,Type) void TestEventRepeater::Name(const Type& parameter) { if (forwarding_enabled_) { for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) { listeners_[i]->Name(parameter); } } } ># 4278 "../gtest_contrib/gmock-gtest-all.cc" >void TestEventRepeater::OnTestProgramStart(const UnitTest& parameter) { if (forwarding_enabled_) { for (size_t i = 0; i < listeners_.size(); i++) { listeners_[i]->OnTestProgramStart(parameter); } } } >void TestEventRepeater::OnEnvironmentsSetUpStart(const UnitTest& parameter) { if (forwarding_enabled_) { for (size_t i = 0; i < listeners_.size(); i++) { listeners_[i]->OnEnvironmentsSetUpStart(parameter); } } } >void TestEventRepeater::OnTestCaseStart(const TestCase& parameter) { if (forwarding_enabled_) { for (size_t i = 0; i < listeners_.size(); i++) { listeners_[i]->OnTestCaseStart(parameter); } } } >void TestEventRepeater::OnTestStart(const TestInfo& parameter) { if (forwarding_enabled_) { for (size_t i = 0; i < listeners_.size(); i++) { listeners_[i]->OnTestStart(parameter); } } } >void TestEventRepeater::OnTestPartResult(const TestPartResult& parameter) { if (forwarding_enabled_) { for (size_t i = 0; i < listeners_.size(); i++) { listeners_[i]->OnTestPartResult(parameter); } } } >void TestEventRepeater::OnEnvironmentsTearDownStart(const UnitTest& parameter) { if (forwarding_enabled_) { for (size_t i = 0; i < listeners_.size(); i++) { listeners_[i]->OnEnvironmentsTearDownStart(parameter); } } } >void TestEventRepeater::OnEnvironmentsSetUpEnd(const UnitTest& parameter) { if (forwarding_enabled_) { for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) { listeners_[i]->OnEnvironmentsSetUpEnd(parameter); } } } >void TestEventRepeater::OnEnvironmentsTearDownEnd(const UnitTest& parameter) { if (forwarding_enabled_) { for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) { listeners_[i]->OnEnvironmentsTearDownEnd(parameter); } } } >void TestEventRepeater::OnTestEnd(const TestInfo& parameter) { if (forwarding_enabled_) { for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) { listeners_[i]->OnTestEnd(parameter); } } } >void TestEventRepeater::OnTestCaseEnd(const TestCase& parameter) { if (forwarding_enabled_) { for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) { listeners_[i]->OnTestCaseEnd(parameter); } } } >void TestEventRepeater::OnTestProgramEnd(const UnitTest& parameter) { if (forwarding_enabled_) { for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) { listeners_[i]->OnTestProgramEnd(parameter); } } } > >#undef GTEST_REPEATER_METHOD_ >#undef GTEST_REVERSE_REPEATER_METHOD_ > >void TestEventRepeater::OnTestIterationStart(const UnitTest& unit_test, > int iteration) { > if (forwarding_enabled_) { > for (size_t i = 0; i < listeners_.size(); i++) { > listeners_[i]->OnTestIterationStart(unit_test, iteration); > } > } >} > >void TestEventRepeater::OnTestIterationEnd(const UnitTest& unit_test, > int iteration) { > if (forwarding_enabled_) { > for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) { > listeners_[i]->OnTestIterationEnd(unit_test, iteration); > } > } >} > > > > >class XmlUnitTestResultPrinter : public EmptyTestEventListener { > public: > explicit XmlUnitTestResultPrinter(const char* output_file); > > virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration); > > private: > > > static bool IsNormalizableWhitespace(char c) { > return c == 0x9 || c == 0xA || c == 0xD; > } > > > static bool IsValidXmlCharacter(char c) { > return IsNormalizableWhitespace(c) || c >= 0x20; > } > > > > > > static String EscapeXml(const char* str, bool is_attribute); > > > static string RemoveInvalidXmlCharacters(const string& str); > > > static String EscapeXmlAttribute(const char* str) { > return EscapeXml(str, true); > } > > > static String EscapeXmlText(const char* str) { return EscapeXml(str, false); } > > > static void OutputXmlCDataSection(::std::ostream* stream, const char* data); > > > static void OutputXmlTestInfo(::std::ostream* stream, > const char* test_case_name, > const TestInfo& test_info); > > > static void PrintXmlTestCase(FILE* out, const TestCase& test_case); > > > static void PrintXmlUnitTest(FILE* out, const UnitTest& unit_test); > > > > > > static String TestPropertiesAsXmlAttributes(const TestResult& result); > > > const String output_file_; > > XmlUnitTestResultPrinter(XmlUnitTestResultPrinter const &); void operator=(XmlUnitTestResultPrinter const &); >}; > > >XmlUnitTestResultPrinter::XmlUnitTestResultPrinter(const char* output_file) > : output_file_(output_file) { > if (output_file_.c_str() == __null || output_file_.empty()) { > fprintf(stderr, "XML output file may not be null\n"); > fflush(stderr); > exit(1); > } >} > > >void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, > int ) { > FILE* xmlout = __null; > FilePath output_file(output_file_); > FilePath output_dir(output_file.RemoveFileName()); > > if (output_dir.CreateDirectoriesRecursively()) { > xmlout = posix::FOpen(output_file_.c_str(), "w"); > } > if (xmlout == __null) { ># 4406 "../gtest_contrib/gmock-gtest-all.cc" > fprintf(stderr, > "Unable to open file \"%s\"\n", > output_file_.c_str()); > fflush(stderr); > exit(1); > } > PrintXmlUnitTest(xmlout, unit_test); > fclose(xmlout); >} ># 4428 "../gtest_contrib/gmock-gtest-all.cc" >String XmlUnitTestResultPrinter::EscapeXml(const char* str, bool is_attribute) { > Message m; > > if (str != __null) { > for (const char* src = str; *src; ++src) { > switch (*src) { > case '<': > m << "<"; > break; > case '>': > m << ">"; > break; > case '&': > m << "&"; > break; > case '\'': > if (is_attribute) > m << "'"; > else > m << '\''; > break; > case '"': > if (is_attribute) > m << """; > else > m << '"'; > break; > default: > if (IsValidXmlCharacter(*src)) { > if (is_attribute && IsNormalizableWhitespace(*src)) > m << String::Format("&#x%02X;", unsigned(*src)); > else > m << *src; > } > break; > } > } > } > > return m.GetString(); >} > > > > >string XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters(const string& str) { > string output; > output.reserve(str.size()); > for (string::const_iterator it = str.begin(); it != str.end(); ++it) > if (IsValidXmlCharacter(*it)) > output.push_back(*it); > > return output; >} ># 4500 "../gtest_contrib/gmock-gtest-all.cc" >std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) { > ::std::stringstream ss; > ss << ms/1000.0; > return ss.str(); >} > > >void XmlUnitTestResultPrinter::OutputXmlCDataSection(::std::ostream* stream, > const char* data) { > const char* segment = data; > *stream << "<![CDATA["; > for (;;) { > const char* const next_segment = strstr(segment, "]]>"); > if (next_segment != __null) { > stream->write( > segment, static_cast<std::streamsize>(next_segment - segment)); > *stream << "]]>]]><![CDATA["; > segment = next_segment + strlen("]]>"); > } else { > *stream << segment; > break; > } > } > *stream << "]]>"; >} > > > >void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream, > const char* test_case_name, > const TestInfo& test_info) { > const TestResult& result = *test_info.result(); > *stream << " <testcase name=\"" > << EscapeXmlAttribute(test_info.name()).c_str() << "\""; > > if (test_info.value_param() != __null) { > *stream << " value_param=\"" << EscapeXmlAttribute(test_info.value_param()) > << "\""; > } > if (test_info.type_param() != __null) { > *stream << " type_param=\"" << EscapeXmlAttribute(test_info.type_param()) > << "\""; > } > > *stream << " status=\"" > << (test_info.should_run() ? "run" : "notrun") > << "\" time=\"" > << FormatTimeInMillisAsSeconds(result.elapsed_time()) > << "\" classname=\"" << EscapeXmlAttribute(test_case_name).c_str() > << "\"" << TestPropertiesAsXmlAttributes(result).c_str(); > > int failures = 0; > for (int i = 0; i < result.total_part_count(); ++i) { > const TestPartResult& part = result.GetTestPartResult(i); > if (part.failed()) { > if (++failures == 1) > *stream << ">\n"; > *stream << " <failure message=\"" > << EscapeXmlAttribute(part.summary()).c_str() > << "\" type=\"\">"; > const string location = internal::FormatCompilerIndependentFileLocation( > part.file_name(), part.line_number()); > const string message = location + "\n" + part.message(); > OutputXmlCDataSection(stream, > RemoveInvalidXmlCharacters(message).c_str()); > *stream << "</failure>\n"; > } > } > > if (failures == 0) > *stream << " />\n"; > else > *stream << " </testcase>\n"; >} > > >void XmlUnitTestResultPrinter::PrintXmlTestCase(FILE* out, > const TestCase& test_case) { > fprintf(out, > " <testsuite name=\"%s\" tests=\"%d\" failures=\"%d\" " > "disabled=\"%d\" ", > EscapeXmlAttribute(test_case.name()).c_str(), > test_case.total_test_count(), > test_case.failed_test_count(), > test_case.disabled_test_count()); > fprintf(out, > "errors=\"0\" time=\"%s\">\n", > FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str()); > for (int i = 0; i < test_case.total_test_count(); ++i) { > ::std::stringstream stream; > OutputXmlTestInfo(&stream, test_case.name(), *test_case.GetTestInfo(i)); > fprintf(out, "%s", StringStreamToString(&stream).c_str()); > } > fprintf(out, " </testsuite>\n"); >} > > >void XmlUnitTestResultPrinter::PrintXmlUnitTest(FILE* out, > const UnitTest& unit_test) { > fprintf(out, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); > fprintf(out, > "<testsuites tests=\"%d\" failures=\"%d\" disabled=\"%d\" " > "errors=\"0\" time=\"%s\" ", > unit_test.total_test_count(), > unit_test.failed_test_count(), > unit_test.disabled_test_count(), > FormatTimeInMillisAsSeconds(unit_test.elapsed_time()).c_str()); > if (FLAGS_gtest_shuffle) { > fprintf(out, "random_seed=\"%d\" ", unit_test.random_seed()); > } > fprintf(out, "name=\"AllTests\">\n"); > for (int i = 0; i < unit_test.total_test_case_count(); ++i) > PrintXmlTestCase(out, *unit_test.GetTestCase(i)); > fprintf(out, "</testsuites>\n"); >} > > > >String XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes( > const TestResult& result) { > Message attributes; > for (int i = 0; i < result.test_property_count(); ++i) { > const TestProperty& property = result.GetTestProperty(i); > attributes << " " << property.key() << "=" > << "\"" << EscapeXmlAttribute(property.value()) << "\""; > } > return attributes.GetString(); >} > > > > > > >class StreamingListener : public EmptyTestEventListener { > public: > > static string UrlEncode(const char* str); > > StreamingListener(const string& host, const string& port) > : sockfd_(-1), host_name_(host), port_num_(port) { > MakeConnection(); > Send("gtest_streaming_protocol_version=1.0\n"); > } > > virtual ~StreamingListener() { > if (sockfd_ != -1) > CloseConnection(); > } > > void OnTestProgramStart(const UnitTest& ) { > Send("event=TestProgramStart\n"); > } > > void OnTestProgramEnd(const UnitTest& unit_test) { > > > Send(String::Format("event=TestProgramEnd&passed=%d\n", > unit_test.Passed())); > > > CloseConnection(); > } > > void OnTestIterationStart(const UnitTest& , int iteration) { > Send(String::Format("event=TestIterationStart&iteration=%d\n", > iteration)); > } > > void OnTestIterationEnd(const UnitTest& unit_test, int ) { > Send(String::Format("event=TestIterationEnd&passed=%d&elapsed_time=%sms\n", > unit_test.Passed(), > StreamableToString(unit_test.elapsed_time()).c_str())); > } > > void OnTestCaseStart(const TestCase& test_case) { > Send(String::Format("event=TestCaseStart&name=%s\n", test_case.name())); > } > > void OnTestCaseEnd(const TestCase& test_case) { > Send(String::Format("event=TestCaseEnd&passed=%d&elapsed_time=%sms\n", > test_case.Passed(), > StreamableToString(test_case.elapsed_time()).c_str())); > } > > void OnTestStart(const TestInfo& test_info) { > Send(String::Format("event=TestStart&name=%s\n", test_info.name())); > } > > void OnTestEnd(const TestInfo& test_info) { > Send(String::Format( > "event=TestEnd&passed=%d&elapsed_time=%sms\n", > (test_info.result())->Passed(), > StreamableToString((test_info.result())->elapsed_time()).c_str())); > } > > void OnTestPartResult(const TestPartResult& test_part_result) { > const char* file_name = test_part_result.file_name(); > if (file_name == __null) > file_name = ""; > Send(String::Format("event=TestPartResult&file=%s&line=%d&message=", > UrlEncode(file_name).c_str(), > test_part_result.line_number())); > Send(UrlEncode(test_part_result.message()) + "\n"); > } > > private: > > void MakeConnection(); > > > void CloseConnection() { > switch (0) case 0: default: if (::testing::internal::IsTrue(sockfd_ != -1)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 4712).GetStream() << "Condition " "sockfd_ != -1" " failed. " > << "CloseConnection() can be called only when there is a connection."; > > close(sockfd_); > sockfd_ = -1; > } > > > void Send(const string& message) { > switch (0) case 0: default: if (::testing::internal::IsTrue(sockfd_ != -1)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 4721).GetStream() << "Condition " "sockfd_ != -1" " failed. " > << "Send() can be called only when there is a connection."; > > const int len = static_cast<int>(message.length()); > if (write(sockfd_, message.c_str(), len) != len) { > ::testing::internal::GTestLog(::testing::internal::GTEST_WARNING, "../gtest_contrib/gmock-gtest-all.cc", 4726).GetStream() > << "stream_result_to: failed to stream to " > << host_name_ << ":" << port_num_; > } > } > > int sockfd_; > const string host_name_; > const string port_num_; > > StreamingListener(StreamingListener const &); void operator=(StreamingListener const &); >}; > > > > > > >string StreamingListener::UrlEncode(const char* str) { > string result; > result.reserve(strlen(str) + 1); > for (char ch = *str; ch != '\0'; ch = *++str) { > switch (ch) { > case '%': > case '=': > case '&': > case '\n': > result.append(String::Format("%%%02x", static_cast<unsigned char>(ch))); > break; > default: > result.push_back(ch); > break; > } > } > return result; >} > >void StreamingListener::MakeConnection() { > switch (0) case 0: default: if (::testing::internal::IsTrue(sockfd_ == -1)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 4764).GetStream() << "Condition " "sockfd_ == -1" " failed. " > << "MakeConnection() can't be called when there is already a connection."; > > addrinfo hints; > memset(&hints, 0, sizeof(hints)); > hints.ai_family = 0; > hints.ai_socktype = SOCK_STREAM; > addrinfo* servinfo = __null; > > > > const int error_num = getaddrinfo( > host_name_.c_str(), port_num_.c_str(), &hints, &servinfo); > if (error_num != 0) { > ::testing::internal::GTestLog(::testing::internal::GTEST_WARNING, "../gtest_contrib/gmock-gtest-all.cc", 4778).GetStream() << "stream_result_to: getaddrinfo() failed: " > << gai_strerror(error_num); > } > > > for (addrinfo* cur_addr = servinfo; sockfd_ == -1 && cur_addr != __null; > cur_addr = cur_addr->ai_next) { > sockfd_ = socket( > cur_addr->ai_family, cur_addr->ai_socktype, cur_addr->ai_protocol); > if (sockfd_ != -1) { > > if (connect(sockfd_, cur_addr->ai_addr, cur_addr->ai_addrlen) == -1) { > close(sockfd_); > sockfd_ = -1; > } > } > } > > freeaddrinfo(servinfo); > > if (sockfd_ == -1) { > ::testing::internal::GTestLog(::testing::internal::GTEST_WARNING, "../gtest_contrib/gmock-gtest-all.cc", 4799).GetStream() << "stream_result_to: failed to connect to " > << host_name_ << ":" << port_num_; > } >} ># 4812 "../gtest_contrib/gmock-gtest-all.cc" >ScopedTrace::ScopedTrace(const char* file, int line, const Message& message) { > TraceInfo trace; > trace.file = file; > trace.line = line; > trace.message = message.GetString(); > > UnitTest::GetInstance()->PushGTestTrace(trace); >} > > > >ScopedTrace::~ScopedTrace() { > UnitTest::GetInstance()->PopGTestTrace(); >} ># 4839 "../gtest_contrib/gmock-gtest-all.cc" >String OsStackTraceGetter::CurrentStackTrace(int, int) { > return String(""); >} > > >void OsStackTraceGetter::UponLeavingGTest() { >} > >const char* const >OsStackTraceGetter::kElidedFramesMarker = > "... " "Google Test" " internal frames ..."; > >} > > > >TestEventListeners::TestEventListeners() > : repeater_(new internal::TestEventRepeater()), > default_result_printer_(__null), > default_xml_generator_(__null) { >} > >TestEventListeners::~TestEventListeners() { delete repeater_; } > > > > > >void TestEventListeners::Append(TestEventListener* listener) { > repeater_->Append(listener); >} > > > > >TestEventListener* TestEventListeners::Release(TestEventListener* listener) { > if (listener == default_result_printer_) > default_result_printer_ = __null; > else if (listener == default_xml_generator_) > default_xml_generator_ = __null; > return repeater_->Release(listener); >} > > > >TestEventListener* TestEventListeners::repeater() { return repeater_; } > > > > > > >void TestEventListeners::SetDefaultResultPrinter(TestEventListener* listener) { > if (default_result_printer_ != listener) { > > > delete Release(default_result_printer_); > default_result_printer_ = listener; > if (listener != __null) > Append(listener); > } >} > > > > > > >void TestEventListeners::SetDefaultXmlGenerator(TestEventListener* listener) { > if (default_xml_generator_ != listener) { > > > delete Release(default_xml_generator_); > default_xml_generator_ = listener; > if (listener != __null) > Append(listener); > } >} > > > >bool TestEventListeners::EventForwardingEnabled() const { > return repeater_->forwarding_enabled(); >} > >void TestEventListeners::SuppressEventForwarding() { > repeater_->set_forwarding_enabled(false); >} ># 4937 "../gtest_contrib/gmock-gtest-all.cc" >UnitTest * UnitTest::GetInstance() { ># 4953 "../gtest_contrib/gmock-gtest-all.cc" > static UnitTest instance; > return &instance; > >} > > >int UnitTest::successful_test_case_count() const { > return impl()->successful_test_case_count(); >} > > >int UnitTest::failed_test_case_count() const { > return impl()->failed_test_case_count(); >} > > >int UnitTest::total_test_case_count() const { > return impl()->total_test_case_count(); >} > > > >int UnitTest::test_case_to_run_count() const { > return impl()->test_case_to_run_count(); >} > > >int UnitTest::successful_test_count() const { > return impl()->successful_test_count(); >} > > >int UnitTest::failed_test_count() const { return impl()->failed_test_count(); } > > >int UnitTest::disabled_test_count() const { > return impl()->disabled_test_count(); >} > > >int UnitTest::total_test_count() const { return impl()->total_test_count(); } > > >int UnitTest::test_to_run_count() const { return impl()->test_to_run_count(); } > > >internal::TimeInMillis UnitTest::elapsed_time() const { > return impl()->elapsed_time(); >} > > >bool UnitTest::Passed() const { return impl()->Passed(); } > > > >bool UnitTest::Failed() const { return impl()->Failed(); } > > > >const TestCase* UnitTest::GetTestCase(int i) const { > return impl()->GetTestCase(i); >} > > > >TestCase* UnitTest::GetMutableTestCase(int i) { > return impl()->GetMutableTestCase(i); >} > > > >TestEventListeners& UnitTest::listeners() { > return *impl()->listeners(); >} ># 5038 "../gtest_contrib/gmock-gtest-all.cc" >Environment* UnitTest::AddEnvironment(Environment* env) { > if (env == __null) { > return __null; > } > > impl_->environments().push_back(env); > return env; >} > > > > > > >void UnitTest::AddTestPartResult(TestPartResult::Type result_type, > const char* file_name, > int line_number, > const internal::String& message, > const internal::String& os_stack_trace) { > Message msg; > msg << message; > > internal::MutexLock lock(&mutex_); > if (impl_->gtest_trace_stack().size() > 0) { > msg << "\n" << "Google Test" << " trace:"; > > for (int i = static_cast<int>(impl_->gtest_trace_stack().size()); > i > 0; --i) { > const internal::TraceInfo& trace = impl_->gtest_trace_stack()[i - 1]; > msg << "\n" << internal::FormatFileLocation(trace.file, trace.line) > << " " << trace.message; > } > } > > if (os_stack_trace.c_str() != __null && !os_stack_trace.empty()) { > msg << internal::kStackTraceMarker << os_stack_trace; > } > > const TestPartResult result = > TestPartResult(result_type, file_name, line_number, > msg.GetString().c_str()); > impl_->GetTestPartResultReporterForCurrentThread()-> > ReportTestPartResult(result); > > if (result_type != TestPartResult::kSuccess) { > > > > > > if (FLAGS_gtest_break_on_failure) { ># 5099 "../gtest_contrib/gmock-gtest-all.cc" > *static_cast<volatile int*>(__null) = 1; > > } else if (FLAGS_gtest_throw_on_failure) { > > throw GoogleTestFailureException(result); > > > > > > } > } >} > > > >void UnitTest::RecordPropertyForCurrentTest(const char* key, > const char* value) { > const TestProperty test_property(key, value); > impl_->current_test_result()->RecordProperty(test_property); >} > > > > > > >int UnitTest::Run() { > > > impl()->set_catch_exceptions(FLAGS_gtest_catch_exceptions); ># 5175 "../gtest_contrib/gmock-gtest-all.cc" > return internal::HandleExceptionsInMethodIfSupported( > impl(), > &internal::UnitTestImpl::RunAllTests, > "auxiliary test code (environments or event listeners)") ? 0 : 1; >} > > > >const char* UnitTest::original_working_dir() const { > return impl_->original_working_dir_.c_str(); >} > > > > >const TestCase* UnitTest::current_test_case() const { > internal::MutexLock lock(&mutex_); > return impl_->current_test_case(); >} > > > > >const TestInfo* UnitTest::current_test_info() const { > internal::MutexLock lock(&mutex_); > return impl_->current_test_info(); >} > > >int UnitTest::random_seed() const { return impl_->random_seed(); } > > > > > >internal::ParameterizedTestCaseRegistry& > UnitTest::parameterized_test_registry() { > return impl_->parameterized_test_registry(); >} > > > >UnitTest::UnitTest() { > impl_ = new internal::UnitTestImpl(this); >} > > >UnitTest::~UnitTest() { > delete impl_; >} > > > > >void UnitTest::PushGTestTrace(const internal::TraceInfo& trace) { > internal::MutexLock lock(&mutex_); > impl_->gtest_trace_stack().push_back(trace); >} > > > >void UnitTest::PopGTestTrace() { > internal::MutexLock lock(&mutex_); > impl_->gtest_trace_stack().pop_back(); >} > >namespace internal { > >UnitTestImpl::UnitTestImpl(UnitTest* parent) > : parent_(parent), ># 5253 "../gtest_contrib/gmock-gtest-all.cc" > default_global_test_part_result_reporter_(this), > default_per_thread_test_part_result_reporter_(this), > > global_test_part_result_repoter_( > &default_global_test_part_result_reporter_), > per_thread_test_part_result_reporter_( > &default_per_thread_test_part_result_reporter_), > > parameterized_test_registry_(), > parameterized_tests_registered_(false), > > last_death_test_case_(-1), > current_test_case_(__null), > current_test_info_(__null), > ad_hoc_test_result_(), > os_stack_trace_getter_(__null), > post_flag_parse_init_performed_(false), > random_seed_(0), > random_(0), > elapsed_time_(0), > > internal_run_death_test_flag_(__null), > death_test_factory_(new DefaultDeathTestFactory), > > > catch_exceptions_(false) { > listeners()->SetDefaultResultPrinter(new PrettyUnitTestResultPrinter); >} > >UnitTestImpl::~UnitTestImpl() { > > ForEach(test_cases_, internal::Delete<TestCase>); > > > ForEach(environments_, internal::Delete<Environment>); > > delete os_stack_trace_getter_; >} > > > > >void UnitTestImpl::SuppressTestEventsIfInSubprocess() { > if (internal_run_death_test_flag_.get() != __null) > listeners()->SuppressEventForwarding(); >} > > > > >void UnitTestImpl::ConfigureXmlOutput() { > const String& output_format = UnitTestOptions::GetOutputFormat(); > if (output_format == "xml") { > listeners()->SetDefaultXmlGenerator(new XmlUnitTestResultPrinter( > UnitTestOptions::GetAbsolutePathToOutputFile().c_str())); > } else if (output_format != "") { > printf("WARNING: unrecognized output format \"%s\" ignored.\n", > output_format.c_str()); > fflush(stdout); > } >} > > > > >void UnitTestImpl::ConfigureStreamingOutput() { > const string& target = FLAGS_gtest_stream_result_to; > if (!target.empty()) { > const size_t pos = target.find(':'); > if (pos != string::npos) { > listeners()->Append(new StreamingListener(target.substr(0, pos), > target.substr(pos+1))); > } else { > printf("WARNING: unrecognized streaming target \"%s\" ignored.\n", > target.c_str()); > fflush(stdout); > } > } >} > > > > > > > >void UnitTestImpl::PostFlagParsingInit() { > > if (!post_flag_parse_init_performed_) { > post_flag_parse_init_performed_ = true; > > > InitDeathTestSubprocessControlInfo(); > SuppressTestEventsIfInSubprocess(); > > > > > > RegisterParameterizedTests(); > > > > ConfigureXmlOutput(); > > > > ConfigureStreamingOutput(); > > } >} ># 5373 "../gtest_contrib/gmock-gtest-all.cc" >class TestCaseNameIs { > public: > > explicit TestCaseNameIs(const String& name) > : name_(name) {} > > > bool operator()(const TestCase* test_case) const { > return test_case != __null && strcmp(test_case->name(), name_.c_str()) == 0; > } > > private: > String name_; >}; ># 5400 "../gtest_contrib/gmock-gtest-all.cc" >TestCase* UnitTestImpl::GetTestCase(const char* test_case_name, > const char* type_param, > Test::SetUpTestCaseFunc set_up_tc, > Test::TearDownTestCaseFunc tear_down_tc) { > > const std::vector<TestCase*>::const_iterator test_case = > std::find_if(test_cases_.begin(), test_cases_.end(), > TestCaseNameIs(test_case_name)); > > if (test_case != test_cases_.end()) > return *test_case; > > > TestCase* const new_test_case = > new TestCase(test_case_name, type_param, set_up_tc, tear_down_tc); > > > if (internal::UnitTestOptions::MatchesFilter(String(test_case_name), > kDeathTestCaseFilter)) { > > > > > ++last_death_test_case_; > test_cases_.insert(test_cases_.begin() + last_death_test_case_, > new_test_case); > } else { > > test_cases_.push_back(new_test_case); > } > > test_case_indices_.push_back(static_cast<int>(test_case_indices_.size())); > return new_test_case; >} > > > >static void SetUpEnvironment(Environment* env) { env->SetUp(); } >static void TearDownEnvironment(Environment* env) { env->TearDown(); } ># 5449 "../gtest_contrib/gmock-gtest-all.cc" >bool UnitTestImpl::RunAllTests() { > > if (!GTestIsInitialized()) { > printf("%s", > "\nThis test program did NOT call ::testing::InitGoogleTest " > "before calling RUN_ALL_TESTS(). Please fix it.\n"); > return false; > } > > > if (g_help_flag) > return true; > > > > PostFlagParsingInit(); > > > > > internal::WriteToShardStatusFileIfNeeded(); > > > > bool in_subprocess_for_death_test = false; > > > in_subprocess_for_death_test = (internal_run_death_test_flag_.get() != __null); > > > const bool should_shard = ShouldShard(kTestTotalShards, kTestShardIndex, > in_subprocess_for_death_test); > > > > const bool has_tests_to_run = FilterTests(should_shard > ? HONOR_SHARDING_PROTOCOL > : IGNORE_SHARDING_PROTOCOL) > 0; > > > if (FLAGS_gtest_list_tests) { > > ListTestsMatchingFilter(); > return true; > } > > random_seed_ = FLAGS_gtest_shuffle ? > GetRandomSeedFromFlag(FLAGS_gtest_random_seed) : 0; > > > bool failed = false; > > TestEventListener* repeater = listeners()->repeater(); > > repeater->OnTestProgramStart(*parent_); > > > > const int repeat = in_subprocess_for_death_test ? 1 : FLAGS_gtest_repeat; > > const bool forever = repeat < 0; > for (int i = 0; forever || i != repeat; i++) { > > > ClearNonAdHocTestResult(); > > const TimeInMillis start = GetTimeInMillis(); > > > if (has_tests_to_run && FLAGS_gtest_shuffle) { > random()->Reseed(random_seed_); > > > > ShuffleTests(); > } > > > repeater->OnTestIterationStart(*parent_, i); > > > if (has_tests_to_run) { > > repeater->OnEnvironmentsSetUpStart(*parent_); > ForEach(environments_, SetUpEnvironment); > repeater->OnEnvironmentsSetUpEnd(*parent_); > > > > if (!Test::HasFatalFailure()) { > for (int test_index = 0; test_index < total_test_case_count(); > test_index++) { > GetMutableTestCase(test_index)->Run(); > } > } > > > repeater->OnEnvironmentsTearDownStart(*parent_); > std::for_each(environments_.rbegin(), environments_.rend(), > TearDownEnvironment); > repeater->OnEnvironmentsTearDownEnd(*parent_); > } > > elapsed_time_ = GetTimeInMillis() - start; > > > repeater->OnTestIterationEnd(*parent_, i); > > > if (!Passed()) { > failed = true; > } > > > > > > > > UnshuffleTests(); > > if (FLAGS_gtest_shuffle) { > > random_seed_ = GetNextRandomSeed(random_seed_); > } > } > > repeater->OnTestProgramEnd(*parent_); > > return !failed; >} > > > > > >void WriteToShardStatusFileIfNeeded() { > const char* const test_shard_file = posix::GetEnv(kTestShardStatusFile); > if (test_shard_file != __null) { > FILE* const file = posix::FOpen(test_shard_file, "w"); > if (file == __null) { > ColoredPrintf(COLOR_RED, > "Could not write to the test shard status file \"%s\" " > "specified by the %s environment variable.\n", > test_shard_file, kTestShardStatusFile); > fflush(stdout); > exit(1); > } > fclose(file); > } >} > > > > > > > >bool ShouldShard(const char* total_shards_env, > const char* shard_index_env, > bool in_subprocess_for_death_test) { > if (in_subprocess_for_death_test) { > return false; > } > > const Int32 total_shards = Int32FromEnvOrDie(total_shards_env, -1); > const Int32 shard_index = Int32FromEnvOrDie(shard_index_env, -1); > > if (total_shards == -1 && shard_index == -1) { > return false; > } else if (total_shards == -1 && shard_index != -1) { > const Message msg = Message() > << "Invalid environment variables: you have " > << kTestShardIndex << " = " << shard_index > << ", but have left " << kTestTotalShards << " unset.\n"; > ColoredPrintf(COLOR_RED, msg.GetString().c_str()); > fflush(stdout); > exit(1); > } else if (total_shards != -1 && shard_index == -1) { > const Message msg = Message() > << "Invalid environment variables: you have " > << kTestTotalShards << " = " << total_shards > << ", but have left " << kTestShardIndex << " unset.\n"; > ColoredPrintf(COLOR_RED, msg.GetString().c_str()); > fflush(stdout); > exit(1); > } else if (shard_index < 0 || shard_index >= total_shards) { > const Message msg = Message() > << "Invalid environment variables: we require 0 <= " > << kTestShardIndex << " < " << kTestTotalShards > << ", but you have " << kTestShardIndex << "=" << shard_index > << ", " << kTestTotalShards << "=" << total_shards << ".\n"; > ColoredPrintf(COLOR_RED, msg.GetString().c_str()); > fflush(stdout); > exit(1); > } > > return total_shards > 1; >} > > > > >Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) { > const char* str_val = posix::GetEnv(var); > if (str_val == __null) { > return default_val; > } > > Int32 result; > if (!ParseInt32(Message() << "The value of environment variable " << var, > str_val, &result)) { > exit(1); > } > return result; >} > > > > > >bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_id) { > return (test_id % total_shards) == shard_index; >} ># 5681 "../gtest_contrib/gmock-gtest-all.cc" >int UnitTestImpl::FilterTests(ReactionToSharding shard_tests) { > const Int32 total_shards = shard_tests == HONOR_SHARDING_PROTOCOL ? > Int32FromEnvOrDie(kTestTotalShards, -1) : -1; > const Int32 shard_index = shard_tests == HONOR_SHARDING_PROTOCOL ? > Int32FromEnvOrDie(kTestShardIndex, -1) : -1; > > > > > > int num_runnable_tests = 0; > int num_selected_tests = 0; > for (size_t i = 0; i < test_cases_.size(); i++) { > TestCase* const test_case = test_cases_[i]; > const String &test_case_name = test_case->name(); > test_case->set_should_run(false); > > for (size_t j = 0; j < test_case->test_info_list().size(); j++) { > TestInfo* const test_info = test_case->test_info_list()[j]; > const String test_name(test_info->name()); > > > const bool is_disabled = > internal::UnitTestOptions::MatchesFilter(test_case_name, > kDisableTestFilter) || > internal::UnitTestOptions::MatchesFilter(test_name, > kDisableTestFilter); > test_info->is_disabled_ = is_disabled; > > const bool matches_filter = > internal::UnitTestOptions::FilterMatchesTest(test_case_name, > test_name); > test_info->matches_filter_ = matches_filter; > > const bool is_runnable = > (FLAGS_gtest_also_run_disabled_tests || !is_disabled) && > matches_filter; > > const bool is_selected = is_runnable && > (shard_tests == IGNORE_SHARDING_PROTOCOL || > ShouldRunTestOnShard(total_shards, shard_index, > num_runnable_tests)); > > num_runnable_tests += is_runnable; > num_selected_tests += is_selected; > > test_info->should_run_ = is_selected; > test_case->set_should_run(test_case->should_run() || is_selected); > } > } > return num_selected_tests; >} > > >void UnitTestImpl::ListTestsMatchingFilter() { > for (size_t i = 0; i < test_cases_.size(); i++) { > const TestCase* const test_case = test_cases_[i]; > bool printed_test_case_name = false; > > for (size_t j = 0; j < test_case->test_info_list().size(); j++) { > const TestInfo* const test_info = > test_case->test_info_list()[j]; > if (test_info->matches_filter_) { > if (!printed_test_case_name) { > printed_test_case_name = true; > printf("%s.\n", test_case->name()); > } > printf(" %s\n", test_info->name()); > } > } > } > fflush(stdout); >} > > > > > > >void UnitTestImpl::set_os_stack_trace_getter( > OsStackTraceGetterInterface* getter) { > if (os_stack_trace_getter_ != getter) { > delete os_stack_trace_getter_; > os_stack_trace_getter_ = getter; > } >} > > > > >OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() { > if (os_stack_trace_getter_ == __null) { > os_stack_trace_getter_ = new OsStackTraceGetter; > } > > return os_stack_trace_getter_; >} > > > >TestResult* UnitTestImpl::current_test_result() { > return current_test_info_ ? > &(current_test_info_->result_) : &ad_hoc_test_result_; >} > > > >void UnitTestImpl::ShuffleTests() { > > ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_); > > > ShuffleRange(random(), last_death_test_case_ + 1, > static_cast<int>(test_cases_.size()), &test_case_indices_); > > > for (size_t i = 0; i < test_cases_.size(); i++) { > test_cases_[i]->ShuffleTests(random()); > } >} > > >void UnitTestImpl::UnshuffleTests() { > for (size_t i = 0; i < test_cases_.size(); i++) { > > test_cases_[i]->UnshuffleTests(); > > test_case_indices_[i] = static_cast<int>(i); > } >} ># 5822 "../gtest_contrib/gmock-gtest-all.cc" >String GetCurrentOsStackTraceExceptTop(UnitTest* , > int skip_count) { > > > return GetUnitTestImpl()->CurrentOsStackTraceExceptTop(skip_count + 1); >} > > > >namespace { >class ClassUniqueToAlwaysTrue {}; >} > >bool IsTrue(bool condition) { return condition; } > >bool AlwaysTrue() { > > > > if (IsTrue(false)) > throw ClassUniqueToAlwaysTrue(); > > return true; >} > > > > >bool SkipPrefix(const char* prefix, const char** pstr) { > const size_t prefix_len = strlen(prefix); > if (strncmp(*pstr, prefix, prefix_len) == 0) { > *pstr += prefix_len; > return true; > } > return false; >} > > > > > > >const char* ParseFlagValue(const char* str, > const char* flag, > bool def_optional) { > > if (str == __null || flag == __null) return __null; > > > const String flag_str = String::Format("--%s%s", "gtest_", flag); > const size_t flag_len = flag_str.length(); > if (strncmp(str, flag_str.c_str(), flag_len) != 0) return __null; > > > const char* flag_end = str + flag_len; > > > if (def_optional && (flag_end[0] == '\0')) { > return flag_end; > } > > > > > if (flag_end[0] != '=') return __null; > > > return flag_end + 1; >} ># 5902 "../gtest_contrib/gmock-gtest-all.cc" >bool ParseBoolFlag(const char* str, const char* flag, bool* value) { > > const char* const value_str = ParseFlagValue(str, flag, true); > > > if (value_str == __null) return false; > > > *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F'); > return true; >} > > > > > > >bool ParseInt32Flag(const char* str, const char* flag, Int32* value) { > > const char* const value_str = ParseFlagValue(str, flag, false); > > > if (value_str == __null) return false; > > > return ParseInt32(Message() << "The value of flag --" << flag, > value_str, value); >} > > > > > > >bool ParseStringFlag(const char* str, const char* flag, String* value) { > > const char* const value_str = ParseFlagValue(str, flag, false); > > > if (value_str == __null) return false; > > > *value = value_str; > return true; >} > > > > > > > >static bool HasGoogleTestFlagPrefix(const char* str) { > return (SkipPrefix("--", &str) || > SkipPrefix("-", &str) || > SkipPrefix("/", &str)) && > !SkipPrefix("gtest_" "internal_", &str) && > (SkipPrefix("gtest_", &str) || > SkipPrefix("gtest-", &str)); >} ># 5974 "../gtest_contrib/gmock-gtest-all.cc" >static void PrintColorEncoded(const char* str) { > GTestColor color = COLOR_DEFAULT; > > > > > > for (;;) { > const char* p = strchr(str, '@'); > if (p == __null) { > ColoredPrintf(color, "%s", str); > return; > } > > ColoredPrintf(color, "%s", String(str, p - str).c_str()); > > const char ch = p[1]; > str = p + 2; > if (ch == '@') { > ColoredPrintf(color, "@"); > } else if (ch == 'D') { > color = COLOR_DEFAULT; > } else if (ch == 'R') { > color = COLOR_RED; > } else if (ch == 'G') { > color = COLOR_GREEN; > } else if (ch == 'Y') { > color = COLOR_YELLOW; > } else { > --str; > } > } >} > >static const char kColorEncodedHelpMessage[] = >"This program contains tests written using " "Google Test" ". You can use the\n" >"following command line flags to control its behavior:\n" >"\n" >"Test Selection:\n" >" @G--" "gtest_" "list_tests@D\n" >" List the names of all tests instead of running them. The name of\n" >" TEST(Foo, Bar) is \"Foo.Bar\".\n" >" @G--" "gtest_" "filter=@YPOSTIVE_PATTERNS" > "[@G-@YNEGATIVE_PATTERNS]@D\n" >" Run only the tests whose name matches one of the positive patterns but\n" >" none of the negative patterns. '?' matches any single character; '*'\n" >" matches any substring; ':' separates two patterns.\n" >" @G--" "gtest_" "also_run_disabled_tests@D\n" >" Run all disabled tests too.\n" >"\n" >"Test Execution:\n" >" @G--" "gtest_" "repeat=@Y[COUNT]@D\n" >" Run the tests repeatedly; use a negative count to repeat forever.\n" >" @G--" "gtest_" "shuffle@D\n" >" Randomize tests' orders on every iteration.\n" >" @G--" "gtest_" "random_seed=@Y[NUMBER]@D\n" >" Random number seed to use for shuffling test orders (between 1 and\n" >" 99999, or 0 to use a seed based on the current time).\n" >"\n" >"Test Output:\n" >" @G--" "gtest_" "color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n" >" Enable/disable colored output. The default is @Gauto@D.\n" >" -@G-" "gtest_" "print_time=0@D\n" >" Don't print the elapsed time of each test.\n" >" @G--" "gtest_" "output=xml@Y[@G:@YDIRECTORY_PATH@G" > "/" "@Y|@G:@YFILE_PATH]@D\n" >" Generate an XML report in the given directory or with the given file\n" >" name. @YFILE_PATH@D defaults to @Gtest_details.xml@D.\n" > >" @G--" "gtest_" "stream_result_to=@YHOST@G:@YPORT@D\n" >" Stream test results to the given server.\n" > >"\n" >"Assertion Behavior:\n" > >" @G--" "gtest_" "death_test_style=@Y(@Gfast@Y|@Gthreadsafe@Y)@D\n" >" Set the default death test style.\n" > >" @G--" "gtest_" "break_on_failure@D\n" >" Turn assertion failures into debugger break-points.\n" >" @G--" "gtest_" "throw_on_failure@D\n" >" Turn assertion failures into C++ exceptions.\n" >" @G--" "gtest_" "catch_exceptions=0@D\n" >" Do not report exceptions as test failures. Instead, allow them\n" >" to crash the program or throw a pop-up (on Windows).\n" >"\n" >"Except for @G--" "gtest_" "list_tests@D, you can alternatively set " > "the corresponding\n" >"environment variable of a flag (all letters in upper-case). For example, to\n" >"disable colored text output, you can either specify @G--" "gtest_" > "color=no@D or set\n" >"the @G" "GTEST_" "COLOR@D environment variable to @Gno@D.\n" >"\n" >"For more information, please read the " "Google Test" " documentation at\n" >"@G" "http://code.google.com/p/googletest/" "@D. If you find a bug in " "Google Test" "\n" >"(not one in your own code or tests), please report it to\n" >"@G<" "googletestframework@@googlegroups.com" ">@D.\n"; > > > > >template <typename CharType> >void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) { > for (int i = 1; i < *argc; i++) { > const String arg_string = StreamableToString(argv[i]); > const char* const arg = arg_string.c_str(); > > using internal::ParseBoolFlag; > using internal::ParseInt32Flag; > using internal::ParseStringFlag; > > > if (ParseBoolFlag(arg, kAlsoRunDisabledTestsFlag, > &FLAGS_gtest_also_run_disabled_tests) || > ParseBoolFlag(arg, kBreakOnFailureFlag, > &FLAGS_gtest_break_on_failure) || > ParseBoolFlag(arg, kCatchExceptionsFlag, > &FLAGS_gtest_catch_exceptions) || > ParseStringFlag(arg, kColorFlag, &FLAGS_gtest_color) || > ParseStringFlag(arg, kDeathTestStyleFlag, > &FLAGS_gtest_death_test_style) || > ParseBoolFlag(arg, kDeathTestUseFork, > &FLAGS_gtest_death_test_use_fork) || > ParseStringFlag(arg, kFilterFlag, &FLAGS_gtest_filter) || > ParseStringFlag(arg, kInternalRunDeathTestFlag, > &FLAGS_gtest_internal_run_death_test) || > ParseBoolFlag(arg, kListTestsFlag, &FLAGS_gtest_list_tests) || > ParseStringFlag(arg, kOutputFlag, &FLAGS_gtest_output) || > ParseBoolFlag(arg, kPrintTimeFlag, &FLAGS_gtest_print_time) || > ParseInt32Flag(arg, kRandomSeedFlag, &FLAGS_gtest_random_seed) || > ParseInt32Flag(arg, kRepeatFlag, &FLAGS_gtest_repeat) || > ParseBoolFlag(arg, kShuffleFlag, &FLAGS_gtest_shuffle) || > ParseInt32Flag(arg, kStackTraceDepthFlag, > &FLAGS_gtest_stack_trace_depth) || > ParseStringFlag(arg, kStreamResultToFlag, > &FLAGS_gtest_stream_result_to) || > ParseBoolFlag(arg, kThrowOnFailureFlag, > &FLAGS_gtest_throw_on_failure) > ) { > > > > > for (int j = i; j != *argc; j++) { > argv[j] = argv[j + 1]; > } > > > (*argc)--; > > > > i--; > } else if (arg_string == "--help" || arg_string == "-h" || > arg_string == "-?" || arg_string == "/?" || > HasGoogleTestFlagPrefix(arg)) { > > > g_help_flag = true; > } > } > > if (g_help_flag) { > > > > PrintColorEncoded(kColorEncodedHelpMessage); > } >} > > > >void ParseGoogleTestFlagsOnly(int* argc, char** argv) { > ParseGoogleTestFlagsOnlyImpl(argc, argv); >} >void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) { > ParseGoogleTestFlagsOnlyImpl(argc, argv); >} > > > > > >template <typename CharType> >void InitGoogleTestImpl(int* argc, CharType** argv) { > g_init_gtest_count++; > > > if (g_init_gtest_count != 1) return; > > if (*argc <= 0) return; > > internal::g_executable_path = internal::StreamableToString(argv[0]); > > > > g_argvs.clear(); > for (int i = 0; i != *argc; i++) { > g_argvs.push_back(StreamableToString(argv[i])); > } > > > > ParseGoogleTestFlagsOnly(argc, argv); > GetUnitTestImpl()->PostFlagParsingInit(); >} > >} ># 6192 "../gtest_contrib/gmock-gtest-all.cc" >void InitGoogleTest(int* argc, char** argv) { > internal::InitGoogleTestImpl(argc, argv); >} > > > >void InitGoogleTest(int* argc, wchar_t** argv) { > internal::InitGoogleTestImpl(argc, argv); >} > >} ># 6243 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "/usr/include/errno.h" 1 3 4 ># 71 "/usr/include/errno.h" 3 4 >#undef __need_error_t ># 6244 "../gtest_contrib/gmock-gtest-all.cc" 2 > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 1 3 4 ># 6246 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 6263 "../gtest_contrib/gmock-gtest-all.cc" >#define GTEST_IMPLEMENTATION_ 1 >#undef GTEST_IMPLEMENTATION_ > >namespace testing { > > > > >static const char kDefaultDeathTestStyle[] = "fast"; > > ::testing::internal::String FLAGS_gtest_death_test_style = (internal::StringFromGTestEnv("death_test_style", kDefaultDeathTestStyle)) > > > > > > > ; > > bool FLAGS_gtest_death_test_use_fork = (internal::BoolFromGTestEnv("death_test_use_fork", false)) ># 6292 "../gtest_contrib/gmock-gtest-all.cc" > ; > >namespace internal { > ::testing::internal::String FLAGS_gtest_internal_run_death_test = ("") > > > > > > > ; >} > > > > >ExitedWithCode::ExitedWithCode(int exit_code) : exit_code_(exit_code) { >} > > >bool ExitedWithCode::operator()(int exit_status) const { > > > > > > > return ((((*(int *) &(exit_status))) & 0x7f) == 0) && ((((*(int *) &(exit_status))) & 0xff00) >> 8) == exit_code_; > > >} > > > >KilledBySignal::KilledBySignal(int signum) : signum_(signum) { >} > > >bool KilledBySignal::operator()(int exit_status) const { > return (((signed char) ((((*(int *) &(exit_status))) & 0x7f) + 1) >> 1) > 0) && (((*(int *) &(exit_status))) & 0x7f) == signum_; >} > > >namespace internal { > > > > > >static String ExitSummary(int exit_code) { > Message m; > > > > > > > > if (((((*(int *) &(exit_code))) & 0x7f) == 0)) { > m << "Exited with exit status " << ((((*(int *) &(exit_code))) & 0xff00) >> 8); > } else if ((((signed char) ((((*(int *) &(exit_code))) & 0x7f) + 1) >> 1) > 0)) { > m << "Terminated by signal " << (((*(int *) &(exit_code))) & 0x7f); > } > > if ((((*(int *) &(exit_code))) & 0x80)) { > m << " (core dumped)"; > } > > > > return m.GetString(); >} > > > >bool ExitedUnsuccessfully(int exit_status) { > return !ExitedWithCode(0)(exit_status); >} > > > > > > >static String DeathTestThreadWarning(size_t thread_count) { > Message msg; > msg << "Death tests use fork(), which is unsafe particularly" > << " in a threaded context. For this test, " << "Google Test" << " "; > if (thread_count == 0) > msg << "couldn't detect the number of threads."; > else > msg << "detected " << thread_count << " threads."; > return msg.GetString(); >} > > > >static const char kDeathTestLived = 'L'; >static const char kDeathTestReturned = 'R'; >static const char kDeathTestThrew = 'T'; >static const char kDeathTestInternalError = 'I'; ># 6403 "../gtest_contrib/gmock-gtest-all.cc" >enum DeathTestOutcome { IN_PROGRESS, DIED, LIVED, RETURNED, THREW }; > > > > > > >void DeathTestAbort(const String& message) { > > > > const InternalRunDeathTestFlag* const flag = > GetUnitTestImpl()->internal_run_death_test_flag(); > if (flag != __null) { > FILE* parent = posix::FDOpen(flag->write_fd(), "w"); > fputc(kDeathTestInternalError, parent); > fprintf(parent, "%s", message.c_str()); > fflush(parent); > _exit(1); > } else { > fprintf(stderr, "%s", message.c_str()); > fflush(stderr); > posix::Abort(); > } >} > > > >#define GTEST_DEATH_TEST_CHECK_(expression) do { if (!::testing::internal::IsTrue(expression)) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s", __FILE__, __LINE__, #expression)); } } while (::testing::internal::AlwaysFalse()) ># 6447 "../gtest_contrib/gmock-gtest-all.cc" >#define GTEST_DEATH_TEST_CHECK_SYSCALL_(expression) do { int gtest_retval; do { gtest_retval = (expression); } while (gtest_retval == -1 && errno == EINTR); if (gtest_retval == -1) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s != -1", __FILE__, __LINE__, #expression)); } } while (::testing::internal::AlwaysFalse()) ># 6461 "../gtest_contrib/gmock-gtest-all.cc" >String GetLastErrnoDescription() { > return String((*__errno_location ()) == 0 ? "" : posix::StrError((*__errno_location ()))); >} > > > > > >static void FailFromInternalError(int fd) { > Message error; > char buffer[256]; > int num_read; > > do { > while ((num_read = posix::Read(fd, buffer, 255)) > 0) { > buffer[num_read] = '\0'; > error << buffer; > } > } while (num_read == -1 && (*__errno_location ()) == 4); > > if (num_read == 0) { > ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 6482).GetStream() << error.GetString(); > } else { > const int last_error = (*__errno_location ()); > ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 6485).GetStream() << "Error while reading death test internal: " > << GetLastErrnoDescription() << " [" << last_error << "]"; > } >} > > > >DeathTest::DeathTest() { > TestInfo* const info = GetUnitTestImpl()->current_test_info(); > if (info == __null) { > DeathTestAbort("Cannot run a death test outside of a TEST or " > "TEST_F construct"); > } >} > > > >bool DeathTest::Create(const char* statement, const RE* regex, > const char* file, int line, DeathTest** test) { > return GetUnitTestImpl()->death_test_factory()->Create( > statement, regex, file, line, test); >} > >const char* DeathTest::LastMessage() { > return last_death_test_message_.c_str(); >} > >void DeathTest::set_last_death_test_message(const String& message) { > last_death_test_message_ = message; >} > >String DeathTest::last_death_test_message_; > > >class DeathTestImpl : public DeathTest { > protected: > DeathTestImpl(const char* a_statement, const RE* a_regex) > : statement_(a_statement), > regex_(a_regex), > spawned_(false), > status_(-1), > outcome_(IN_PROGRESS), > read_fd_(-1), > write_fd_(-1) {} > > > ~DeathTestImpl() { do { if (!::testing::internal::IsTrue(read_fd_ == -1)) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s", "../gtest_contrib/gmock-gtest-all.cc", 6531, "read_fd_ == -1")); } } while (::testing::internal::AlwaysFalse()); } > > void Abort(AbortReason reason); > virtual bool Passed(bool status_ok); > > const char* statement() const { return statement_; } > const RE* regex() const { return regex_; } > bool spawned() const { return spawned_; } > void set_spawned(bool is_spawned) { spawned_ = is_spawned; } > int status() const { return status_; } > void set_status(int a_status) { status_ = a_status; } > DeathTestOutcome outcome() const { return outcome_; } > void set_outcome(DeathTestOutcome an_outcome) { outcome_ = an_outcome; } > int read_fd() const { return read_fd_; } > void set_read_fd(int fd) { read_fd_ = fd; } > int write_fd() const { return write_fd_; } > void set_write_fd(int fd) { write_fd_ = fd; } > > > > > > void ReadAndInterpretStatusByte(); > > private: > > > const char* const statement_; > > > const RE* const regex_; > > bool spawned_; > > int status_; > > DeathTestOutcome outcome_; > > > > int read_fd_; > > > > int write_fd_; >}; > > > > > >void DeathTestImpl::ReadAndInterpretStatusByte() { > char flag; > int bytes_read; > > > > > > do { > bytes_read = posix::Read(read_fd(), &flag, 1); > } while (bytes_read == -1 && (*__errno_location ()) == 4); > > if (bytes_read == 0) { > set_outcome(DIED); > } else if (bytes_read == 1) { > switch (flag) { > case kDeathTestReturned: > set_outcome(RETURNED); > break; > case kDeathTestThrew: > set_outcome(THREW); > break; > case kDeathTestLived: > set_outcome(LIVED); > break; > case kDeathTestInternalError: > FailFromInternalError(read_fd()); > break; > default: > ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 6611).GetStream() << "Death test child process reported " > << "unexpected status byte (" > << static_cast<unsigned int>(flag) << ")"; > } > } else { > ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 6616).GetStream() << "Read from death test child process failed: " > << GetLastErrnoDescription(); > } > do { int gtest_retval; do { gtest_retval = (posix::Close(read_fd())); } while (gtest_retval == -1 && (*__errno_location ()) == 4); if (gtest_retval == -1) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s != -1", "../gtest_contrib/gmock-gtest-all.cc", 6619, "posix::Close(read_fd())")); } } while (::testing::internal::AlwaysFalse()); > set_read_fd(-1); >} > > > > > >void DeathTestImpl::Abort(AbortReason reason) { > > > > const char status_ch = > reason == TEST_DID_NOT_DIE ? kDeathTestLived : > reason == TEST_THREW_EXCEPTION ? kDeathTestThrew : kDeathTestReturned; > > do { int gtest_retval; do { gtest_retval = (posix::Write(write_fd(), &status_ch, 1)); } while (gtest_retval == -1 && (*__errno_location ()) == 4); if (gtest_retval == -1) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s != -1", "../gtest_contrib/gmock-gtest-all.cc", 6635, "posix::Write(write_fd(), &status_ch, 1)")); } } while (::testing::internal::AlwaysFalse()); ># 6644 "../gtest_contrib/gmock-gtest-all.cc" > _exit(1); >} > > > > >static ::std::string FormatDeathTestOutput(const ::std::string& output) { > ::std::string ret; > for (size_t at = 0; ; ) { > const size_t line_end = output.find('\n', at); > ret += "[ DEATH ] "; > if (line_end == ::std::string::npos) { > ret += output.substr(at); > break; > } > ret += output.substr(at, line_end + 1 - at); > at = line_end + 1; > } > return ret; >} ># 6687 "../gtest_contrib/gmock-gtest-all.cc" >bool DeathTestImpl::Passed(bool status_ok) { > if (!spawned()) > return false; > > const String error_message = GetCapturedStderr(); > > bool success = false; > Message buffer; > > buffer << "Death test: " << statement() << "\n"; > switch (outcome()) { > case LIVED: > buffer << " Result: failed to die.\n" > << " Error msg:\n" << FormatDeathTestOutput(error_message); > break; > case THREW: > buffer << " Result: threw an exception.\n" > << " Error msg:\n" << FormatDeathTestOutput(error_message); > break; > case RETURNED: > buffer << " Result: illegal return in test statement.\n" > << " Error msg:\n" << FormatDeathTestOutput(error_message); > break; > case DIED: > if (status_ok) { > const bool matched = RE::PartialMatch(error_message.c_str(), *regex()); > if (matched) { > success = true; > } else { > buffer << " Result: died but not with expected error.\n" > << " Expected: " << regex()->pattern() << "\n" > << "Actual msg:\n" << FormatDeathTestOutput(error_message); > } > } else { > buffer << " Result: died but not with expected exit code:\n" > << " " << ExitSummary(status()) << "\n" > << "Actual msg:\n" << FormatDeathTestOutput(error_message); > } > break; > case IN_PROGRESS: > default: > ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 6728).GetStream() > << "DeathTest::Passed somehow called before conclusion of test"; > } > > DeathTest::set_last_death_test_message(buffer.GetString()); > return success; >} ># 6937 "../gtest_contrib/gmock-gtest-all.cc" >class ForkingDeathTest : public DeathTestImpl { > public: > ForkingDeathTest(const char* statement, const RE* regex); > > > virtual int Wait(); > > protected: > void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; } > > private: > > pid_t child_pid_; >}; > > >ForkingDeathTest::ForkingDeathTest(const char* a_statement, const RE* a_regex) > : DeathTestImpl(a_statement, a_regex), > child_pid_(-1) {} > > > > >int ForkingDeathTest::Wait() { > if (!spawned()) > return 0; > > ReadAndInterpretStatusByte(); > > int status_value; > do { int gtest_retval; do { gtest_retval = (waitpid(child_pid_, &status_value, 0)); } while (gtest_retval == -1 && (*__errno_location ()) == 4); if (gtest_retval == -1) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s != -1", "../gtest_contrib/gmock-gtest-all.cc", 6967, "waitpid(child_pid_, &status_value, 0)")); } } while (::testing::internal::AlwaysFalse()); > set_status(status_value); > return status_value; >} > > > >class NoExecDeathTest : public ForkingDeathTest { > public: > NoExecDeathTest(const char* a_statement, const RE* a_regex) : > ForkingDeathTest(a_statement, a_regex) { } > virtual TestRole AssumeRole(); >}; > > > >DeathTest::TestRole NoExecDeathTest::AssumeRole() { > const size_t thread_count = GetThreadCount(); > if (thread_count != 1) { > ::testing::internal::GTestLog(::testing::internal::GTEST_WARNING, "../gtest_contrib/gmock-gtest-all.cc", 6986).GetStream() << DeathTestThreadWarning(thread_count); > } > > int pipe_fd[2]; > do { if (!::testing::internal::IsTrue(pipe(pipe_fd) != -1)) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s", "../gtest_contrib/gmock-gtest-all.cc", 6990, "pipe(pipe_fd) != -1")); } } while (::testing::internal::AlwaysFalse()); > > DeathTest::set_last_death_test_message(""); > CaptureStderr(); > > > > > > > > FlushInfoLog(); > > const pid_t child_pid = fork(); > do { if (!::testing::internal::IsTrue(child_pid != -1)) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s", "../gtest_contrib/gmock-gtest-all.cc", 7004, "child_pid != -1")); } } while (::testing::internal::AlwaysFalse()); > set_child_pid(child_pid); > if (child_pid == 0) { > do { int gtest_retval; do { gtest_retval = (close(pipe_fd[0])); } while (gtest_retval == -1 && (*__errno_location ()) == 4); if (gtest_retval == -1) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s != -1", "../gtest_contrib/gmock-gtest-all.cc", 7007, "close(pipe_fd[0])")); } } while (::testing::internal::AlwaysFalse()); > set_write_fd(pipe_fd[1]); > > > > LogToStderr(); > > > GetUnitTestImpl()->listeners()->SuppressEventForwarding(); > return EXECUTE_TEST; > } else { > do { int gtest_retval; do { gtest_retval = (close(pipe_fd[1])); } while (gtest_retval == -1 && (*__errno_location ()) == 4); if (gtest_retval == -1) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s != -1", "../gtest_contrib/gmock-gtest-all.cc", 7018, "close(pipe_fd[1])")); } } while (::testing::internal::AlwaysFalse()); > set_read_fd(pipe_fd[0]); > set_spawned(true); > return OVERSEE_TEST; > } >} > > > > >class ExecDeathTest : public ForkingDeathTest { > public: > ExecDeathTest(const char* a_statement, const RE* a_regex, > const char* file, int line) : > ForkingDeathTest(a_statement, a_regex), file_(file), line_(line) { } > virtual TestRole AssumeRole(); > private: > > const char* const file_; > > const int line_; >}; > > >class Arguments { > public: > Arguments() { > args_.push_back(__null); > } > > ~Arguments() { > for (std::vector<char*>::iterator i = args_.begin(); i != args_.end(); > ++i) { > free(*i); > } > } > void AddArgument(const char* argument) { > args_.insert(args_.end() - 1, posix::StrDup(argument)); > } > > template <typename Str> > void AddArguments(const ::std::vector<Str>& arguments) { > for (typename ::std::vector<Str>::const_iterator i = arguments.begin(); > i != arguments.end(); > ++i) { > args_.insert(args_.end() - 1, posix::StrDup(i->c_str())); > } > } > char* const* Argv() { > return &args_[0]; > } > private: > std::vector<char*> args_; >}; > > > >struct ExecDeathTestArgs { > char* const* argv; > int close_fd; >}; ># 7090 "../gtest_contrib/gmock-gtest-all.cc" >extern "C" char** environ; >inline char** GetEnviron() { return environ; } > > > > > >static int ExecDeathTestChildMain(void* child_arg) { > ExecDeathTestArgs* const args = static_cast<ExecDeathTestArgs*>(child_arg); > do { int gtest_retval; do { gtest_retval = (close(args->close_fd)); } while (gtest_retval == -1 && (*__errno_location ()) == 4); if (gtest_retval == -1) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s != -1", "../gtest_contrib/gmock-gtest-all.cc", 7099, "close(args->close_fd)")); } } while (::testing::internal::AlwaysFalse()); > > > > > const char* const original_dir = > UnitTest::GetInstance()->original_working_dir(); > > if (chdir(original_dir) != 0) { > DeathTestAbort(String::Format("chdir(\"%s\") failed: %s", > original_dir, > GetLastErrnoDescription().c_str())); > return 1; > } > > > > > > > execve(args->argv[0], args->argv, GetEnviron()); > DeathTestAbort(String::Format("execve(%s, ...) in %s failed: %s", > args->argv[0], > original_dir, > GetLastErrnoDescription().c_str())); > return 1; >} ># 7136 "../gtest_contrib/gmock-gtest-all.cc" >bool StackLowerThanAddress(const void* ptr) __attribute__((noinline)); >bool StackLowerThanAddress(const void* ptr) { > int dummy; > return &dummy < ptr; >} > >bool StackGrowsDown() { > int dummy; > return StackLowerThanAddress(&dummy); >} > > > > >static pid_t ExecDeathTestFork(char* const* argv, int close_fd) { > ExecDeathTestArgs args = { argv, close_fd }; > pid_t child_pid = -1; > > > const bool use_fork = FLAGS_gtest_death_test_use_fork; > > if (!use_fork) { > static const bool stack_grows_down = StackGrowsDown(); > const size_t stack_size = getpagesize(); > > void* const stack = mmap(__null, stack_size, 0x1 | 0x2, > 0x20 | 0x02, -1, 0); > do { if (!::testing::internal::IsTrue(stack != ((void *) -1))) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s", "../gtest_contrib/gmock-gtest-all.cc", 7163, "stack != MAP_FAILED")); } } while (::testing::internal::AlwaysFalse()); > void* const stack_top = > static_cast<char*>(stack) + (stack_grows_down ? stack_size : 0); > > child_pid = clone(&ExecDeathTestChildMain, stack_top, 17, &args); > > do { if (!::testing::internal::IsTrue(munmap(stack, stack_size) != -1)) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s", "../gtest_contrib/gmock-gtest-all.cc", 7169, "munmap(stack, stack_size) != -1")); } } while (::testing::internal::AlwaysFalse()); > } > > > > > if (use_fork && (child_pid = fork()) == 0) { > ExecDeathTestChildMain(&args); > _exit(0); > } > > do { if (!::testing::internal::IsTrue(child_pid != -1)) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s", "../gtest_contrib/gmock-gtest-all.cc", 7180, "child_pid != -1")); } } while (::testing::internal::AlwaysFalse()); > return child_pid; >} > > > > > >DeathTest::TestRole ExecDeathTest::AssumeRole() { > const UnitTestImpl* const impl = GetUnitTestImpl(); > const InternalRunDeathTestFlag* const flag = > impl->internal_run_death_test_flag(); > const TestInfo* const info = impl->current_test_info(); > const int death_test_index = info->result()->death_test_count(); > > if (flag != __null) { > set_write_fd(flag->write_fd()); > return EXECUTE_TEST; > } > > int pipe_fd[2]; > do { if (!::testing::internal::IsTrue(pipe(pipe_fd) != -1)) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s", "../gtest_contrib/gmock-gtest-all.cc", 7201, "pipe(pipe_fd) != -1")); } } while (::testing::internal::AlwaysFalse()); > > > do { if (!::testing::internal::IsTrue(fcntl(pipe_fd[1], 2, 0) != -1)) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s", "../gtest_contrib/gmock-gtest-all.cc", 7204, "fcntl(pipe_fd[1], F_SETFD, 0) != -1")); } } while (::testing::internal::AlwaysFalse()); > > const String filter_flag = > String::Format("--%s%s=%s.%s", > "gtest_", kFilterFlag, > info->test_case_name(), info->name()); > const String internal_flag = > String::Format("--%s%s=%s|%d|%d|%d", > "gtest_", kInternalRunDeathTestFlag, > file_, line_, death_test_index, pipe_fd[1]); > Arguments args; > args.AddArguments(GetArgvs()); > args.AddArgument(filter_flag.c_str()); > args.AddArgument(internal_flag.c_str()); > > DeathTest::set_last_death_test_message(""); > > CaptureStderr(); > > > FlushInfoLog(); > > const pid_t child_pid = ExecDeathTestFork(args.Argv(), pipe_fd[0]); > do { int gtest_retval; do { gtest_retval = (close(pipe_fd[1])); } while (gtest_retval == -1 && (*__errno_location ()) == 4); if (gtest_retval == -1) { DeathTestAbort(::testing::internal::String::Format( "CHECK failed: File %s, line %d: %s != -1", "../gtest_contrib/gmock-gtest-all.cc", 7227, "close(pipe_fd[1])")); } } while (::testing::internal::AlwaysFalse()); > set_child_pid(child_pid); > set_read_fd(pipe_fd[0]); > set_spawned(true); > return OVERSEE_TEST; >} ># 7241 "../gtest_contrib/gmock-gtest-all.cc" >bool DefaultDeathTestFactory::Create(const char* statement, const RE* regex, > const char* file, int line, > DeathTest** test) { > UnitTestImpl* const impl = GetUnitTestImpl(); > const InternalRunDeathTestFlag* const flag = > impl->internal_run_death_test_flag(); > const int death_test_index = impl->current_test_info() > ->increment_death_test_count(); > > if (flag != __null) { > if (death_test_index > flag->index()) { > DeathTest::set_last_death_test_message(String::Format( > "Death test count (%d) somehow exceeded expected maximum (%d)", > death_test_index, flag->index())); > return false; > } > > if (!(flag->file() == file && flag->line() == line && > flag->index() == death_test_index)) { > *test = __null; > return true; > } > } ># 7274 "../gtest_contrib/gmock-gtest-all.cc" > if (FLAGS_gtest_death_test_style == "threadsafe") { > *test = new ExecDeathTest(statement, regex, file, line); > } else if (FLAGS_gtest_death_test_style == "fast") { > *test = new NoExecDeathTest(statement, regex); > } > > > > else { > DeathTest::set_last_death_test_message(String::Format( > "Unknown death test style \"%s\" encountered", > FLAGS_gtest_death_test_style.c_str())); > return false; > } > > return true; >} > > > > >static void SplitString(const ::std::string& str, char delimiter, > ::std::vector< ::std::string>* dest) { > ::std::vector< ::std::string> parsed; > ::std::string::size_type pos = 0; > while (::testing::internal::AlwaysTrue()) { > const ::std::string::size_type colon = str.find(delimiter, pos); > if (colon == ::std::string::npos) { > parsed.push_back(str.substr(pos)); > break; > } else { > parsed.push_back(str.substr(pos, colon - pos)); > pos = colon + 1; > } > } > dest->swap(parsed); >} ># 7381 "../gtest_contrib/gmock-gtest-all.cc" >InternalRunDeathTestFlag* ParseInternalRunDeathTestFlag() { > if (FLAGS_gtest_internal_run_death_test == "") return __null; > > > > int line = -1; > int index = -1; > ::std::vector< ::std::string> fields; > SplitString(FLAGS_gtest_internal_run_death_test.c_str(), '|', &fields); > int write_fd = -1; ># 7413 "../gtest_contrib/gmock-gtest-all.cc" > if (fields.size() != 4 > || !ParseNaturalNumber(fields[1], &line) > || !ParseNaturalNumber(fields[2], &index) > || !ParseNaturalNumber(fields[3], &write_fd)) { > DeathTestAbort(String::Format( > "Bad --gtest_internal_run_death_test flag: %s", > FLAGS_gtest_internal_run_death_test.c_str())); > } > > > > return new InternalRunDeathTestFlag(fields[0], line, index, write_fd); >} > >} > > > >} ># 7475 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 1 3 4 ># 7476 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 1 "/usr/include/c++/4.8.2/climits" 1 3 ># 39 "/usr/include/c++/4.8.2/climits" 3 > ># 40 "/usr/include/c++/4.8.2/climits" 3 > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 1 3 4 ># 42 "/usr/include/c++/4.8.2/climits" 2 3 > > >#define _GLIBCXX_CLIMITS 1 ># 7477 "../gtest_contrib/gmock-gtest-all.cc" 2 > > > > > >#define GTEST_PATH_MAX_ PATH_MAX > > > > > > > >namespace testing { >namespace internal { ># 7513 "../gtest_contrib/gmock-gtest-all.cc" >const char kPathSeparator = '/'; >const char kPathSeparatorString[] = "/"; >const char kCurrentDirectoryString[] = "./"; > > > >static bool IsPathSeparator(char c) { > > > > return c == kPathSeparator; > >} > > >FilePath FilePath::GetCurrentDir() { ># 7537 "../gtest_contrib/gmock-gtest-all.cc" > char cwd[4096 + 1] = { '\0' }; > return FilePath(getcwd(cwd, sizeof(cwd)) == __null ? "" : cwd); > >} > > > > > >FilePath FilePath::RemoveExtension(const char* extension) const { > String dot_extension(String::Format(".%s", extension)); > if (pathname_.EndsWithCaseInsensitive(dot_extension.c_str())) { > return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); > } > return *this; >} > > > > >const char* FilePath::FindLastPathSeparator() const { > const char* const last_sep = strrchr(c_str(), kPathSeparator); ># 7567 "../gtest_contrib/gmock-gtest-all.cc" > return last_sep; >} > > > > > > > >FilePath FilePath::RemoveDirectoryName() const { > const char* const last_sep = FindLastPathSeparator(); > return last_sep ? FilePath(String(last_sep + 1)) : *this; >} > > > > > > > >FilePath FilePath::RemoveFileName() const { > const char* const last_sep = FindLastPathSeparator(); > String dir; > if (last_sep) { > dir = String(c_str(), last_sep + 1 - c_str()); > } else { > dir = kCurrentDirectoryString; > } > return FilePath(dir); >} > > > > > > > >FilePath FilePath::MakeFileName(const FilePath& directory, > const FilePath& base_name, > int number, > const char* extension) { > String file; > if (number == 0) { > file = String::Format("%s.%s", base_name.c_str(), extension); > } else { > file = String::Format("%s_%d.%s", base_name.c_str(), number, extension); > } > return ConcatPaths(directory, FilePath(file)); >} > > > >FilePath FilePath::ConcatPaths(const FilePath& directory, > const FilePath& relative_path) { > if (directory.IsEmpty()) > return relative_path; > const FilePath dir(directory.RemoveTrailingPathSeparator()); > return FilePath(String::Format("%s%c%s", dir.c_str(), kPathSeparator, > relative_path.c_str())); >} > > > >bool FilePath::FileOrDirectoryExists() const { > > > > > > > posix::StatStruct file_stat; > return posix::Stat(pathname_.c_str(), &file_stat) == 0; > >} > > > >bool FilePath::DirectoryExists() const { > bool result = false; > > > > > > > const FilePath& path(*this); ># 7664 "../gtest_contrib/gmock-gtest-all.cc" > posix::StatStruct file_stat; > result = posix::Stat(path.c_str(), &file_stat) == 0 && > posix::IsDir(file_stat); > > > return result; >} > > > >bool FilePath::IsRootDirectory() const { > > > > > > > return pathname_.length() == 1 && IsPathSeparator(pathname_.c_str()[0]); > >} > > >bool FilePath::IsAbsolutePath() const { > const char* const name = pathname_.c_str(); > > > > > > > > return IsPathSeparator(name[0]); > >} ># 7707 "../gtest_contrib/gmock-gtest-all.cc" >FilePath FilePath::GenerateUniqueFileName(const FilePath& directory, > const FilePath& base_name, > const char* extension) { > FilePath full_pathname; > int number = 0; > do { > full_pathname.Set(MakeFileName(directory, base_name, number++, extension)); > } while (full_pathname.FileOrDirectoryExists()); > return full_pathname; >} > > > > >bool FilePath::IsDirectory() const { > return !pathname_.empty() && > IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]); >} > > > > >bool FilePath::CreateDirectoriesRecursively() const { > if (!this->IsDirectory()) { > return false; > } > > if (pathname_.length() == 0 || this->DirectoryExists()) { > return true; > } > > const FilePath parent(this->RemoveTrailingPathSeparator().RemoveFileName()); > return parent.CreateDirectoriesRecursively() && this->CreateFolder(); >} > > > > > >bool FilePath::CreateFolder() const { ># 7755 "../gtest_contrib/gmock-gtest-all.cc" > int result = mkdir(pathname_.c_str(), 0777); > > > if (result == -1) { > return this->DirectoryExists(); > } > return true; >} > > > > >FilePath FilePath::RemoveTrailingPathSeparator() const { > return IsDirectory() > ? FilePath(String(pathname_.c_str(), pathname_.length() - 1)) > : *this; >} > > > > > >void FilePath::Normalize() { > if (pathname_.c_str() == __null) { > pathname_ = ""; > return; > } > const char* src = pathname_.c_str(); > char* const dest = new char[pathname_.length() + 1]; > char* dest_ptr = dest; > memset(dest_ptr, 0, pathname_.length() + 1); > > while (*src != '\0') { > *dest_ptr = *src; > if (!IsPathSeparator(*src)) { > src++; > } else { > > > > > > while (IsPathSeparator(*src)) > src++; > } > dest_ptr++; > } > *dest_ptr = '\0'; > pathname_ = dest; > delete[] dest; >} > >} >} ># 7841 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 1 3 4 ># 7842 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 7867 "../gtest_contrib/gmock-gtest-all.cc" >#define GTEST_IMPLEMENTATION_ 1 >#undef GTEST_IMPLEMENTATION_ > >namespace testing { >namespace internal { > > > > > > >const int kStdOutFileno = 1; >const int kStdErrFileno = 2; ># 7905 "../gtest_contrib/gmock-gtest-all.cc" >size_t GetThreadCount() { > > > return 0; >} > > > > > > > >RE::~RE() { > if (is_valid_) { > > > > > regfree(&partial_regex_); > regfree(&full_regex_); > } > free(const_cast<char*>(pattern_)); >} > > >bool RE::FullMatch(const char* str, const RE& re) { > if (!re.is_valid_) return false; > > regmatch_t match; > return regexec(&re.full_regex_, str, 1, &match, 0) == 0; >} > > > >bool RE::PartialMatch(const char* str, const RE& re) { > if (!re.is_valid_) return false; > > regmatch_t match; > return regexec(&re.partial_regex_, str, 1, &match, 0) == 0; >} > > >void RE::Init(const char* regex) { > pattern_ = posix::StrDup(regex); > > > > const size_t full_regex_len = strlen(regex) + 10; > char* const full_pattern = new char[full_regex_len]; > > snprintf(full_pattern, full_regex_len, "^(%s)$", regex); > is_valid_ = regcomp(&full_regex_, full_pattern, 1) == 0; ># 7965 "../gtest_contrib/gmock-gtest-all.cc" > if (is_valid_) { > const char* const partial_regex = (*regex == '\0') ? "()" : regex; > is_valid_ = regcomp(&partial_regex_, partial_regex, 1) == 0; > } > switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(is_valid_)) ; else ::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "../gtest_contrib/gmock-gtest-all.cc", 7969, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_, "is_valid_", "false", "true").c_str()) = ::testing::Message() > << "Regular expression \"" << regex > << "\" is not a valid POSIX Extended regular expression."; > > delete[] full_pattern; >} ># 8229 "../gtest_contrib/gmock-gtest-all.cc" >const char kUnknownFile[] = "unknown file"; > > > > ::std::string FormatFileLocation(const char* file, int line) { > const char* const file_name = file == __null ? kUnknownFile : file; > > if (line < 0) { > return String::Format("%s:", file_name).c_str(); > } > > > > return String::Format("%s:%d:", file_name, line).c_str(); > >} > > > > > > > ::std::string FormatCompilerIndependentFileLocation( > const char* file, int line) { > const char* const file_name = file == __null ? kUnknownFile : file; > > if (line < 0) > return file_name; > else > return String::Format("%s:%d", file_name, line).c_str(); >} > > >GTestLog::GTestLog(GTestLogSeverity severity, const char* file, int line) > : severity_(severity) { > const char* const marker = > severity == GTEST_INFO ? "[ INFO ]" : > severity == GTEST_WARNING ? "[WARNING]" : > severity == GTEST_ERROR ? "[ ERROR ]" : "[ FATAL ]"; > GetStream() << ::std::endl << marker << " " > << FormatFileLocation(file, line).c_str() << ": "; >} > > >GTestLog::~GTestLog() { > GetStream() << ::std::endl; > if (severity_ == GTEST_FATAL) { > fflush(stderr); > posix::Abort(); > } >} ># 8290 "../gtest_contrib/gmock-gtest-all.cc" >class CapturedStream { > public: > > CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { ># 8314 "../gtest_contrib/gmock-gtest-all.cc" > char name_template[] = "/tmp/captured_stream.XXXXXX"; > const int captured_fd = mkstemp(name_template); > filename_ = name_template; > > fflush(__null); > dup2(captured_fd, fd_); > close(captured_fd); > } > > ~CapturedStream() { > remove(filename_.c_str()); > } > > String GetCapturedString() { > if (uncaptured_fd_ != -1) { > > fflush(__null); > dup2(uncaptured_fd_, fd_); > close(uncaptured_fd_); > uncaptured_fd_ = -1; > } > > FILE* const file = posix::FOpen(filename_.c_str(), "r"); > const String content = ReadEntireFile(file); > posix::FClose(file); > return content; > } > > private: > > static String ReadEntireFile(FILE* file); > > > static size_t GetFileSize(FILE* file); > > const int fd_; > int uncaptured_fd_; > > ::std::string filename_; > > CapturedStream(CapturedStream const &); void operator=(CapturedStream const &); >}; > > >size_t CapturedStream::GetFileSize(FILE* file) { > fseek(file, 0, 2); > return static_cast<size_t>(ftell(file)); >} > > >String CapturedStream::ReadEntireFile(FILE* file) { > const size_t file_size = GetFileSize(file); > char* const buffer = new char[file_size]; > > size_t bytes_last_read = 0; > size_t bytes_read = 0; > > fseek(file, 0, 0); > > > > do { > bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); > bytes_read += bytes_last_read; > } while (bytes_last_read > 0 && bytes_read < file_size); > > const String content(buffer, bytes_read); > delete[] buffer; > > return content; >} > > > > > >static CapturedStream* g_captured_stderr = __null; >static CapturedStream* g_captured_stdout = __null; > > >void CaptureStream(int fd, const char* stream_name, CapturedStream** stream) { > if (*stream != __null) { > ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock-gtest-all.cc", 8396).GetStream() << "Only one " << stream_name > << " capturer can exist at a time."; > } > *stream = new CapturedStream(fd); >} > > >String GetCapturedStream(CapturedStream** captured_stream) { > const String content = (*captured_stream)->GetCapturedString(); > > delete *captured_stream; > *captured_stream = __null; > > return content; >} > > >void CaptureStdout() { > CaptureStream(kStdOutFileno, "stdout", &g_captured_stdout); >} > > >void CaptureStderr() { > CaptureStream(kStdErrFileno, "stderr", &g_captured_stderr); >} > > >String GetCapturedStdout() { return GetCapturedStream(&g_captured_stdout); } > > >String GetCapturedStderr() { return GetCapturedStream(&g_captured_stderr); } > > > > > > >::std::vector<String> g_argvs; > > >const ::std::vector<String>& GetArgvs() { return g_argvs; } ># 8452 "../gtest_contrib/gmock-gtest-all.cc" >static String FlagToEnvVar(const char* flag) { > const String full_flag = > (Message() << "gtest_" << flag).GetString(); > > Message env_var; > for (size_t i = 0; i != full_flag.length(); i++) { > env_var << ToUpper(full_flag.c_str()[i]); > } > > return env_var.GetString(); >} > > > > >bool ParseInt32(const Message& src_text, const char* str, Int32* value) { > > char* end = __null; > const long long_value = strtol(str, &end, 10); > > > if (*end != '\0') { > > Message msg; > msg << "WARNING: " << src_text > << " is expected to be a 32-bit integer, but actually" > << " has value \"" << str << "\".\n"; > printf("%s", msg.GetString().c_str()); > fflush(stdout); > return false; > } > > > const Int32 result = static_cast<Int32>(long_value); > if (long_value == 9223372036854775807L || long_value == (-9223372036854775807L - 1L) || > > > result != long_value > > ) { > Message msg; > msg << "WARNING: " << src_text > << " is expected to be a 32-bit integer, but actually" > << " has value " << str << ", which overflows.\n"; > printf("%s", msg.GetString().c_str()); > fflush(stdout); > return false; > } > > *value = result; > return true; >} > > > > > >bool BoolFromGTestEnv(const char* flag, bool default_value) { > const String env_var = FlagToEnvVar(flag); > const char* const string_value = posix::GetEnv(env_var.c_str()); > return string_value == __null ? > default_value : strcmp(string_value, "0") != 0; >} > > > > >Int32 Int32FromGTestEnv(const char* flag, Int32 default_value) { > const String env_var = FlagToEnvVar(flag); > const char* const string_value = posix::GetEnv(env_var.c_str()); > if (string_value == __null) { > > return default_value; > } > > Int32 result = default_value; > if (!ParseInt32(Message() << "Environment variable " << env_var, > string_value, &result)) { > printf("The default value %s is used.\n", > (Message() << default_value).GetString().c_str()); > fflush(stdout); > return default_value; > } > > return result; >} > > > >const char* StringFromGTestEnv(const char* flag, const char* default_value) { > const String env_var = FlagToEnvVar(flag); > const char* const value = posix::GetEnv(env_var.c_str()); > return value == __null ? default_value : value; >} > >} >} ># 8598 "../gtest_contrib/gmock-gtest-all.cc" >namespace testing { > >namespace { > >using ::std::ostream; ># 8613 "../gtest_contrib/gmock-gtest-all.cc" >void PrintByteSegmentInObjectTo(const unsigned char* obj_bytes, size_t start, > size_t count, ostream* os) { > char text[5] = ""; > for (size_t i = 0; i != count; i++) { > const size_t j = start + i; > if (i != 0) { > > > if ((j % 2) == 0) > *os << ' '; > else > *os << '-'; > } > snprintf(text, sizeof(text), "%02X", obj_bytes[j]); > *os << text; > } >} > > >void PrintBytesInObjectToImpl(const unsigned char* obj_bytes, size_t count, > ostream* os) { > > *os << count << "-byte object <"; > > const size_t kThreshold = 132; > const size_t kChunkSize = 64; > > > > > if (count < kThreshold) { > PrintByteSegmentInObjectTo(obj_bytes, 0, count, os); > } else { > PrintByteSegmentInObjectTo(obj_bytes, 0, kChunkSize, os); > *os << " ... "; > > const size_t resume_pos = (count - kChunkSize + 1)/2*2; > PrintByteSegmentInObjectTo(obj_bytes, resume_pos, count - resume_pos, os); > } > *os << ">"; >} > >} > >namespace internal2 { > > > > > > >void PrintBytesInObjectTo(const unsigned char* obj_bytes, size_t count, > ostream* os) { > PrintBytesInObjectToImpl(obj_bytes, count, os); >} > >} > >namespace internal { > > > > > > >enum CharFormat { > kAsIs, > kHexEscape, > kSpecialEscape >}; > > > > >inline bool IsPrintableAscii(wchar_t c) { > return 0x20 <= c && c <= 0x7E; >} > > > > > >template <typename UnsignedChar, typename Char> >static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) { > switch (static_cast<wchar_t>(c)) { > case L'\0': > *os << "\\0"; > break; > case L'\'': > *os << "\\'"; > break; > case L'\\': > *os << "\\\\"; > break; > case L'\a': > *os << "\\a"; > break; > case L'\b': > *os << "\\b"; > break; > case L'\f': > *os << "\\f"; > break; > case L'\n': > *os << "\\n"; > break; > case L'\r': > *os << "\\r"; > break; > case L'\t': > *os << "\\t"; > break; > case L'\v': > *os << "\\v"; > break; > default: > if (IsPrintableAscii(c)) { > *os << static_cast<char>(c); > return kAsIs; > } else { > *os << String::Format("\\x%X", static_cast<UnsignedChar>(c)); > return kHexEscape; > } > } > return kSpecialEscape; >} > > > >static CharFormat PrintAsWideStringLiteralTo(wchar_t c, ostream* os) { > switch (c) { > case L'\'': > *os << "'"; > return kAsIs; > case L'"': > *os << "\\\""; > return kSpecialEscape; > default: > return PrintAsCharLiteralTo<wchar_t>(c, os); > } >} > > > >static CharFormat PrintAsNarrowStringLiteralTo(char c, ostream* os) { > return PrintAsWideStringLiteralTo(static_cast<unsigned char>(c), os); >} > > > > > >template <typename UnsignedChar, typename Char> >void PrintCharAndCodeTo(Char c, ostream* os) { > > *os << ((sizeof(c) > 1) ? "L'" : "'"); > const CharFormat format = PrintAsCharLiteralTo<UnsignedChar>(c, os); > *os << "'"; > > > > > if (c == 0) > return; > *os << " (" << String::Format("%d", c).c_str(); > > > > > if (format == kHexEscape || (1 <= c && c <= 9)) { > > } else { > *os << String::Format(", 0x%X", > static_cast<UnsignedChar>(c)).c_str(); > } > *os << ")"; >} > >void PrintTo(unsigned char c, ::std::ostream* os) { > PrintCharAndCodeTo<unsigned char>(c, os); >} >void PrintTo(signed char c, ::std::ostream* os) { > PrintCharAndCodeTo<unsigned char>(c, os); >} > > > >void PrintTo(wchar_t wc, ostream* os) { > PrintCharAndCodeTo<wchar_t>(wc, os); >} > > > > >static void PrintCharsAsStringTo(const char* begin, size_t len, ostream* os) { > *os << "\""; > bool is_previous_hex = false; > for (size_t index = 0; index < len; ++index) { > const char cur = begin[index]; > if (is_previous_hex && IsXDigit(cur)) { > > > > *os << "\" \""; > } > is_previous_hex = PrintAsNarrowStringLiteralTo(cur, os) == kHexEscape; > } > *os << "\""; >} > > >void UniversalPrintArray(const char* begin, size_t len, ostream* os) { > PrintCharsAsStringTo(begin, len, os); >} > > > > >static void PrintWideCharsAsStringTo(const wchar_t* begin, size_t len, > ostream* os) { > *os << "L\""; > bool is_previous_hex = false; > for (size_t index = 0; index < len; ++index) { > const wchar_t cur = begin[index]; > if (is_previous_hex && isascii(cur) && IsXDigit(static_cast<char>(cur))) { > > > > *os << "\" L\""; > } > is_previous_hex = PrintAsWideStringLiteralTo(cur, os) == kHexEscape; > } > *os << "\""; >} > > >void PrintTo(const char* s, ostream* os) { > if (s == __null) { > *os << "NULL"; > } else { > *os << ImplicitCast_<const void*>(s) << " pointing to "; > PrintCharsAsStringTo(s, strlen(s), os); > } >} ># 8866 "../gtest_contrib/gmock-gtest-all.cc" >void PrintTo(const wchar_t* s, ostream* os) { > if (s == __null) { > *os << "NULL"; > } else { > *os << ImplicitCast_<const void*>(s) << " pointing to "; > PrintWideCharsAsStringTo(s, wcslen(s), os); > } >} ># 8883 "../gtest_contrib/gmock-gtest-all.cc" >void PrintStringTo(const ::std::string& s, ostream* os) { > PrintCharsAsStringTo(s.data(), s.size(), os); >} ># 8895 "../gtest_contrib/gmock-gtest-all.cc" >void PrintWideStringTo(const ::std::wstring& s, ostream* os) { > PrintWideCharsAsStringTo(s.data(), s.size(), os); >} > > >} > >} ># 8942 "../gtest_contrib/gmock-gtest-all.cc" >#define GTEST_IMPLEMENTATION_ 1 >#undef GTEST_IMPLEMENTATION_ > >namespace testing { > >using internal::GetUnitTestImpl; > > > >internal::String TestPartResult::ExtractSummary(const char* message) { > const char* const stack_trace = strstr(message, internal::kStackTraceMarker); > return stack_trace == __null ? internal::String(message) : > internal::String(message, stack_trace - message); >} > > >std::ostream& operator<<(std::ostream& os, const TestPartResult& result) { > return os > << result.file_name() << ":" << result.line_number() << ": " > << (result.type() == TestPartResult::kSuccess ? "Success" : > result.type() == TestPartResult::kFatalFailure ? "Fatal failure" : > "Non-fatal failure") << ":\n" > << result.message() << std::endl; >} > > >void TestPartResultArray::Append(const TestPartResult& result) { > array_.push_back(result); >} > > >const TestPartResult& TestPartResultArray::GetTestPartResult(int index) const { > if (index < 0 || index >= size()) { > printf("\nInvalid index (%d) into TestPartResultArray.\n", index); > internal::posix::Abort(); > } > > return array_[index]; >} > > >int TestPartResultArray::size() const { > return static_cast<int>(array_.size()); >} > >namespace internal { > >HasNewFatalFailureHelper::HasNewFatalFailureHelper() > : has_new_fatal_failure_(false), > original_reporter_(GetUnitTestImpl()-> > GetTestPartResultReporterForCurrentThread()) { > GetUnitTestImpl()->SetTestPartResultReporterForCurrentThread(this); >} > >HasNewFatalFailureHelper::~HasNewFatalFailureHelper() { > GetUnitTestImpl()->SetTestPartResultReporterForCurrentThread( > original_reporter_); >} > >void HasNewFatalFailureHelper::ReportTestPartResult( > const TestPartResult& result) { > if (result.fatally_failed()) > has_new_fatal_failure_ = true; > original_reporter_->ReportTestPartResult(result); >} > >} > >} ># 9043 "../gtest_contrib/gmock-gtest-all.cc" >namespace testing { >namespace internal { > > > > > >static const char* SkipSpaces(const char* str) { > while (IsSpace(*str)) > str++; > return str; >} > > > > >const char* TypedTestCasePState::VerifyRegisteredTestNames( > const char* file, int line, const char* registered_tests) { > typedef ::std::set<const char*>::const_iterator DefinedTestIter; > registered_ = true; > > > > registered_tests = SkipSpaces(registered_tests); > > Message errors; > ::std::set<String> tests; > for (const char* names = registered_tests; names != __null; > names = SkipComma(names)) { > const String name = GetPrefixUntilComma(names); > if (tests.count(name) != 0) { > errors << "Test " << name << " is listed more than once.\n"; > continue; > } > > bool found = false; > for (DefinedTestIter it = defined_test_names_.begin(); > it != defined_test_names_.end(); > ++it) { > if (name == *it) { > found = true; > break; > } > } > > if (found) { > tests.insert(name); > } else { > errors << "No test named " << name > << " can be found in this test case.\n"; > } > } > > for (DefinedTestIter it = defined_test_names_.begin(); > it != defined_test_names_.end(); > ++it) { > if (tests.count(*it) == 0) { > errors << "You forgot to list test " << *it << ".\n"; > } > } > > const String& errors_str = errors.GetString(); > if (errors_str != "") { > fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(), > errors_str.c_str()); > fflush(stderr); > posix::Abort(); > } > > return registered_tests; >} > > > >} >} ># 9158 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "../gtest_contrib/gmock/gmock.h" 1 ># 37 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_H_ ># 94 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_ACTIONS_H_ > > > > > ># 1 "/usr/include/errno.h" 1 3 4 ># 71 "/usr/include/errno.h" 3 4 >#undef __need_error_t ># 101 "../gtest_contrib/gmock/gmock.h" 2 ># 141 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_ ># 186 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_ ># 224 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_ > ># 1 "/usr/include/assert.h" 1 3 4 ># 24 "/usr/include/assert.h" 3 4 >#undef _ASSERT_H >#undef assert >#undef __ASSERT_VOID_CAST > > >#undef assert_perror > > > > >#define _ASSERT_H 1 > > > >#define __ASSERT_VOID_CAST static_cast<void> ># 64 "/usr/include/assert.h" 3 4 >extern "C" { > > >extern void __assert_fail (const char *__assertion, const char *__file, > unsigned int __line, const char *__function) > throw () __attribute__ ((__noreturn__)); > > >extern void __assert_perror_fail (int __errnum, const char *__file, > unsigned int __line, const char *__function) > throw () __attribute__ ((__noreturn__)); > > > > >extern void __assert (const char *__assertion, const char *__file, int __line) > throw () __attribute__ ((__noreturn__)); > > >} > >#define assert(expr) ((expr) ? __ASSERT_VOID_CAST (0) : __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION)) > > > > > >#define assert_perror(errnum) (!(errnum) ? __ASSERT_VOID_CAST (0) : __assert_perror_fail ((errnum), __FILE__, __LINE__, __ASSERT_FUNCTION)) ># 103 "/usr/include/assert.h" 3 4 >#define __ASSERT_FUNCTION __PRETTY_FUNCTION__ ># 227 "../gtest_contrib/gmock/gmock.h" 2 > > > > > ># 1 "/home/timppa/workspace-kepler-R/RefactoringExample1/gtest_contrib/gtest/gtest.h" 1 ># 233 "../gtest_contrib/gmock/gmock.h" 2 ># 247 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_FLAG(name) FLAGS_gmock_ ##name > > >#define GMOCK_DECLARE_bool_(name) extern bool GMOCK_FLAG(name) >#define GMOCK_DECLARE_int32_(name) extern ::testing::internal::Int32 GMOCK_FLAG(name) > >#define GMOCK_DECLARE_string_(name) extern ::testing::internal::String GMOCK_FLAG(name) > > > >#define GMOCK_DEFINE_bool_(name,default_val,doc) bool GMOCK_FLAG(name) = (default_val) > >#define GMOCK_DEFINE_int32_(name,default_val,doc) ::testing::internal::Int32 GMOCK_FLAG(name) = (default_val) > >#define GMOCK_DEFINE_string_(name,default_val,doc) ::testing::internal::String GMOCK_FLAG(name) = (default_val) > > > > >namespace testing { > >template <typename T> >class Matcher; > >namespace internal { > > > >class IgnoredValue { > public: > > > > > > template <typename T> > IgnoredValue(const T&) {} >}; > > > >template <typename Tuple> >struct MatcherTuple; > >template <> >struct MatcherTuple< ::std::tr1::tuple<> > { > typedef ::std::tr1::tuple< > type; >}; > >template <typename A1> >struct MatcherTuple< ::std::tr1::tuple<A1> > { > typedef ::std::tr1::tuple<Matcher<A1> > type; >}; > >template <typename A1, typename A2> >struct MatcherTuple< ::std::tr1::tuple<A1, A2> > { > typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2> > type; >}; > >template <typename A1, typename A2, typename A3> >struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3> > { > typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3> > type; >}; > >template <typename A1, typename A2, typename A3, typename A4> >struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4> > { > typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, > Matcher<A4> > type; >}; > >template <typename A1, typename A2, typename A3, typename A4, typename A5> >struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5> > { > typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, > Matcher<A5> > type; >}; > >template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6> >struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6> > { > typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, > Matcher<A5>, Matcher<A6> > type; >}; > >template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7> >struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7> > { > typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, > Matcher<A5>, Matcher<A6>, Matcher<A7> > type; >}; > >template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7, typename A8> >struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8> > { > typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, > Matcher<A5>, Matcher<A6>, Matcher<A7>, Matcher<A8> > type; >}; > >template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7, typename A8, typename A9> >struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9> > { > typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, > Matcher<A5>, Matcher<A6>, Matcher<A7>, Matcher<A8>, Matcher<A9> > type; >}; > >template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7, typename A8, typename A9, typename A10> >struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9, > A10> > { > typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>, Matcher<A4>, > Matcher<A5>, Matcher<A6>, Matcher<A7>, Matcher<A8>, Matcher<A9>, > Matcher<A10> > type; >}; ># 373 "../gtest_contrib/gmock/gmock.h" >template <typename F> >struct Function; > >template <typename R> >struct Function<R()> { > typedef R Result; > typedef ::std::tr1::tuple<> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(); > typedef IgnoredValue MakeResultIgnoredValue(); >}; > >template <typename R, typename A1> >struct Function<R(A1)> > : Function<R()> { > typedef A1 Argument1; > typedef ::std::tr1::tuple<A1> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1); > typedef IgnoredValue MakeResultIgnoredValue(A1); >}; > >template <typename R, typename A1, typename A2> >struct Function<R(A1, A2)> > : Function<R(A1)> { > typedef A2 Argument2; > typedef ::std::tr1::tuple<A1, A2> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1, A2); > typedef IgnoredValue MakeResultIgnoredValue(A1, A2); >}; > >template <typename R, typename A1, typename A2, typename A3> >struct Function<R(A1, A2, A3)> > : Function<R(A1, A2)> { > typedef A3 Argument3; > typedef ::std::tr1::tuple<A1, A2, A3> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1, A2, A3); > typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3); >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4> >struct Function<R(A1, A2, A3, A4)> > : Function<R(A1, A2, A3)> { > typedef A4 Argument4; > typedef ::std::tr1::tuple<A1, A2, A3, A4> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1, A2, A3, A4); > typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4); >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5> >struct Function<R(A1, A2, A3, A4, A5)> > : Function<R(A1, A2, A3, A4)> { > typedef A5 Argument5; > typedef ::std::tr1::tuple<A1, A2, A3, A4, A5> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1, A2, A3, A4, A5); > typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5); >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6> >struct Function<R(A1, A2, A3, A4, A5, A6)> > : Function<R(A1, A2, A3, A4, A5)> { > typedef A6 Argument6; > typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6); > typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6); >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7> >struct Function<R(A1, A2, A3, A4, A5, A6, A7)> > : Function<R(A1, A2, A3, A4, A5, A6)> { > typedef A7 Argument7; > typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7); > typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7); >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8> >struct Function<R(A1, A2, A3, A4, A5, A6, A7, A8)> > : Function<R(A1, A2, A3, A4, A5, A6, A7)> { > typedef A8 Argument8; > typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7, A8); > typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7, A8); >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8, typename A9> >struct Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)> > : Function<R(A1, A2, A3, A4, A5, A6, A7, A8)> { > typedef A9 Argument9; > typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7, A8, A9); > typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7, A8, > A9); >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8, typename A9, > typename A10> >struct Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> > : Function<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)> { > typedef A10 Argument10; > typedef ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9, > A10> ArgumentTuple; > typedef typename MatcherTuple<ArgumentTuple>::type ArgumentMatcherTuple; > typedef void MakeResultVoid(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10); > typedef IgnoredValue MakeResultIgnoredValue(A1, A2, A3, A4, A5, A6, A7, A8, > A9, A10); >}; > >} > >} > > > >namespace testing { >namespace internal { > > > > > >string ConvertIdentifierNameToWords(const char* id_name); > > > > > >template <typename Pointer> >struct PointeeOf { > > > typedef typename Pointer::element_type type; >}; > >template <typename T> >struct PointeeOf<T*> { typedef T type; }; > > > > >template <typename Pointer> >inline typename Pointer::element_type* GetRawPointer(const Pointer& p) { > return p.get(); >} > >template <typename Element> >inline Element* GetRawPointer(Element* p) { return p; } > > >template <typename T> >struct LinkedPtrLessThan { > bool operator()(const ::testing::internal::linked_ptr<T>& lhs, > const ::testing::internal::linked_ptr<T>& rhs) const { > return lhs.get() < rhs.get(); > } >}; ># 556 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_WCHAR_T_IS_NATIVE_ 1 ># 570 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_HAS_SIGNED_WCHAR_T_ 1 > > > > > > > >enum TypeKind { > kBool, kInteger, kFloatingPoint, kOther >}; > > >template <typename T> struct KindOf { > enum { value = kOther }; >}; > > >#define GMOCK_DECLARE_KIND_(type,kind) template <> struct KindOf<type> { enum { value = kind }; } > > >template <> struct KindOf<bool> { enum { value = kBool }; }; > > >template <> struct KindOf<char> { enum { value = kInteger }; }; >template <> struct KindOf<signed char> { enum { value = kInteger }; }; >template <> struct KindOf<unsigned char> { enum { value = kInteger }; }; >template <> struct KindOf<short> { enum { value = kInteger }; }; >template <> struct KindOf<unsigned short> { enum { value = kInteger }; }; >template <> struct KindOf<int> { enum { value = kInteger }; }; >template <> struct KindOf<unsigned int> { enum { value = kInteger }; }; >template <> struct KindOf<long> { enum { value = kInteger }; }; >template <> struct KindOf<unsigned long> { enum { value = kInteger }; }; > > >template <> struct KindOf<wchar_t> { enum { value = kInteger }; }; > > > >template <> struct KindOf<Int64> { enum { value = kInteger }; }; >template <> struct KindOf<UInt64> { enum { value = kInteger }; }; > > >template <> struct KindOf<float> { enum { value = kFloatingPoint }; }; >template <> struct KindOf<double> { enum { value = kFloatingPoint }; }; >template <> struct KindOf<long double> { enum { value = kFloatingPoint }; }; > >#undef GMOCK_DECLARE_KIND_ > > >#define GMOCK_KIND_OF_(type) static_cast< ::testing::internal::TypeKind>( ::testing::internal::KindOf<type>::value) > > > > >#define GMOCK_IS_SIGNED_(T) (static_cast<T>(-1) < 0) ># 636 "../gtest_contrib/gmock/gmock.h" >template <TypeKind kFromKind, typename From, TypeKind kToKind, typename To> >struct LosslessArithmeticConvertibleImpl : public false_type {}; > > >template <> >struct LosslessArithmeticConvertibleImpl<kBool, bool, kBool, bool> > : public true_type {}; > > >template <typename To> >struct LosslessArithmeticConvertibleImpl<kBool, bool, kInteger, To> > : public true_type {}; > > >template <typename To> >struct LosslessArithmeticConvertibleImpl<kBool, bool, kFloatingPoint, To> > : public true_type {}; > > >template <typename From> >struct LosslessArithmeticConvertibleImpl<kInteger, From, kBool, bool> > : public false_type {}; > > > >template <typename From, typename To> >struct LosslessArithmeticConvertibleImpl<kInteger, From, kInteger, To> > : public bool_constant< > > > ((sizeof(From) < sizeof(To)) && > (!(static_cast<From>(-1) < 0) || (static_cast<To>(-1) < 0))) || > > ((sizeof(From) == sizeof(To)) && > ((static_cast<From>(-1) < 0) == (static_cast<To>(-1) < 0)))> {}; > >#undef GMOCK_IS_SIGNED_ > > > >template <typename From, typename To> >struct LosslessArithmeticConvertibleImpl<kInteger, From, kFloatingPoint, To> > : public false_type {}; > > >template <typename From> >struct LosslessArithmeticConvertibleImpl<kFloatingPoint, From, kBool, bool> > : public false_type {}; > > >template <typename From, typename To> >struct LosslessArithmeticConvertibleImpl<kFloatingPoint, From, kInteger, To> > : public false_type {}; > > > >template <typename From, typename To> >struct LosslessArithmeticConvertibleImpl< > kFloatingPoint, From, kFloatingPoint, To> > : public bool_constant<sizeof(From) <= sizeof(To)> {}; ># 704 "../gtest_contrib/gmock/gmock.h" >template <typename From, typename To> >struct LosslessArithmeticConvertible > : public LosslessArithmeticConvertibleImpl< > static_cast< ::testing::internal::TypeKind>( ::testing::internal::KindOf<From>::value), From, static_cast< ::testing::internal::TypeKind>( ::testing::internal::KindOf<To>::value), To> {}; > > > >class FailureReporterInterface { > public: > > enum FailureType { > NONFATAL, FATAL > }; > > virtual ~FailureReporterInterface() {} > > > virtual void ReportFailure(FailureType type, const char* file, int line, > const string& message) = 0; >}; > > >FailureReporterInterface* GetFailureReporter(); > > > > > > >inline void Assert(bool condition, const char* file, int line, > const string& msg) { > if (!condition) { > GetFailureReporter()->ReportFailure(FailureReporterInterface::FATAL, > file, line, msg); > } >} >inline void Assert(bool condition, const char* file, int line) { > Assert(condition, file, line, "Assertion failed."); >} > > > >inline void Expect(bool condition, const char* file, int line, > const string& msg) { > if (!condition) { > GetFailureReporter()->ReportFailure(FailureReporterInterface::NONFATAL, > file, line, msg); > } >} >inline void Expect(bool condition, const char* file, int line) { > Expect(condition, file, line, "Expectation failed."); >} > > >enum LogSeverity { > INFO = 0, > WARNING = 1 >}; > > > > >const char kInfoVerbosity[] = "info"; > >const char kWarningVerbosity[] = "warning"; > >const char kErrorVerbosity[] = "error"; > > > >bool LogIsVisible(LogSeverity severity); ># 783 "../gtest_contrib/gmock/gmock.h" >void Log(LogSeverity severity, const string& message, int stack_frames_to_skip); > > > > > > >template <typename T> struct is_reference : public false_type {}; >template <typename T> struct is_reference<T&> : public true_type {}; > > >template <typename T1, typename T2> struct type_equals : public false_type {}; >template <typename T> struct type_equals<T, T> : public true_type {}; > > >template <typename T> struct remove_reference { typedef T type; }; >template <typename T> struct remove_reference<T&> { typedef T type; }; > > > > > >template <typename T> >inline T Invalid() { > return *static_cast<typename remove_reference<T>::type*>(__null); >} >template <> >inline void Invalid<void>() {} ># 828 "../gtest_contrib/gmock/gmock.h" >template <class RawContainer> >class StlContainerView { > public: > typedef RawContainer type; > typedef const type& const_reference; > > static const_reference ConstReference(const RawContainer& container) { > > testing::StaticAssertTypeEq<RawContainer, > typename ::testing::internal::RemoveConst<RawContainer>::type>(); > return container; > } > static type Copy(const RawContainer& container) { return container; } >}; > > >template <typename Element, size_t N> >class StlContainerView<Element[N]> { > public: > typedef typename ::testing::internal::RemoveConst<Element>::type RawElement; > typedef internal::NativeArray<RawElement> type; > > > > > > typedef const type const_reference; > > static const_reference ConstReference(const Element (&array)[N]) { > > testing::StaticAssertTypeEq<Element, RawElement>(); ># 875 "../gtest_contrib/gmock/gmock.h" > return type(array, N, kReference); > > } > static type Copy(const Element (&array)[N]) { > > > > return type(array, N, kCopy); > > } >}; > > > >template <typename ElementPointer, typename Size> >class StlContainerView< ::std::tr1::tuple<ElementPointer, Size> > { > public: > typedef typename ::testing::internal::RemoveConst<typename internal::PointeeOf<ElementPointer>::type>::type > RawElement; > typedef internal::NativeArray<RawElement> type; > typedef const type const_reference; > > static const_reference ConstReference( > const ::std::tr1::tuple<ElementPointer, Size>& array) { > using ::std::tr1::get; > return type(get<0>(array), get<1>(array), kReference); > } > static type Copy(const ::std::tr1::tuple<ElementPointer, Size>& array) { > using ::std::tr1::get; > return type(get<0>(array), get<1>(array), kCopy); > } >}; > > > >template <typename T> class StlContainerView<T&>; > >} >} > > > >namespace testing { ># 928 "../gtest_contrib/gmock/gmock.h" >namespace internal { > >template <typename F1, typename F2> >class ActionAdaptor; > > > > > > >template <typename T> >class BuiltInDefaultValue { > public: > > static bool Exists() { return false; } > static T Get() { > Assert(false, "../gtest_contrib/gmock/gmock.h", 944, > "Default action undefined for the function return type."); > return internal::Invalid<T>(); > > > } >}; > > > >template <typename T> >class BuiltInDefaultValue<const T> { > public: > static bool Exists() { return BuiltInDefaultValue<T>::Exists(); } > static T Get() { return BuiltInDefaultValue<T>::Get(); } >}; > > > >template <typename T> >class BuiltInDefaultValue<T*> { > public: > static bool Exists() { return true; } > static T* Get() { return __null; } >}; > > > >#define GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_(type,value) template <> class BuiltInDefaultValue<type> { public: static bool Exists() { return true; } static type Get() { return value; } } > > > > > > > >template <> class BuiltInDefaultValue<void> { public: static bool Exists() { return true; } static void Get() { return ; } }; > > > >template <> class BuiltInDefaultValue< ::std::string> { public: static bool Exists() { return true; } static ::std::string Get() { return ""; } }; >template <> class BuiltInDefaultValue<bool> { public: static bool Exists() { return true; } static bool Get() { return false; } }; >template <> class BuiltInDefaultValue<unsigned char> { public: static bool Exists() { return true; } static unsigned char Get() { return '\0'; } }; >template <> class BuiltInDefaultValue<signed char> { public: static bool Exists() { return true; } static signed char Get() { return '\0'; } }; >template <> class BuiltInDefaultValue<char> { public: static bool Exists() { return true; } static char Get() { return '\0'; } }; ># 997 "../gtest_contrib/gmock/gmock.h" >template <> class BuiltInDefaultValue<wchar_t> { public: static bool Exists() { return true; } static wchar_t Get() { return 0U; } }; > > >template <> class BuiltInDefaultValue<unsigned short> { public: static bool Exists() { return true; } static unsigned short Get() { return 0U; } }; >template <> class BuiltInDefaultValue<signed short> { public: static bool Exists() { return true; } static signed short Get() { return 0; } }; >template <> class BuiltInDefaultValue<unsigned int> { public: static bool Exists() { return true; } static unsigned int Get() { return 0U; } }; >template <> class BuiltInDefaultValue<signed int> { public: static bool Exists() { return true; } static signed int Get() { return 0; } }; >template <> class BuiltInDefaultValue<unsigned long> { public: static bool Exists() { return true; } static unsigned long Get() { return 0UL; } }; >template <> class BuiltInDefaultValue<signed long> { public: static bool Exists() { return true; } static signed long Get() { return 0L; } }; >template <> class BuiltInDefaultValue<UInt64> { public: static bool Exists() { return true; } static UInt64 Get() { return 0; } }; >template <> class BuiltInDefaultValue<Int64> { public: static bool Exists() { return true; } static Int64 Get() { return 0; } }; >template <> class BuiltInDefaultValue<float> { public: static bool Exists() { return true; } static float Get() { return 0; } }; >template <> class BuiltInDefaultValue<double> { public: static bool Exists() { return true; } static double Get() { return 0; } }; > >#undef GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ > >} ># 1028 "../gtest_contrib/gmock/gmock.h" >template <typename T> >class DefaultValue { > public: > > > static void Set(T x) { > delete value_; > value_ = new T(x); > } > > > static void Clear() { > delete value_; > value_ = __null; > } > > > static bool IsSet() { return value_ != __null; } > > > > static bool Exists() { > return IsSet() || internal::BuiltInDefaultValue<T>::Exists(); > } > > > > > static T Get() { > return value_ == __null ? > internal::BuiltInDefaultValue<T>::Get() : *value_; > } > private: > static const T* value_; >}; > > > >template <typename T> >class DefaultValue<T&> { > public: > > static void Set(T& x) { > address_ = &x; > } > > > static void Clear() { > address_ = __null; > } > > > static bool IsSet() { return address_ != __null; } > > > > static bool Exists() { > return IsSet() || internal::BuiltInDefaultValue<T&>::Exists(); > } > > > > > static T& Get() { > return address_ == __null ? > internal::BuiltInDefaultValue<T&>::Get() : *address_; > } > private: > static T* address_; >}; > > > >template <> >class DefaultValue<void> { > public: > static bool Exists() { return true; } > static void Get() {} >}; > > >template <typename T> >const T* DefaultValue<T>::value_ = __null; > > >template <typename T> >T* DefaultValue<T&>::address_ = __null; > > >template <typename F> >class ActionInterface { > public: > typedef typename internal::Function<F>::Result Result; > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > ActionInterface() {} > virtual ~ActionInterface() {} > > > > > > virtual Result Perform(const ArgumentTuple& args) = 0; > > private: > ActionInterface(ActionInterface const &); void operator=(ActionInterface const &); >}; ># 1145 "../gtest_contrib/gmock/gmock.h" >template <typename F> >class Action { > public: > typedef typename internal::Function<F>::Result Result; > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > > > Action() : impl_(__null) {} > > > > explicit Action(ActionInterface<F>* impl) : impl_(impl) {} > > > Action(const Action& action) : impl_(action.impl_) {} > > > > > > template <typename Func> > explicit Action(const Action<Func>& action); > > > bool IsDoDefault() const { return impl_.get() == __null; } > > > > > > > > Result Perform(const ArgumentTuple& args) const { > internal::Assert( > !IsDoDefault(), "../gtest_contrib/gmock/gmock.h", 1180, > "You are using DoDefault() inside a composite action like " > "DoAll() or WithArgs(). This is not supported for technical " > "reasons. Please instead spell out the default action, or " > "assign the default action to an Action variable and use " > "the variable in various places."); > return impl_->Perform(args); > } > > private: > template <typename F1, typename F2> > friend class internal::ActionAdaptor; > > internal::linked_ptr<ActionInterface<F> > impl_; >}; ># 1217 "../gtest_contrib/gmock/gmock.h" >template <typename Impl> >class PolymorphicAction { > public: > explicit PolymorphicAction(const Impl& impl) : impl_(impl) {} > > template <typename F> > operator Action<F>() const { > return Action<F>(new MonomorphicImpl<F>(impl_)); > } > > private: > template <typename F> > class MonomorphicImpl : public ActionInterface<F> { > public: > typedef typename internal::Function<F>::Result Result; > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > explicit MonomorphicImpl(const Impl& impl) : impl_(impl) {} > > virtual Result Perform(const ArgumentTuple& args) { > return impl_.template Perform<Result>(args); > } > > private: > Impl impl_; > > void operator=(MonomorphicImpl const &); > }; > > Impl impl_; > > void operator=(PolymorphicAction const &); >}; > > > >template <typename F> >Action<F> MakeAction(ActionInterface<F>* impl) { > return Action<F>(impl); >} ># 1265 "../gtest_contrib/gmock/gmock.h" >template <typename Impl> >inline PolymorphicAction<Impl> MakePolymorphicAction(const Impl& impl) { > return PolymorphicAction<Impl>(impl); >} > >namespace internal { > > > >template <typename F1, typename F2> >class ActionAdaptor : public ActionInterface<F1> { > public: > typedef typename internal::Function<F1>::Result Result; > typedef typename internal::Function<F1>::ArgumentTuple ArgumentTuple; > > explicit ActionAdaptor(const Action<F2>& from) : impl_(from.impl_) {} > > virtual Result Perform(const ArgumentTuple& args) { > return impl_->Perform(args); > } > > private: > const internal::linked_ptr<ActionInterface<F2> > impl_; > > void operator=(ActionAdaptor const &); >}; ># 1316 "../gtest_contrib/gmock/gmock.h" >template <typename R> >class ReturnAction { > public: > > > > explicit ReturnAction(R value) : value_(value) {} > > > > template <typename F> > operator Action<F>() const { ># 1336 "../gtest_contrib/gmock/gmock.h" > typedef typename Function<F>::Result Result; > typedef ::testing::internal::CompileAssert<(bool(!internal::is_reference<Result>::value))> use_ReturnRef_instead_of_Return_to_return_a_reference[bool(!internal::is_reference<Result>::value) ? 1 : -1] > > ; > return Action<F>(new Impl<F>(value_)); > } > > private: > > template <typename F> > class Impl : public ActionInterface<F> { > public: > typedef typename Function<F>::Result Result; > typedef typename Function<F>::ArgumentTuple ArgumentTuple; ># 1358 "../gtest_contrib/gmock/gmock.h" > explicit Impl(R value) > : value_(::testing::internal::ImplicitCast_<Result>(value)) {} > > virtual Result Perform(const ArgumentTuple&) { return value_; } > > private: > typedef ::testing::internal::CompileAssert<(bool(!internal::is_reference<Result>::value))> Result_cannot_be_a_reference_type[bool(!internal::is_reference<Result>::value) ? 1 : -1] > ; > Result value_; > > void operator=(Impl const &); > }; > > R value_; > > void operator=(ReturnAction const &); >}; > > >class ReturnNullAction { > public: > > template <typename Result, typename ArgumentTuple> > static Result Perform(const ArgumentTuple&) { > typedef ::testing::internal::CompileAssert<(bool(internal::is_pointer<Result>::value))> ReturnNull_can_be_used_to_return_a_pointer_only[bool(internal::is_pointer<Result>::value) ? 1 : -1] > ; > return __null; > } >}; > > >class ReturnVoidAction { > public: > > template <typename Result, typename ArgumentTuple> > static void Perform(const ArgumentTuple&) { > CompileAssertTypesEqual<void, Result>(); > } >}; > > > > >template <typename T> >class ReturnRefAction { > public: > > explicit ReturnRefAction(T& ref) : ref_(ref) {} > > > > template <typename F> > operator Action<F>() const { > typedef typename Function<F>::Result Result; > > > > typedef ::testing::internal::CompileAssert<(bool(internal::is_reference<Result>::value))> use_Return_instead_of_ReturnRef_to_return_a_value[bool(internal::is_reference<Result>::value) ? 1 : -1] > ; > return Action<F>(new Impl<F>(ref_)); > } > > private: > > template <typename F> > class Impl : public ActionInterface<F> { > public: > typedef typename Function<F>::Result Result; > typedef typename Function<F>::ArgumentTuple ArgumentTuple; > > explicit Impl(T& ref) : ref_(ref) {} > > virtual Result Perform(const ArgumentTuple&) { > return ref_; > } > > private: > T& ref_; > > void operator=(Impl const &); > }; > > T& ref_; > > void operator=(ReturnRefAction const &); >}; > > > > >template <typename T> >class ReturnRefOfCopyAction { > public: > > > explicit ReturnRefOfCopyAction(const T& value) : value_(value) {} > > > > template <typename F> > operator Action<F>() const { > typedef typename Function<F>::Result Result; > > > > typedef ::testing::internal::CompileAssert<(bool(internal::is_reference<Result>::value))> use_Return_instead_of_ReturnRefOfCopy_to_return_a_value[bool(internal::is_reference<Result>::value) ? 1 : -1] > > ; > return Action<F>(new Impl<F>(value_)); > } > > private: > > template <typename F> > class Impl : public ActionInterface<F> { > public: > typedef typename Function<F>::Result Result; > typedef typename Function<F>::ArgumentTuple ArgumentTuple; > > explicit Impl(const T& value) : value_(value) {} > > virtual Result Perform(const ArgumentTuple&) { > return value_; > } > > private: > T value_; > > void operator=(Impl const &); > }; > > const T value_; > > void operator=(ReturnRefOfCopyAction const &); >}; > > >class DoDefaultAction { > public: > > > template <typename F> > operator Action<F>() const { return Action<F>(__null); } >}; > > > >template <typename T1, typename T2> >class AssignAction { > public: > AssignAction(T1* ptr, T2 value) : ptr_(ptr), value_(value) {} > > template <typename Result, typename ArgumentTuple> > void Perform(const ArgumentTuple& ) const { > *ptr_ = value_; > } > > private: > T1* const ptr_; > const T2 value_; > > void operator=(AssignAction const &); >}; > > > > > >template <typename T> >class SetErrnoAndReturnAction { > public: > SetErrnoAndReturnAction(int errno_value, T result) > : errno_(errno_value), > result_(result) {} > template <typename Result, typename ArgumentTuple> > Result Perform(const ArgumentTuple& ) const { > (*__errno_location ()) = errno_; > return result_; > } > > private: > const int errno_; > const T result_; > > void operator=(SetErrnoAndReturnAction const &); >}; > > > > > > > >template <size_t N, typename A, bool kIsProto> >class SetArgumentPointeeAction { > public: > > > explicit SetArgumentPointeeAction(const A& value) : value_(value) {} > > template <typename Result, typename ArgumentTuple> > void Perform(const ArgumentTuple& args) const { > CompileAssertTypesEqual<void, Result>(); > *::std::tr1::get<N>(args) = value_; > } > > private: > const A value_; > > void operator=(SetArgumentPointeeAction const &); >}; > >template <size_t N, typename Proto> >class SetArgumentPointeeAction<N, Proto, true> { > public: > > > > > explicit SetArgumentPointeeAction(const Proto& proto) : proto_(new Proto) { > proto_->CopyFrom(proto); > } > > template <typename Result, typename ArgumentTuple> > void Perform(const ArgumentTuple& args) const { > CompileAssertTypesEqual<void, Result>(); > ::std::tr1::get<N>(args)->CopyFrom(*proto_); > } > > private: > const internal::linked_ptr<Proto> proto_; > > void operator=(SetArgumentPointeeAction const &); >}; > > > > > > >template <typename FunctionImpl> >class InvokeWithoutArgsAction { > public: > > > explicit InvokeWithoutArgsAction(FunctionImpl function_impl) > : function_impl_(function_impl) {} > > > > template <typename Result, typename ArgumentTuple> > Result Perform(const ArgumentTuple&) { return function_impl_(); } > > private: > FunctionImpl function_impl_; > > void operator=(InvokeWithoutArgsAction const &); >}; > > >template <class Class, typename MethodPtr> >class InvokeMethodWithoutArgsAction { > public: > InvokeMethodWithoutArgsAction(Class* obj_ptr, MethodPtr method_ptr) > : obj_ptr_(obj_ptr), method_ptr_(method_ptr) {} > > template <typename Result, typename ArgumentTuple> > Result Perform(const ArgumentTuple&) const { > return (obj_ptr_->*method_ptr_)(); > } > > private: > Class* const obj_ptr_; > const MethodPtr method_ptr_; > > void operator=(InvokeMethodWithoutArgsAction const &); >}; > > >template <typename A> >class IgnoreResultAction { > public: > explicit IgnoreResultAction(const A& action) : action_(action) {} > > template <typename F> > operator Action<F>() const { ># 1652 "../gtest_contrib/gmock/gmock.h" > typedef typename internal::Function<F>::Result Result; > > > CompileAssertTypesEqual<void, Result>(); > > return Action<F>(new Impl<F>(action_)); > } > > private: > template <typename F> > class Impl : public ActionInterface<F> { > public: > typedef typename internal::Function<F>::Result Result; > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > explicit Impl(const A& action) : action_(action) {} > > virtual void Perform(const ArgumentTuple& args) { > > action_.Perform(args); > } > > private: > > > typedef typename internal::Function<F>::MakeResultIgnoredValue > OriginalFunction; > > const Action<OriginalFunction> action_; > > void operator=(Impl const &); > }; > > const A action_; > > void operator=(IgnoreResultAction const &); >}; ># 1697 "../gtest_contrib/gmock/gmock.h" >template <typename T> >class ReferenceWrapper { > public: > > explicit ReferenceWrapper(T& l_value) : pointer_(&l_value) {} > > > > operator T&() const { return *pointer_; } > private: > T* pointer_; >}; > > >template <typename T> >void PrintTo(const ReferenceWrapper<T>& ref, ::std::ostream* os) { > T& value = ref; > UniversalPrinter<T&>::Print(value, os); >} > > > >template <typename Action1, typename Action2> >class DoBothAction { > public: > DoBothAction(Action1 action1, Action2 action2) > : action1_(action1), action2_(action2) {} > > > > template <typename F> > operator Action<F>() const { > return Action<F>(new Impl<F>(action1_, action2_)); > } > > private: > > template <typename F> > class Impl : public ActionInterface<F> { > public: > typedef typename Function<F>::Result Result; > typedef typename Function<F>::ArgumentTuple ArgumentTuple; > typedef typename Function<F>::MakeResultVoid VoidResult; > > Impl(const Action<VoidResult>& action1, const Action<F>& action2) > : action1_(action1), action2_(action2) {} > > virtual Result Perform(const ArgumentTuple& args) { > action1_.Perform(args); > return action2_.Perform(args); > } > > private: > const Action<VoidResult> action1_; > const Action<F> action2_; > > void operator=(Impl const &); > }; > > Action1 action1_; > Action2 action2_; > > void operator=(DoBothAction const &); >}; > >} ># 1794 "../gtest_contrib/gmock/gmock.h" >typedef internal::IgnoredValue Unused; > > > > > >template <typename To> >template <typename From> >Action<To>::Action(const Action<From>& from) > : impl_(new internal::ActionAdaptor<To, From>(from)) {} > > > > >template <typename R> >internal::ReturnAction<R> Return(R value) { > return internal::ReturnAction<R>(value); >} > > >inline PolymorphicAction<internal::ReturnNullAction> ReturnNull() { > return MakePolymorphicAction(internal::ReturnNullAction()); >} > > >inline PolymorphicAction<internal::ReturnVoidAction> Return() { > return MakePolymorphicAction(internal::ReturnVoidAction()); >} > > >template <typename R> >inline internal::ReturnRefAction<R> ReturnRef(R& x) { > return internal::ReturnRefAction<R>(x); >} > > > > >template <typename R> >inline internal::ReturnRefOfCopyAction<R> ReturnRefOfCopy(const R& x) { > return internal::ReturnRefOfCopyAction<R>(x); >} > > >inline internal::DoDefaultAction DoDefault() { > return internal::DoDefaultAction(); >} > > > >template <size_t N, typename T> >PolymorphicAction< > internal::SetArgumentPointeeAction< > N, T, internal::IsAProtocolMessage<T>::value> > >SetArgPointee(const T& x) { > return MakePolymorphicAction(internal::SetArgumentPointeeAction< > N, T, internal::IsAProtocolMessage<T>::value>(x)); >} > > > > > >template <size_t N> >PolymorphicAction< > internal::SetArgumentPointeeAction<N, const char*, false> > >SetArgPointee(const char* p) { > return MakePolymorphicAction(internal::SetArgumentPointeeAction< > N, const char*, false>(p)); >} > >template <size_t N> >PolymorphicAction< > internal::SetArgumentPointeeAction<N, const wchar_t*, false> > >SetArgPointee(const wchar_t* p) { > return MakePolymorphicAction(internal::SetArgumentPointeeAction< > N, const wchar_t*, false>(p)); >} > > > >template <size_t N, typename T> >PolymorphicAction< > internal::SetArgumentPointeeAction< > N, T, internal::IsAProtocolMessage<T>::value> > >SetArgumentPointee(const T& x) { > return MakePolymorphicAction(internal::SetArgumentPointeeAction< > N, T, internal::IsAProtocolMessage<T>::value>(x)); >} > > >template <typename T1, typename T2> >PolymorphicAction<internal::AssignAction<T1, T2> > Assign(T1* ptr, T2 val) { > return MakePolymorphicAction(internal::AssignAction<T1, T2>(ptr, val)); >} > > > > >template <typename T> >PolymorphicAction<internal::SetErrnoAndReturnAction<T> > >SetErrnoAndReturn(int errval, T result) { > return MakePolymorphicAction( > internal::SetErrnoAndReturnAction<T>(errval, result)); >} > > > > > > >template <typename FunctionImpl> >PolymorphicAction<internal::InvokeWithoutArgsAction<FunctionImpl> > >InvokeWithoutArgs(FunctionImpl function_impl) { > return MakePolymorphicAction( > internal::InvokeWithoutArgsAction<FunctionImpl>(function_impl)); >} > > > >template <class Class, typename MethodPtr> >PolymorphicAction<internal::InvokeMethodWithoutArgsAction<Class, MethodPtr> > >InvokeWithoutArgs(Class* obj_ptr, MethodPtr method_ptr) { > return MakePolymorphicAction( > internal::InvokeMethodWithoutArgsAction<Class, MethodPtr>( > obj_ptr, method_ptr)); >} > > > > >template <typename A> >inline internal::IgnoreResultAction<A> IgnoreResult(const A& an_action) { > return internal::IgnoreResultAction<A>(an_action); >} ># 1937 "../gtest_contrib/gmock/gmock.h" >template <typename T> >inline internal::ReferenceWrapper<T> ByRef(T& l_value) { > return internal::ReferenceWrapper<T>(l_value); >} > >} ># 1983 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ > ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 1 3 4 ># 1986 "../gtest_contrib/gmock/gmock.h" 2 > > >namespace testing { ># 2001 "../gtest_contrib/gmock/gmock.h" >class CardinalityInterface { > public: > virtual ~CardinalityInterface() {} > > > > virtual int ConservativeLowerBound() const { return 0; } > virtual int ConservativeUpperBound() const { return 2147483647; } > > > virtual bool IsSatisfiedByCallCount(int call_count) const = 0; > > > virtual bool IsSaturatedByCallCount(int call_count) const = 0; > > > virtual void DescribeTo(::std::ostream* os) const = 0; >}; > > > > > > >class Cardinality { > public: > > > Cardinality() {} > > > explicit Cardinality(const CardinalityInterface* impl) : impl_(impl) {} > > > > int ConservativeLowerBound() const { return impl_->ConservativeLowerBound(); } > int ConservativeUpperBound() const { return impl_->ConservativeUpperBound(); } > > > bool IsSatisfiedByCallCount(int call_count) const { > return impl_->IsSatisfiedByCallCount(call_count); > } > > > bool IsSaturatedByCallCount(int call_count) const { > return impl_->IsSaturatedByCallCount(call_count); > } > > > > bool IsOverSaturatedByCallCount(int call_count) const { > return impl_->IsSaturatedByCallCount(call_count) && > !impl_->IsSatisfiedByCallCount(call_count); > } > > > void DescribeTo(::std::ostream* os) const { impl_->DescribeTo(os); } > > > static void DescribeActualCallCountTo(int actual_call_count, > ::std::ostream* os); > private: > internal::linked_ptr<const CardinalityInterface> impl_; >}; > > >Cardinality AtLeast(int n); > > >Cardinality AtMost(int n); > > >Cardinality AnyNumber(); > > >Cardinality Between(int min, int max); > > >Cardinality Exactly(int n); > > >inline Cardinality MakeCardinality(const CardinalityInterface* c) { > return Cardinality(c); >} > >} ># 2127 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_ > > >namespace testing { >namespace internal { > > > > >template <typename Result, typename ArgumentTuple> >class InvokeHelper; > >template <typename R> >class InvokeHelper<R, ::std::tr1::tuple<> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<>&) { > return function(); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<>&) { > return (obj_ptr->*method_ptr)(); > } >}; > >template <typename R, typename A1> >class InvokeHelper<R, ::std::tr1::tuple<A1> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1>& args) { > using ::std::tr1::get; > return function(get<0>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args)); > } >}; > >template <typename R, typename A1, typename A2> >class InvokeHelper<R, ::std::tr1::tuple<A1, A2> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1, A2>& args) { > using ::std::tr1::get; > return function(get<0>(args), get<1>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1, A2>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args)); > } >}; > >template <typename R, typename A1, typename A2, typename A3> >class InvokeHelper<R, ::std::tr1::tuple<A1, A2, A3> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1, A2, > A3>& args) { > using ::std::tr1::get; > return function(get<0>(args), get<1>(args), get<2>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1, A2, A3>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4> >class InvokeHelper<R, ::std::tr1::tuple<A1, A2, A3, A4> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1, A2, A3, > A4>& args) { > using ::std::tr1::get; > return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1, A2, A3, A4>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), > get<3>(args)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5> >class InvokeHelper<R, ::std::tr1::tuple<A1, A2, A3, A4, A5> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1, A2, A3, A4, > A5>& args) { > using ::std::tr1::get; > return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), > get<4>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1, A2, A3, A4, A5>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), > get<3>(args), get<4>(args)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6> >class InvokeHelper<R, ::std::tr1::tuple<A1, A2, A3, A4, A5, A6> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1, A2, A3, A4, > A5, A6>& args) { > using ::std::tr1::get; > return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), > get<4>(args), get<5>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1, A2, A3, A4, A5, A6>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), > get<3>(args), get<4>(args), get<5>(args)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7> >class InvokeHelper<R, ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1, A2, A3, A4, > A5, A6, A7>& args) { > using ::std::tr1::get; > return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), > get<4>(args), get<5>(args), get<6>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, > A7>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), > get<3>(args), get<4>(args), get<5>(args), get<6>(args)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8> >class InvokeHelper<R, ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1, A2, A3, A4, > A5, A6, A7, A8>& args) { > using ::std::tr1::get; > return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), > get<4>(args), get<5>(args), get<6>(args), get<7>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, > A8>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), > get<3>(args), get<4>(args), get<5>(args), get<6>(args), get<7>(args)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8, typename A9> >class InvokeHelper<R, ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1, A2, A3, A4, > A5, A6, A7, A8, A9>& args) { > using ::std::tr1::get; > return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), > get<4>(args), get<5>(args), get<6>(args), get<7>(args), get<8>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, > A9>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), > get<3>(args), get<4>(args), get<5>(args), get<6>(args), get<7>(args), > get<8>(args)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8, typename A9, > typename A10> >class InvokeHelper<R, ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9, > A10> > { > public: > template <typename Function> > static R Invoke(Function function, const ::std::tr1::tuple<A1, A2, A3, A4, > A5, A6, A7, A8, A9, A10>& args) { > using ::std::tr1::get; > return function(get<0>(args), get<1>(args), get<2>(args), get<3>(args), > get<4>(args), get<5>(args), get<6>(args), get<7>(args), get<8>(args), > get<9>(args)); > } > > template <class Class, typename MethodPtr> > static R InvokeMethod(Class* obj_ptr, > MethodPtr method_ptr, > const ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, > A9, A10>& args) { > using ::std::tr1::get; > return (obj_ptr->*method_ptr)(get<0>(args), get<1>(args), get<2>(args), > get<3>(args), get<4>(args), get<5>(args), get<6>(args), get<7>(args), > get<8>(args), get<9>(args)); > } >}; ># 2381 "../gtest_contrib/gmock/gmock.h" >template <typename R> >class CallableHelper { > public: > > template <typename Function> > static R Call(Function function) { return function(); } ># 2401 "../gtest_contrib/gmock/gmock.h" > template <typename Function, typename A1> > static R Call(Function function, A1 a1) { return function(a1); } > > > template <typename Function, typename A1, typename A2> > static R Call(Function function, A1 a1, A2 a2) { > return function(a1, a2); > } > > > template <typename Function, typename A1, typename A2, typename A3> > static R Call(Function function, A1 a1, A2 a2, A3 a3) { > return function(a1, a2, a3); > } > > > template <typename Function, typename A1, typename A2, typename A3, > typename A4> > static R Call(Function function, A1 a1, A2 a2, A3 a3, A4 a4) { > return function(a1, a2, a3, a4); > } > > > template <typename Function, typename A1, typename A2, typename A3, > typename A4, typename A5> > static R Call(Function function, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { > return function(a1, a2, a3, a4, a5); > } > > > template <typename Function, typename A1, typename A2, typename A3, > typename A4, typename A5, typename A6> > static R Call(Function function, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { > return function(a1, a2, a3, a4, a5, a6); > } > > > template <typename Function, typename A1, typename A2, typename A3, > typename A4, typename A5, typename A6, typename A7> > static R Call(Function function, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, > A7 a7) { > return function(a1, a2, a3, a4, a5, a6, a7); > } > > > template <typename Function, typename A1, typename A2, typename A3, > typename A4, typename A5, typename A6, typename A7, typename A8> > static R Call(Function function, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, > A7 a7, A8 a8) { > return function(a1, a2, a3, a4, a5, a6, a7, a8); > } > > > template <typename Function, typename A1, typename A2, typename A3, > typename A4, typename A5, typename A6, typename A7, typename A8, > typename A9> > static R Call(Function function, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, > A7 a7, A8 a8, A9 a9) { > return function(a1, a2, a3, a4, a5, a6, a7, a8, a9); > } > > > template <typename Function, typename A1, typename A2, typename A3, > typename A4, typename A5, typename A6, typename A7, typename A8, > typename A9, typename A10> > static R Call(Function function, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, > A7 a7, A8 a8, A9 a9, A10 a10) { > return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10); > } > >}; > > > >#define GMOCK_FIELD_(Tuple,N) typename ::std::tr1::tuple_element<N, Tuple>::type ># 2496 "../gtest_contrib/gmock/gmock.h" >template <typename Result, typename ArgumentTuple, int k1, int k2, int k3, > int k4, int k5, int k6, int k7, int k8, int k9, int k10> >class SelectArgs { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k2, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k3, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k4, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k5, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k6, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k7, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k8, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k9, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k10, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args), > get<k4>(args), get<k5>(args), get<k6>(args), get<k7>(args), > get<k8>(args), get<k9>(args), get<k10>(args)); > } >}; > >template <typename Result, typename ArgumentTuple> >class SelectArgs<Result, ArgumentTuple, > -1, -1, -1, -1, -1, -1, -1, -1, -1, -1> { > public: > typedef Result type(); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& ) { > using ::std::tr1::get; > return SelectedArgs(); > } >}; > >template <typename Result, typename ArgumentTuple, int k1> >class SelectArgs<Result, ArgumentTuple, > k1, -1, -1, -1, -1, -1, -1, -1, -1, -1> { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args)); > } >}; > >template <typename Result, typename ArgumentTuple, int k1, int k2> >class SelectArgs<Result, ArgumentTuple, > k1, k2, -1, -1, -1, -1, -1, -1, -1, -1> { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k2, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args), get<k2>(args)); > } >}; > >template <typename Result, typename ArgumentTuple, int k1, int k2, int k3> >class SelectArgs<Result, ArgumentTuple, > k1, k2, k3, -1, -1, -1, -1, -1, -1, -1> { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k2, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k3, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args)); > } >}; > >template <typename Result, typename ArgumentTuple, int k1, int k2, int k3, > int k4> >class SelectArgs<Result, ArgumentTuple, > k1, k2, k3, k4, -1, -1, -1, -1, -1, -1> { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k2, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k3, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k4, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args), > get<k4>(args)); > } >}; > >template <typename Result, typename ArgumentTuple, int k1, int k2, int k3, > int k4, int k5> >class SelectArgs<Result, ArgumentTuple, > k1, k2, k3, k4, k5, -1, -1, -1, -1, -1> { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k2, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k3, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k4, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k5, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args), > get<k4>(args), get<k5>(args)); > } >}; > >template <typename Result, typename ArgumentTuple, int k1, int k2, int k3, > int k4, int k5, int k6> >class SelectArgs<Result, ArgumentTuple, > k1, k2, k3, k4, k5, k6, -1, -1, -1, -1> { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k2, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k3, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k4, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k5, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k6, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args), > get<k4>(args), get<k5>(args), get<k6>(args)); > } >}; > >template <typename Result, typename ArgumentTuple, int k1, int k2, int k3, > int k4, int k5, int k6, int k7> >class SelectArgs<Result, ArgumentTuple, > k1, k2, k3, k4, k5, k6, k7, -1, -1, -1> { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k2, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k3, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k4, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k5, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k6, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k7, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args), > get<k4>(args), get<k5>(args), get<k6>(args), get<k7>(args)); > } >}; > >template <typename Result, typename ArgumentTuple, int k1, int k2, int k3, > int k4, int k5, int k6, int k7, int k8> >class SelectArgs<Result, ArgumentTuple, > k1, k2, k3, k4, k5, k6, k7, k8, -1, -1> { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k2, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k3, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k4, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k5, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k6, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k7, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k8, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args), > get<k4>(args), get<k5>(args), get<k6>(args), get<k7>(args), > get<k8>(args)); > } >}; > >template <typename Result, typename ArgumentTuple, int k1, int k2, int k3, > int k4, int k5, int k6, int k7, int k8, int k9> >class SelectArgs<Result, ArgumentTuple, > k1, k2, k3, k4, k5, k6, k7, k8, k9, -1> { > public: > typedef Result type(typename ::std::tr1::tuple_element<k1, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k2, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k3, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k4, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k5, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k6, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k7, ArgumentTuple>::type, > typename ::std::tr1::tuple_element<k8, ArgumentTuple>::type, typename ::std::tr1::tuple_element<k9, ArgumentTuple>::type); > typedef typename Function<type>::ArgumentTuple SelectedArgs; > static SelectedArgs Select(const ArgumentTuple& args) { > using ::std::tr1::get; > return SelectedArgs(get<k1>(args), get<k2>(args), get<k3>(args), > get<k4>(args), get<k5>(args), get<k6>(args), get<k7>(args), > get<k8>(args), get<k9>(args)); > } >}; > >#undef GMOCK_FIELD_ > > >template <typename InnerAction, int k1 = -1, int k2 = -1, int k3 = -1, > int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, > int k9 = -1, int k10 = -1> >class WithArgsAction { > public: > explicit WithArgsAction(const InnerAction& action) : action_(action) {} > > template <typename F> > operator Action<F>() const { return MakeAction(new Impl<F>(action_)); } > > private: > template <typename F> > class Impl : public ActionInterface<F> { > public: > typedef typename Function<F>::Result Result; > typedef typename Function<F>::ArgumentTuple ArgumentTuple; > > explicit Impl(const InnerAction& action) : action_(action) {} > > virtual Result Perform(const ArgumentTuple& args) { > return action_.Perform(SelectArgs<Result, ArgumentTuple, k1, k2, k3, k4, > k5, k6, k7, k8, k9, k10>::Select(args)); > } > > private: > typedef typename SelectArgs<Result, ArgumentTuple, > k1, k2, k3, k4, k5, k6, k7, k8, k9, k10>::type InnerFunctionType; > > Action<InnerFunctionType> action_; > }; > > const InnerAction action_; > > void operator=(WithArgsAction const &); >}; ># 2722 "../gtest_contrib/gmock/gmock.h" >struct ExcessiveArg {}; > > >template <typename Result, class Impl> >class ActionHelper { > public: > static Result Perform(Impl* impl, const ::std::tr1::tuple<>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<>(args, ExcessiveArg(), > ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg()); > } > > template <typename A0> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0>(args, get<0>(args), > ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg()); > } > > template <typename A0, typename A1> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0, A1>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0, A1>(args, get<0>(args), > get<1>(args), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg()); > } > > template <typename A0, typename A1, typename A2> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0, A1, A2>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0, A1, A2>(args, get<0>(args), > get<1>(args), get<2>(args), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg()); > } > > template <typename A0, typename A1, typename A2, typename A3> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0, A1, A2, > A3>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0, A1, A2, A3>(args, get<0>(args), > get<1>(args), get<2>(args), get<3>(args), ExcessiveArg(), > ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg()); > } > > template <typename A0, typename A1, typename A2, typename A3, typename A4> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0, A1, A2, A3, > A4>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4>(args, > get<0>(args), get<1>(args), get<2>(args), get<3>(args), get<4>(args), > ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg()); > } > > template <typename A0, typename A1, typename A2, typename A3, typename A4, > typename A5> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0, A1, A2, A3, A4, > A5>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5>(args, > get<0>(args), get<1>(args), get<2>(args), get<3>(args), get<4>(args), > get<5>(args), ExcessiveArg(), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg()); > } > > template <typename A0, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0, A1, A2, A3, A4, > A5, A6>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6>(args, > get<0>(args), get<1>(args), get<2>(args), get<3>(args), get<4>(args), > get<5>(args), get<6>(args), ExcessiveArg(), ExcessiveArg(), > ExcessiveArg()); > } > > template <typename A0, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0, A1, A2, A3, A4, > A5, A6, A7>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6, > A7>(args, get<0>(args), get<1>(args), get<2>(args), get<3>(args), > get<4>(args), get<5>(args), get<6>(args), get<7>(args), ExcessiveArg(), > ExcessiveArg()); > } > > template <typename A0, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0, A1, A2, A3, A4, > A5, A6, A7, A8>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6, A7, > A8>(args, get<0>(args), get<1>(args), get<2>(args), get<3>(args), > get<4>(args), get<5>(args), get<6>(args), get<7>(args), get<8>(args), > ExcessiveArg()); > } > > template <typename A0, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8, typename A9> > static Result Perform(Impl* impl, const ::std::tr1::tuple<A0, A1, A2, A3, A4, > A5, A6, A7, A8, A9>& args) { > using ::std::tr1::get; > return impl->template gmock_PerformImpl<A0, A1, A2, A3, A4, A5, A6, A7, A8, > A9>(args, get<0>(args), get<1>(args), get<2>(args), get<3>(args), > get<4>(args), get<5>(args), get<6>(args), get<7>(args), get<8>(args), > get<9>(args)); > } >}; > >} ># 2848 "../gtest_contrib/gmock/gmock.h" >template <int k1, typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1>(action); >} > >template <int k1, int k2, typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1, k2> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1, k2>(action); >} > >template <int k1, int k2, int k3, typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1, k2, k3> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1, k2, k3>(action); >} > >template <int k1, int k2, int k3, int k4, typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1, k2, k3, k4>(action); >} > >template <int k1, int k2, int k3, int k4, int k5, typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5>(action); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6>(action); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, > typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, > k7>(action); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8, > typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, > k8>(action); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8, > int k9, typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8, k9> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8, > k9>(action); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8, > int k9, int k10, typename InnerAction> >inline internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8, > k9, k10> >WithArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k1, k2, k3, k4, k5, k6, k7, k8, > k9, k10>(action); >} > > > >template <typename Action1, typename Action2> >inline internal::DoBothAction<Action1, Action2> >DoAll(Action1 a1, Action2 a2) { > return internal::DoBothAction<Action1, Action2>(a1, a2); >} > >template <typename Action1, typename Action2, typename Action3> >inline internal::DoBothAction<Action1, internal::DoBothAction<Action2, > Action3> > >DoAll(Action1 a1, Action2 a2, Action3 a3) { > return DoAll(a1, DoAll(a2, a3)); >} > >template <typename Action1, typename Action2, typename Action3, > typename Action4> >inline internal::DoBothAction<Action1, internal::DoBothAction<Action2, > internal::DoBothAction<Action3, Action4> > > >DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4) { > return DoAll(a1, DoAll(a2, a3, a4)); >} > >template <typename Action1, typename Action2, typename Action3, > typename Action4, typename Action5> >inline internal::DoBothAction<Action1, internal::DoBothAction<Action2, > internal::DoBothAction<Action3, internal::DoBothAction<Action4, > Action5> > > > >DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5) { > return DoAll(a1, DoAll(a2, a3, a4, a5)); >} > >template <typename Action1, typename Action2, typename Action3, > typename Action4, typename Action5, typename Action6> >inline internal::DoBothAction<Action1, internal::DoBothAction<Action2, > internal::DoBothAction<Action3, internal::DoBothAction<Action4, > internal::DoBothAction<Action5, Action6> > > > > >DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6) { > return DoAll(a1, DoAll(a2, a3, a4, a5, a6)); >} > >template <typename Action1, typename Action2, typename Action3, > typename Action4, typename Action5, typename Action6, typename Action7> >inline internal::DoBothAction<Action1, internal::DoBothAction<Action2, > internal::DoBothAction<Action3, internal::DoBothAction<Action4, > internal::DoBothAction<Action5, internal::DoBothAction<Action6, > Action7> > > > > > >DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6, > Action7 a7) { > return DoAll(a1, DoAll(a2, a3, a4, a5, a6, a7)); >} > >template <typename Action1, typename Action2, typename Action3, > typename Action4, typename Action5, typename Action6, typename Action7, > typename Action8> >inline internal::DoBothAction<Action1, internal::DoBothAction<Action2, > internal::DoBothAction<Action3, internal::DoBothAction<Action4, > internal::DoBothAction<Action5, internal::DoBothAction<Action6, > internal::DoBothAction<Action7, Action8> > > > > > > >DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6, > Action7 a7, Action8 a8) { > return DoAll(a1, DoAll(a2, a3, a4, a5, a6, a7, a8)); >} > >template <typename Action1, typename Action2, typename Action3, > typename Action4, typename Action5, typename Action6, typename Action7, > typename Action8, typename Action9> >inline internal::DoBothAction<Action1, internal::DoBothAction<Action2, > internal::DoBothAction<Action3, internal::DoBothAction<Action4, > internal::DoBothAction<Action5, internal::DoBothAction<Action6, > internal::DoBothAction<Action7, internal::DoBothAction<Action8, > Action9> > > > > > > > >DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6, > Action7 a7, Action8 a8, Action9 a9) { > return DoAll(a1, DoAll(a2, a3, a4, a5, a6, a7, a8, a9)); >} > >template <typename Action1, typename Action2, typename Action3, > typename Action4, typename Action5, typename Action6, typename Action7, > typename Action8, typename Action9, typename Action10> >inline internal::DoBothAction<Action1, internal::DoBothAction<Action2, > internal::DoBothAction<Action3, internal::DoBothAction<Action4, > internal::DoBothAction<Action5, internal::DoBothAction<Action6, > internal::DoBothAction<Action7, internal::DoBothAction<Action8, > internal::DoBothAction<Action9, Action10> > > > > > > > > >DoAll(Action1 a1, Action2 a2, Action3 a3, Action4 a4, Action5 a5, Action6 a6, > Action7 a7, Action8 a8, Action9 a9, Action10 a10) { > return DoAll(a1, DoAll(a2, a3, a4, a5, a6, a7, a8, a9, a10)); >} > >} ># 3106 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_ const args_type& args GTEST_ATTRIBUTE_UNUSED_, arg0_type arg0 GTEST_ATTRIBUTE_UNUSED_, arg1_type arg1 GTEST_ATTRIBUTE_UNUSED_, arg2_type arg2 GTEST_ATTRIBUTE_UNUSED_, arg3_type arg3 GTEST_ATTRIBUTE_UNUSED_, arg4_type arg4 GTEST_ATTRIBUTE_UNUSED_, arg5_type arg5 GTEST_ATTRIBUTE_UNUSED_, arg6_type arg6 GTEST_ATTRIBUTE_UNUSED_, arg7_type arg7 GTEST_ATTRIBUTE_UNUSED_, arg8_type arg8 GTEST_ATTRIBUTE_UNUSED_, arg9_type arg9 GTEST_ATTRIBUTE_UNUSED_ ># 3201 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INTERNAL_DECL_HAS_1_TEMPLATE_PARAMS(kind0,name0) kind0 name0 >#define GMOCK_INTERNAL_DECL_HAS_2_TEMPLATE_PARAMS(kind0,name0,kind1,name1) kind0 name0, kind1 name1 > >#define GMOCK_INTERNAL_DECL_HAS_3_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2) kind0 name0, kind1 name1, kind2 name2 > >#define GMOCK_INTERNAL_DECL_HAS_4_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3) kind0 name0, kind1 name1, kind2 name2, kind3 name3 > > >#define GMOCK_INTERNAL_DECL_HAS_5_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4) kind0 name0, kind1 name1, kind2 name2, kind3 name3, kind4 name4 > > >#define GMOCK_INTERNAL_DECL_HAS_6_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5) kind0 name0, kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5 > > >#define GMOCK_INTERNAL_DECL_HAS_7_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5,kind6,name6) kind0 name0, kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5, kind6 name6 > > > >#define GMOCK_INTERNAL_DECL_HAS_8_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5,kind6,name6,kind7,name7) kind0 name0, kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5, kind6 name6, kind7 name7 > > > >#define GMOCK_INTERNAL_DECL_HAS_9_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5,kind6,name6,kind7,name7,kind8,name8) kind0 name0, kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5, kind6 name6, kind7 name7, kind8 name8 > > > > >#define GMOCK_INTERNAL_DECL_HAS_10_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5,kind6,name6,kind7,name7,kind8,name8,kind9,name9) kind0 name0, kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5, kind6 name6, kind7 name7, kind8 name8, kind9 name9 > > > > > > >#define GMOCK_INTERNAL_LIST_HAS_1_TEMPLATE_PARAMS(kind0,name0) name0 >#define GMOCK_INTERNAL_LIST_HAS_2_TEMPLATE_PARAMS(kind0,name0,kind1,name1) name0, name1 > >#define GMOCK_INTERNAL_LIST_HAS_3_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2) name0, name1, name2 > >#define GMOCK_INTERNAL_LIST_HAS_4_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3) name0, name1, name2, name3 > >#define GMOCK_INTERNAL_LIST_HAS_5_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4) name0, name1, name2, name3, name4 > > >#define GMOCK_INTERNAL_LIST_HAS_6_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5) name0, name1, name2, name3, name4, name5 > > >#define GMOCK_INTERNAL_LIST_HAS_7_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5,kind6,name6) name0, name1, name2, name3, name4, name5, name6 > > >#define GMOCK_INTERNAL_LIST_HAS_8_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5,kind6,name6,kind7,name7) name0, name1, name2, name3, name4, name5, name6, name7 > > >#define GMOCK_INTERNAL_LIST_HAS_9_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5,kind6,name6,kind7,name7,kind8,name8) name0, name1, name2, name3, name4, name5, name6, name7, name8 > > > >#define GMOCK_INTERNAL_LIST_HAS_10_TEMPLATE_PARAMS(kind0,name0,kind1,name1,kind2,name2,kind3,name3,kind4,name4,kind5,name5,kind6,name6,kind7,name7,kind8,name8,kind9,name9) name0, name1, name2, name3, name4, name5, name6, name7, name8, name9 > > > > > >#define GMOCK_INTERNAL_DECL_TYPE_AND_0_VALUE_PARAMS() >#define GMOCK_INTERNAL_DECL_TYPE_AND_1_VALUE_PARAMS(p0) , typename p0 ##_type >#define GMOCK_INTERNAL_DECL_TYPE_AND_2_VALUE_PARAMS(p0,p1) , typename p0 ##_type, typename p1 ##_type > >#define GMOCK_INTERNAL_DECL_TYPE_AND_3_VALUE_PARAMS(p0,p1,p2) , typename p0 ##_type, typename p1 ##_type, typename p2 ##_type > >#define GMOCK_INTERNAL_DECL_TYPE_AND_4_VALUE_PARAMS(p0,p1,p2,p3) , typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type > > >#define GMOCK_INTERNAL_DECL_TYPE_AND_5_VALUE_PARAMS(p0,p1,p2,p3,p4) , typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type > > >#define GMOCK_INTERNAL_DECL_TYPE_AND_6_VALUE_PARAMS(p0,p1,p2,p3,p4,p5) , typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type > > >#define GMOCK_INTERNAL_DECL_TYPE_AND_7_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6) , typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type > > > >#define GMOCK_INTERNAL_DECL_TYPE_AND_8_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7) , typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type > > > >#define GMOCK_INTERNAL_DECL_TYPE_AND_9_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8) , typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type > > > >#define GMOCK_INTERNAL_DECL_TYPE_AND_10_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) , typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type, typename p9 ##_type > > > > > > >#define GMOCK_INTERNAL_INIT_AND_0_VALUE_PARAMS() () > >#define GMOCK_INTERNAL_INIT_AND_1_VALUE_PARAMS(p0) (p0 ##_type gmock_p0) : p0(gmock_p0) > >#define GMOCK_INTERNAL_INIT_AND_2_VALUE_PARAMS(p0,p1) (p0 ##_type gmock_p0, p1 ##_type gmock_p1) : p0(gmock_p0), p1(gmock_p1) > >#define GMOCK_INTERNAL_INIT_AND_3_VALUE_PARAMS(p0,p1,p2) (p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2) > > >#define GMOCK_INTERNAL_INIT_AND_4_VALUE_PARAMS(p0,p1,p2,p3) (p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3) > > > >#define GMOCK_INTERNAL_INIT_AND_5_VALUE_PARAMS(p0,p1,p2,p3,p4) (p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4) > > > >#define GMOCK_INTERNAL_INIT_AND_6_VALUE_PARAMS(p0,p1,p2,p3,p4,p5) (p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5) > > > > >#define GMOCK_INTERNAL_INIT_AND_7_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6) (p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6) > > > > >#define GMOCK_INTERNAL_INIT_AND_8_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7) (p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7) > > > > > >#define GMOCK_INTERNAL_INIT_AND_9_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8) (p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8) > > > > > > > >#define GMOCK_INTERNAL_INIT_AND_10_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) (p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8, p9 ##_type gmock_p9) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8), p9(gmock_p9) ># 3349 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INTERNAL_DEFN_AND_0_VALUE_PARAMS() >#define GMOCK_INTERNAL_DEFN_AND_1_VALUE_PARAMS(p0) p0 ##_type p0; >#define GMOCK_INTERNAL_DEFN_AND_2_VALUE_PARAMS(p0,p1) p0 ##_type p0; p1 ##_type p1; > >#define GMOCK_INTERNAL_DEFN_AND_3_VALUE_PARAMS(p0,p1,p2) p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; > >#define GMOCK_INTERNAL_DEFN_AND_4_VALUE_PARAMS(p0,p1,p2,p3) p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; > >#define GMOCK_INTERNAL_DEFN_AND_5_VALUE_PARAMS(p0,p1,p2,p3,p4) p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; > >#define GMOCK_INTERNAL_DEFN_AND_6_VALUE_PARAMS(p0,p1,p2,p3,p4,p5) p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; > > >#define GMOCK_INTERNAL_DEFN_AND_7_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6) p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; > > >#define GMOCK_INTERNAL_DEFN_AND_8_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7) p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; > > >#define GMOCK_INTERNAL_DEFN_AND_9_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8) p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; > > >#define GMOCK_INTERNAL_DEFN_AND_10_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; p9 ##_type p9; > > > > > >#define GMOCK_INTERNAL_LIST_AND_0_VALUE_PARAMS() >#define GMOCK_INTERNAL_LIST_AND_1_VALUE_PARAMS(p0) p0 >#define GMOCK_INTERNAL_LIST_AND_2_VALUE_PARAMS(p0,p1) p0, p1 >#define GMOCK_INTERNAL_LIST_AND_3_VALUE_PARAMS(p0,p1,p2) p0, p1, p2 >#define GMOCK_INTERNAL_LIST_AND_4_VALUE_PARAMS(p0,p1,p2,p3) p0, p1, p2, p3 >#define GMOCK_INTERNAL_LIST_AND_5_VALUE_PARAMS(p0,p1,p2,p3,p4) p0, p1, p2, p3, p4 > >#define GMOCK_INTERNAL_LIST_AND_6_VALUE_PARAMS(p0,p1,p2,p3,p4,p5) p0, p1, p2, p3, p4, p5 > >#define GMOCK_INTERNAL_LIST_AND_7_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6) p0, p1, p2, p3, p4, p5, p6 > >#define GMOCK_INTERNAL_LIST_AND_8_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7) p0, p1, p2, p3, p4, p5, p6, p7 > >#define GMOCK_INTERNAL_LIST_AND_9_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8) p0, p1, p2, p3, p4, p5, p6, p7, p8 > >#define GMOCK_INTERNAL_LIST_AND_10_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) p0, p1, p2, p3, p4, p5, p6, p7, p8, p9 > > > >#define GMOCK_INTERNAL_LIST_TYPE_AND_0_VALUE_PARAMS() >#define GMOCK_INTERNAL_LIST_TYPE_AND_1_VALUE_PARAMS(p0) , p0 ##_type >#define GMOCK_INTERNAL_LIST_TYPE_AND_2_VALUE_PARAMS(p0,p1) , p0 ##_type, p1 ##_type > >#define GMOCK_INTERNAL_LIST_TYPE_AND_3_VALUE_PARAMS(p0,p1,p2) , p0 ##_type, p1 ##_type, p2 ##_type > >#define GMOCK_INTERNAL_LIST_TYPE_AND_4_VALUE_PARAMS(p0,p1,p2,p3) , p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type > >#define GMOCK_INTERNAL_LIST_TYPE_AND_5_VALUE_PARAMS(p0,p1,p2,p3,p4) , p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type > >#define GMOCK_INTERNAL_LIST_TYPE_AND_6_VALUE_PARAMS(p0,p1,p2,p3,p4,p5) , p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type > >#define GMOCK_INTERNAL_LIST_TYPE_AND_7_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6) , p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type > > >#define GMOCK_INTERNAL_LIST_TYPE_AND_8_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7) , p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type > > >#define GMOCK_INTERNAL_LIST_TYPE_AND_9_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8) , p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type > > >#define GMOCK_INTERNAL_LIST_TYPE_AND_10_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) , p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type, p9 ##_type > > > > >#define GMOCK_INTERNAL_DECL_AND_0_VALUE_PARAMS() >#define GMOCK_INTERNAL_DECL_AND_1_VALUE_PARAMS(p0) p0 ##_type p0 >#define GMOCK_INTERNAL_DECL_AND_2_VALUE_PARAMS(p0,p1) p0 ##_type p0, p1 ##_type p1 > >#define GMOCK_INTERNAL_DECL_AND_3_VALUE_PARAMS(p0,p1,p2) p0 ##_type p0, p1 ##_type p1, p2 ##_type p2 > >#define GMOCK_INTERNAL_DECL_AND_4_VALUE_PARAMS(p0,p1,p2,p3) p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3 > >#define GMOCK_INTERNAL_DECL_AND_5_VALUE_PARAMS(p0,p1,p2,p3,p4) p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4 > >#define GMOCK_INTERNAL_DECL_AND_6_VALUE_PARAMS(p0,p1,p2,p3,p4,p5) p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5 > > >#define GMOCK_INTERNAL_DECL_AND_7_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6) p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6 > > >#define GMOCK_INTERNAL_DECL_AND_8_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7) p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6, p7 ##_type p7 > > >#define GMOCK_INTERNAL_DECL_AND_9_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8) p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6, p7 ##_type p7, p8 ##_type p8 > > >#define GMOCK_INTERNAL_DECL_AND_10_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6, p7 ##_type p7, p8 ##_type p8, p9 ##_type p9 > > > > > >#define GMOCK_INTERNAL_COUNT_AND_0_VALUE_PARAMS() >#define GMOCK_INTERNAL_COUNT_AND_1_VALUE_PARAMS(p0) P >#define GMOCK_INTERNAL_COUNT_AND_2_VALUE_PARAMS(p0,p1) P2 >#define GMOCK_INTERNAL_COUNT_AND_3_VALUE_PARAMS(p0,p1,p2) P3 >#define GMOCK_INTERNAL_COUNT_AND_4_VALUE_PARAMS(p0,p1,p2,p3) P4 >#define GMOCK_INTERNAL_COUNT_AND_5_VALUE_PARAMS(p0,p1,p2,p3,p4) P5 >#define GMOCK_INTERNAL_COUNT_AND_6_VALUE_PARAMS(p0,p1,p2,p3,p4,p5) P6 >#define GMOCK_INTERNAL_COUNT_AND_7_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6) P7 >#define GMOCK_INTERNAL_COUNT_AND_8_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7) P8 > >#define GMOCK_INTERNAL_COUNT_AND_9_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8) P9 > >#define GMOCK_INTERNAL_COUNT_AND_10_VALUE_PARAMS(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) P10 > > > >#define GMOCK_ACTION_CLASS_(name,value_params) GTEST_CONCAT_TOKEN_(name ##Action, GMOCK_INTERNAL_COUNT_ ##value_params) > > >#define ACTION_TEMPLATE(name,template_params,value_params) template <GMOCK_INTERNAL_DECL_ ##template_params GMOCK_INTERNAL_DECL_TYPE_ ##value_params> class GMOCK_ACTION_CLASS_(name, value_params) { public: GMOCK_ACTION_CLASS_(name, value_params) GMOCK_INTERNAL_INIT_ ##value_params {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl GMOCK_INTERNAL_INIT_ ##value_params {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; GMOCK_INTERNAL_DEFN_ ##value_params private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(GMOCK_INTERNAL_LIST_ ##value_params)); } GMOCK_INTERNAL_DEFN_ ##value_params private: GTEST_DISALLOW_ASSIGN_(GMOCK_ACTION_CLASS_(name, value_params)); }; template <GMOCK_INTERNAL_DECL_ ##template_params GMOCK_INTERNAL_DECL_TYPE_ ##value_params> inline GMOCK_ACTION_CLASS_(name, value_params)< GMOCK_INTERNAL_LIST_ ##template_params GMOCK_INTERNAL_LIST_TYPE_ ##value_params> name( GMOCK_INTERNAL_DECL_ ##value_params) { return GMOCK_ACTION_CLASS_(name, value_params)< GMOCK_INTERNAL_LIST_ ##template_params GMOCK_INTERNAL_LIST_TYPE_ ##value_params>( GMOCK_INTERNAL_LIST_ ##value_params); } template <GMOCK_INTERNAL_DECL_ ##template_params GMOCK_INTERNAL_DECL_TYPE_ ##value_params> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result GMOCK_ACTION_CLASS_(name, value_params)< GMOCK_INTERNAL_LIST_ ##template_params GMOCK_INTERNAL_LIST_TYPE_ ##value_params>::gmock_Impl<F>:: gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 3533 "../gtest_contrib/gmock/gmock.h" >#define ACTION(name) class name ##Action { public: name ##Action() {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl() {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>()); } private: GTEST_DISALLOW_ASSIGN_(name ##Action); }; inline name ##Action name() { return name ##Action(); } template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##Action::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 3578 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P(name,p0) template <typename p0 ##_type> class name ##ActionP { public: name ##ActionP(p0 ##_type gmock_p0) : p0(gmock_p0) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl(p0 ##_type gmock_p0) : p0(gmock_p0) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0)); } p0 ##_type p0; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP); }; template <typename p0 ##_type> inline name ##ActionP<p0 ##_type> name(p0 ##_type p0) { return name ##ActionP<p0 ##_type>(p0); } template <typename p0 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP<p0 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 3628 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P2(name,p0,p1) template <typename p0 ##_type, typename p1 ##_type> class name ##ActionP2 { public: name ##ActionP2(p0 ##_type gmock_p0, p1 ##_type gmock_p1) : p0(gmock_p0), p1(gmock_p1) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1) : p0(gmock_p0), p1(gmock_p1) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; p1 ##_type p1; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0, p1)); } p0 ##_type p0; p1 ##_type p1; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP2); }; template <typename p0 ##_type, typename p1 ##_type> inline name ##ActionP2<p0 ##_type, p1 ##_type> name(p0 ##_type p0, p1 ##_type p1) { return name ##ActionP2<p0 ##_type, p1 ##_type>(p0, p1); } template <typename p0 ##_type, typename p1 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP2<p0 ##_type, p1 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 3683 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P3(name,p0,p1,p2) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type> class name ##ActionP3 { public: name ##ActionP3(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2)); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP3); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type> inline name ##ActionP3<p0 ##_type, p1 ##_type, p2 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2) { return name ##ActionP3<p0 ##_type, p1 ##_type, p2 ##_type>(p0, p1, p2); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP3<p0 ##_type, p1 ##_type, p2 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 3741 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P4(name,p0,p1,p2,p3) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type> class name ##ActionP4 { public: name ##ActionP4(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3)); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP4); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type> inline name ##ActionP4<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3) { return name ##ActionP4<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type>(p0, p1, p2, p3); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP4<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 3808 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P5(name,p0,p1,p2,p3,p4) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type> class name ##ActionP5 { public: name ##ActionP5(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4)); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP5); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type> inline name ##ActionP5<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4) { return name ##ActionP5<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type>(p0, p1, p2, p3, p4); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP5<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 3878 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P6(name,p0,p1,p2,p3,p4,p5) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type> class name ##ActionP6 { public: name ##ActionP6(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5)); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP6); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type> inline name ##ActionP6<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5) { return name ##ActionP6<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type>(p0, p1, p2, p3, p4, p5); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP6<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 3951 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P7(name,p0,p1,p2,p3,p4,p5,p6) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type> class name ##ActionP7 { public: name ##ActionP7(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6)); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP7); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type> inline name ##ActionP7<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6) { return name ##ActionP7<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type>(p0, p1, p2, p3, p4, p5, p6); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP7<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 4032 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P8(name,p0,p1,p2,p3,p4,p5,p6,p7) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type> class name ##ActionP8 { public: name ##ActionP8(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6, p7)); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP8); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type> inline name ##ActionP8<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6, p7 ##_type p7) { return name ##ActionP8<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type>(p0, p1, p2, p3, p4, p5, p6, p7); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP8<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 4119 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P9(name,p0,p1,p2,p3,p4,p5,p6,p7,p8) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type> class name ##ActionP9 { public: name ##ActionP9(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6, p7, p8)); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP9); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type> inline name ##ActionP9<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6, p7 ##_type p7, p8 ##_type p8) { return name ##ActionP9<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type>(p0, p1, p2, p3, p4, p5, p6, p7, p8); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP9<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 4210 "../gtest_contrib/gmock/gmock.h" >#define ACTION_P10(name,p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type, typename p9 ##_type> class name ##ActionP10 { public: name ##ActionP10(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8, p9 ##_type gmock_p9) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8), p9(gmock_p9) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8, p9 ##_type gmock_p9) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8), p9(gmock_p9) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; p9 ##_type p9; private: GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; p9 ##_type p9; private: GTEST_DISALLOW_ASSIGN_(name ##ActionP10); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type, typename p9 ##_type> inline name ##ActionP10<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type, p9 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6, p7 ##_type p7, p8 ##_type p8, p9 ##_type p9) { return name ##ActionP10<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type, p9 ##_type>(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type, typename p9 ##_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result name ##ActionP10<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type, p9 ##_type>::gmock_Impl<F>::gmock_PerformImpl( GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const ># 4309 "../gtest_contrib/gmock/gmock.h" >namespace testing { ># 4351 "../gtest_contrib/gmock/gmock.h" >template <int k > class InvokeArgumentAction { public: InvokeArgumentAction () {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl () {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>()); } private: void operator=(InvokeArgumentAction const &); }; template <int k > inline InvokeArgumentAction< k > InvokeArgument( ) { return InvokeArgumentAction< k >( ); } template <int k > template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentAction< k >::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args)); >} > >template <int k , typename p0_type> class InvokeArgumentActionP { public: InvokeArgumentActionP (p0_type gmock_p0) : p0(gmock_p0) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0) : p0(gmock_p0) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0)); } p0_type p0; private: void operator=(InvokeArgumentActionP const &); }; template <int k , typename p0_type> inline InvokeArgumentActionP< k , p0_type> InvokeArgument( p0_type p0) { return InvokeArgumentActionP< k , p0_type>( p0); } template <int k , typename p0_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP< k , p0_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0); >} > >template <int k , typename p0_type, typename p1_type> class InvokeArgumentActionP2 { public: InvokeArgumentActionP2 (p0_type gmock_p0, p1_type gmock_p1) : p0(gmock_p0), p1(gmock_p1) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1) : p0(gmock_p0), p1(gmock_p1) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1)); } p0_type p0; p1_type p1; private: void operator=(InvokeArgumentActionP2 const &); }; template <int k , typename p0_type, typename p1_type> inline InvokeArgumentActionP2< k , p0_type, p1_type> InvokeArgument( p0_type p0, p1_type p1) { return InvokeArgumentActionP2< k , p0_type, p1_type>( p0, p1); } template <int k , typename p0_type, typename p1_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP2< k , p0_type, p1_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0, p1); >} > >template <int k , typename p0_type, typename p1_type, typename p2_type> class InvokeArgumentActionP3 { public: InvokeArgumentActionP3 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2)); } p0_type p0; p1_type p1; p2_type p2; private: void operator=(InvokeArgumentActionP3 const &); }; template <int k , typename p0_type, typename p1_type, typename p2_type> inline InvokeArgumentActionP3< k , p0_type, p1_type, p2_type> InvokeArgument( p0_type p0, p1_type p1, p2_type p2) { return InvokeArgumentActionP3< k , p0_type, p1_type, p2_type>( p0, p1, p2); } template <int k , typename p0_type, typename p1_type, typename p2_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP3< k , p0_type, p1_type, p2_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0, p1, p2); >} > >template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type> class InvokeArgumentActionP4 { public: InvokeArgumentActionP4 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; private: void operator=(InvokeArgumentActionP4 const &); }; template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type> inline InvokeArgumentActionP4< k , p0_type, p1_type, p2_type, p3_type> InvokeArgument( p0_type p0, p1_type p1, p2_type p2, p3_type p3) { return InvokeArgumentActionP4< k , p0_type, p1_type, p2_type, p3_type>( p0, p1, p2, p3); } template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP4< k , p0_type, p1_type, p2_type, p3_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0, p1, p2, p3); >} > >template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type> class InvokeArgumentActionP5 { public: InvokeArgumentActionP5 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; private: void operator=(InvokeArgumentActionP5 const &); }; template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type> inline InvokeArgumentActionP5< k , p0_type, p1_type, p2_type, p3_type, p4_type> InvokeArgument( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4) { return InvokeArgumentActionP5< k , p0_type, p1_type, p2_type, p3_type, p4_type>( p0, p1, p2, p3, p4); } template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP5< k , p0_type, p1_type, p2_type, p3_type, p4_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0, p1, p2, p3, p4); >} > >template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type> class InvokeArgumentActionP6 { public: InvokeArgumentActionP6 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; private: void operator=(InvokeArgumentActionP6 const &); }; template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type> inline InvokeArgumentActionP6< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type> InvokeArgument( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5) { return InvokeArgumentActionP6< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type>( p0, p1, p2, p3, p4, p5); } template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP6< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0, p1, p2, p3, p4, p5); >} > >template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type> class InvokeArgumentActionP7 { public: InvokeArgumentActionP7 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; private: void operator=(InvokeArgumentActionP7 const &); }; template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type> inline InvokeArgumentActionP7< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type> InvokeArgument( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5, p6_type p6) { return InvokeArgumentActionP7< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type>( p0, p1, p2, p3, p4, p5, p6); } template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP7< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0, p1, p2, p3, p4, p5, p6); >} > >template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type> class InvokeArgumentActionP8 { public: InvokeArgumentActionP8 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6, p7)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; private: void operator=(InvokeArgumentActionP8 const &); }; template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type> inline InvokeArgumentActionP8< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type> InvokeArgument( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5, p6_type p6, p7_type p7) { return InvokeArgumentActionP8< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type>( p0, p1, p2, p3, p4, p5, p6, p7); } template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP8< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0, p1, p2, p3, p4, p5, p6, p7); >} > >template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type> class InvokeArgumentActionP9 { public: InvokeArgumentActionP9 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7, p8_type gmock_p8) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7, p8_type gmock_p8) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; p8_type p8; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6, p7, p8)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; p8_type p8; private: void operator=(InvokeArgumentActionP9 const &); }; template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type> inline InvokeArgumentActionP9< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type> InvokeArgument( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5, p6_type p6, p7_type p7, p8_type p8) { return InvokeArgumentActionP9< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type>( p0, p1, p2, p3, p4, p5, p6, p7, p8); } template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP9< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0, p1, p2, p3, p4, p5, p6, p7, p8); >} > >template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type, typename p9_type> class InvokeArgumentActionP10 { public: InvokeArgumentActionP10 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7, p8_type gmock_p8, p9_type gmock_p9) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8), p9(gmock_p9) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7, p8_type gmock_p8, p9_type gmock_p9) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8), p9(gmock_p9) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; p8_type p8; p9_type p9; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; p8_type p8; p9_type p9; private: void operator=(InvokeArgumentActionP10 const &); }; template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type, typename p9_type> inline InvokeArgumentActionP10< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type, p9_type> InvokeArgument( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5, p6_type p6, p7_type p7, p8_type p8, p9_type p9) { return InvokeArgumentActionP10< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type, p9_type>( p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); } template <int k , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type, typename p9_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result InvokeArgumentActionP10< k , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type, p9_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return internal::CallableHelper<return_type>::Call( > ::std::tr1::get<k>(args), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); >} > > > > > > >template <typename T > class ReturnNewAction { public: ReturnNewAction () {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl () {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>()); } private: void operator=(ReturnNewAction const &); }; template <typename T > inline ReturnNewAction< T > ReturnNew( ) { return ReturnNewAction< T >( ); } template <typename T > template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewAction< T >::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(); >} > >template <typename T , typename p0_type> class ReturnNewActionP { public: ReturnNewActionP (p0_type gmock_p0) : p0(gmock_p0) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0) : p0(gmock_p0) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0)); } p0_type p0; private: void operator=(ReturnNewActionP const &); }; template <typename T , typename p0_type> inline ReturnNewActionP< T , p0_type> ReturnNew( p0_type p0) { return ReturnNewActionP< T , p0_type>( p0); } template <typename T , typename p0_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP< T , p0_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0); >} > >template <typename T , typename p0_type, typename p1_type> class ReturnNewActionP2 { public: ReturnNewActionP2 (p0_type gmock_p0, p1_type gmock_p1) : p0(gmock_p0), p1(gmock_p1) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1) : p0(gmock_p0), p1(gmock_p1) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1)); } p0_type p0; p1_type p1; private: void operator=(ReturnNewActionP2 const &); }; template <typename T , typename p0_type, typename p1_type> inline ReturnNewActionP2< T , p0_type, p1_type> ReturnNew( p0_type p0, p1_type p1) { return ReturnNewActionP2< T , p0_type, p1_type>( p0, p1); } template <typename T , typename p0_type, typename p1_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP2< T , p0_type, p1_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0, p1); >} > >template <typename T , typename p0_type, typename p1_type, typename p2_type> class ReturnNewActionP3 { public: ReturnNewActionP3 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2)); } p0_type p0; p1_type p1; p2_type p2; private: void operator=(ReturnNewActionP3 const &); }; template <typename T , typename p0_type, typename p1_type, typename p2_type> inline ReturnNewActionP3< T , p0_type, p1_type, p2_type> ReturnNew( p0_type p0, p1_type p1, p2_type p2) { return ReturnNewActionP3< T , p0_type, p1_type, p2_type>( p0, p1, p2); } template <typename T , typename p0_type, typename p1_type, typename p2_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP3< T , p0_type, p1_type, p2_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0, p1, p2); >} > >template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type> class ReturnNewActionP4 { public: ReturnNewActionP4 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; private: void operator=(ReturnNewActionP4 const &); }; template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type> inline ReturnNewActionP4< T , p0_type, p1_type, p2_type, p3_type> ReturnNew( p0_type p0, p1_type p1, p2_type p2, p3_type p3) { return ReturnNewActionP4< T , p0_type, p1_type, p2_type, p3_type>( p0, p1, p2, p3); } template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP4< T , p0_type, p1_type, p2_type, p3_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0, p1, p2, p3); >} > >template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type> class ReturnNewActionP5 { public: ReturnNewActionP5 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; private: void operator=(ReturnNewActionP5 const &); }; template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type> inline ReturnNewActionP5< T , p0_type, p1_type, p2_type, p3_type, p4_type> ReturnNew( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4) { return ReturnNewActionP5< T , p0_type, p1_type, p2_type, p3_type, p4_type>( p0, p1, p2, p3, p4); } template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP5< T , p0_type, p1_type, p2_type, p3_type, p4_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0, p1, p2, p3, p4); >} > >template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type> class ReturnNewActionP6 { public: ReturnNewActionP6 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; private: void operator=(ReturnNewActionP6 const &); }; template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type> inline ReturnNewActionP6< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type> ReturnNew( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5) { return ReturnNewActionP6< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type>( p0, p1, p2, p3, p4, p5); } template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP6< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0, p1, p2, p3, p4, p5); >} > >template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type> class ReturnNewActionP7 { public: ReturnNewActionP7 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; private: void operator=(ReturnNewActionP7 const &); }; template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type> inline ReturnNewActionP7< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type> ReturnNew( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5, p6_type p6) { return ReturnNewActionP7< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type>( p0, p1, p2, p3, p4, p5, p6); } template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP7< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0, p1, p2, p3, p4, p5, p6); >} > >template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type> class ReturnNewActionP8 { public: ReturnNewActionP8 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6, p7)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; private: void operator=(ReturnNewActionP8 const &); }; template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type> inline ReturnNewActionP8< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type> ReturnNew( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5, p6_type p6, p7_type p7) { return ReturnNewActionP8< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type>( p0, p1, p2, p3, p4, p5, p6, p7); } template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP8< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0, p1, p2, p3, p4, p5, p6, p7); >} > >template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type> class ReturnNewActionP9 { public: ReturnNewActionP9 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7, p8_type gmock_p8) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7, p8_type gmock_p8) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; p8_type p8; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6, p7, p8)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; p8_type p8; private: void operator=(ReturnNewActionP9 const &); }; template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type> inline ReturnNewActionP9< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type> ReturnNew( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5, p6_type p6, p7_type p7, p8_type p8) { return ReturnNewActionP9< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type>( p0, p1, p2, p3, p4, p5, p6, p7, p8); } template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP9< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0, p1, p2, p3, p4, p5, p6, p7, p8); >} > >template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type, typename p9_type> class ReturnNewActionP10 { public: ReturnNewActionP10 (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7, p8_type gmock_p8, p9_type gmock_p9) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8), p9(gmock_p9) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (p0_type gmock_p0, p1_type gmock_p1, p2_type gmock_p2, p3_type gmock_p3, p4_type gmock_p4, p5_type gmock_p5, p6_type gmock_p6, p7_type gmock_p7, p8_type gmock_p8, p9_type gmock_p9) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8), p9(gmock_p9) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; p8_type p8; p9_type p9; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)); } p0_type p0; p1_type p1; p2_type p2; p3_type p3; p4_type p4; p5_type p5; p6_type p6; p7_type p7; p8_type p8; p9_type p9; private: void operator=(ReturnNewActionP10 const &); }; template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type, typename p9_type> inline ReturnNewActionP10< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type, p9_type> ReturnNew( p0_type p0, p1_type p1, p2_type p2, p3_type p3, p4_type p4, p5_type p5, p6_type p6, p7_type p7, p8_type p8, p9_type p9) { return ReturnNewActionP10< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type, p9_type>( p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); } template <typename T , typename p0_type, typename p1_type, typename p2_type, typename p3_type, typename p4_type, typename p5_type, typename p6_type, typename p7_type, typename p8_type, typename p9_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnNewActionP10< T , p0_type, p1_type, p2_type, p3_type, p4_type, p5_type, p6_type, p7_type, p8_type, p9_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return new T(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); >} > > > > > >} ># 4546 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_ ># 4608 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_ > ># 1 "/usr/include/c++/4.8.2/map" 1 3 ># 56 "/usr/include/c++/4.8.2/map" 3 >#define _GLIBCXX_MAP 1 > > ># 59 "/usr/include/c++/4.8.2/map" 3 > > ># 1 "/usr/include/c++/4.8.2/bits/stl_map.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 >#define _STL_MAP_H 1 ># 66 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 94 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > template <typename _Key, typename _Tp, typename _Compare = std::less<_Key>, > typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > > > class map > { > public: > typedef _Key key_type; > typedef _Tp mapped_type; > typedef std::pair<const _Key, _Tp> value_type; > typedef _Compare key_compare; > typedef _Alloc allocator_type; > > private: > > typedef typename _Alloc::value_type _Alloc_value_type; > > > > > > public: > class value_compare > : public std::binary_function<value_type, value_type, bool> > { > friend class map<_Key, _Tp, _Compare, _Alloc>; > protected: > _Compare comp; > > value_compare(_Compare __c) > : comp(__c) { } > > public: > bool operator()(const value_type& __x, const value_type& __y) const > { return comp(__x.first, __y.first); } > }; > > private: > > typedef typename _Alloc::template rebind<value_type>::other > _Pair_alloc_type; > > typedef _Rb_tree<key_type, value_type, _Select1st<value_type>, > key_compare, _Pair_alloc_type> _Rep_type; > > > _Rep_type _M_t; > > public: > > > typedef typename _Pair_alloc_type::pointer pointer; > typedef typename _Pair_alloc_type::const_pointer const_pointer; > typedef typename _Pair_alloc_type::reference reference; > typedef typename _Pair_alloc_type::const_reference const_reference; > typedef typename _Rep_type::iterator iterator; > typedef typename _Rep_type::const_iterator const_iterator; > typedef typename _Rep_type::size_type size_type; > typedef typename _Rep_type::difference_type difference_type; > typedef typename _Rep_type::reverse_iterator reverse_iterator; > typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; > > > > > > > > map() > : _M_t() { } > > > > > > > explicit > map(const _Compare& __comp, > const allocator_type& __a = allocator_type()) > : _M_t(__comp, _Pair_alloc_type(__a)) { } ># 180 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > map(const map& __x) > : _M_t(__x._M_t) { } ># 223 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > template<typename _InputIterator> > map(_InputIterator __first, _InputIterator __last) > : _M_t() > { _M_t._M_insert_unique(__first, __last); } ># 240 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > template<typename _InputIterator> > map(_InputIterator __first, _InputIterator __last, > const _Compare& __comp, > const allocator_type& __a = allocator_type()) > : _M_t(__comp, _Pair_alloc_type(__a)) > { _M_t._M_insert_unique(__first, __last); } ># 263 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > map& > operator=(const map& __x) > { > _M_t = __x._M_t; > return *this; > } ># 309 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > allocator_type > get_allocator() const > { return allocator_type(_M_t.get_allocator()); } > > > > > > > > iterator > begin() > { return _M_t.begin(); } > > > > > > > const_iterator > begin() const > { return _M_t.begin(); } > > > > > > > iterator > end() > { return _M_t.end(); } > > > > > > > const_iterator > end() const > { return _M_t.end(); } > > > > > > > reverse_iterator > rbegin() > { return _M_t.rbegin(); } > > > > > > > const_reverse_iterator > rbegin() const > { return _M_t.rbegin(); } > > > > > > > reverse_iterator > rend() > { return _M_t.rend(); } > > > > > > > const_reverse_iterator > rend() const > { return _M_t.rend(); } ># 428 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > bool > empty() const > { return _M_t.empty(); } > > > size_type > size() const > { return _M_t.size(); } > > > size_type > max_size() const > { return _M_t.max_size(); } ># 455 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > mapped_type& > operator[](const key_type& __k) > { > > > > iterator __i = lower_bound(__k); > > if (__i == end() || key_comp()(__k, (*__i).first)) > > > > > > __i = insert(__i, value_type(__k, mapped_type())); > > return (*__i).second; > } ># 500 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > mapped_type& > at(const key_type& __k) > { > iterator __i = lower_bound(__k); > if (__i == end() || key_comp()(__k, (*__i).first)) > __throw_out_of_range(("map::at")); > return (*__i).second; > } > > const mapped_type& > at(const key_type& __k) const > { > const_iterator __i = lower_bound(__k); > if (__i == end() || key_comp()(__k, (*__i).first)) > __throw_out_of_range(("map::at")); > return (*__i).second; > } ># 593 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > std::pair<iterator, bool> > insert(const value_type& __x) > { return _M_t._M_insert_unique(__x); } ># 642 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > iterator > > > > insert(iterator __position, const value_type& __x) > > { return _M_t._M_insert_unique_(__position, __x); } ># 668 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > template<typename _InputIterator> > void > insert(_InputIterator __first, _InputIterator __last) > { _M_t._M_insert_unique(__first, __last); } ># 709 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > void > erase(iterator __position) > { _M_t.erase(__position); } ># 725 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > size_type > erase(const key_type& __x) > { return _M_t.erase(__x); } ># 761 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > void > erase(iterator __first, iterator __last) > { _M_t.erase(__first, __last); } ># 777 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > void > swap(map& __x) > { _M_t.swap(__x._M_t); } > > > > > > > > void > clear() > { _M_t.clear(); } > > > > > > > key_compare > key_comp() const > { return _M_t.key_comp(); } > > > > > > value_compare > value_comp() const > { return value_compare(_M_t.key_comp()); } ># 820 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > iterator > find(const key_type& __x) > { return _M_t.find(__x); } ># 835 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > const_iterator > find(const key_type& __x) const > { return _M_t.find(__x); } ># 847 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > size_type > count(const key_type& __x) const > { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } ># 862 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > iterator > lower_bound(const key_type& __x) > { return _M_t.lower_bound(__x); } ># 877 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > const_iterator > lower_bound(const key_type& __x) const > { return _M_t.lower_bound(__x); } > > > > > > > > iterator > upper_bound(const key_type& __x) > { return _M_t.upper_bound(__x); } > > > > > > > > const_iterator > upper_bound(const key_type& __x) const > { return _M_t.upper_bound(__x); } ># 916 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > std::pair<iterator, iterator> > equal_range(const key_type& __x) > { return _M_t.equal_range(__x); } ># 935 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > std::pair<const_iterator, const_iterator> > equal_range(const key_type& __x) const > { return _M_t.equal_range(__x); } > > template<typename _K1, typename _T1, typename _C1, typename _A1> > friend bool > operator==(const map<_K1, _T1, _C1, _A1>&, > const map<_K1, _T1, _C1, _A1>&); > > template<typename _K1, typename _T1, typename _C1, typename _A1> > friend bool > operator<(const map<_K1, _T1, _C1, _A1>&, > const map<_K1, _T1, _C1, _A1>&); > }; ># 960 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, > const map<_Key, _Tp, _Compare, _Alloc>& __y) > { return __x._M_t == __y._M_t; } ># 977 "/usr/include/c++/4.8.2/bits/stl_map.h" 3 > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, > const map<_Key, _Tp, _Compare, _Alloc>& __y) > { return __x._M_t < __y._M_t; } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, > const map<_Key, _Tp, _Compare, _Alloc>& __y) > { return !(__x == __y); } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, > const map<_Key, _Tp, _Compare, _Alloc>& __y) > { return __y < __x; } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, > const map<_Key, _Tp, _Compare, _Alloc>& __y) > { return !(__y < __x); } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, > const map<_Key, _Tp, _Compare, _Alloc>& __y) > { return !(__x < __y); } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline void > swap(map<_Key, _Tp, _Compare, _Alloc>& __x, > map<_Key, _Tp, _Compare, _Alloc>& __y) > { __x.swap(__y); } > > >} ># 62 "/usr/include/c++/4.8.2/map" 2 3 ># 1 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 1 3 ># 57 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 >#define _STL_MULTIMAP_H 1 > > > > > > >namespace std __attribute__ ((__visibility__ ("default"))) >{ > ># 92 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > template <typename _Key, typename _Tp, > typename _Compare = std::less<_Key>, > typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > > > class multimap > { > public: > typedef _Key key_type; > typedef _Tp mapped_type; > typedef std::pair<const _Key, _Tp> value_type; > typedef _Compare key_compare; > typedef _Alloc allocator_type; > > private: > > typedef typename _Alloc::value_type _Alloc_value_type; > > > > > > public: > class value_compare > : public std::binary_function<value_type, value_type, bool> > { > friend class multimap<_Key, _Tp, _Compare, _Alloc>; > protected: > _Compare comp; > > value_compare(_Compare __c) > : comp(__c) { } > > public: > bool operator()(const value_type& __x, const value_type& __y) const > { return comp(__x.first, __y.first); } > }; > > private: > > typedef typename _Alloc::template rebind<value_type>::other > _Pair_alloc_type; > > typedef _Rb_tree<key_type, value_type, _Select1st<value_type>, > key_compare, _Pair_alloc_type> _Rep_type; > > _Rep_type _M_t; > > public: > > > typedef typename _Pair_alloc_type::pointer pointer; > typedef typename _Pair_alloc_type::const_pointer const_pointer; > typedef typename _Pair_alloc_type::reference reference; > typedef typename _Pair_alloc_type::const_reference const_reference; > typedef typename _Rep_type::iterator iterator; > typedef typename _Rep_type::const_iterator const_iterator; > typedef typename _Rep_type::size_type size_type; > typedef typename _Rep_type::difference_type difference_type; > typedef typename _Rep_type::reverse_iterator reverse_iterator; > typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; > > > > > > > multimap() > : _M_t() { } > > > > > > > explicit > multimap(const _Compare& __comp, > const allocator_type& __a = allocator_type()) > : _M_t(__comp, _Pair_alloc_type(__a)) { } ># 177 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > multimap(const multimap& __x) > : _M_t(__x._M_t) { } ># 218 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > template<typename _InputIterator> > multimap(_InputIterator __first, _InputIterator __last) > : _M_t() > { _M_t._M_insert_equal(__first, __last); } ># 234 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > template<typename _InputIterator> > multimap(_InputIterator __first, _InputIterator __last, > const _Compare& __comp, > const allocator_type& __a = allocator_type()) > : _M_t(__comp, _Pair_alloc_type(__a)) > { _M_t._M_insert_equal(__first, __last); } ># 257 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > multimap& > operator=(const multimap& __x) > { > _M_t = __x._M_t; > return *this; > } ># 303 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > allocator_type > get_allocator() const > { return allocator_type(_M_t.get_allocator()); } > > > > > > > > iterator > begin() > { return _M_t.begin(); } > > > > > > > const_iterator > begin() const > { return _M_t.begin(); } > > > > > > > iterator > end() > { return _M_t.end(); } > > > > > > > const_iterator > end() const > { return _M_t.end(); } > > > > > > > reverse_iterator > rbegin() > { return _M_t.rbegin(); } > > > > > > > const_reverse_iterator > rbegin() const > { return _M_t.rbegin(); } > > > > > > > reverse_iterator > rend() > { return _M_t.rend(); } > > > > > > > const_reverse_iterator > rend() const > { return _M_t.rend(); } ># 420 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > bool > empty() const > { return _M_t.empty(); } > > > size_type > size() const > { return _M_t.size(); } > > > size_type > max_size() const > { return _M_t.max_size(); } ># 500 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > iterator > insert(const value_type& __x) > { return _M_t._M_insert_equal(__x); } ># 533 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > iterator > > > > insert(iterator __position, const value_type& __x) > > { return _M_t._M_insert_equal_(__position, __x); } ># 560 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > template<typename _InputIterator> > void > insert(_InputIterator __first, _InputIterator __last) > { _M_t._M_insert_equal(__first, __last); } ># 614 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > void > erase(iterator __position) > { _M_t.erase(__position); } ># 630 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > size_type > erase(const key_type& __x) > { return _M_t.erase(__x); } ># 670 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > void > erase(iterator __first, iterator __last) > { _M_t.erase(__first, __last); } ># 686 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > void > swap(multimap& __x) > { _M_t.swap(__x._M_t); } > > > > > > > > void > clear() > { _M_t.clear(); } > > > > > > > key_compare > key_comp() const > { return _M_t.key_comp(); } > > > > > > value_compare > value_comp() const > { return value_compare(_M_t.key_comp()); } ># 729 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > iterator > find(const key_type& __x) > { return _M_t.find(__x); } ># 744 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > const_iterator > find(const key_type& __x) const > { return _M_t.find(__x); } > > > > > > > size_type > count(const key_type& __x) const > { return _M_t.count(__x); } ># 768 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > iterator > lower_bound(const key_type& __x) > { return _M_t.lower_bound(__x); } ># 783 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > const_iterator > lower_bound(const key_type& __x) const > { return _M_t.lower_bound(__x); } > > > > > > > > iterator > upper_bound(const key_type& __x) > { return _M_t.upper_bound(__x); } > > > > > > > > const_iterator > upper_bound(const key_type& __x) const > { return _M_t.upper_bound(__x); } ># 820 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > std::pair<iterator, iterator> > equal_range(const key_type& __x) > { return _M_t.equal_range(__x); } ># 837 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > std::pair<const_iterator, const_iterator> > equal_range(const key_type& __x) const > { return _M_t.equal_range(__x); } > > template<typename _K1, typename _T1, typename _C1, typename _A1> > friend bool > operator==(const multimap<_K1, _T1, _C1, _A1>&, > const multimap<_K1, _T1, _C1, _A1>&); > > template<typename _K1, typename _T1, typename _C1, typename _A1> > friend bool > operator<(const multimap<_K1, _T1, _C1, _A1>&, > const multimap<_K1, _T1, _C1, _A1>&); > }; ># 862 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, > const multimap<_Key, _Tp, _Compare, _Alloc>& __y) > { return __x._M_t == __y._M_t; } ># 879 "/usr/include/c++/4.8.2/bits/stl_multimap.h" 3 > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, > const multimap<_Key, _Tp, _Compare, _Alloc>& __y) > { return __x._M_t < __y._M_t; } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, > const multimap<_Key, _Tp, _Compare, _Alloc>& __y) > { return !(__x == __y); } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, > const multimap<_Key, _Tp, _Compare, _Alloc>& __y) > { return __y < __x; } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, > const multimap<_Key, _Tp, _Compare, _Alloc>& __y) > { return !(__y < __x); } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline bool > operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, > const multimap<_Key, _Tp, _Compare, _Alloc>& __y) > { return !(__x < __y); } > > > template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> > inline void > swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, > multimap<_Key, _Tp, _Compare, _Alloc>& __y) > { __x.swap(__y); } > > >} ># 63 "/usr/include/c++/4.8.2/map" 2 3 ># 4611 "../gtest_contrib/gmock/gmock.h" 2 ># 4654 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_MATCHERS_H_ ># 4665 "../gtest_contrib/gmock/gmock.h" >namespace testing { ># 4686 "../gtest_contrib/gmock/gmock.h" >class MatchResultListener { > public: > > > explicit MatchResultListener(::std::ostream* os) : stream_(os) {} > virtual ~MatchResultListener() = 0; > > > > template <typename T> > MatchResultListener& operator<<(const T& x) { > if (stream_ != __null) > *stream_ << x; > return *this; > } > > > ::std::ostream* stream() { return stream_; } > > > > > > bool IsInterested() const { return stream_ != __null; } > > private: > ::std::ostream* const stream_; > > MatchResultListener(MatchResultListener const &); void operator=(MatchResultListener const &); >}; > >inline MatchResultListener::~MatchResultListener() { >} > > >template <typename T> >class MatcherInterface { > public: > virtual ~MatcherInterface() {} ># 4740 "../gtest_contrib/gmock/gmock.h" > virtual bool MatchAndExplain(T x, MatchResultListener* listener) const = 0; > > > > > > > virtual void DescribeTo(::std::ostream* os) const = 0; > > > > > > > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "not ("; > DescribeTo(os); > *os << ")"; > } >}; > >namespace internal { > > >class DummyMatchResultListener : public MatchResultListener { > public: > DummyMatchResultListener() : MatchResultListener(__null) {} > > private: > DummyMatchResultListener(DummyMatchResultListener const &); void operator=(DummyMatchResultListener const &); >}; > > > > >class StreamMatchResultListener : public MatchResultListener { > public: > explicit StreamMatchResultListener(::std::ostream* os) > : MatchResultListener(os) {} > > private: > StreamMatchResultListener(StreamMatchResultListener const &); void operator=(StreamMatchResultListener const &); >}; > > >class StringMatchResultListener : public MatchResultListener { > public: > StringMatchResultListener() : MatchResultListener(&ss_) {} > > > internal::string str() const { return ss_.str(); } > > private: > ::std::stringstream ss_; > > StringMatchResultListener(StringMatchResultListener const &); void operator=(StringMatchResultListener const &); >}; > > > > >template <typename T> >class MatcherBase { > public: > > > bool MatchAndExplain(T x, MatchResultListener* listener) const { > return impl_->MatchAndExplain(x, listener); > } > > > bool Matches(T x) const { > DummyMatchResultListener dummy; > return MatchAndExplain(x, &dummy); > } > > > void DescribeTo(::std::ostream* os) const { impl_->DescribeTo(os); } > > > void DescribeNegationTo(::std::ostream* os) const { > impl_->DescribeNegationTo(os); > } > > > void ExplainMatchResultTo(T x, ::std::ostream* os) const { > StreamMatchResultListener listener(os); > MatchAndExplain(x, &listener); > } > > protected: > MatcherBase() {} > > > explicit MatcherBase(const MatcherInterface<T>* impl) > : impl_(impl) {} > > virtual ~MatcherBase() {} > > private: ># 4852 "../gtest_contrib/gmock/gmock.h" > ::testing::internal::linked_ptr<const MatcherInterface<T> > impl_; >}; > >} > > > > > > >template <typename T> >class Matcher : public internal::MatcherBase<T> { > public: > > > > Matcher() {} > > > explicit Matcher(const MatcherInterface<T>* impl) > : internal::MatcherBase<T>(impl) {} > > > > Matcher(T value); >}; > > > > >template <> >class Matcher<const internal::string&> > : public internal::MatcherBase<const internal::string&> { > public: > Matcher() {} > > explicit Matcher(const MatcherInterface<const internal::string&>* impl) > : internal::MatcherBase<const internal::string&>(impl) {} > > > > Matcher(const internal::string& s); > > > Matcher(const char* s); >}; > >template <> >class Matcher<internal::string> > : public internal::MatcherBase<internal::string> { > public: > Matcher() {} > > explicit Matcher(const MatcherInterface<internal::string>* impl) > : internal::MatcherBase<internal::string>(impl) {} > > > > Matcher(const internal::string& s); > > > Matcher(const char* s); >}; ># 4928 "../gtest_contrib/gmock/gmock.h" >template <class Impl> >class PolymorphicMatcher { > public: > explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {} > > > > Impl& mutable_impl() { return impl_; } > > > > const Impl& impl() const { return impl_; } > > template <typename T> > operator Matcher<T>() const { > return Matcher<T>(new MonomorphicImpl<T>(impl_)); > } > > private: > template <typename T> > class MonomorphicImpl : public MatcherInterface<T> { > public: > explicit MonomorphicImpl(const Impl& impl) : impl_(impl) {} > > virtual void DescribeTo(::std::ostream* os) const { > impl_.DescribeTo(os); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > impl_.DescribeNegationTo(os); > } > > virtual bool MatchAndExplain(T x, MatchResultListener* listener) const { > return impl_.MatchAndExplain(x, listener); > } > > private: > const Impl impl_; > > void operator=(MonomorphicImpl const &); > }; > > Impl impl_; > > void operator=(PolymorphicMatcher const &); >}; ># 4982 "../gtest_contrib/gmock/gmock.h" >template <typename T> >inline Matcher<T> MakeMatcher(const MatcherInterface<T>* impl) { > return Matcher<T>(impl); >} ># 4994 "../gtest_contrib/gmock/gmock.h" >template <class Impl> >inline PolymorphicMatcher<Impl> MakePolymorphicMatcher(const Impl& impl) { > return PolymorphicMatcher<Impl>(impl); >} > > > > > >template <typename T, typename M> >Matcher<T> MatcherCast(M m); ># 5013 "../gtest_contrib/gmock/gmock.h" >template <typename T> >class SafeMatcherCastImpl { > public: > > > template <typename M> > static inline Matcher<T> Cast(M polymorphic_matcher) { > return Matcher<T>(polymorphic_matcher); > } ># 5032 "../gtest_contrib/gmock/gmock.h" > template <typename U> > static inline Matcher<T> Cast(const Matcher<U>& matcher) { > > typedef ::testing::internal::CompileAssert<(bool((internal::ImplicitlyConvertible<T, U>::value)))> T_must_be_implicitly_convertible_to_U[bool((internal::ImplicitlyConvertible<T, U>::value)) ? 1 : -1] > ; > > > typedef ::testing::internal::CompileAssert<(bool(internal::is_reference<T>::value || !internal::is_reference<U>::value))> cannot_convert_non_referentce_arg_to_reference[bool(internal::is_reference<T>::value || !internal::is_reference<U>::value) ? 1 : -1] > > ; > > > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<T>::type>::type RawT; > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<U>::type>::type RawU; > const bool kTIsOther = static_cast< ::testing::internal::TypeKind>( ::testing::internal::KindOf<RawT>::value) == internal::kOther; > const bool kUIsOther = static_cast< ::testing::internal::TypeKind>( ::testing::internal::KindOf<RawU>::value) == internal::kOther; > typedef ::testing::internal::CompileAssert<(bool(kTIsOther || kUIsOther || (internal::LosslessArithmeticConvertible<RawT, RawU>::value)))> conversion_of_arithmetic_types_must_be_lossless[bool(kTIsOther || kUIsOther || (internal::LosslessArithmeticConvertible<RawT, RawU>::value)) ? 1 : -1] > > > ; > return MatcherCast<T>(matcher); > } >}; > >template <typename T, typename M> >inline Matcher<T> SafeMatcherCast(const M& polymorphic_matcher) { > return SafeMatcherCastImpl<T>::Cast(polymorphic_matcher); >} > > >template <typename T> >Matcher<T> A(); > > > >namespace internal { > > >inline void PrintIfNotEmpty(const internal::string& explanation, > std::ostream* os) { > if (explanation != "" && os != __null) { > *os << ", " << explanation; > } >} > > > > >inline bool IsReadableTypeName(const string& type_name) { > > > return (type_name.length() <= 20 || > type_name.find_first_of("<(") == string::npos); >} > > > > > > >template <typename Value, typename T> >bool MatchPrintAndExplain(Value& value, const Matcher<T>& matcher, > MatchResultListener* listener) { > if (!listener->IsInterested()) { > > > return matcher.Matches(value); > } > > StringMatchResultListener inner_listener; > const bool match = matcher.MatchAndExplain(value, &inner_listener); > > UniversalPrint(value, listener->stream()); > > const string& type_name = GetTypeName<Value>(); > if (IsReadableTypeName(type_name)) > *listener->stream() << " (of type " << type_name << ")"; > > PrintIfNotEmpty(inner_listener.str(), listener->stream()); > > return match; >} > > > >template <size_t N> >class TuplePrefix { > public: > > > > template <typename MatcherTuple, typename ValueTuple> > static bool Matches(const MatcherTuple& matcher_tuple, > const ValueTuple& value_tuple) { > using ::std::tr1::get; > return TuplePrefix<N - 1>::Matches(matcher_tuple, value_tuple) > && get<N - 1>(matcher_tuple).Matches(get<N - 1>(value_tuple)); > } > > > > > > template <typename MatcherTuple, typename ValueTuple> > static void ExplainMatchFailuresTo(const MatcherTuple& matchers, > const ValueTuple& values, > ::std::ostream* os) { > using ::std::tr1::tuple_element; > using ::std::tr1::get; > > > TuplePrefix<N - 1>::ExplainMatchFailuresTo(matchers, values, os); > > > > typename tuple_element<N - 1, MatcherTuple>::type matcher = > get<N - 1>(matchers); > typedef typename tuple_element<N - 1, ValueTuple>::type Value; > Value value = get<N - 1>(values); > StringMatchResultListener listener; > if (!matcher.MatchAndExplain(value, &listener)) { > > > *os << " Expected arg #" << N - 1 << ": "; > get<N - 1>(matchers).DescribeTo(os); > *os << "\n Actual: "; > > > > > > internal::UniversalPrint(value, os); > PrintIfNotEmpty(listener.str(), os); > *os << "\n"; > } > } >}; > > >template <> >class TuplePrefix<0> { > public: > template <typename MatcherTuple, typename ValueTuple> > static bool Matches(const MatcherTuple& , > const ValueTuple& ) { > return true; > } > > template <typename MatcherTuple, typename ValueTuple> > static void ExplainMatchFailuresTo(const MatcherTuple& , > const ValueTuple& , > ::std::ostream* ) {} >}; > > > > > > >template <typename MatcherTuple, typename ValueTuple> >bool TupleMatches(const MatcherTuple& matcher_tuple, > const ValueTuple& value_tuple) { > using ::std::tr1::tuple_size; > > > typedef ::testing::internal::CompileAssert<(bool(tuple_size<MatcherTuple>::value == tuple_size<ValueTuple>::value))> matcher_and_value_have_different_numbers_of_fields[bool(tuple_size<MatcherTuple>::value == tuple_size<ValueTuple>::value) ? 1 : -1] > > ; > return TuplePrefix<tuple_size<ValueTuple>::value>:: > Matches(matcher_tuple, value_tuple); >} > > > >template <typename MatcherTuple, typename ValueTuple> >void ExplainMatchFailureTupleTo(const MatcherTuple& matchers, > const ValueTuple& values, > ::std::ostream* os) { > using ::std::tr1::tuple_size; > TuplePrefix<tuple_size<MatcherTuple>::value>::ExplainMatchFailuresTo( > matchers, values, os); >} ># 5224 "../gtest_contrib/gmock/gmock.h" >template <typename T, typename M> >class MatcherCastImpl { > public: > static Matcher<T> Cast(M polymorphic_matcher) { > return Matcher<T>(polymorphic_matcher); > } >}; > > > > >template <typename T, typename U> >class MatcherCastImpl<T, Matcher<U> > { > public: > static Matcher<T> Cast(const Matcher<U>& source_matcher) { > return Matcher<T>(new Impl(source_matcher)); > } > > private: > class Impl : public MatcherInterface<T> { > public: > explicit Impl(const Matcher<U>& source_matcher) > : source_matcher_(source_matcher) {} > > > virtual bool MatchAndExplain(T x, MatchResultListener* listener) const { > return source_matcher_.MatchAndExplain(static_cast<U>(x), listener); > } > > virtual void DescribeTo(::std::ostream* os) const { > source_matcher_.DescribeTo(os); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > source_matcher_.DescribeNegationTo(os); > } > > private: > const Matcher<U> source_matcher_; > > void operator=(Impl const &); > }; >}; > > > >template <typename T> >class MatcherCastImpl<T, Matcher<T> > { > public: > static Matcher<T> Cast(const Matcher<T>& matcher) { return matcher; } >}; > > >template <typename T> >class AnyMatcherImpl : public MatcherInterface<T> { > public: > virtual bool MatchAndExplain( > T , MatchResultListener* ) const { return true; } > virtual void DescribeTo(::std::ostream* os) const { *os << "is anything"; } > virtual void DescribeNegationTo(::std::ostream* os) const { > > > > *os << "never matches"; > } >}; > > > > > >class AnythingMatcher { > public: > template <typename T> > operator Matcher<T>() const { return A<T>(); } >}; ># 5314 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_IMPLEMENT_COMPARISON_MATCHER_(name,op,relation,negated_relation) template <typename Rhs> class name ##Matcher { public: explicit name ##Matcher(const Rhs& rhs) : rhs_(rhs) {} template <typename Lhs> operator Matcher<Lhs>() const { return MakeMatcher(new Impl<Lhs>(rhs_)); } private: template <typename Lhs> class Impl : public MatcherInterface<Lhs> { public: explicit Impl(const Rhs& rhs) : rhs_(rhs) {} virtual bool MatchAndExplain( Lhs lhs, MatchResultListener* ) const { return lhs op rhs_; } virtual void DescribeTo(::std::ostream* os) const { *os << relation " "; UniversalPrint(rhs_, os); } virtual void DescribeNegationTo(::std::ostream* os) const { *os << negated_relation " "; UniversalPrint(rhs_, os); } private: Rhs rhs_; GTEST_DISALLOW_ASSIGN_(Impl); }; Rhs rhs_; GTEST_DISALLOW_ASSIGN_(name ##Matcher); } ># 5350 "../gtest_contrib/gmock/gmock.h" >template <typename Rhs> class EqMatcher { public: explicit EqMatcher(const Rhs& rhs) : rhs_(rhs) {} template <typename Lhs> operator Matcher<Lhs>() const { return MakeMatcher(new Impl<Lhs>(rhs_)); } private: template <typename Lhs> class Impl : public MatcherInterface<Lhs> { public: explicit Impl(const Rhs& rhs) : rhs_(rhs) {} virtual bool MatchAndExplain( Lhs lhs, MatchResultListener* ) const { return lhs == rhs_; } virtual void DescribeTo(::std::ostream* os) const { *os << "is equal to" " "; UniversalPrint(rhs_, os); } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "isn't equal to" " "; UniversalPrint(rhs_, os); } private: Rhs rhs_; void operator=(Impl const &); }; Rhs rhs_; void operator=(EqMatcher const &); }; >template <typename Rhs> class GeMatcher { public: explicit GeMatcher(const Rhs& rhs) : rhs_(rhs) {} template <typename Lhs> operator Matcher<Lhs>() const { return MakeMatcher(new Impl<Lhs>(rhs_)); } private: template <typename Lhs> class Impl : public MatcherInterface<Lhs> { public: explicit Impl(const Rhs& rhs) : rhs_(rhs) {} virtual bool MatchAndExplain( Lhs lhs, MatchResultListener* ) const { return lhs >= rhs_; } virtual void DescribeTo(::std::ostream* os) const { *os << "is >=" " "; UniversalPrint(rhs_, os); } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "isn't >=" " "; UniversalPrint(rhs_, os); } private: Rhs rhs_; void operator=(Impl const &); }; Rhs rhs_; void operator=(GeMatcher const &); }; >template <typename Rhs> class GtMatcher { public: explicit GtMatcher(const Rhs& rhs) : rhs_(rhs) {} template <typename Lhs> operator Matcher<Lhs>() const { return MakeMatcher(new Impl<Lhs>(rhs_)); } private: template <typename Lhs> class Impl : public MatcherInterface<Lhs> { public: explicit Impl(const Rhs& rhs) : rhs_(rhs) {} virtual bool MatchAndExplain( Lhs lhs, MatchResultListener* ) const { return lhs > rhs_; } virtual void DescribeTo(::std::ostream* os) const { *os << "is >" " "; UniversalPrint(rhs_, os); } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "isn't >" " "; UniversalPrint(rhs_, os); } private: Rhs rhs_; void operator=(Impl const &); }; Rhs rhs_; void operator=(GtMatcher const &); }; >template <typename Rhs> class LeMatcher { public: explicit LeMatcher(const Rhs& rhs) : rhs_(rhs) {} template <typename Lhs> operator Matcher<Lhs>() const { return MakeMatcher(new Impl<Lhs>(rhs_)); } private: template <typename Lhs> class Impl : public MatcherInterface<Lhs> { public: explicit Impl(const Rhs& rhs) : rhs_(rhs) {} virtual bool MatchAndExplain( Lhs lhs, MatchResultListener* ) const { return lhs <= rhs_; } virtual void DescribeTo(::std::ostream* os) const { *os << "is <=" " "; UniversalPrint(rhs_, os); } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "isn't <=" " "; UniversalPrint(rhs_, os); } private: Rhs rhs_; void operator=(Impl const &); }; Rhs rhs_; void operator=(LeMatcher const &); }; >template <typename Rhs> class LtMatcher { public: explicit LtMatcher(const Rhs& rhs) : rhs_(rhs) {} template <typename Lhs> operator Matcher<Lhs>() const { return MakeMatcher(new Impl<Lhs>(rhs_)); } private: template <typename Lhs> class Impl : public MatcherInterface<Lhs> { public: explicit Impl(const Rhs& rhs) : rhs_(rhs) {} virtual bool MatchAndExplain( Lhs lhs, MatchResultListener* ) const { return lhs < rhs_; } virtual void DescribeTo(::std::ostream* os) const { *os << "is <" " "; UniversalPrint(rhs_, os); } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "isn't <" " "; UniversalPrint(rhs_, os); } private: Rhs rhs_; void operator=(Impl const &); }; Rhs rhs_; void operator=(LtMatcher const &); }; >template <typename Rhs> class NeMatcher { public: explicit NeMatcher(const Rhs& rhs) : rhs_(rhs) {} template <typename Lhs> operator Matcher<Lhs>() const { return MakeMatcher(new Impl<Lhs>(rhs_)); } private: template <typename Lhs> class Impl : public MatcherInterface<Lhs> { public: explicit Impl(const Rhs& rhs) : rhs_(rhs) {} virtual bool MatchAndExplain( Lhs lhs, MatchResultListener* ) const { return lhs != rhs_; } virtual void DescribeTo(::std::ostream* os) const { *os << "isn't equal to" " "; UniversalPrint(rhs_, os); } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "is equal to" " "; UniversalPrint(rhs_, os); } private: Rhs rhs_; void operator=(Impl const &); }; Rhs rhs_; void operator=(NeMatcher const &); }; > >#undef GMOCK_IMPLEMENT_COMPARISON_MATCHER_ > > > >class IsNullMatcher { > public: > template <typename Pointer> > bool MatchAndExplain(const Pointer& p, > MatchResultListener* ) const { > return GetRawPointer(p) == __null; > } > > void DescribeTo(::std::ostream* os) const { *os << "is NULL"; } > void DescribeNegationTo(::std::ostream* os) const { > *os << "isn't NULL"; > } >}; > > > >class NotNullMatcher { > public: > template <typename Pointer> > bool MatchAndExplain(const Pointer& p, > MatchResultListener* ) const { > return GetRawPointer(p) != __null; > } > > void DescribeTo(::std::ostream* os) const { *os << "isn't NULL"; } > void DescribeNegationTo(::std::ostream* os) const { > *os << "is NULL"; > } >}; ># 5404 "../gtest_contrib/gmock/gmock.h" >template <typename T> >class RefMatcher; > >template <typename T> >class RefMatcher<T&> { > > > > > > public: > > > > explicit RefMatcher(T& x) : object_(x) {} > > template <typename Super> > operator Matcher<Super&>() const { > > > > > > return MakeMatcher(new Impl<Super>(object_)); > } > > private: > template <typename Super> > class Impl : public MatcherInterface<Super&> { > public: > explicit Impl(Super& x) : object_(x) {} > > > > virtual bool MatchAndExplain( > Super& x, MatchResultListener* listener) const { > *listener << "which is located @" << static_cast<const void*>(&x); > return &x == &object_; > } > > virtual void DescribeTo(::std::ostream* os) const { > *os << "references the variable "; > UniversalPrinter<Super&>::Print(object_, os); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "does not reference the variable "; > UniversalPrinter<Super&>::Print(object_, os); > } > > private: > const Super& object_; > > void operator=(Impl const &); > }; > > T& object_; > > void operator=(RefMatcher const &); >}; > > >inline bool CaseInsensitiveCStringEquals(const char* lhs, const char* rhs) { > return String::CaseInsensitiveCStringEquals(lhs, rhs); >} > >inline bool CaseInsensitiveCStringEquals(const wchar_t* lhs, > const wchar_t* rhs) { > return String::CaseInsensitiveWideCStringEquals(lhs, rhs); >} > > > >template <typename StringType> >bool CaseInsensitiveStringEquals(const StringType& s1, > const StringType& s2) { > > if (!CaseInsensitiveCStringEquals(s1.c_str(), s2.c_str())) { > return false; > } > > > const typename StringType::value_type nul = 0; > const size_t i1 = s1.find(nul), i2 = s2.find(nul); > > > if (i1 == StringType::npos || i2 == StringType::npos) { > return i1 == i2; > } > > > return CaseInsensitiveStringEquals(s1.substr(i1 + 1), s2.substr(i2 + 1)); >} > > > > >template <typename StringType> >class StrEqualityMatcher { > public: > typedef typename StringType::const_pointer ConstCharPointer; > > StrEqualityMatcher(const StringType& str, bool expect_eq, > bool case_sensitive) > : string_(str), expect_eq_(expect_eq), case_sensitive_(case_sensitive) {} > > > > bool MatchAndExplain(ConstCharPointer s, > MatchResultListener* listener) const { > if (s == __null) { > return !expect_eq_; > } > return MatchAndExplain(StringType(s), listener); > } > > bool MatchAndExplain(const StringType& s, > MatchResultListener* ) const { > const bool eq = case_sensitive_ ? s == string_ : > CaseInsensitiveStringEquals(s, string_); > return expect_eq_ == eq; > } > > void DescribeTo(::std::ostream* os) const { > DescribeToHelper(expect_eq_, os); > } > > void DescribeNegationTo(::std::ostream* os) const { > DescribeToHelper(!expect_eq_, os); > } > > private: > void DescribeToHelper(bool expect_eq, ::std::ostream* os) const { > *os << (expect_eq ? "is " : "isn't "); > *os << "equal to "; > if (!case_sensitive_) { > *os << "(ignoring case) "; > } > UniversalPrint(string_, os); > } > > const StringType string_; > const bool expect_eq_; > const bool case_sensitive_; > > void operator=(StrEqualityMatcher const &); >}; > > > > >template <typename StringType> >class HasSubstrMatcher { > public: > typedef typename StringType::const_pointer ConstCharPointer; > > explicit HasSubstrMatcher(const StringType& substring) > : substring_(substring) {} > > > > > bool MatchAndExplain(ConstCharPointer s, > MatchResultListener* listener) const { > return s != __null && MatchAndExplain(StringType(s), listener); > } > > bool MatchAndExplain(const StringType& s, > MatchResultListener* ) const { > return s.find(substring_) != StringType::npos; > } > > > void DescribeTo(::std::ostream* os) const { > *os << "has substring "; > UniversalPrint(substring_, os); > } > > void DescribeNegationTo(::std::ostream* os) const { > *os << "has no substring "; > UniversalPrint(substring_, os); > } > > private: > const StringType substring_; > > void operator=(HasSubstrMatcher const &); >}; > > > > >template <typename StringType> >class StartsWithMatcher { > public: > typedef typename StringType::const_pointer ConstCharPointer; > > explicit StartsWithMatcher(const StringType& prefix) : prefix_(prefix) { > } > > > > > bool MatchAndExplain(ConstCharPointer s, > MatchResultListener* listener) const { > return s != __null && MatchAndExplain(StringType(s), listener); > } > > bool MatchAndExplain(const StringType& s, > MatchResultListener* ) const { > return s.length() >= prefix_.length() && > s.substr(0, prefix_.length()) == prefix_; > } > > void DescribeTo(::std::ostream* os) const { > *os << "starts with "; > UniversalPrint(prefix_, os); > } > > void DescribeNegationTo(::std::ostream* os) const { > *os << "doesn't start with "; > UniversalPrint(prefix_, os); > } > > private: > const StringType prefix_; > > void operator=(StartsWithMatcher const &); >}; > > > > >template <typename StringType> >class EndsWithMatcher { > public: > typedef typename StringType::const_pointer ConstCharPointer; > > explicit EndsWithMatcher(const StringType& suffix) : suffix_(suffix) {} > > > > > bool MatchAndExplain(ConstCharPointer s, > MatchResultListener* listener) const { > return s != __null && MatchAndExplain(StringType(s), listener); > } > > bool MatchAndExplain(const StringType& s, > MatchResultListener* ) const { > return s.length() >= suffix_.length() && > s.substr(s.length() - suffix_.length()) == suffix_; > } > > void DescribeTo(::std::ostream* os) const { > *os << "ends with "; > UniversalPrint(suffix_, os); > } > > void DescribeNegationTo(::std::ostream* os) const { > *os << "doesn't end with "; > UniversalPrint(suffix_, os); > } > > private: > const StringType suffix_; > > void operator=(EndsWithMatcher const &); >}; > > > > >class MatchesRegexMatcher { > public: > MatchesRegexMatcher(const RE* regex, bool full_match) > : regex_(regex), full_match_(full_match) {} > > > > > > bool MatchAndExplain(const char* s, > MatchResultListener* listener) const { > return s != __null && MatchAndExplain(internal::string(s), listener); > } > > bool MatchAndExplain(const internal::string& s, > MatchResultListener* ) const { > return full_match_ ? RE::FullMatch(s, *regex_) : > RE::PartialMatch(s, *regex_); > } > > void DescribeTo(::std::ostream* os) const { > *os << (full_match_ ? "matches" : "contains") > << " regular expression "; > UniversalPrinter<internal::string>::Print(regex_->pattern(), os); > } > > void DescribeNegationTo(::std::ostream* os) const { > *os << "doesn't " << (full_match_ ? "match" : "contain") > << " regular expression "; > UniversalPrinter<internal::string>::Print(regex_->pattern(), os); > } > > private: > const internal::linked_ptr<const RE> regex_; > const bool full_match_; > > void operator=(MatchesRegexMatcher const &); >}; ># 5727 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_IMPLEMENT_COMPARISON2_MATCHER_(name,op,relation) class name ##2Matcher { public: template <typename T1, typename T2> operator Matcher< ::std::tr1::tuple<T1, T2> >() const { return MakeMatcher(new Impl< ::std::tr1::tuple<T1, T2> >); } template <typename T1, typename T2> operator Matcher<const ::std::tr1::tuple<T1, T2>&>() const { return MakeMatcher(new Impl<const ::std::tr1::tuple<T1, T2>&>); } private: template <typename Tuple> class Impl : public MatcherInterface<Tuple> { public: virtual bool MatchAndExplain( Tuple args, MatchResultListener* ) const { return ::std::tr1::get<0>(args) op ::std::tr1::get<1>(args); } virtual void DescribeTo(::std::ostream* os) const { *os << "are " relation; } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "aren't " relation; } }; } ># 5757 "../gtest_contrib/gmock/gmock.h" >class Eq2Matcher { public: template <typename T1, typename T2> operator Matcher< ::std::tr1::tuple<T1, T2> >() const { return MakeMatcher(new Impl< ::std::tr1::tuple<T1, T2> >); } template <typename T1, typename T2> operator Matcher<const ::std::tr1::tuple<T1, T2>&>() const { return MakeMatcher(new Impl<const ::std::tr1::tuple<T1, T2>&>); } private: template <typename Tuple> class Impl : public MatcherInterface<Tuple> { public: virtual bool MatchAndExplain( Tuple args, MatchResultListener* ) const { return ::std::tr1::get<0>(args) == ::std::tr1::get<1>(args); } virtual void DescribeTo(::std::ostream* os) const { *os << "are " "an equal pair"; } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "aren't " "an equal pair"; } }; }; >class Ge2Matcher { public: template <typename T1, typename T2> operator Matcher< ::std::tr1::tuple<T1, T2> >() const { return MakeMatcher(new Impl< ::std::tr1::tuple<T1, T2> >); } template <typename T1, typename T2> operator Matcher<const ::std::tr1::tuple<T1, T2>&>() const { return MakeMatcher(new Impl<const ::std::tr1::tuple<T1, T2>&>); } private: template <typename Tuple> class Impl : public MatcherInterface<Tuple> { public: virtual bool MatchAndExplain( Tuple args, MatchResultListener* ) const { return ::std::tr1::get<0>(args) >= ::std::tr1::get<1>(args); } virtual void DescribeTo(::std::ostream* os) const { *os << "are " "a pair where the first >= the second"; } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "aren't " "a pair where the first >= the second"; } }; } > ; >class Gt2Matcher { public: template <typename T1, typename T2> operator Matcher< ::std::tr1::tuple<T1, T2> >() const { return MakeMatcher(new Impl< ::std::tr1::tuple<T1, T2> >); } template <typename T1, typename T2> operator Matcher<const ::std::tr1::tuple<T1, T2>&>() const { return MakeMatcher(new Impl<const ::std::tr1::tuple<T1, T2>&>); } private: template <typename Tuple> class Impl : public MatcherInterface<Tuple> { public: virtual bool MatchAndExplain( Tuple args, MatchResultListener* ) const { return ::std::tr1::get<0>(args) > ::std::tr1::get<1>(args); } virtual void DescribeTo(::std::ostream* os) const { *os << "are " "a pair where the first > the second"; } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "aren't " "a pair where the first > the second"; } }; } > ; >class Le2Matcher { public: template <typename T1, typename T2> operator Matcher< ::std::tr1::tuple<T1, T2> >() const { return MakeMatcher(new Impl< ::std::tr1::tuple<T1, T2> >); } template <typename T1, typename T2> operator Matcher<const ::std::tr1::tuple<T1, T2>&>() const { return MakeMatcher(new Impl<const ::std::tr1::tuple<T1, T2>&>); } private: template <typename Tuple> class Impl : public MatcherInterface<Tuple> { public: virtual bool MatchAndExplain( Tuple args, MatchResultListener* ) const { return ::std::tr1::get<0>(args) <= ::std::tr1::get<1>(args); } virtual void DescribeTo(::std::ostream* os) const { *os << "are " "a pair where the first <= the second"; } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "aren't " "a pair where the first <= the second"; } }; } > ; >class Lt2Matcher { public: template <typename T1, typename T2> operator Matcher< ::std::tr1::tuple<T1, T2> >() const { return MakeMatcher(new Impl< ::std::tr1::tuple<T1, T2> >); } template <typename T1, typename T2> operator Matcher<const ::std::tr1::tuple<T1, T2>&>() const { return MakeMatcher(new Impl<const ::std::tr1::tuple<T1, T2>&>); } private: template <typename Tuple> class Impl : public MatcherInterface<Tuple> { public: virtual bool MatchAndExplain( Tuple args, MatchResultListener* ) const { return ::std::tr1::get<0>(args) < ::std::tr1::get<1>(args); } virtual void DescribeTo(::std::ostream* os) const { *os << "are " "a pair where the first < the second"; } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "aren't " "a pair where the first < the second"; } }; } > ; >class Ne2Matcher { public: template <typename T1, typename T2> operator Matcher< ::std::tr1::tuple<T1, T2> >() const { return MakeMatcher(new Impl< ::std::tr1::tuple<T1, T2> >); } template <typename T1, typename T2> operator Matcher<const ::std::tr1::tuple<T1, T2>&>() const { return MakeMatcher(new Impl<const ::std::tr1::tuple<T1, T2>&>); } private: template <typename Tuple> class Impl : public MatcherInterface<Tuple> { public: virtual bool MatchAndExplain( Tuple args, MatchResultListener* ) const { return ::std::tr1::get<0>(args) != ::std::tr1::get<1>(args); } virtual void DescribeTo(::std::ostream* os) const { *os << "are " "an unequal pair"; } virtual void DescribeNegationTo(::std::ostream* os) const { *os << "aren't " "an unequal pair"; } }; }; > >#undef GMOCK_IMPLEMENT_COMPARISON2_MATCHER_ > > > > > >template <typename T> >class NotMatcherImpl : public MatcherInterface<T> { > public: > explicit NotMatcherImpl(const Matcher<T>& matcher) > : matcher_(matcher) {} > > virtual bool MatchAndExplain(T x, MatchResultListener* listener) const { > return !matcher_.MatchAndExplain(x, listener); > } > > virtual void DescribeTo(::std::ostream* os) const { > matcher_.DescribeNegationTo(os); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > matcher_.DescribeTo(os); > } > > private: > const Matcher<T> matcher_; > > void operator=(NotMatcherImpl const &); >}; > > > >template <typename InnerMatcher> >class NotMatcher { > public: > explicit NotMatcher(InnerMatcher matcher) : matcher_(matcher) {} > > > > template <typename T> > operator Matcher<T>() const { > return Matcher<T>(new NotMatcherImpl<T>(SafeMatcherCast<T>(matcher_))); > } > > private: > InnerMatcher matcher_; > > void operator=(NotMatcher const &); >}; > > > > > >template <typename T> >class BothOfMatcherImpl : public MatcherInterface<T> { > public: > BothOfMatcherImpl(const Matcher<T>& matcher1, const Matcher<T>& matcher2) > : matcher1_(matcher1), matcher2_(matcher2) {} > > virtual void DescribeTo(::std::ostream* os) const { > *os << "("; > matcher1_.DescribeTo(os); > *os << ") and ("; > matcher2_.DescribeTo(os); > *os << ")"; > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "("; > matcher1_.DescribeNegationTo(os); > *os << ") or ("; > matcher2_.DescribeNegationTo(os); > *os << ")"; > } > > virtual bool MatchAndExplain(T x, MatchResultListener* listener) const { > > > StringMatchResultListener listener1; > if (!matcher1_.MatchAndExplain(x, &listener1)) { > *listener << listener1.str(); > return false; > } > > StringMatchResultListener listener2; > if (!matcher2_.MatchAndExplain(x, &listener2)) { > *listener << listener2.str(); > return false; > } > > > const internal::string s1 = listener1.str(); > const internal::string s2 = listener2.str(); > > if (s1 == "") { > *listener << s2; > } else { > *listener << s1; > if (s2 != "") { > *listener << ", and " << s2; > } > } > return true; > } > > private: > const Matcher<T> matcher1_; > const Matcher<T> matcher2_; > > void operator=(BothOfMatcherImpl const &); >}; > > > >template <typename Matcher1, typename Matcher2> >class BothOfMatcher { > public: > BothOfMatcher(Matcher1 matcher1, Matcher2 matcher2) > : matcher1_(matcher1), matcher2_(matcher2) {} > > > > > template <typename T> > operator Matcher<T>() const { > return Matcher<T>(new BothOfMatcherImpl<T>(SafeMatcherCast<T>(matcher1_), > SafeMatcherCast<T>(matcher2_))); > } > > private: > Matcher1 matcher1_; > Matcher2 matcher2_; > > void operator=(BothOfMatcher const &); >}; > > > > > >template <typename T> >class EitherOfMatcherImpl : public MatcherInterface<T> { > public: > EitherOfMatcherImpl(const Matcher<T>& matcher1, const Matcher<T>& matcher2) > : matcher1_(matcher1), matcher2_(matcher2) {} > > virtual void DescribeTo(::std::ostream* os) const { > *os << "("; > matcher1_.DescribeTo(os); > *os << ") or ("; > matcher2_.DescribeTo(os); > *os << ")"; > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "("; > matcher1_.DescribeNegationTo(os); > *os << ") and ("; > matcher2_.DescribeNegationTo(os); > *os << ")"; > } > > virtual bool MatchAndExplain(T x, MatchResultListener* listener) const { > > > StringMatchResultListener listener1; > if (matcher1_.MatchAndExplain(x, &listener1)) { > *listener << listener1.str(); > return true; > } > > StringMatchResultListener listener2; > if (matcher2_.MatchAndExplain(x, &listener2)) { > *listener << listener2.str(); > return true; > } > > > const internal::string s1 = listener1.str(); > const internal::string s2 = listener2.str(); > > if (s1 == "") { > *listener << s2; > } else { > *listener << s1; > if (s2 != "") { > *listener << ", and " << s2; > } > } > return false; > } > > private: > const Matcher<T> matcher1_; > const Matcher<T> matcher2_; > > void operator=(EitherOfMatcherImpl const &); >}; > > > > >template <typename Matcher1, typename Matcher2> >class EitherOfMatcher { > public: > EitherOfMatcher(Matcher1 matcher1, Matcher2 matcher2) > : matcher1_(matcher1), matcher2_(matcher2) {} > > > > > template <typename T> > operator Matcher<T>() const { > return Matcher<T>(new EitherOfMatcherImpl<T>( > SafeMatcherCast<T>(matcher1_), SafeMatcherCast<T>(matcher2_))); > } > > private: > Matcher1 matcher1_; > Matcher2 matcher2_; > > void operator=(EitherOfMatcher const &); >}; > > > >template <typename Predicate> >class TrulyMatcher { > public: > explicit TrulyMatcher(Predicate pred) : predicate_(pred) {} > > > > > > template <typename T> > bool MatchAndExplain(T& x, > MatchResultListener* ) const { > > > > > > > if (predicate_(x)) > return true; > return false; > } > > void DescribeTo(::std::ostream* os) const { > *os << "satisfies the given predicate"; > } > > void DescribeNegationTo(::std::ostream* os) const { > *os << "doesn't satisfy the given predicate"; > } > > private: > Predicate predicate_; > > void operator=(TrulyMatcher const &); >}; > > > >template <typename M> >class MatcherAsPredicate { > public: > explicit MatcherAsPredicate(M matcher) : matcher_(matcher) {} > > > > > > > > template <typename T> > bool operator()(const T& x) const { ># 6061 "../gtest_contrib/gmock/gmock.h" > return MatcherCast<const T&>(matcher_).Matches(x); > } > > private: > M matcher_; > > void operator=(MatcherAsPredicate const &); >}; > > > >template <typename M> >class PredicateFormatterFromMatcher { > public: > explicit PredicateFormatterFromMatcher(const M& m) : matcher_(m) {} > > > > > template <typename T> > AssertionResult operator()(const char* value_text, const T& x) const { ># 6091 "../gtest_contrib/gmock/gmock.h" > const Matcher<const T&> matcher = MatcherCast<const T&>(matcher_); > StringMatchResultListener listener; > if (MatchPrintAndExplain(x, matcher, &listener)) > return AssertionSuccess(); > > ::std::stringstream ss; > ss << "Value of: " << value_text << "\n" > << "Expected: "; > matcher.DescribeTo(&ss); > ss << "\n Actual: " << listener.str(); > return AssertionFailure() << ss.str(); > } > > private: > const M matcher_; > > void operator=(PredicateFormatterFromMatcher const &); >}; > > > > >template <typename M> >inline PredicateFormatterFromMatcher<M> >MakePredicateFormatterFromMatcher(const M& matcher) { > return PredicateFormatterFromMatcher<M>(matcher); >} > > > > > >template <typename FloatType> >class FloatingEqMatcher { > public: > > > > > FloatingEqMatcher(FloatType rhs, bool nan_eq_nan) : > rhs_(rhs), nan_eq_nan_(nan_eq_nan) {} > > > template <typename T> > class Impl : public MatcherInterface<T> { > public: > Impl(FloatType rhs, bool nan_eq_nan) : > rhs_(rhs), nan_eq_nan_(nan_eq_nan) {} > > virtual bool MatchAndExplain(T value, > MatchResultListener* ) const { > const FloatingPoint<FloatType> lhs(value), rhs(rhs_); > > > if (nan_eq_nan_ && lhs.is_nan()) { > return rhs.is_nan(); > } > > return lhs.AlmostEquals(rhs); > } > > virtual void DescribeTo(::std::ostream* os) const { > > > > const ::std::streamsize old_precision = os->precision( > ::std::numeric_limits<FloatType>::digits10 + 2); > if (FloatingPoint<FloatType>(rhs_).is_nan()) { > if (nan_eq_nan_) { > *os << "is NaN"; > } else { > *os << "never matches"; > } > } else { > *os << "is approximately " << rhs_; > } > os->precision(old_precision); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > > const ::std::streamsize old_precision = os->precision( > ::std::numeric_limits<FloatType>::digits10 + 2); > if (FloatingPoint<FloatType>(rhs_).is_nan()) { > if (nan_eq_nan_) { > *os << "isn't NaN"; > } else { > *os << "is anything"; > } > } else { > *os << "isn't approximately " << rhs_; > } > > os->precision(old_precision); > } > > private: > const FloatType rhs_; > const bool nan_eq_nan_; > > void operator=(Impl const &); > }; > > > > > > > > operator Matcher<FloatType>() const { > return MakeMatcher(new Impl<FloatType>(rhs_, nan_eq_nan_)); > } > > operator Matcher<const FloatType&>() const { > return MakeMatcher(new Impl<const FloatType&>(rhs_, nan_eq_nan_)); > } > > operator Matcher<FloatType&>() const { > return MakeMatcher(new Impl<FloatType&>(rhs_, nan_eq_nan_)); > } > private: > const FloatType rhs_; > const bool nan_eq_nan_; > > void operator=(FloatingEqMatcher const &); >}; > > > >template <typename InnerMatcher> >class PointeeMatcher { > public: > explicit PointeeMatcher(const InnerMatcher& matcher) : matcher_(matcher) {} ># 6233 "../gtest_contrib/gmock/gmock.h" > template <typename Pointer> > operator Matcher<Pointer>() const { > return MakeMatcher(new Impl<Pointer>(matcher_)); > } > > private: > > template <typename Pointer> > class Impl : public MatcherInterface<Pointer> { > public: > typedef typename PointeeOf<typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Pointer>::type>::type > >::type Pointee; > > explicit Impl(const InnerMatcher& matcher) > : matcher_(MatcherCast<const Pointee&>(matcher)) {} > > virtual void DescribeTo(::std::ostream* os) const { > *os << "points to a value that "; > matcher_.DescribeTo(os); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "does not point to a value that "; > matcher_.DescribeTo(os); > } > > virtual bool MatchAndExplain(Pointer pointer, > MatchResultListener* listener) const { > if (GetRawPointer(pointer) == __null) > return false; > > *listener << "which points to "; > return MatchPrintAndExplain(*pointer, matcher_, listener); > } > > private: > const Matcher<const Pointee&> matcher_; > > void operator=(Impl const &); > }; > > const InnerMatcher matcher_; > > void operator=(PointeeMatcher const &); >}; > > > >template <typename Class, typename FieldType> >class FieldMatcher { > public: > FieldMatcher(FieldType Class::*field, > const Matcher<const FieldType&>& matcher) > : field_(field), matcher_(matcher) {} > > void DescribeTo(::std::ostream* os) const { > *os << "is an object whose given field "; > matcher_.DescribeTo(os); > } > > void DescribeNegationTo(::std::ostream* os) const { > *os << "is an object whose given field "; > matcher_.DescribeNegationTo(os); > } > > template <typename T> > bool MatchAndExplain(const T& value, MatchResultListener* listener) const { > return MatchAndExplainImpl( > typename ::testing::internal:: > is_pointer<typename ::testing::internal::RemoveConst<T>::type>::type(), > value, listener); > } > > private: > > > > bool MatchAndExplainImpl(false_type , const Class& obj, > MatchResultListener* listener) const { > *listener << "whose given field is "; > return MatchPrintAndExplain(obj.*field_, matcher_, listener); > } > > bool MatchAndExplainImpl(true_type , const Class* p, > MatchResultListener* listener) const { > if (p == __null) > return false; > > *listener << "which points to an object "; > > > > return MatchAndExplainImpl(false_type(), *p, listener); > } > > const FieldType Class::*field_; > const Matcher<const FieldType&> matcher_; > > void operator=(FieldMatcher const &); >}; > > > >template <typename Class, typename PropertyType> >class PropertyMatcher { > public: > > > > > typedef typename ::testing::internal::AddReference<const typename ::testing::internal::RemoveReference<PropertyType>::type>::type RefToConstProperty; > > PropertyMatcher(PropertyType (Class::*property)() const, > const Matcher<RefToConstProperty>& matcher) > : property_(property), matcher_(matcher) {} > > void DescribeTo(::std::ostream* os) const { > *os << "is an object whose given property "; > matcher_.DescribeTo(os); > } > > void DescribeNegationTo(::std::ostream* os) const { > *os << "is an object whose given property "; > matcher_.DescribeNegationTo(os); > } > > template <typename T> > bool MatchAndExplain(const T&value, MatchResultListener* listener) const { > return MatchAndExplainImpl( > typename ::testing::internal:: > is_pointer<typename ::testing::internal::RemoveConst<T>::type>::type(), > value, listener); > } > > private: > > > > bool MatchAndExplainImpl(false_type , const Class& obj, > MatchResultListener* listener) const { > *listener << "whose given property is "; > > > RefToConstProperty result = (obj.*property_)(); > return MatchPrintAndExplain(result, matcher_, listener); > } > > bool MatchAndExplainImpl(true_type , const Class* p, > MatchResultListener* listener) const { > if (p == __null) > return false; > > *listener << "which points to an object "; > > > > return MatchAndExplainImpl(false_type(), *p, listener); > } > > PropertyType (Class::*property_)() const; > const Matcher<RefToConstProperty> matcher_; > > void operator=(PropertyMatcher const &); >}; > > > > > >template <typename Functor> >struct CallableTraits { > typedef typename Functor::result_type ResultType; > typedef Functor StorageType; > > static void CheckIsValid(Functor ) {} > template <typename T> > static ResultType Invoke(Functor f, T arg) { return f(arg); } >}; > > >template <typename ArgType, typename ResType> >struct CallableTraits<ResType(*)(ArgType)> { > typedef ResType ResultType; > typedef ResType(*StorageType)(ArgType); > > static void CheckIsValid(ResType(*f)(ArgType)) { > switch (0) case 0: default: if (::testing::internal::IsTrue(f != __null)) ; else ::testing::internal::GTestLog(::testing::internal::GTEST_FATAL, "../gtest_contrib/gmock/gmock.h", 6419).GetStream() << "Condition " "f != NULL" " failed. " > << "NULL function pointer is passed into ResultOf()."; > } > template <typename T> > static ResType Invoke(ResType(*f)(ArgType), T arg) { > return (*f)(arg); > } >}; > > > >template <typename Callable> >class ResultOfMatcher { > public: > typedef typename CallableTraits<Callable>::ResultType ResultType; > > ResultOfMatcher(Callable callable, const Matcher<ResultType>& matcher) > : callable_(callable), matcher_(matcher) { > CallableTraits<Callable>::CheckIsValid(callable_); > } > > template <typename T> > operator Matcher<T>() const { > return Matcher<T>(new Impl<T>(callable_, matcher_)); > } > > private: > typedef typename CallableTraits<Callable>::StorageType CallableStorageType; > > template <typename T> > class Impl : public MatcherInterface<T> { > public: > Impl(CallableStorageType callable, const Matcher<ResultType>& matcher) > : callable_(callable), matcher_(matcher) {} > > virtual void DescribeTo(::std::ostream* os) const { > *os << "is mapped by the given callable to a value that "; > matcher_.DescribeTo(os); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "is mapped by the given callable to a value that "; > matcher_.DescribeNegationTo(os); > } > > virtual bool MatchAndExplain(T obj, MatchResultListener* listener) const { > *listener << "which is mapped by the given callable to "; > > > ResultType result = > CallableTraits<Callable>::template Invoke<T>(callable_, obj); > return MatchPrintAndExplain(result, matcher_, listener); > } > > private: > > > > > > mutable CallableStorageType callable_; > const Matcher<ResultType> matcher_; > > void operator=(Impl const &); > }; > > const CallableStorageType callable_; > const Matcher<ResultType> matcher_; > > void operator=(ResultOfMatcher const &); >}; ># 6501 "../gtest_contrib/gmock/gmock.h" >template <typename Container> >class ContainerEqMatcher { > public: > typedef internal::StlContainerView<Container> View; > typedef typename View::type StlContainer; > typedef typename View::const_reference StlContainerReference; > > > > explicit ContainerEqMatcher(const Container& rhs) : rhs_(View::Copy(rhs)) { > > > (void)testing::StaticAssertTypeEq<Container, > typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type>(); > } > > void DescribeTo(::std::ostream* os) const { > *os << "equals "; > UniversalPrint(rhs_, os); > } > void DescribeNegationTo(::std::ostream* os) const { > *os << "does not equal "; > UniversalPrint(rhs_, os); > } > > template <typename LhsContainer> > bool MatchAndExplain(const LhsContainer& lhs, > MatchResultListener* listener) const { > > > typedef internal::StlContainerView<typename ::testing::internal::RemoveConst<LhsContainer>::type> > LhsView; > typedef typename LhsView::type LhsStlContainer; > StlContainerReference lhs_stl_container = LhsView::ConstReference(lhs); > if (lhs_stl_container == rhs_) > return true; > > ::std::ostream* const os = listener->stream(); > if (os != __null) { > > bool printed_header = false; > for (typename LhsStlContainer::const_iterator it = > lhs_stl_container.begin(); > it != lhs_stl_container.end(); ++it) { > if (internal::ArrayAwareFind(rhs_.begin(), rhs_.end(), *it) == > rhs_.end()) { > if (printed_header) { > *os << ", "; > } else { > *os << "which has these unexpected elements: "; > printed_header = true; > } > UniversalPrint(*it, os); > } > } > > > bool printed_header2 = false; > for (typename StlContainer::const_iterator it = rhs_.begin(); > it != rhs_.end(); ++it) { > if (internal::ArrayAwareFind( > lhs_stl_container.begin(), lhs_stl_container.end(), *it) == > lhs_stl_container.end()) { > if (printed_header2) { > *os << ", "; > } else { > *os << (printed_header ? ",\nand" : "which") > << " doesn't have these expected elements: "; > printed_header2 = true; > } > UniversalPrint(*it, os); > } > } > } > > return false; > } > > private: > const StlContainer rhs_; > > void operator=(ContainerEqMatcher const &); >}; > > > > > >template <typename TupleMatcher, typename RhsContainer> >class PointwiseMatcher { > public: > typedef internal::StlContainerView<RhsContainer> RhsView; > typedef typename RhsView::type RhsStlContainer; > typedef typename RhsStlContainer::value_type RhsValue; > > > > PointwiseMatcher(const TupleMatcher& tuple_matcher, const RhsContainer& rhs) > : tuple_matcher_(tuple_matcher), rhs_(RhsView::Copy(rhs)) { > > > (void)testing::StaticAssertTypeEq<RhsContainer, > typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<RhsContainer>::type>::type>(); > } > > template <typename LhsContainer> > operator Matcher<LhsContainer>() const { > return MakeMatcher(new Impl<LhsContainer>(tuple_matcher_, rhs_)); > } > > template <typename LhsContainer> > class Impl : public MatcherInterface<LhsContainer> { > public: > typedef internal::StlContainerView< > typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<LhsContainer>::type>::type> LhsView; > typedef typename LhsView::type LhsStlContainer; > typedef typename LhsView::const_reference LhsStlContainerReference; > typedef typename LhsStlContainer::value_type LhsValue; > > > > > typedef std::tr1::tuple<const LhsValue&, const RhsValue&> InnerMatcherArg; > > Impl(const TupleMatcher& tuple_matcher, const RhsStlContainer& rhs) > > : mono_tuple_matcher_(SafeMatcherCast<InnerMatcherArg>(tuple_matcher)), > rhs_(rhs) {} > > virtual void DescribeTo(::std::ostream* os) const { > *os << "contains " << rhs_.size() > << " values, where each value and its corresponding value in "; > UniversalPrinter<RhsStlContainer>::Print(rhs_, os); > *os << " "; > mono_tuple_matcher_.DescribeTo(os); > } > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "doesn't contain exactly " << rhs_.size() > << " values, or contains a value x at some index i" > << " where x and the i-th value of "; > UniversalPrint(rhs_, os); > *os << " "; > mono_tuple_matcher_.DescribeNegationTo(os); > } > > virtual bool MatchAndExplain(LhsContainer lhs, > MatchResultListener* listener) const { > LhsStlContainerReference lhs_stl_container = LhsView::ConstReference(lhs); > const size_t actual_size = lhs_stl_container.size(); > if (actual_size != rhs_.size()) { > *listener << "which contains " << actual_size << " values"; > return false; > } > > typename LhsStlContainer::const_iterator left = lhs_stl_container.begin(); > typename RhsStlContainer::const_iterator right = rhs_.begin(); > for (size_t i = 0; i != actual_size; ++i, ++left, ++right) { > const InnerMatcherArg value_pair(*left, *right); > > if (listener->IsInterested()) { > StringMatchResultListener inner_listener; > if (!mono_tuple_matcher_.MatchAndExplain( > value_pair, &inner_listener)) { > *listener << "where the value pair ("; > UniversalPrint(*left, listener->stream()); > *listener << ", "; > UniversalPrint(*right, listener->stream()); > *listener << ") at index #" << i << " don't match"; > PrintIfNotEmpty(inner_listener.str(), listener->stream()); > return false; > } > } else { > if (!mono_tuple_matcher_.Matches(value_pair)) > return false; > } > } > > return true; > } > > private: > const Matcher<InnerMatcherArg> mono_tuple_matcher_; > const RhsStlContainer rhs_; > > void operator=(Impl const &); > }; > > private: > const TupleMatcher tuple_matcher_; > const RhsStlContainer rhs_; > > void operator=(PointwiseMatcher const &); >}; > > >template <typename Container> >class QuantifierMatcherImpl : public MatcherInterface<Container> { > public: > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef StlContainerView<RawContainer> View; > typedef typename View::type StlContainer; > typedef typename View::const_reference StlContainerReference; > typedef typename StlContainer::value_type Element; > > template <typename InnerMatcher> > explicit QuantifierMatcherImpl(InnerMatcher inner_matcher) > : inner_matcher_( > testing::SafeMatcherCast<const Element&>(inner_matcher)) {} > > > > > bool MatchAndExplainImpl(bool all_elements_should_match, > Container container, > MatchResultListener* listener) const { > StlContainerReference stl_container = View::ConstReference(container); > size_t i = 0; > for (typename StlContainer::const_iterator it = stl_container.begin(); > it != stl_container.end(); ++it, ++i) { > StringMatchResultListener inner_listener; > const bool matches = inner_matcher_.MatchAndExplain(*it, &inner_listener); > > if (matches != all_elements_should_match) { > *listener << "whose element #" << i > << (matches ? " matches" : " doesn't match"); > PrintIfNotEmpty(inner_listener.str(), listener->stream()); > return !all_elements_should_match; > } > } > return all_elements_should_match; > } > > protected: > const Matcher<const Element&> inner_matcher_; > > void operator=(QuantifierMatcherImpl const &); >}; > > > >template <typename Container> >class ContainsMatcherImpl : public QuantifierMatcherImpl<Container> { > public: > template <typename InnerMatcher> > explicit ContainsMatcherImpl(InnerMatcher inner_matcher) > : QuantifierMatcherImpl<Container>(inner_matcher) {} > > > virtual void DescribeTo(::std::ostream* os) const { > *os << "contains at least one element that "; > this->inner_matcher_.DescribeTo(os); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "doesn't contain any element that "; > this->inner_matcher_.DescribeTo(os); > } > > virtual bool MatchAndExplain(Container container, > MatchResultListener* listener) const { > return this->MatchAndExplainImpl(false, container, listener); > } > > private: > void operator=(ContainsMatcherImpl const &); >}; > > > >template <typename Container> >class EachMatcherImpl : public QuantifierMatcherImpl<Container> { > public: > template <typename InnerMatcher> > explicit EachMatcherImpl(InnerMatcher inner_matcher) > : QuantifierMatcherImpl<Container>(inner_matcher) {} > > > virtual void DescribeTo(::std::ostream* os) const { > *os << "only contains elements that "; > this->inner_matcher_.DescribeTo(os); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "contains some element that "; > this->inner_matcher_.DescribeNegationTo(os); > } > > virtual bool MatchAndExplain(Container container, > MatchResultListener* listener) const { > return this->MatchAndExplainImpl(true, container, listener); > } > > private: > void operator=(EachMatcherImpl const &); >}; > > >template <typename M> >class ContainsMatcher { > public: > explicit ContainsMatcher(M m) : inner_matcher_(m) {} > > template <typename Container> > operator Matcher<Container>() const { > return MakeMatcher(new ContainsMatcherImpl<Container>(inner_matcher_)); > } > > private: > const M inner_matcher_; > > void operator=(ContainsMatcher const &); >}; > > >template <typename M> >class EachMatcher { > public: > explicit EachMatcher(M m) : inner_matcher_(m) {} > > template <typename Container> > operator Matcher<Container>() const { > return MakeMatcher(new EachMatcherImpl<Container>(inner_matcher_)); > } > > private: > const M inner_matcher_; > > void operator=(EachMatcher const &); >}; > > > > > >template <typename PairType> >class KeyMatcherImpl : public MatcherInterface<PairType> { > public: > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<PairType>::type>::type RawPairType; > typedef typename RawPairType::first_type KeyType; > > template <typename InnerMatcher> > explicit KeyMatcherImpl(InnerMatcher inner_matcher) > : inner_matcher_( > testing::SafeMatcherCast<const KeyType&>(inner_matcher)) { > } > > > virtual bool MatchAndExplain(PairType key_value, > MatchResultListener* listener) const { > StringMatchResultListener inner_listener; > const bool match = inner_matcher_.MatchAndExplain(key_value.first, > &inner_listener); > const internal::string explanation = inner_listener.str(); > if (explanation != "") { > *listener << "whose first field is a value " << explanation; > } > return match; > } > > > virtual void DescribeTo(::std::ostream* os) const { > *os << "has a key that "; > inner_matcher_.DescribeTo(os); > } > > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "doesn't have a key that "; > inner_matcher_.DescribeTo(os); > } > > private: > const Matcher<const KeyType&> inner_matcher_; > > void operator=(KeyMatcherImpl const &); >}; > > >template <typename M> >class KeyMatcher { > public: > explicit KeyMatcher(M m) : matcher_for_key_(m) {} > > template <typename PairType> > operator Matcher<PairType>() const { > return MakeMatcher(new KeyMatcherImpl<PairType>(matcher_for_key_)); > } > > private: > const M matcher_for_key_; > > void operator=(KeyMatcher const &); >}; > > > >template <typename PairType> >class PairMatcherImpl : public MatcherInterface<PairType> { > public: > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<PairType>::type>::type RawPairType; > typedef typename RawPairType::first_type FirstType; > typedef typename RawPairType::second_type SecondType; > > template <typename FirstMatcher, typename SecondMatcher> > PairMatcherImpl(FirstMatcher first_matcher, SecondMatcher second_matcher) > : first_matcher_( > testing::SafeMatcherCast<const FirstType&>(first_matcher)), > second_matcher_( > testing::SafeMatcherCast<const SecondType&>(second_matcher)) { > } > > > virtual void DescribeTo(::std::ostream* os) const { > *os << "has a first field that "; > first_matcher_.DescribeTo(os); > *os << ", and has a second field that "; > second_matcher_.DescribeTo(os); > } > > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "has a first field that "; > first_matcher_.DescribeNegationTo(os); > *os << ", or has a second field that "; > second_matcher_.DescribeNegationTo(os); > } > > > > virtual bool MatchAndExplain(PairType a_pair, > MatchResultListener* listener) const { > if (!listener->IsInterested()) { > > > return first_matcher_.Matches(a_pair.first) && > second_matcher_.Matches(a_pair.second); > } > StringMatchResultListener first_inner_listener; > if (!first_matcher_.MatchAndExplain(a_pair.first, > &first_inner_listener)) { > *listener << "whose first field does not match"; > PrintIfNotEmpty(first_inner_listener.str(), listener->stream()); > return false; > } > StringMatchResultListener second_inner_listener; > if (!second_matcher_.MatchAndExplain(a_pair.second, > &second_inner_listener)) { > *listener << "whose second field does not match"; > PrintIfNotEmpty(second_inner_listener.str(), listener->stream()); > return false; > } > ExplainSuccess(first_inner_listener.str(), second_inner_listener.str(), > listener); > return true; > } > > private: > void ExplainSuccess(const internal::string& first_explanation, > const internal::string& second_explanation, > MatchResultListener* listener) const { > *listener << "whose both fields match"; > if (first_explanation != "") { > *listener << ", where the first field is a value " << first_explanation; > } > if (second_explanation != "") { > *listener << ", "; > if (first_explanation != "") { > *listener << "and "; > } else { > *listener << "where "; > } > *listener << "the second field is a value " << second_explanation; > } > } > > const Matcher<const FirstType&> first_matcher_; > const Matcher<const SecondType&> second_matcher_; > > void operator=(PairMatcherImpl const &); >}; > > >template <typename FirstMatcher, typename SecondMatcher> >class PairMatcher { > public: > PairMatcher(FirstMatcher first_matcher, SecondMatcher second_matcher) > : first_matcher_(first_matcher), second_matcher_(second_matcher) {} > > template <typename PairType> > operator Matcher<PairType> () const { > return MakeMatcher( > new PairMatcherImpl<PairType>( > first_matcher_, second_matcher_)); > } > > private: > const FirstMatcher first_matcher_; > const SecondMatcher second_matcher_; > > void operator=(PairMatcher const &); >}; > > >template <typename Container> >class ElementsAreMatcherImpl : public MatcherInterface<Container> { > public: > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef internal::StlContainerView<RawContainer> View; > typedef typename View::type StlContainer; > typedef typename View::const_reference StlContainerReference; > typedef typename StlContainer::value_type Element; > > > > template <typename InputIter> > ElementsAreMatcherImpl(InputIter first, size_t a_count) { > matchers_.reserve(a_count); > InputIter it = first; > for (size_t i = 0; i != a_count; ++i, ++it) { > matchers_.push_back(MatcherCast<const Element&>(*it)); > } > } > > > virtual void DescribeTo(::std::ostream* os) const { > if (count() == 0) { > *os << "is empty"; > } else if (count() == 1) { > *os << "has 1 element that "; > matchers_[0].DescribeTo(os); > } else { > *os << "has " << Elements(count()) << " where\n"; > for (size_t i = 0; i != count(); ++i) { > *os << "element #" << i << " "; > matchers_[i].DescribeTo(os); > if (i + 1 < count()) { > *os << ",\n"; > } > } > } > } > > > virtual void DescribeNegationTo(::std::ostream* os) const { > if (count() == 0) { > *os << "isn't empty"; > return; > } > > *os << "doesn't have " << Elements(count()) << ", or\n"; > for (size_t i = 0; i != count(); ++i) { > *os << "element #" << i << " "; > matchers_[i].DescribeNegationTo(os); > if (i + 1 < count()) { > *os << ", or\n"; > } > } > } > > virtual bool MatchAndExplain(Container container, > MatchResultListener* listener) const { > StlContainerReference stl_container = View::ConstReference(container); > const size_t actual_count = stl_container.size(); > if (actual_count != count()) { > > > > > if (actual_count != 0) { > *listener << "which has " << Elements(actual_count); > } > return false; > } > > typename StlContainer::const_iterator it = stl_container.begin(); > > std::vector<internal::string> explanations(count()); > for (size_t i = 0; i != count(); ++it, ++i) { > StringMatchResultListener s; > if (matchers_[i].MatchAndExplain(*it, &s)) { > explanations[i] = s.str(); > } else { > > > *listener << "whose element #" << i << " doesn't match"; > PrintIfNotEmpty(s.str(), listener->stream()); > return false; > } > } > > > > bool reason_printed = false; > for (size_t i = 0; i != count(); ++i) { > const internal::string& s = explanations[i]; > if (!s.empty()) { > if (reason_printed) { > *listener << ",\nand "; > } > *listener << "whose element #" << i << " matches, " << s; > reason_printed = true; > } > } > > return true; > } > > private: > static Message Elements(size_t count) { > return Message() << count << (count == 1 ? " element" : " elements"); > } > > size_t count() const { return matchers_.size(); } > std::vector<Matcher<const Element&> > matchers_; > > void operator=(ElementsAreMatcherImpl const &); >}; > > >class ElementsAreMatcher0 { > public: > ElementsAreMatcher0() {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&>* const matchers = __null; > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 0)); > } >}; > > >template <typename T> >class ElementsAreArrayMatcher { > public: > ElementsAreArrayMatcher(const T* first, size_t count) : > first_(first), count_(count) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(first_, count_)); > } > > private: > const T* const first_; > const size_t count_; > > void operator=(ElementsAreArrayMatcher const &); >}; > > > > > > >string FormatMatcherDescription(bool negation, const char* matcher_name, > const Strings& param_values); > >} > > >template <typename T, typename M> >inline Matcher<T> MatcherCast(M matcher) { > return internal::MatcherCastImpl<T, M>::Cast(matcher); >} ># 7183 "../gtest_contrib/gmock/gmock.h" >const internal::AnythingMatcher _ = {}; > >template <typename T> >inline Matcher<T> A() { return MakeMatcher(new internal::AnyMatcherImpl<T>()); } > > >template <typename T> >inline Matcher<T> An() { return A<T>(); } > > > > >template <typename T> >inline internal::EqMatcher<T> Eq(T x) { return internal::EqMatcher<T>(x); } > > > >template <typename T> >Matcher<T>::Matcher(T value) { *this = Eq(value); } ># 7215 "../gtest_contrib/gmock/gmock.h" >template <typename Lhs, typename Rhs> >inline Matcher<Lhs> TypedEq(const Rhs& rhs) { return Eq(rhs); } > > >template <typename Rhs> >inline internal::GeMatcher<Rhs> Ge(Rhs x) { > return internal::GeMatcher<Rhs>(x); >} > > >template <typename Rhs> >inline internal::GtMatcher<Rhs> Gt(Rhs x) { > return internal::GtMatcher<Rhs>(x); >} > > >template <typename Rhs> >inline internal::LeMatcher<Rhs> Le(Rhs x) { > return internal::LeMatcher<Rhs>(x); >} > > >template <typename Rhs> >inline internal::LtMatcher<Rhs> Lt(Rhs x) { > return internal::LtMatcher<Rhs>(x); >} > > >template <typename Rhs> >inline internal::NeMatcher<Rhs> Ne(Rhs x) { > return internal::NeMatcher<Rhs>(x); >} > > >inline PolymorphicMatcher<internal::IsNullMatcher > IsNull() { > return MakePolymorphicMatcher(internal::IsNullMatcher()); >} > > > > >inline PolymorphicMatcher<internal::NotNullMatcher > NotNull() { > return MakePolymorphicMatcher(internal::NotNullMatcher()); >} > > > >template <typename T> >inline internal::RefMatcher<T&> Ref(T& x) { > return internal::RefMatcher<T&>(x); >} > > > >inline internal::FloatingEqMatcher<double> DoubleEq(double rhs) { > return internal::FloatingEqMatcher<double>(rhs, false); >} > > > >inline internal::FloatingEqMatcher<double> NanSensitiveDoubleEq(double rhs) { > return internal::FloatingEqMatcher<double>(rhs, true); >} > > > >inline internal::FloatingEqMatcher<float> FloatEq(float rhs) { > return internal::FloatingEqMatcher<float>(rhs, false); >} > > > >inline internal::FloatingEqMatcher<float> NanSensitiveFloatEq(float rhs) { > return internal::FloatingEqMatcher<float>(rhs, true); >} > > > >template <typename InnerMatcher> >inline internal::PointeeMatcher<InnerMatcher> Pointee( > const InnerMatcher& inner_matcher) { > return internal::PointeeMatcher<InnerMatcher>(inner_matcher); >} > > > > > >template <typename Class, typename FieldType, typename FieldMatcher> >inline PolymorphicMatcher< > internal::FieldMatcher<Class, FieldType> > Field( > FieldType Class::*field, const FieldMatcher& matcher) { > return MakePolymorphicMatcher( > internal::FieldMatcher<Class, FieldType>( > field, MatcherCast<const FieldType&>(matcher))); > > > > >} > > > > > >template <typename Class, typename PropertyType, typename PropertyMatcher> >inline PolymorphicMatcher< > internal::PropertyMatcher<Class, PropertyType> > Property( > PropertyType (Class::*property)() const, const PropertyMatcher& matcher) { > return MakePolymorphicMatcher( > internal::PropertyMatcher<Class, PropertyType>( > property, > MatcherCast<typename ::testing::internal::AddReference<const typename ::testing::internal::RemoveReference<PropertyType>::type>::type>(matcher))); > > > > >} ># 7347 "../gtest_contrib/gmock/gmock.h" >template <typename Callable, typename ResultOfMatcher> >internal::ResultOfMatcher<Callable> ResultOf( > Callable callable, const ResultOfMatcher& matcher) { > return internal::ResultOfMatcher<Callable>( > callable, > MatcherCast<typename internal::CallableTraits<Callable>::ResultType>( > matcher)); > > > > >} > > > > >inline PolymorphicMatcher<internal::StrEqualityMatcher<internal::string> > > StrEq(const internal::string& str) { > return MakePolymorphicMatcher(internal::StrEqualityMatcher<internal::string>( > str, true, true)); >} > > >inline PolymorphicMatcher<internal::StrEqualityMatcher<internal::string> > > StrNe(const internal::string& str) { > return MakePolymorphicMatcher(internal::StrEqualityMatcher<internal::string>( > str, false, true)); >} > > >inline PolymorphicMatcher<internal::StrEqualityMatcher<internal::string> > > StrCaseEq(const internal::string& str) { > return MakePolymorphicMatcher(internal::StrEqualityMatcher<internal::string>( > str, true, false)); >} > > >inline PolymorphicMatcher<internal::StrEqualityMatcher<internal::string> > > StrCaseNe(const internal::string& str) { > return MakePolymorphicMatcher(internal::StrEqualityMatcher<internal::string>( > str, false, false)); >} > > > >inline PolymorphicMatcher<internal::HasSubstrMatcher<internal::string> > > HasSubstr(const internal::string& substring) { > return MakePolymorphicMatcher(internal::HasSubstrMatcher<internal::string>( > substring)); >} > > >inline PolymorphicMatcher<internal::StartsWithMatcher<internal::string> > > StartsWith(const internal::string& prefix) { > return MakePolymorphicMatcher(internal::StartsWithMatcher<internal::string>( > prefix)); >} > > >inline PolymorphicMatcher<internal::EndsWithMatcher<internal::string> > > EndsWith(const internal::string& suffix) { > return MakePolymorphicMatcher(internal::EndsWithMatcher<internal::string>( > suffix)); >} > > > >inline PolymorphicMatcher<internal::MatchesRegexMatcher> MatchesRegex( > const internal::RE* regex) { > return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, true)); >} >inline PolymorphicMatcher<internal::MatchesRegexMatcher> MatchesRegex( > const internal::string& regex) { > return MatchesRegex(new internal::RE(regex)); >} > > > >inline PolymorphicMatcher<internal::MatchesRegexMatcher> ContainsRegex( > const internal::RE* regex) { > return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, false)); >} >inline PolymorphicMatcher<internal::MatchesRegexMatcher> ContainsRegex( > const internal::string& regex) { > return ContainsRegex(new internal::RE(regex)); >} > > > > > >inline PolymorphicMatcher<internal::StrEqualityMatcher<internal::wstring> > > StrEq(const internal::wstring& str) { > return MakePolymorphicMatcher(internal::StrEqualityMatcher<internal::wstring>( > str, true, true)); >} > > >inline PolymorphicMatcher<internal::StrEqualityMatcher<internal::wstring> > > StrNe(const internal::wstring& str) { > return MakePolymorphicMatcher(internal::StrEqualityMatcher<internal::wstring>( > str, false, true)); >} > > >inline PolymorphicMatcher<internal::StrEqualityMatcher<internal::wstring> > > StrCaseEq(const internal::wstring& str) { > return MakePolymorphicMatcher(internal::StrEqualityMatcher<internal::wstring>( > str, true, false)); >} > > >inline PolymorphicMatcher<internal::StrEqualityMatcher<internal::wstring> > > StrCaseNe(const internal::wstring& str) { > return MakePolymorphicMatcher(internal::StrEqualityMatcher<internal::wstring>( > str, false, false)); >} > > > >inline PolymorphicMatcher<internal::HasSubstrMatcher<internal::wstring> > > HasSubstr(const internal::wstring& substring) { > return MakePolymorphicMatcher(internal::HasSubstrMatcher<internal::wstring>( > substring)); >} > > >inline PolymorphicMatcher<internal::StartsWithMatcher<internal::wstring> > > StartsWith(const internal::wstring& prefix) { > return MakePolymorphicMatcher(internal::StartsWithMatcher<internal::wstring>( > prefix)); >} > > >inline PolymorphicMatcher<internal::EndsWithMatcher<internal::wstring> > > EndsWith(const internal::wstring& suffix) { > return MakePolymorphicMatcher(internal::EndsWithMatcher<internal::wstring>( > suffix)); >} > > > > > >inline internal::Eq2Matcher Eq() { return internal::Eq2Matcher(); } > > > >inline internal::Ge2Matcher Ge() { return internal::Ge2Matcher(); } > > > >inline internal::Gt2Matcher Gt() { return internal::Gt2Matcher(); } > > > >inline internal::Le2Matcher Le() { return internal::Le2Matcher(); } > > > >inline internal::Lt2Matcher Lt() { return internal::Lt2Matcher(); } > > > >inline internal::Ne2Matcher Ne() { return internal::Ne2Matcher(); } > > > >template <typename InnerMatcher> >inline internal::NotMatcher<InnerMatcher> Not(InnerMatcher m) { > return internal::NotMatcher<InnerMatcher>(m); >} > > > > >template <typename Predicate> >inline PolymorphicMatcher<internal::TrulyMatcher<Predicate> > >Truly(Predicate pred) { > return MakePolymorphicMatcher(internal::TrulyMatcher<Predicate>(pred)); >} > > > > > >template <typename Container> >inline PolymorphicMatcher<internal::ContainerEqMatcher< > typename ::testing::internal::RemoveConst<Container>::type> > > ContainerEq(const Container& rhs) { > > > typedef typename ::testing::internal::RemoveConst<Container>::type RawContainer; > return MakePolymorphicMatcher( > internal::ContainerEqMatcher<RawContainer>(rhs)); >} > > > > > > > >template <typename TupleMatcher, typename Container> >inline internal::PointwiseMatcher<TupleMatcher, > typename ::testing::internal::RemoveConst<Container>::type> >Pointwise(const TupleMatcher& tuple_matcher, const Container& rhs) { > > > typedef typename ::testing::internal::RemoveConst<Container>::type RawContainer; > return internal::PointwiseMatcher<TupleMatcher, RawContainer>( > tuple_matcher, rhs); >} ># 7579 "../gtest_contrib/gmock/gmock.h" >template <typename M> >inline internal::ContainsMatcher<M> Contains(M matcher) { > return internal::ContainsMatcher<M>(matcher); >} ># 7611 "../gtest_contrib/gmock/gmock.h" >template <typename M> >inline internal::EachMatcher<M> Each(M matcher) { > return internal::EachMatcher<M>(matcher); >} > > > > >template <typename M> >inline internal::KeyMatcher<M> Key(M inner_matcher) { > return internal::KeyMatcher<M>(inner_matcher); >} > > > > > > >template <typename FirstMatcher, typename SecondMatcher> >inline internal::PairMatcher<FirstMatcher, SecondMatcher> >Pair(FirstMatcher first_matcher, SecondMatcher second_matcher) { > return internal::PairMatcher<FirstMatcher, SecondMatcher>( > first_matcher, second_matcher); >} > > > >template <typename M> >inline internal::MatcherAsPredicate<M> Matches(M matcher) { > return internal::MatcherAsPredicate<M>(matcher); >} > > >template <typename T, typename M> >inline bool Value(const T& value, M matcher) { > return testing::Matches(matcher)(value); >} > > > >template <typename T, typename M> >inline bool ExplainMatchResult( > M matcher, const T& value, MatchResultListener* listener) { > return SafeMatcherCast<const T&>(matcher).MatchAndExplain(value, listener); >} ># 7664 "../gtest_contrib/gmock/gmock.h" >template <typename InnerMatcher> >inline InnerMatcher AllArgs(const InnerMatcher& matcher) { return matcher; } > > > > > >#define ASSERT_THAT(value,matcher) ASSERT_PRED_FORMAT1( ::testing::internal::MakePredicateFormatterFromMatcher(matcher), value) > >#define EXPECT_THAT(value,matcher) EXPECT_PRED_FORMAT1( ::testing::internal::MakePredicateFormatterFromMatcher(matcher), value) > > >} > > > >namespace testing { > > >class Expectation; > > >class ExpectationSet; > > > >namespace internal { > > >template <typename F> class FunctionMocker; > > >class ExpectationBase; > > >template <typename F> class TypedExpectation; > > >class ExpectationTester; > > >template <typename F> class FunctionMockerBase; ># 7718 "../gtest_contrib/gmock/gmock.h" >extern ::testing::internal::MutexBase g_gmock_mutex; > > >class UntypedActionResultHolderBase; > > > > >class UntypedFunctionMockerBase { > public: > UntypedFunctionMockerBase(); > virtual ~UntypedFunctionMockerBase(); > > > > > > bool VerifyAndClearExpectationsLocked(); > > > > virtual void ClearDefaultActionsLocked() = 0; ># 7750 "../gtest_contrib/gmock/gmock.h" > virtual UntypedActionResultHolderBase* UntypedPerformDefaultAction( > const void* untyped_args, > const string& call_description) const = 0; > > > > > virtual UntypedActionResultHolderBase* UntypedPerformAction( > const void* untyped_action, > const void* untyped_args) const = 0; > > > > > > virtual void UntypedDescribeUninterestingCall(const void* untyped_args, > ::std::ostream* os) const = 0; ># 7775 "../gtest_contrib/gmock/gmock.h" > virtual const ExpectationBase* UntypedFindMatchingExpectation( > const void* untyped_args, > const void** untyped_action, bool* is_excessive, > ::std::ostream* what, ::std::ostream* why) = 0; > > > virtual void UntypedPrintArgs(const void* untyped_args, > ::std::ostream* os) const = 0; > > > > > > > > void RegisterOwner(const void* mock_obj); > > > > > > void SetOwnerAndName(const void* mock_obj, const char* name); > > > > > > const void* MockObject() const; > > > > > const char* Name() const; > > > > > > > const UntypedActionResultHolderBase* UntypedInvokeWith( > const void* untyped_args); > > protected: > typedef std::vector<const void*> UntypedOnCallSpecs; > > typedef std::vector<internal::linked_ptr<ExpectationBase> > > UntypedExpectations; > > > > Expectation GetHandleOf(ExpectationBase* exp); > > > > > const void* mock_obj_; > > > > const char* name_; > > > UntypedOnCallSpecs untyped_on_call_specs_; > > > UntypedExpectations untyped_expectations_; >}; > > >class UntypedOnCallSpecBase { > public: > > UntypedOnCallSpecBase(const char* a_file, int a_line) > : file_(a_file), line_(a_line), last_clause_(kNone) {} > > > const char* file() const { return file_; } > int line() const { return line_; } > > protected: > > enum Clause { > > > kNone, > kWith, > kWillByDefault > }; > > > void AssertSpecProperty(bool property, const string& failure_message) const { > Assert(property, file_, line_, failure_message); > } > > > void ExpectSpecProperty(bool property, const string& failure_message) const { > Expect(property, file_, line_, failure_message); > } > > const char* file_; > int line_; > > > > Clause last_clause_; >}; > > >template <typename F> >class OnCallSpec : public UntypedOnCallSpecBase { > public: > typedef typename Function<F>::ArgumentTuple ArgumentTuple; > typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple; > > > > OnCallSpec(const char* a_file, int a_line, > const ArgumentMatcherTuple& matchers) > : UntypedOnCallSpecBase(a_file, a_line), > matchers_(matchers), > > > > > extra_matcher_(A<const ArgumentTuple&>()) { > } > > > OnCallSpec& With(const Matcher<const ArgumentTuple&>& m) { > > ExpectSpecProperty(last_clause_ < kWith, > ".With() cannot appear " > "more than once in an ON_CALL()."); > last_clause_ = kWith; > > extra_matcher_ = m; > return *this; > } > > > OnCallSpec& WillByDefault(const Action<F>& action) { > ExpectSpecProperty(last_clause_ < kWillByDefault, > ".WillByDefault() must appear " > "exactly once in an ON_CALL()."); > last_clause_ = kWillByDefault; > > ExpectSpecProperty(!action.IsDoDefault(), > "DoDefault() cannot be used in ON_CALL()."); > action_ = action; > return *this; > } > > > bool Matches(const ArgumentTuple& args) const { > return TupleMatches(matchers_, args) && extra_matcher_.Matches(args); > } > > > const Action<F>& GetAction() const { > AssertSpecProperty(last_clause_ == kWillByDefault, > ".WillByDefault() must appear exactly " > "once in an ON_CALL()."); > return action_; > } > > private: ># 7954 "../gtest_contrib/gmock/gmock.h" > ArgumentMatcherTuple matchers_; > Matcher<const ArgumentTuple&> extra_matcher_; > Action<F> action_; >}; > > > >enum CallReaction { > ALLOW, > WARN, > FAIL >}; > >} > > >class Mock { > public: > > > > > static void AllowLeak(const void* mock_obj); > > > > > static bool VerifyAndClearExpectations(void* mock_obj); > > > > > static bool VerifyAndClear(void* mock_obj); > private: > friend class internal::UntypedFunctionMockerBase; > > > > template <typename F> > friend class internal::FunctionMockerBase; > > template <typename M> > friend class NiceMock; > > template <typename M> > friend class StrictMock; > > > > > static void AllowUninterestingCalls(const void* mock_obj); > > > > > static void WarnUninterestingCalls(const void* mock_obj); > > > > > static void FailUninterestingCalls(const void* mock_obj); > > > > > static void UnregisterCallReaction(const void* mock_obj); > > > > > static internal::CallReaction GetReactionOnUninterestingCalls( > const void* mock_obj); > > > > > > static bool VerifyAndClearExpectationsLocked(void* mock_obj); > > > > static void ClearDefaultActionsLocked(void* mock_obj); > > > > static void Register(const void* mock_obj, > internal::UntypedFunctionMockerBase* mocker); > > > > > > static void RegisterUseByOnCallOrExpectCall( > const void* mock_obj, const char* file, int line); > > > > > > > static void UnregisterLocked(internal::UntypedFunctionMockerBase* mocker); >}; ># 8078 "../gtest_contrib/gmock/gmock.h" >class Expectation { > public: > > Expectation(); > > ~Expectation(); ># 8094 "../gtest_contrib/gmock/gmock.h" > Expectation(internal::ExpectationBase& exp); > > > > > > bool operator==(const Expectation& rhs) const { > return expectation_base_ == rhs.expectation_base_; > } > > bool operator!=(const Expectation& rhs) const { return !(*this == rhs); } > > private: > friend class ExpectationSet; > friend class Sequence; > friend class ::testing::internal::ExpectationBase; > friend class ::testing::internal::UntypedFunctionMockerBase; > > template <typename F> > friend class ::testing::internal::FunctionMockerBase; > > template <typename F> > friend class ::testing::internal::TypedExpectation; > > > class Less { > public: > bool operator()(const Expectation& lhs, const Expectation& rhs) const { > return lhs.expectation_base_.get() < rhs.expectation_base_.get(); > } > }; > > typedef ::std::set<Expectation, Less> Set; > > Expectation( > const internal::linked_ptr<internal::ExpectationBase>& expectation_base); > > > const internal::linked_ptr<internal::ExpectationBase>& > expectation_base() const { > return expectation_base_; > } > > > internal::linked_ptr<internal::ExpectationBase> expectation_base_; >}; ># 8154 "../gtest_contrib/gmock/gmock.h" >class ExpectationSet { > public: > > typedef Expectation::Set::const_iterator const_iterator; > > > typedef Expectation::Set::value_type value_type; > > > ExpectationSet() {} > > > > > ExpectationSet(internal::ExpectationBase& exp) { > *this += Expectation(exp); > } > > > > > ExpectationSet(const Expectation& e) { > *this += e; > } > > > > > > > bool operator==(const ExpectationSet& rhs) const { > return expectations_ == rhs.expectations_; > } > > bool operator!=(const ExpectationSet& rhs) const { return !(*this == rhs); } > > > > ExpectationSet& operator+=(const Expectation& e) { > expectations_.insert(e); > return *this; > } > > int size() const { return static_cast<int>(expectations_.size()); } > > const_iterator begin() const { return expectations_.begin(); } > const_iterator end() const { return expectations_.end(); } > > private: > Expectation::Set expectations_; >}; > > > > > >class Sequence { > public: > > Sequence() : last_expectation_(new Expectation) {} > > > > void AddExpectation(const Expectation& expectation) const; > > private: > > > > > internal::linked_ptr<Expectation> last_expectation_; >}; ># 8251 "../gtest_contrib/gmock/gmock.h" >class InSequence { > public: > InSequence(); > ~InSequence(); > private: > bool sequence_created_; > > InSequence(InSequence const &); void operator=(InSequence const &); >} __attribute__ ((unused)); > >namespace internal { > > > >extern ThreadLocal<Sequence*> g_gmock_implicit_sequence; ># 8281 "../gtest_contrib/gmock/gmock.h" >class ExpectationBase { > public: > > ExpectationBase(const char* file, int line, const string& source_text); > > virtual ~ExpectationBase(); > > > const char* file() const { return file_; } > int line() const { return line_; } > const char* source_text() const { return source_text_.c_str(); } > > const Cardinality& cardinality() const { return cardinality_; } > > > void DescribeLocationTo(::std::ostream* os) const { > *os << FormatFileLocation(file(), line()) << " "; > } > > > > > void DescribeCallCountTo(::std::ostream* os) const; > > > > virtual void MaybeDescribeExtraMatcherTo(::std::ostream* os) = 0; > > protected: > friend class ::testing::Expectation; > friend class UntypedFunctionMockerBase; > > enum Clause { > > kNone, > kWith, > kTimes, > kInSequence, > kAfter, > kWillOnce, > kWillRepeatedly, > kRetiresOnSaturation > }; > > typedef std::vector<const void*> UntypedActions; > > > > virtual Expectation GetHandle() = 0; > > > void AssertSpecProperty(bool property, const string& failure_message) const { > Assert(property, file_, line_, failure_message); > } > > > void ExpectSpecProperty(bool property, const string& failure_message) const { > Expect(property, file_, line_, failure_message); > } > > > > void SpecifyCardinality(const Cardinality& cardinality); > > > > bool cardinality_specified() const { return cardinality_specified_; } > > > void set_cardinality(const Cardinality& a_cardinality) { > cardinality_ = a_cardinality; > } > > > > > > > > void RetireAllPreRequisites(); > > > > bool is_retired() const { > g_gmock_mutex.AssertHeld(); > return retired_; > } > > > > void Retire() { > g_gmock_mutex.AssertHeld(); > retired_ = true; > } > > > > bool IsSatisfied() const { > g_gmock_mutex.AssertHeld(); > return cardinality().IsSatisfiedByCallCount(call_count_); > } > > > > bool IsSaturated() const { > g_gmock_mutex.AssertHeld(); > return cardinality().IsSaturatedByCallCount(call_count_); > } > > > > bool IsOverSaturated() const { > g_gmock_mutex.AssertHeld(); > return cardinality().IsOverSaturatedByCallCount(call_count_); > } > > > > bool AllPrerequisitesAreSatisfied() const; > > > > void FindUnsatisfiedPrerequisites(ExpectationSet* result) const; > > > > int call_count() const { > g_gmock_mutex.AssertHeld(); > return call_count_; > } > > > > void IncrementCallCount() { > g_gmock_mutex.AssertHeld(); > call_count_++; > } > > > > > > > void CheckActionCountIfNotDone() const; > > friend class ::testing::Sequence; > friend class ::testing::internal::ExpectationTester; > > template <typename Function> > friend class TypedExpectation; > > > void UntypedTimes(const Cardinality& a_cardinality); > > > > const char* file_; > int line_; > const string source_text_; > > bool cardinality_specified_; > Cardinality cardinality_; > > > > > > > ExpectationSet immediate_prerequisites_; > > > > int call_count_; > bool retired_; > UntypedActions untyped_actions_; > bool extra_matcher_specified_; > bool repeated_action_specified_; > bool retires_on_saturation_; > Clause last_clause_; > mutable bool action_count_checked_; > mutable Mutex mutex_; > > void operator=(ExpectationBase const &); >}; > > >template <typename F> >class TypedExpectation : public ExpectationBase { > public: > typedef typename Function<F>::ArgumentTuple ArgumentTuple; > typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple; > typedef typename Function<F>::Result Result; > > TypedExpectation(FunctionMockerBase<F>* owner, > const char* a_file, int a_line, const string& a_source_text, > const ArgumentMatcherTuple& m) > : ExpectationBase(a_file, a_line, a_source_text), > owner_(owner), > matchers_(m), > > > > > extra_matcher_(A<const ArgumentTuple&>()), > repeated_action_(DoDefault()) {} > > virtual ~TypedExpectation() { > > > CheckActionCountIfNotDone(); > for (UntypedActions::const_iterator it = untyped_actions_.begin(); > it != untyped_actions_.end(); ++it) { > delete static_cast<const Action<F>*>(*it); > } > } > > > TypedExpectation& With(const Matcher<const ArgumentTuple&>& m) { > if (last_clause_ == kWith) { > ExpectSpecProperty(false, > ".With() cannot appear " > "more than once in an EXPECT_CALL()."); > } else { > ExpectSpecProperty(last_clause_ < kWith, > ".With() must be the first " > "clause in an EXPECT_CALL()."); > } > last_clause_ = kWith; > > extra_matcher_ = m; > extra_matcher_specified_ = true; > return *this; > } > > > TypedExpectation& Times(const Cardinality& a_cardinality) { > ExpectationBase::UntypedTimes(a_cardinality); > return *this; > } > > > TypedExpectation& Times(int n) { > return Times(Exactly(n)); > } > > > TypedExpectation& InSequence(const Sequence& s) { > ExpectSpecProperty(last_clause_ <= kInSequence, > ".InSequence() cannot appear after .After()," > " .WillOnce(), .WillRepeatedly(), or " > ".RetiresOnSaturation()."); > last_clause_ = kInSequence; > > s.AddExpectation(GetHandle()); > return *this; > } > TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2) { > return InSequence(s1).InSequence(s2); > } > TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2, > const Sequence& s3) { > return InSequence(s1, s2).InSequence(s3); > } > TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2, > const Sequence& s3, const Sequence& s4) { > return InSequence(s1, s2, s3).InSequence(s4); > } > TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2, > const Sequence& s3, const Sequence& s4, > const Sequence& s5) { > return InSequence(s1, s2, s3, s4).InSequence(s5); > } > > > TypedExpectation& After(const ExpectationSet& s) { > ExpectSpecProperty(last_clause_ <= kAfter, > ".After() cannot appear after .WillOnce()," > " .WillRepeatedly(), or " > ".RetiresOnSaturation()."); > last_clause_ = kAfter; > > for (ExpectationSet::const_iterator it = s.begin(); it != s.end(); ++it) { > immediate_prerequisites_ += *it; > } > return *this; > } > TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2) { > return After(s1).After(s2); > } > TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2, > const ExpectationSet& s3) { > return After(s1, s2).After(s3); > } > TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2, > const ExpectationSet& s3, const ExpectationSet& s4) { > return After(s1, s2, s3).After(s4); > } > TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2, > const ExpectationSet& s3, const ExpectationSet& s4, > const ExpectationSet& s5) { > return After(s1, s2, s3, s4).After(s5); > } > > > TypedExpectation& WillOnce(const Action<F>& action) { > ExpectSpecProperty(last_clause_ <= kWillOnce, > ".WillOnce() cannot appear after " > ".WillRepeatedly() or .RetiresOnSaturation()."); > last_clause_ = kWillOnce; > > untyped_actions_.push_back(new Action<F>(action)); > if (!cardinality_specified()) { > set_cardinality(Exactly(static_cast<int>(untyped_actions_.size()))); > } > return *this; > } > > > TypedExpectation& WillRepeatedly(const Action<F>& action) { > if (last_clause_ == kWillRepeatedly) { > ExpectSpecProperty(false, > ".WillRepeatedly() cannot appear " > "more than once in an EXPECT_CALL()."); > } else { > ExpectSpecProperty(last_clause_ < kWillRepeatedly, > ".WillRepeatedly() cannot appear " > "after .RetiresOnSaturation()."); > } > last_clause_ = kWillRepeatedly; > repeated_action_specified_ = true; > > repeated_action_ = action; > if (!cardinality_specified()) { > set_cardinality(AtLeast(static_cast<int>(untyped_actions_.size()))); > } > > > > CheckActionCountIfNotDone(); > return *this; > } > > > TypedExpectation& RetiresOnSaturation() { > ExpectSpecProperty(last_clause_ < kRetiresOnSaturation, > ".RetiresOnSaturation() cannot appear " > "more than once."); > last_clause_ = kRetiresOnSaturation; > retires_on_saturation_ = true; > > > > CheckActionCountIfNotDone(); > return *this; > } > > > > const ArgumentMatcherTuple& matchers() const { > return matchers_; > } > > > const Matcher<const ArgumentTuple&>& extra_matcher() const { > return extra_matcher_; > } > > > const Action<F>& repeated_action() const { return repeated_action_; } > > > > virtual void MaybeDescribeExtraMatcherTo(::std::ostream* os) { > if (extra_matcher_specified_) { > *os << " Expected args: "; > extra_matcher_.DescribeTo(os); > *os << "\n"; > } > } > > private: > template <typename Function> > friend class FunctionMockerBase; > > > > virtual Expectation GetHandle() { > return owner_->GetHandleOf(this); > } > > > > > > > > bool Matches(const ArgumentTuple& args) const { > g_gmock_mutex.AssertHeld(); > return TupleMatches(matchers_, args) && extra_matcher_.Matches(args); > } > > > > bool ShouldHandleArguments(const ArgumentTuple& args) const { > g_gmock_mutex.AssertHeld(); > > > > > > CheckActionCountIfNotDone(); > return !is_retired() && AllPrerequisitesAreSatisfied() && Matches(args); > } > > > > > void ExplainMatchResultTo(const ArgumentTuple& args, > ::std::ostream* os) const { > g_gmock_mutex.AssertHeld(); > > if (is_retired()) { > *os << " Expected: the expectation is active\n" > << " Actual: it is retired\n"; > } else if (!Matches(args)) { > if (!TupleMatches(matchers_, args)) { > ExplainMatchFailureTupleTo(matchers_, args, os); > } > StringMatchResultListener listener; > if (!extra_matcher_.MatchAndExplain(args, &listener)) { > *os << " Expected args: "; > extra_matcher_.DescribeTo(os); > *os << "\n Actual: don't match"; > > internal::PrintIfNotEmpty(listener.str(), os); > *os << "\n"; > } > } else if (!AllPrerequisitesAreSatisfied()) { > *os << " Expected: all pre-requisites are satisfied\n" > << " Actual: the following immediate pre-requisites " > << "are not satisfied:\n"; > ExpectationSet unsatisfied_prereqs; > FindUnsatisfiedPrerequisites(&unsatisfied_prereqs); > int i = 0; > for (ExpectationSet::const_iterator it = unsatisfied_prereqs.begin(); > it != unsatisfied_prereqs.end(); ++it) { > it->expectation_base()->DescribeLocationTo(os); > *os << "pre-requisite #" << i++ << "\n"; > } > *os << " (end of pre-requisites)\n"; > } else { > > > > > *os << "The call matches the expectation.\n"; > } > } > > > > const Action<F>& GetCurrentAction(const FunctionMockerBase<F>* mocker, > const ArgumentTuple& args) const { > g_gmock_mutex.AssertHeld(); > const int count = call_count(); > Assert(count >= 1, "../gtest_contrib/gmock/gmock.h", 8746, > "call_count() is <= 0 when GetCurrentAction() is " > "called - this should never happen."); > > const int action_count = static_cast<int>(untyped_actions_.size()); > if (action_count > 0 && !repeated_action_specified_ && > count > action_count) { > > > ::std::stringstream ss; > DescribeLocationTo(&ss); > ss << "Actions ran out in " << source_text() << "...\n" > << "Called " << count << " times, but only " > << action_count << " WillOnce()" > << (action_count == 1 ? " is" : "s are") << " specified - "; > mocker->DescribeDefaultActionTo(args, &ss); > Log(WARNING, ss.str(), 1); > } > > return count <= action_count ? > *static_cast<const Action<F>*>(untyped_actions_[count - 1]) : > repeated_action(); > } ># 8778 "../gtest_contrib/gmock/gmock.h" > const Action<F>* GetActionForArguments(const FunctionMockerBase<F>* mocker, > const ArgumentTuple& args, > ::std::ostream* what, > ::std::ostream* why) { > g_gmock_mutex.AssertHeld(); > if (IsSaturated()) { > > IncrementCallCount(); > *what << "Mock function called more times than expected - "; > mocker->DescribeDefaultActionTo(args, what); > DescribeCallCountTo(why); > > > > > return __null; > } > > IncrementCallCount(); > RetireAllPreRequisites(); > > if (retires_on_saturation_ && IsSaturated()) { > Retire(); > } > > > *what << "Mock function call matches " << source_text() <<"...\n"; > return &(GetCurrentAction(mocker, args)); > } > > > > FunctionMockerBase<F>* const owner_; > ArgumentMatcherTuple matchers_; > Matcher<const ArgumentTuple&> extra_matcher_; > Action<F> repeated_action_; > > TypedExpectation(TypedExpectation const &); void operator=(TypedExpectation const &); >}; ># 8829 "../gtest_contrib/gmock/gmock.h" >void LogWithLocation(testing::internal::LogSeverity severity, > const char* file, int line, > const string& message); > >template <typename F> >class MockSpec { > public: > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > typedef typename internal::Function<F>::ArgumentMatcherTuple > ArgumentMatcherTuple; > > > > explicit MockSpec(internal::FunctionMockerBase<F>* function_mocker) > : function_mocker_(function_mocker) {} > > > > internal::OnCallSpec<F>& InternalDefaultActionSetAt( > const char* file, int line, const char* obj, const char* call) { > LogWithLocation(internal::INFO, file, line, > string("ON_CALL(") + obj + ", " + call + ") invoked"); > return function_mocker_->AddNewOnCallSpec(file, line, matchers_); > } > > > > internal::TypedExpectation<F>& InternalExpectedAt( > const char* file, int line, const char* obj, const char* call) { > const string source_text(string("EXPECT_CALL(") + obj + ", " + call + ")"); > LogWithLocation(internal::INFO, file, line, source_text + " invoked"); > return function_mocker_->AddNewExpectation( > file, line, source_text, matchers_); > } > > private: > template <typename Function> > friend class internal::FunctionMocker; > > void SetMatchers(const ArgumentMatcherTuple& matchers) { > matchers_ = matchers; > } > > > internal::FunctionMockerBase<F>* const function_mocker_; > > ArgumentMatcherTuple matchers_; > > void operator=(MockSpec const &); >}; ># 8899 "../gtest_contrib/gmock/gmock.h" >class UntypedActionResultHolderBase { > public: > virtual ~UntypedActionResultHolderBase() {} > > > virtual void PrintAsActionResult(::std::ostream* os) const = 0; >}; > > >template <typename T> >class ActionResultHolder : public UntypedActionResultHolderBase { > public: > explicit ActionResultHolder(T a_value) : value_(a_value) {} > > > > > > T GetValueAndDelete() const { > T retval(value_); > delete this; > return retval; > } > > > virtual void PrintAsActionResult(::std::ostream* os) const { > *os << "\n Returns: "; > > UniversalPrinter<T>::Print(value_, os); > } > > > > template <typename F> > static ActionResultHolder* PerformDefaultAction( > const FunctionMockerBase<F>* func_mocker, > const typename Function<F>::ArgumentTuple& args, > const string& call_description) { > return new ActionResultHolder( > func_mocker->PerformDefaultAction(args, call_description)); > } > > > > template <typename F> > static ActionResultHolder* > PerformAction(const Action<F>& action, > const typename Function<F>::ArgumentTuple& args) { > return new ActionResultHolder(action.Perform(args)); > } > > private: > T value_; > > > void operator=(ActionResultHolder const &); >}; > > >template <> >class ActionResultHolder<void> : public UntypedActionResultHolderBase { > public: > void GetValueAndDelete() const { delete this; } > > virtual void PrintAsActionResult(::std::ostream* ) const {} > > > template <typename F> > static ActionResultHolder* PerformDefaultAction( > const FunctionMockerBase<F>* func_mocker, > const typename Function<F>::ArgumentTuple& args, > const string& call_description) { > func_mocker->PerformDefaultAction(args, call_description); > return __null; > } > > > template <typename F> > static ActionResultHolder* PerformAction( > const Action<F>& action, > const typename Function<F>::ArgumentTuple& args) { > action.Perform(args); > return __null; > } >}; > > > > >template <typename F> >class FunctionMockerBase : public UntypedFunctionMockerBase { > public: > typedef typename Function<F>::Result Result; > typedef typename Function<F>::ArgumentTuple ArgumentTuple; > typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple; > > FunctionMockerBase() : current_spec_(this) {} > > > > > > virtual ~FunctionMockerBase() { > MutexLock l(&g_gmock_mutex); > VerifyAndClearExpectationsLocked(); > Mock::UnregisterLocked(this); > ClearDefaultActionsLocked(); > } > > > > > const OnCallSpec<F>* FindOnCallSpec( > const ArgumentTuple& args) const { > for (UntypedOnCallSpecs::const_reverse_iterator it > = untyped_on_call_specs_.rbegin(); > it != untyped_on_call_specs_.rend(); ++it) { > const OnCallSpec<F>* spec = static_cast<const OnCallSpec<F>*>(*it); > if (spec->Matches(args)) > return spec; > } > > return __null; > } > > > > > > > Result PerformDefaultAction(const ArgumentTuple& args, > const string& call_description) const { > const OnCallSpec<F>* const spec = > this->FindOnCallSpec(args); > if (spec != __null) { > return spec->GetAction().Perform(args); > } > Assert(DefaultValue<Result>::Exists(), "", -1, > call_description + "\n The mock function has no default action " > "set, and its return type has no default value set."); > return DefaultValue<Result>::Get(); > } > > > > > > > virtual UntypedActionResultHolderBase* UntypedPerformDefaultAction( > const void* untyped_args, > const string& call_description) const { > const ArgumentTuple& args = > *static_cast<const ArgumentTuple*>(untyped_args); > return ResultHolder::PerformDefaultAction(this, args, call_description); > } > > > > > > virtual UntypedActionResultHolderBase* UntypedPerformAction( > const void* untyped_action, const void* untyped_args) const { > > > const Action<F> action = *static_cast<const Action<F>*>(untyped_action); > const ArgumentTuple& args = > *static_cast<const ArgumentTuple*>(untyped_args); > return ResultHolder::PerformAction(action, args); > } > > > > > virtual void ClearDefaultActionsLocked() { > g_gmock_mutex.AssertHeld(); > for (UntypedOnCallSpecs::const_iterator it = > untyped_on_call_specs_.begin(); > it != untyped_on_call_specs_.end(); ++it) { > delete static_cast<const OnCallSpec<F>*>(*it); > } > untyped_on_call_specs_.clear(); > } > > protected: > template <typename Function> > friend class MockSpec; > > typedef ActionResultHolder<Result> ResultHolder; > > > > > > Result InvokeWith(const ArgumentTuple& args) { > return static_cast<const ResultHolder*>( > this->UntypedInvokeWith(&args))->GetValueAndDelete(); > } > > > > OnCallSpec<F>& AddNewOnCallSpec( > const char* file, int line, > const ArgumentMatcherTuple& m) { > Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); > OnCallSpec<F>* const on_call_spec = new OnCallSpec<F>(file, line, m); > untyped_on_call_specs_.push_back(on_call_spec); > return *on_call_spec; > } > > > > TypedExpectation<F>& AddNewExpectation( > const char* file, > int line, > const string& source_text, > const ArgumentMatcherTuple& m) { > Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); > TypedExpectation<F>* const expectation = > new TypedExpectation<F>(this, file, line, source_text, m); > const linked_ptr<ExpectationBase> untyped_expectation(expectation); > untyped_expectations_.push_back(untyped_expectation); > > > Sequence* const implicit_sequence = g_gmock_implicit_sequence.get(); > if (implicit_sequence != __null) { > implicit_sequence->AddExpectation(Expectation(untyped_expectation)); > } > > return *expectation; > } > > > > MockSpec<F>& current_spec() { return current_spec_; } > > private: > template <typename Func> friend class TypedExpectation; > > > > > > > void DescribeDefaultActionTo(const ArgumentTuple& args, > ::std::ostream* os) const { > const OnCallSpec<F>* const spec = FindOnCallSpec(args); > > if (spec == __null) { > *os << (internal::type_equals<Result, void>::value ? > "returning directly.\n" : > "returning default value.\n"); > } else { > *os << "taking default action specified at:\n" > << FormatFileLocation(spec->file(), spec->line()) << "\n"; > } > } > > > > > > virtual void UntypedDescribeUninterestingCall(const void* untyped_args, > ::std::ostream* os) const { > const ArgumentTuple& args = > *static_cast<const ArgumentTuple*>(untyped_args); > *os << "Uninteresting mock function call - "; > DescribeDefaultActionTo(args, os); > *os << " Function call: " << Name(); > UniversalPrint(args, os); > } ># 9187 "../gtest_contrib/gmock/gmock.h" > virtual const ExpectationBase* UntypedFindMatchingExpectation( > const void* untyped_args, > const void** untyped_action, bool* is_excessive, > ::std::ostream* what, ::std::ostream* why) { > const ArgumentTuple& args = > *static_cast<const ArgumentTuple*>(untyped_args); > MutexLock l(&g_gmock_mutex); > TypedExpectation<F>* exp = this->FindMatchingExpectationLocked(args); > if (exp == __null) { > this->FormatUnexpectedCallMessageLocked(args, what, why); > return __null; > } > > > > > *is_excessive = exp->IsSaturated(); > const Action<F>* action = exp->GetActionForArguments(this, args, what, why); > if (action != __null && action->IsDoDefault()) > action = __null; > *untyped_action = action; > return exp; > } > > > virtual void UntypedPrintArgs(const void* untyped_args, > ::std::ostream* os) const { > const ArgumentTuple& args = > *static_cast<const ArgumentTuple*>(untyped_args); > UniversalPrint(args, os); > } > > > > > TypedExpectation<F>* FindMatchingExpectationLocked( > const ArgumentTuple& args) const { > g_gmock_mutex.AssertHeld(); > for (typename UntypedExpectations::const_reverse_iterator it = > untyped_expectations_.rbegin(); > it != untyped_expectations_.rend(); ++it) { > TypedExpectation<F>* const exp = > static_cast<TypedExpectation<F>*>(it->get()); > if (exp->ShouldHandleArguments(args)) { > return exp; > } > } > return __null; > } > > > > void FormatUnexpectedCallMessageLocked(const ArgumentTuple& args, > ::std::ostream* os, > ::std::ostream* why) const { > g_gmock_mutex.AssertHeld(); > *os << "\nUnexpected mock function call - "; > DescribeDefaultActionTo(args, os); > PrintTriedExpectationsLocked(args, why); > } > > > > > void PrintTriedExpectationsLocked(const ArgumentTuple& args, > ::std::ostream* why) const { > g_gmock_mutex.AssertHeld(); > const int count = static_cast<int>(untyped_expectations_.size()); > *why << "Google Mock tried the following " << count << " " > << (count == 1 ? "expectation, but it didn't match" : > "expectations, but none matched") > << ":\n"; > for (int i = 0; i < count; i++) { > TypedExpectation<F>* const expectation = > static_cast<TypedExpectation<F>*>(untyped_expectations_[i].get()); > *why << "\n"; > expectation->DescribeLocationTo(why); > if (count > 1) { > *why << "tried expectation #" << i << ": "; > } > *why << expectation->source_text() << "...\n"; > expectation->ExplainMatchResultTo(args, why); > expectation->DescribeCallCountTo(why); > } > } > > > > MockSpec<F> current_spec_; ># 9289 "../gtest_contrib/gmock/gmock.h" > FunctionMockerBase(FunctionMockerBase const &); void operator=(FunctionMockerBase const &); >}; ># 9305 "../gtest_contrib/gmock/gmock.h" >void ReportUninterestingCall(CallReaction reaction, const string& msg); > >} > > > > > > >using internal::MockSpec; ># 9331 "../gtest_contrib/gmock/gmock.h" >template <typename T> >inline const T& Const(const T& x) { return x; } > > >inline Expectation::Expectation(internal::ExpectationBase& exp) > : expectation_base_(exp.GetHandle().expectation_base()) {} > >} > > > > > >#define GMOCK_ON_CALL_IMPL_(obj,call) ((obj).gmock_ ##call).InternalDefaultActionSetAt(__FILE__, __LINE__, #obj, #call) > > >#define ON_CALL(obj,call) GMOCK_ON_CALL_IMPL_(obj, call) > >#define GMOCK_EXPECT_CALL_IMPL_(obj,call) ((obj).gmock_ ##call).InternalExpectedAt(__FILE__, __LINE__, #obj, #call) > >#define EXPECT_CALL(obj,call) GMOCK_EXPECT_CALL_IMPL_(obj, call) > > > >namespace testing { >namespace internal { > >template <typename F> >class FunctionMockerBase; > > > > > > >template <typename F> >class FunctionMocker; > >template <typename R> >class FunctionMocker<R()> : public > internal::FunctionMockerBase<R()> { > public: > typedef R F(); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With() { > return this->current_spec(); > } > > R Invoke() { > > > > > return this->InvokeWith(ArgumentTuple()); > } >}; > >template <typename R, typename A1> >class FunctionMocker<R(A1)> : public > internal::FunctionMockerBase<R(A1)> { > public: > typedef R F(A1); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1)); > return this->current_spec(); > } > > R Invoke(A1 a1) { > > > > > return this->InvokeWith(ArgumentTuple(a1)); > } >}; > >template <typename R, typename A1, typename A2> >class FunctionMocker<R(A1, A2)> : public > internal::FunctionMockerBase<R(A1, A2)> { > public: > typedef R F(A1, A2); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1, m2)); > return this->current_spec(); > } > > R Invoke(A1 a1, A2 a2) { > > > > > return this->InvokeWith(ArgumentTuple(a1, a2)); > } >}; > >template <typename R, typename A1, typename A2, typename A3> >class FunctionMocker<R(A1, A2, A3)> : public > internal::FunctionMockerBase<R(A1, A2, A3)> { > public: > typedef R F(A1, A2, A3); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2, > const Matcher<A3>& m3) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1, m2, m3)); > return this->current_spec(); > } > > R Invoke(A1 a1, A2 a2, A3 a3) { > > > > > return this->InvokeWith(ArgumentTuple(a1, a2, a3)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4> >class FunctionMocker<R(A1, A2, A3, A4)> : public > internal::FunctionMockerBase<R(A1, A2, A3, A4)> { > public: > typedef R F(A1, A2, A3, A4); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2, > const Matcher<A3>& m3, const Matcher<A4>& m4) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1, m2, m3, m4)); > return this->current_spec(); > } > > R Invoke(A1 a1, A2 a2, A3 a3, A4 a4) { > > > > > return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5> >class FunctionMocker<R(A1, A2, A3, A4, A5)> : public > internal::FunctionMockerBase<R(A1, A2, A3, A4, A5)> { > public: > typedef R F(A1, A2, A3, A4, A5); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2, > const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1, m2, m3, m4, > m5)); > return this->current_spec(); > } > > R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { > > > > > return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6> >class FunctionMocker<R(A1, A2, A3, A4, A5, A6)> : public > internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6)> { > public: > typedef R F(A1, A2, A3, A4, A5, A6); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2, > const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, > const Matcher<A6>& m6) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1, m2, m3, m4, m5, > m6)); > return this->current_spec(); > } > > R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) { > > > > > return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7> >class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7)> : public > internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6, A7)> { > public: > typedef R F(A1, A2, A3, A4, A5, A6, A7); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2, > const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, > const Matcher<A6>& m6, const Matcher<A7>& m7) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1, m2, m3, m4, m5, > m6, m7)); > return this->current_spec(); > } > > R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) { > > > > > return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8> >class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8)> : public > internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6, A7, A8)> { > public: > typedef R F(A1, A2, A3, A4, A5, A6, A7, A8); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2, > const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, > const Matcher<A6>& m6, const Matcher<A7>& m7, const Matcher<A8>& m8) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1, m2, m3, m4, m5, > m6, m7, m8)); > return this->current_spec(); > } > > R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) { > > > > > return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8, typename A9> >class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)> : public > internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6, A7, A8, A9)> { > public: > typedef R F(A1, A2, A3, A4, A5, A6, A7, A8, A9); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2, > const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, > const Matcher<A6>& m6, const Matcher<A7>& m7, const Matcher<A8>& m8, > const Matcher<A9>& m9) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1, m2, m3, m4, m5, > m6, m7, m8, m9)); > return this->current_spec(); > } > > R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) { > > > > > return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9)); > } >}; > >template <typename R, typename A1, typename A2, typename A3, typename A4, > typename A5, typename A6, typename A7, typename A8, typename A9, > typename A10> >class FunctionMocker<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> : public > internal::FunctionMockerBase<R(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> { > public: > typedef R F(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10); > typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; > > MockSpec<F>& With(const Matcher<A1>& m1, const Matcher<A2>& m2, > const Matcher<A3>& m3, const Matcher<A4>& m4, const Matcher<A5>& m5, > const Matcher<A6>& m6, const Matcher<A7>& m7, const Matcher<A8>& m8, > const Matcher<A9>& m9, const Matcher<A10>& m10) { > this->current_spec().SetMatchers(::std::tr1::make_tuple(m1, m2, m3, m4, m5, > m6, m7, m8, m9, m10)); > return this->current_spec(); > } > > R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9, > A10 a10) { > > > > > return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9, > a10)); > } >}; > >} > > > > > > >using internal::FunctionMocker; > > > >#define GMOCK_RESULT_(tn,F) tn ::testing::internal::Function<F>::Result > > > >#define GMOCK_ARG_(tn,F,N) tn ::testing::internal::Function<F>::Argument ##N > > > >#define GMOCK_MATCHER_(tn,F,N) const ::testing::Matcher<GMOCK_ARG_(tn, F, N)>& > > > >#define GMOCK_MOCKER_(arity,constness,Method) GTEST_CONCAT_TOKEN_(gmock ##constness ##arity ##_ ##Method ##_, __LINE__) > > > >#define GMOCK_METHOD0_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method() constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 0, this_method_does_not_take_0_arguments); GMOCK_MOCKER_(0, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(0, constness, Method).Invoke(); } ::testing::MockSpec<F>& gmock_ ##Method() constness { GMOCK_MOCKER_(0, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(0, constness, Method).With(); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(0, constness, Method) ># 9672 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD1_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 1, this_method_does_not_take_1_argument); GMOCK_MOCKER_(1, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(1, constness, Method).Invoke(gmock_a1); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1) constness { GMOCK_MOCKER_(1, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(1, constness, Method).With(gmock_a1); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(1, constness, Method) ># 9688 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD2_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, GMOCK_ARG_(tn, F, 2) gmock_a2) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 2, this_method_does_not_take_2_arguments); GMOCK_MOCKER_(2, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(2, constness, Method).Invoke(gmock_a1, gmock_a2); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, GMOCK_MATCHER_(tn, F, 2) gmock_a2) constness { GMOCK_MOCKER_(2, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(2, constness, Method).With(gmock_a1, gmock_a2); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(2, constness, Method) ># 9706 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD3_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, GMOCK_ARG_(tn, F, 2) gmock_a2, GMOCK_ARG_(tn, F, 3) gmock_a3) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 3, this_method_does_not_take_3_arguments); GMOCK_MOCKER_(3, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(3, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, GMOCK_MATCHER_(tn, F, 2) gmock_a2, GMOCK_MATCHER_(tn, F, 3) gmock_a3) constness { GMOCK_MOCKER_(3, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(3, constness, Method).With(gmock_a1, gmock_a2, gmock_a3); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(3, constness, Method) ># 9728 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD4_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, GMOCK_ARG_(tn, F, 2) gmock_a2, GMOCK_ARG_(tn, F, 3) gmock_a3, GMOCK_ARG_(tn, F, 4) gmock_a4) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 4, this_method_does_not_take_4_arguments); GMOCK_MOCKER_(4, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(4, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, GMOCK_MATCHER_(tn, F, 2) gmock_a2, GMOCK_MATCHER_(tn, F, 3) gmock_a3, GMOCK_MATCHER_(tn, F, 4) gmock_a4) constness { GMOCK_MOCKER_(4, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(4, constness, Method).With(gmock_a1, gmock_a2, gmock_a3, gmock_a4); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(4, constness, Method) ># 9752 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD5_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, GMOCK_ARG_(tn, F, 2) gmock_a2, GMOCK_ARG_(tn, F, 3) gmock_a3, GMOCK_ARG_(tn, F, 4) gmock_a4, GMOCK_ARG_(tn, F, 5) gmock_a5) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 5, this_method_does_not_take_5_arguments); GMOCK_MOCKER_(5, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(5, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, GMOCK_MATCHER_(tn, F, 2) gmock_a2, GMOCK_MATCHER_(tn, F, 3) gmock_a3, GMOCK_MATCHER_(tn, F, 4) gmock_a4, GMOCK_MATCHER_(tn, F, 5) gmock_a5) constness { GMOCK_MOCKER_(5, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(5, constness, Method).With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(5, constness, Method) ># 9778 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD6_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, GMOCK_ARG_(tn, F, 2) gmock_a2, GMOCK_ARG_(tn, F, 3) gmock_a3, GMOCK_ARG_(tn, F, 4) gmock_a4, GMOCK_ARG_(tn, F, 5) gmock_a5, GMOCK_ARG_(tn, F, 6) gmock_a6) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 6, this_method_does_not_take_6_arguments); GMOCK_MOCKER_(6, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(6, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, GMOCK_MATCHER_(tn, F, 2) gmock_a2, GMOCK_MATCHER_(tn, F, 3) gmock_a3, GMOCK_MATCHER_(tn, F, 4) gmock_a4, GMOCK_MATCHER_(tn, F, 5) gmock_a5, GMOCK_MATCHER_(tn, F, 6) gmock_a6) constness { GMOCK_MOCKER_(6, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(6, constness, Method).With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(6, constness, Method) ># 9806 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD7_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, GMOCK_ARG_(tn, F, 2) gmock_a2, GMOCK_ARG_(tn, F, 3) gmock_a3, GMOCK_ARG_(tn, F, 4) gmock_a4, GMOCK_ARG_(tn, F, 5) gmock_a5, GMOCK_ARG_(tn, F, 6) gmock_a6, GMOCK_ARG_(tn, F, 7) gmock_a7) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 7, this_method_does_not_take_7_arguments); GMOCK_MOCKER_(7, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(7, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, GMOCK_MATCHER_(tn, F, 2) gmock_a2, GMOCK_MATCHER_(tn, F, 3) gmock_a3, GMOCK_MATCHER_(tn, F, 4) gmock_a4, GMOCK_MATCHER_(tn, F, 5) gmock_a5, GMOCK_MATCHER_(tn, F, 6) gmock_a6, GMOCK_MATCHER_(tn, F, 7) gmock_a7) constness { GMOCK_MOCKER_(7, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(7, constness, Method).With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(7, constness, Method) ># 9836 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD8_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, GMOCK_ARG_(tn, F, 2) gmock_a2, GMOCK_ARG_(tn, F, 3) gmock_a3, GMOCK_ARG_(tn, F, 4) gmock_a4, GMOCK_ARG_(tn, F, 5) gmock_a5, GMOCK_ARG_(tn, F, 6) gmock_a6, GMOCK_ARG_(tn, F, 7) gmock_a7, GMOCK_ARG_(tn, F, 8) gmock_a8) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 8, this_method_does_not_take_8_arguments); GMOCK_MOCKER_(8, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(8, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, GMOCK_MATCHER_(tn, F, 2) gmock_a2, GMOCK_MATCHER_(tn, F, 3) gmock_a3, GMOCK_MATCHER_(tn, F, 4) gmock_a4, GMOCK_MATCHER_(tn, F, 5) gmock_a5, GMOCK_MATCHER_(tn, F, 6) gmock_a6, GMOCK_MATCHER_(tn, F, 7) gmock_a7, GMOCK_MATCHER_(tn, F, 8) gmock_a8) constness { GMOCK_MOCKER_(8, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(8, constness, Method).With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(8, constness, Method) ># 9868 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD9_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, GMOCK_ARG_(tn, F, 2) gmock_a2, GMOCK_ARG_(tn, F, 3) gmock_a3, GMOCK_ARG_(tn, F, 4) gmock_a4, GMOCK_ARG_(tn, F, 5) gmock_a5, GMOCK_ARG_(tn, F, 6) gmock_a6, GMOCK_ARG_(tn, F, 7) gmock_a7, GMOCK_ARG_(tn, F, 8) gmock_a8, GMOCK_ARG_(tn, F, 9) gmock_a9) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 9, this_method_does_not_take_9_arguments); GMOCK_MOCKER_(9, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(9, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, GMOCK_MATCHER_(tn, F, 2) gmock_a2, GMOCK_MATCHER_(tn, F, 3) gmock_a3, GMOCK_MATCHER_(tn, F, 4) gmock_a4, GMOCK_MATCHER_(tn, F, 5) gmock_a5, GMOCK_MATCHER_(tn, F, 6) gmock_a6, GMOCK_MATCHER_(tn, F, 7) gmock_a7, GMOCK_MATCHER_(tn, F, 8) gmock_a8, GMOCK_MATCHER_(tn, F, 9) gmock_a9) constness { GMOCK_MOCKER_(9, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(9, constness, Method).With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(9, constness, Method) ># 9904 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_METHOD10_(tn,constness,ct,Method,F) GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, GMOCK_ARG_(tn, F, 2) gmock_a2, GMOCK_ARG_(tn, F, 3) gmock_a3, GMOCK_ARG_(tn, F, 4) gmock_a4, GMOCK_ARG_(tn, F, 5) gmock_a5, GMOCK_ARG_(tn, F, 6) gmock_a6, GMOCK_ARG_(tn, F, 7) gmock_a7, GMOCK_ARG_(tn, F, 8) gmock_a8, GMOCK_ARG_(tn, F, 9) gmock_a9, GMOCK_ARG_(tn, F, 10) gmock_a10) constness { GTEST_COMPILE_ASSERT_(::std::tr1::tuple_size< tn ::testing::internal::Function<F>::ArgumentTuple>::value == 10, this_method_does_not_take_10_arguments); GMOCK_MOCKER_(10, constness, Method).SetOwnerAndName(this, #Method); return GMOCK_MOCKER_(10, constness, Method).Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9, gmock_a10); } ::testing::MockSpec<F>& gmock_ ##Method(GMOCK_MATCHER_(tn, F, 1) gmock_a1, GMOCK_MATCHER_(tn, F, 2) gmock_a2, GMOCK_MATCHER_(tn, F, 3) gmock_a3, GMOCK_MATCHER_(tn, F, 4) gmock_a4, GMOCK_MATCHER_(tn, F, 5) gmock_a5, GMOCK_MATCHER_(tn, F, 6) gmock_a6, GMOCK_MATCHER_(tn, F, 7) gmock_a7, GMOCK_MATCHER_(tn, F, 8) gmock_a8, GMOCK_MATCHER_(tn, F, 9) gmock_a9, GMOCK_MATCHER_(tn, F, 10) gmock_a10) constness { GMOCK_MOCKER_(10, constness, Method).RegisterOwner(this); return GMOCK_MOCKER_(10, constness, Method).With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9, gmock_a10); } mutable ::testing::FunctionMocker<F> GMOCK_MOCKER_(10, constness, Method) ># 9941 "../gtest_contrib/gmock/gmock.h" >#define MOCK_METHOD0(m,F) GMOCK_METHOD0_(, , , m, F) >#define MOCK_METHOD1(m,F) GMOCK_METHOD1_(, , , m, F) >#define MOCK_METHOD2(m,F) GMOCK_METHOD2_(, , , m, F) >#define MOCK_METHOD3(m,F) GMOCK_METHOD3_(, , , m, F) >#define MOCK_METHOD4(m,F) GMOCK_METHOD4_(, , , m, F) >#define MOCK_METHOD5(m,F) GMOCK_METHOD5_(, , , m, F) >#define MOCK_METHOD6(m,F) GMOCK_METHOD6_(, , , m, F) >#define MOCK_METHOD7(m,F) GMOCK_METHOD7_(, , , m, F) >#define MOCK_METHOD8(m,F) GMOCK_METHOD8_(, , , m, F) >#define MOCK_METHOD9(m,F) GMOCK_METHOD9_(, , , m, F) >#define MOCK_METHOD10(m,F) GMOCK_METHOD10_(, , , m, F) > >#define MOCK_CONST_METHOD0(m,F) GMOCK_METHOD0_(, const, , m, F) >#define MOCK_CONST_METHOD1(m,F) GMOCK_METHOD1_(, const, , m, F) >#define MOCK_CONST_METHOD2(m,F) GMOCK_METHOD2_(, const, , m, F) >#define MOCK_CONST_METHOD3(m,F) GMOCK_METHOD3_(, const, , m, F) >#define MOCK_CONST_METHOD4(m,F) GMOCK_METHOD4_(, const, , m, F) >#define MOCK_CONST_METHOD5(m,F) GMOCK_METHOD5_(, const, , m, F) >#define MOCK_CONST_METHOD6(m,F) GMOCK_METHOD6_(, const, , m, F) >#define MOCK_CONST_METHOD7(m,F) GMOCK_METHOD7_(, const, , m, F) >#define MOCK_CONST_METHOD8(m,F) GMOCK_METHOD8_(, const, , m, F) >#define MOCK_CONST_METHOD9(m,F) GMOCK_METHOD9_(, const, , m, F) >#define MOCK_CONST_METHOD10(m,F) GMOCK_METHOD10_(, const, , m, F) > >#define MOCK_METHOD0_T(m,F) GMOCK_METHOD0_(typename, , , m, F) >#define MOCK_METHOD1_T(m,F) GMOCK_METHOD1_(typename, , , m, F) >#define MOCK_METHOD2_T(m,F) GMOCK_METHOD2_(typename, , , m, F) >#define MOCK_METHOD3_T(m,F) GMOCK_METHOD3_(typename, , , m, F) >#define MOCK_METHOD4_T(m,F) GMOCK_METHOD4_(typename, , , m, F) >#define MOCK_METHOD5_T(m,F) GMOCK_METHOD5_(typename, , , m, F) >#define MOCK_METHOD6_T(m,F) GMOCK_METHOD6_(typename, , , m, F) >#define MOCK_METHOD7_T(m,F) GMOCK_METHOD7_(typename, , , m, F) >#define MOCK_METHOD8_T(m,F) GMOCK_METHOD8_(typename, , , m, F) >#define MOCK_METHOD9_T(m,F) GMOCK_METHOD9_(typename, , , m, F) >#define MOCK_METHOD10_T(m,F) GMOCK_METHOD10_(typename, , , m, F) > >#define MOCK_CONST_METHOD0_T(m,F) GMOCK_METHOD0_(typename, const, , m, F) >#define MOCK_CONST_METHOD1_T(m,F) GMOCK_METHOD1_(typename, const, , m, F) >#define MOCK_CONST_METHOD2_T(m,F) GMOCK_METHOD2_(typename, const, , m, F) >#define MOCK_CONST_METHOD3_T(m,F) GMOCK_METHOD3_(typename, const, , m, F) >#define MOCK_CONST_METHOD4_T(m,F) GMOCK_METHOD4_(typename, const, , m, F) >#define MOCK_CONST_METHOD5_T(m,F) GMOCK_METHOD5_(typename, const, , m, F) >#define MOCK_CONST_METHOD6_T(m,F) GMOCK_METHOD6_(typename, const, , m, F) >#define MOCK_CONST_METHOD7_T(m,F) GMOCK_METHOD7_(typename, const, , m, F) >#define MOCK_CONST_METHOD8_T(m,F) GMOCK_METHOD8_(typename, const, , m, F) >#define MOCK_CONST_METHOD9_T(m,F) GMOCK_METHOD9_(typename, const, , m, F) >#define MOCK_CONST_METHOD10_T(m,F) GMOCK_METHOD10_(typename, const, , m, F) > >#define MOCK_METHOD0_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD0_(, , ct, m, F) >#define MOCK_METHOD1_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD1_(, , ct, m, F) >#define MOCK_METHOD2_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD2_(, , ct, m, F) >#define MOCK_METHOD3_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD3_(, , ct, m, F) >#define MOCK_METHOD4_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD4_(, , ct, m, F) >#define MOCK_METHOD5_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD5_(, , ct, m, F) >#define MOCK_METHOD6_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD6_(, , ct, m, F) >#define MOCK_METHOD7_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD7_(, , ct, m, F) >#define MOCK_METHOD8_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD8_(, , ct, m, F) >#define MOCK_METHOD9_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD9_(, , ct, m, F) >#define MOCK_METHOD10_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD10_(, , ct, m, F) > >#define MOCK_CONST_METHOD0_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD0_(, const, ct, m, F) > >#define MOCK_CONST_METHOD1_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD1_(, const, ct, m, F) > >#define MOCK_CONST_METHOD2_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD2_(, const, ct, m, F) > >#define MOCK_CONST_METHOD3_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD3_(, const, ct, m, F) > >#define MOCK_CONST_METHOD4_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD4_(, const, ct, m, F) > >#define MOCK_CONST_METHOD5_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD5_(, const, ct, m, F) > >#define MOCK_CONST_METHOD6_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD6_(, const, ct, m, F) > >#define MOCK_CONST_METHOD7_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD7_(, const, ct, m, F) > >#define MOCK_CONST_METHOD8_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD8_(, const, ct, m, F) > >#define MOCK_CONST_METHOD9_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD9_(, const, ct, m, F) > >#define MOCK_CONST_METHOD10_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD10_(, const, ct, m, F) > > >#define MOCK_METHOD0_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD0_(typename, , ct, m, F) > >#define MOCK_METHOD1_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD1_(typename, , ct, m, F) > >#define MOCK_METHOD2_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD2_(typename, , ct, m, F) > >#define MOCK_METHOD3_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD3_(typename, , ct, m, F) > >#define MOCK_METHOD4_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD4_(typename, , ct, m, F) > >#define MOCK_METHOD5_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD5_(typename, , ct, m, F) > >#define MOCK_METHOD6_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD6_(typename, , ct, m, F) > >#define MOCK_METHOD7_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD7_(typename, , ct, m, F) > >#define MOCK_METHOD8_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD8_(typename, , ct, m, F) > >#define MOCK_METHOD9_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD9_(typename, , ct, m, F) > >#define MOCK_METHOD10_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD10_(typename, , ct, m, F) > > >#define MOCK_CONST_METHOD0_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD0_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD1_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD1_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD2_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD2_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD3_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD3_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD4_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD4_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD5_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD5_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD6_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD6_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD7_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD7_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD8_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD8_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD9_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD9_(typename, const, ct, m, F) > >#define MOCK_CONST_METHOD10_T_WITH_CALLTYPE(ct,m,F) GMOCK_METHOD10_(typename, const, ct, m, F) ># 10105 "../gtest_contrib/gmock/gmock.h" >template <typename F> >class MockFunction; > >template <typename R> >class MockFunction<R()> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R()>::Result Call() { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R()>::ArgumentTuple>::value == 0))> this_method_does_not_take_0_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R()>::ArgumentTuple>::value == 0) ? 1 : -1]; gmock0_Call_10113.SetOwnerAndName(this, "Call"); return gmock0_Call_10113.Invoke(); } ::testing::MockSpec<R()>& gmock_Call() { gmock0_Call_10113.RegisterOwner(this); return gmock0_Call_10113.With(); } mutable ::testing::FunctionMocker<R()> gmock0_Call_10113; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0> >class MockFunction<R(A0)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0)>::Result Call(typename ::testing::internal::Function<R(A0)>::Argument1 gmock_a1) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0)>::ArgumentTuple>::value == 1))> this_method_does_not_take_1_argument[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0)>::ArgumentTuple>::value == 1) ? 1 : -1]; gmock1_Call_10124.SetOwnerAndName(this, "Call"); return gmock1_Call_10124.Invoke(gmock_a1); } ::testing::MockSpec<R(A0)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0)>::Argument1>& gmock_a1) { gmock1_Call_10124.RegisterOwner(this); return gmock1_Call_10124.With(gmock_a1); } mutable ::testing::FunctionMocker<R(A0)> gmock1_Call_10124; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0, typename A1> >class MockFunction<R(A0, A1)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0, A1)>::Result Call(typename ::testing::internal::Function<R(A0, A1)>::Argument1 gmock_a1, typename ::testing::internal::Function<R(A0, A1)>::Argument2 gmock_a2) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1)>::ArgumentTuple>::value == 2))> this_method_does_not_take_2_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1)>::ArgumentTuple>::value == 2) ? 1 : -1]; gmock2_Call_10135.SetOwnerAndName(this, "Call"); return gmock2_Call_10135.Invoke(gmock_a1, gmock_a2); } ::testing::MockSpec<R(A0, A1)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1)>::Argument1>& gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1)>::Argument2>& gmock_a2) { gmock2_Call_10135.RegisterOwner(this); return gmock2_Call_10135.With(gmock_a1, gmock_a2); } mutable ::testing::FunctionMocker<R(A0, A1)> gmock2_Call_10135; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0, typename A1, typename A2> >class MockFunction<R(A0, A1, A2)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0, A1, A2)>::Result Call(typename ::testing::internal::Function<R(A0, A1, A2)>::Argument1 gmock_a1, typename ::testing::internal::Function<R(A0, A1, A2)>::Argument2 gmock_a2, typename ::testing::internal::Function<R(A0, A1, A2)>::Argument3 gmock_a3) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2)>::ArgumentTuple>::value == 3))> this_method_does_not_take_3_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2)>::ArgumentTuple>::value == 3) ? 1 : -1]; gmock3_Call_10146.SetOwnerAndName(this, "Call"); return gmock3_Call_10146.Invoke(gmock_a1, gmock_a2, gmock_a3); } ::testing::MockSpec<R(A0, A1, A2)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2)>::Argument1>& gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2)>::Argument2>& gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2)>::Argument3>& gmock_a3) { gmock3_Call_10146.RegisterOwner(this); return gmock3_Call_10146.With(gmock_a1, gmock_a2, gmock_a3); } mutable ::testing::FunctionMocker<R(A0, A1, A2)> gmock3_Call_10146; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0, typename A1, typename A2, typename A3> >class MockFunction<R(A0, A1, A2, A3)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0, A1, A2, A3)>::Result Call(typename ::testing::internal::Function<R(A0, A1, A2, A3)>::Argument1 gmock_a1, typename ::testing::internal::Function<R(A0, A1, A2, A3)>::Argument2 gmock_a2, typename ::testing::internal::Function<R(A0, A1, A2, A3)>::Argument3 gmock_a3, typename ::testing::internal::Function<R(A0, A1, A2, A3)>::Argument4 gmock_a4) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3)>::ArgumentTuple>::value == 4))> this_method_does_not_take_4_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3)>::ArgumentTuple>::value == 4) ? 1 : -1]; gmock4_Call_10157.SetOwnerAndName(this, "Call"); return gmock4_Call_10157.Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4); } ::testing::MockSpec<R(A0, A1, A2, A3)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3)>::Argument1>& gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3)>::Argument2>& gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3)>::Argument3>& gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3)>::Argument4>& gmock_a4) { gmock4_Call_10157.RegisterOwner(this); return gmock4_Call_10157.With(gmock_a1, gmock_a2, gmock_a3, gmock_a4); } mutable ::testing::FunctionMocker<R(A0, A1, A2, A3)> gmock4_Call_10157; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0, typename A1, typename A2, typename A3, > typename A4> >class MockFunction<R(A0, A1, A2, A3, A4)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Result Call(typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument1 gmock_a1, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument2 gmock_a2, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument3 gmock_a3, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument4 gmock_a4, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument5 gmock_a5) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::ArgumentTuple>::value == 5))> this_method_does_not_take_5_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::ArgumentTuple>::value == 5) ? 1 : -1]; gmock5_Call_10169.SetOwnerAndName(this, "Call"); return gmock5_Call_10169.Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5); } ::testing::MockSpec<R(A0, A1, A2, A3, A4)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument1>& gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument2>& gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument3>& gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument4>& gmock_a4, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4)>::Argument5>& gmock_a5) { gmock5_Call_10169.RegisterOwner(this); return gmock5_Call_10169.With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5); } mutable ::testing::FunctionMocker<R(A0, A1, A2, A3, A4)> gmock5_Call_10169; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0, typename A1, typename A2, typename A3, > typename A4, typename A5> >class MockFunction<R(A0, A1, A2, A3, A4, A5)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Result Call(typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument1 gmock_a1, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument2 gmock_a2, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument3 gmock_a3, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument4 gmock_a4, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument5 gmock_a5, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument6 gmock_a6) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::ArgumentTuple>::value == 6))> this_method_does_not_take_6_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::ArgumentTuple>::value == 6) ? 1 : -1]; gmock6_Call_10181.SetOwnerAndName(this, "Call"); return gmock6_Call_10181.Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6); } ::testing::MockSpec<R(A0, A1, A2, A3, A4, A5)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument1>& gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument2>& gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument3>& gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument4>& gmock_a4, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument5>& gmock_a5, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5)>::Argument6>& gmock_a6) { gmock6_Call_10181.RegisterOwner(this); return gmock6_Call_10181.With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6); } mutable ::testing::FunctionMocker<R(A0, A1, A2, A3, A4, A5)> gmock6_Call_10181; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0, typename A1, typename A2, typename A3, > typename A4, typename A5, typename A6> >class MockFunction<R(A0, A1, A2, A3, A4, A5, A6)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Result Call(typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument1 gmock_a1, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument2 gmock_a2, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument3 gmock_a3, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument4 gmock_a4, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument5 gmock_a5, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument6 gmock_a6, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument7 gmock_a7) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::ArgumentTuple>::value == 7))> this_method_does_not_take_7_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::ArgumentTuple>::value == 7) ? 1 : -1]; gmock7_Call_10193.SetOwnerAndName(this, "Call"); return gmock7_Call_10193.Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); } ::testing::MockSpec<R(A0, A1, A2, A3, A4, A5, A6)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument1>& gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument2>& gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument3>& gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument4>& gmock_a4, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument5>& gmock_a5, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument6>& gmock_a6, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6)>::Argument7>& gmock_a7) { gmock7_Call_10193.RegisterOwner(this); return gmock7_Call_10193.With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7); } mutable ::testing::FunctionMocker<R(A0, A1, A2, A3, A4, A5, A6)> gmock7_Call_10193; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0, typename A1, typename A2, typename A3, > typename A4, typename A5, typename A6, typename A7> >class MockFunction<R(A0, A1, A2, A3, A4, A5, A6, A7)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Result Call(typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument1 gmock_a1, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument2 gmock_a2, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument3 gmock_a3, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument4 gmock_a4, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument5 gmock_a5, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument6 gmock_a6, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument7 gmock_a7, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument8 gmock_a8) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::ArgumentTuple>::value == 8))> this_method_does_not_take_8_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::ArgumentTuple>::value == 8) ? 1 : -1]; gmock8_Call_10205.SetOwnerAndName(this, "Call"); return gmock8_Call_10205.Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8); } ::testing::MockSpec<R(A0, A1, A2, A3, A4, A5, A6, A7)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument1>& gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument2>& gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument3>& gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument4>& gmock_a4, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument5>& gmock_a5, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument6>& gmock_a6, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument7>& gmock_a7, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7)>::Argument8>& gmock_a8) { gmock8_Call_10205.RegisterOwner(this); return gmock8_Call_10205.With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8); } mutable ::testing::FunctionMocker<R(A0, A1, A2, A3, A4, A5, A6, A7)> gmock8_Call_10205; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0, typename A1, typename A2, typename A3, > typename A4, typename A5, typename A6, typename A7, typename A8> >class MockFunction<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Result Call(typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument1 gmock_a1, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument2 gmock_a2, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument3 gmock_a3, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument4 gmock_a4, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument5 gmock_a5, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument6 gmock_a6, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument7 gmock_a7, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument8 gmock_a8, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument9 gmock_a9) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::ArgumentTuple>::value == 9))> this_method_does_not_take_9_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::ArgumentTuple>::value == 9) ? 1 : -1]; gmock9_Call_10217.SetOwnerAndName(this, "Call"); return gmock9_Call_10217.Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9); } ::testing::MockSpec<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument1>& gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument2>& gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument3>& gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument4>& gmock_a4, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument5>& gmock_a5, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument6>& gmock_a6, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument7>& gmock_a7, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument8>& gmock_a8, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::Argument9>& gmock_a9) { gmock9_Call_10217.RegisterOwner(this); return gmock9_Call_10217.With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9); } mutable ::testing::FunctionMocker<R(A0, A1, A2, A3, A4, A5, A6, A7, A8)> gmock9_Call_10217; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >template <typename R, typename A0, typename A1, typename A2, typename A3, > typename A4, typename A5, typename A6, typename A7, typename A8, > typename A9> >class MockFunction<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> { > public: > MockFunction() {} > > typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Result Call(typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument1 gmock_a1, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument2 gmock_a2, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument3 gmock_a3, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument4 gmock_a4, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument5 gmock_a5, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument6 gmock_a6, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument7 gmock_a7, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument8 gmock_a8, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument9 gmock_a9, typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument10 gmock_a10) { typedef ::testing::internal::CompileAssert<(bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::ArgumentTuple>::value == 10))> this_method_does_not_take_10_arguments[bool(::std::tr1::tuple_size< typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::ArgumentTuple>::value == 10) ? 1 : -1]; gmock10_Call_10230.SetOwnerAndName(this, "Call"); return gmock10_Call_10230.Invoke(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9, gmock_a10); } ::testing::MockSpec<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>& gmock_Call(const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument1>& gmock_a1, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument2>& gmock_a2, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument3>& gmock_a3, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument4>& gmock_a4, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument5>& gmock_a5, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument6>& gmock_a6, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument7>& gmock_a7, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument8>& gmock_a8, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument9>& gmock_a9, const ::testing::Matcher<typename ::testing::internal::Function<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::Argument10>& gmock_a10) { gmock10_Call_10230.RegisterOwner(this); return gmock10_Call_10230.With(gmock_a1, gmock_a2, gmock_a3, gmock_a4, gmock_a5, gmock_a6, gmock_a7, gmock_a8, gmock_a9, gmock_a10); } mutable ::testing::FunctionMocker<R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> gmock10_Call_10230; > > private: > MockFunction(MockFunction const &); void operator=(MockFunction const &); >}; > >} ># 10277 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_MATCHERS_H_ > > > > > >namespace testing { >namespace internal { > > >#define GMOCK_FIELD_TYPE_(Tuple,i) typename ::std::tr1::tuple_element<i, Tuple>::type ># 10301 "../gtest_contrib/gmock/gmock.h" >template <class Tuple, int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, > int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, > int k9 = -1> >class TupleFields; > > >template <class Tuple, int k0, int k1, int k2, int k3, int k4, int k5, int k6, > int k7, int k8, int k9> >class TupleFields { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type, > typename ::std::tr1::tuple_element<k1, Tuple>::type, typename ::std::tr1::tuple_element<k2, Tuple>::type, > typename ::std::tr1::tuple_element<k3, Tuple>::type, typename ::std::tr1::tuple_element<k4, Tuple>::type, > typename ::std::tr1::tuple_element<k5, Tuple>::type, typename ::std::tr1::tuple_element<k6, Tuple>::type, > typename ::std::tr1::tuple_element<k7, Tuple>::type, typename ::std::tr1::tuple_element<k8, Tuple>::type, > typename ::std::tr1::tuple_element<k9, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t), get<k1>(t), get<k2>(t), get<k3>(t), get<k4>(t), > get<k5>(t), get<k6>(t), get<k7>(t), get<k8>(t), get<k9>(t)); > } >}; > > > >template <class Tuple> >class TupleFields<Tuple, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1> { > public: > typedef ::std::tr1::tuple<> type; > static type GetSelectedFields(const Tuple& ) { > using ::std::tr1::get; > return type(); > } >}; > >template <class Tuple, int k0> >class TupleFields<Tuple, k0, -1, -1, -1, -1, -1, -1, -1, -1, -1> { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t)); > } >}; > >template <class Tuple, int k0, int k1> >class TupleFields<Tuple, k0, k1, -1, -1, -1, -1, -1, -1, -1, -1> { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type, > typename ::std::tr1::tuple_element<k1, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t), get<k1>(t)); > } >}; > >template <class Tuple, int k0, int k1, int k2> >class TupleFields<Tuple, k0, k1, k2, -1, -1, -1, -1, -1, -1, -1> { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type, > typename ::std::tr1::tuple_element<k1, Tuple>::type, typename ::std::tr1::tuple_element<k2, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t), get<k1>(t), get<k2>(t)); > } >}; > >template <class Tuple, int k0, int k1, int k2, int k3> >class TupleFields<Tuple, k0, k1, k2, k3, -1, -1, -1, -1, -1, -1> { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type, > typename ::std::tr1::tuple_element<k1, Tuple>::type, typename ::std::tr1::tuple_element<k2, Tuple>::type, > typename ::std::tr1::tuple_element<k3, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t), get<k1>(t), get<k2>(t), get<k3>(t)); > } >}; > >template <class Tuple, int k0, int k1, int k2, int k3, int k4> >class TupleFields<Tuple, k0, k1, k2, k3, k4, -1, -1, -1, -1, -1> { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type, > typename ::std::tr1::tuple_element<k1, Tuple>::type, typename ::std::tr1::tuple_element<k2, Tuple>::type, > typename ::std::tr1::tuple_element<k3, Tuple>::type, typename ::std::tr1::tuple_element<k4, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t), get<k1>(t), get<k2>(t), get<k3>(t), get<k4>(t)); > } >}; > >template <class Tuple, int k0, int k1, int k2, int k3, int k4, int k5> >class TupleFields<Tuple, k0, k1, k2, k3, k4, k5, -1, -1, -1, -1> { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type, > typename ::std::tr1::tuple_element<k1, Tuple>::type, typename ::std::tr1::tuple_element<k2, Tuple>::type, > typename ::std::tr1::tuple_element<k3, Tuple>::type, typename ::std::tr1::tuple_element<k4, Tuple>::type, > typename ::std::tr1::tuple_element<k5, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t), get<k1>(t), get<k2>(t), get<k3>(t), get<k4>(t), > get<k5>(t)); > } >}; > >template <class Tuple, int k0, int k1, int k2, int k3, int k4, int k5, int k6> >class TupleFields<Tuple, k0, k1, k2, k3, k4, k5, k6, -1, -1, -1> { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type, > typename ::std::tr1::tuple_element<k1, Tuple>::type, typename ::std::tr1::tuple_element<k2, Tuple>::type, > typename ::std::tr1::tuple_element<k3, Tuple>::type, typename ::std::tr1::tuple_element<k4, Tuple>::type, > typename ::std::tr1::tuple_element<k5, Tuple>::type, typename ::std::tr1::tuple_element<k6, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t), get<k1>(t), get<k2>(t), get<k3>(t), get<k4>(t), > get<k5>(t), get<k6>(t)); > } >}; > >template <class Tuple, int k0, int k1, int k2, int k3, int k4, int k5, int k6, > int k7> >class TupleFields<Tuple, k0, k1, k2, k3, k4, k5, k6, k7, -1, -1> { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type, > typename ::std::tr1::tuple_element<k1, Tuple>::type, typename ::std::tr1::tuple_element<k2, Tuple>::type, > typename ::std::tr1::tuple_element<k3, Tuple>::type, typename ::std::tr1::tuple_element<k4, Tuple>::type, > typename ::std::tr1::tuple_element<k5, Tuple>::type, typename ::std::tr1::tuple_element<k6, Tuple>::type, > typename ::std::tr1::tuple_element<k7, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t), get<k1>(t), get<k2>(t), get<k3>(t), get<k4>(t), > get<k5>(t), get<k6>(t), get<k7>(t)); > } >}; > >template <class Tuple, int k0, int k1, int k2, int k3, int k4, int k5, int k6, > int k7, int k8> >class TupleFields<Tuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, -1> { > public: > typedef ::std::tr1::tuple<typename ::std::tr1::tuple_element<k0, Tuple>::type, > typename ::std::tr1::tuple_element<k1, Tuple>::type, typename ::std::tr1::tuple_element<k2, Tuple>::type, > typename ::std::tr1::tuple_element<k3, Tuple>::type, typename ::std::tr1::tuple_element<k4, Tuple>::type, > typename ::std::tr1::tuple_element<k5, Tuple>::type, typename ::std::tr1::tuple_element<k6, Tuple>::type, > typename ::std::tr1::tuple_element<k7, Tuple>::type, typename ::std::tr1::tuple_element<k8, Tuple>::type> type; > static type GetSelectedFields(const Tuple& t) { > using ::std::tr1::get; > return type(get<k0>(t), get<k1>(t), get<k2>(t), get<k3>(t), get<k4>(t), > get<k5>(t), get<k6>(t), get<k7>(t), get<k8>(t)); > } >}; > >#undef GMOCK_FIELD_TYPE_ > > >template <class ArgsTuple, int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1, > int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, int k8 = -1, > int k9 = -1> >class ArgsMatcherImpl : public MatcherInterface<ArgsTuple> { > public: > > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<ArgsTuple>::type>::type RawArgsTuple; > typedef typename internal::TupleFields<RawArgsTuple, k0, k1, k2, k3, k4, k5, > k6, k7, k8, k9>::type SelectedArgs; > typedef Matcher<const SelectedArgs&> MonomorphicInnerMatcher; > > template <typename InnerMatcher> > explicit ArgsMatcherImpl(const InnerMatcher& inner_matcher) > : inner_matcher_(SafeMatcherCast<const SelectedArgs&>(inner_matcher)) {} > > virtual bool MatchAndExplain(ArgsTuple args, > MatchResultListener* listener) const { > const SelectedArgs& selected_args = GetSelectedArgs(args); > if (!listener->IsInterested()) > return inner_matcher_.Matches(selected_args); > > PrintIndices(listener->stream()); > *listener << "are " << PrintToString(selected_args); > > StringMatchResultListener inner_listener; > const bool match = inner_matcher_.MatchAndExplain(selected_args, > &inner_listener); > PrintIfNotEmpty(inner_listener.str(), listener->stream()); > return match; > } > > virtual void DescribeTo(::std::ostream* os) const { > *os << "are a tuple "; > PrintIndices(os); > inner_matcher_.DescribeTo(os); > } > > virtual void DescribeNegationTo(::std::ostream* os) const { > *os << "are a tuple "; > PrintIndices(os); > inner_matcher_.DescribeNegationTo(os); > } > > private: > static SelectedArgs GetSelectedArgs(ArgsTuple args) { > return TupleFields<RawArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, > k9>::GetSelectedFields(args); > } > > > static void PrintIndices(::std::ostream* os) { > *os << "whose fields ("; > const int indices[10] = { k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 }; > for (int i = 0; i < 10; i++) { > if (indices[i] < 0) > break; > > if (i >= 1) > *os << ", "; > > *os << "#" << indices[i]; > } > *os << ") "; > } > > const MonomorphicInnerMatcher inner_matcher_; > > void operator=(ArgsMatcherImpl const &); >}; > >template <class InnerMatcher, int k0 = -1, int k1 = -1, int k2 = -1, > int k3 = -1, int k4 = -1, int k5 = -1, int k6 = -1, int k7 = -1, > int k8 = -1, int k9 = -1> >class ArgsMatcher { > public: > explicit ArgsMatcher(const InnerMatcher& inner_matcher) > : inner_matcher_(inner_matcher) {} > > template <typename ArgsTuple> > operator Matcher<ArgsTuple>() const { > return MakeMatcher(new ArgsMatcherImpl<ArgsTuple, k0, k1, k2, k3, k4, k5, > k6, k7, k8, k9>(inner_matcher_)); > } > > private: > const InnerMatcher inner_matcher_; > > void operator=(ArgsMatcher const &); >}; > > > >template <typename T1> >class ElementsAreMatcher1 { > public: > explicit ElementsAreMatcher1(const T1& e1) : e1_(e1) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > > > > > > > const Matcher<const Element&> matcher = > MatcherCast<const Element&>(e1_); > return MakeMatcher(new ElementsAreMatcherImpl<Container>(&matcher, 1)); > } > > private: > const T1& e1_; > > void operator=(ElementsAreMatcher1 const &); >}; > >template <typename T1, typename T2> >class ElementsAreMatcher2 { > public: > ElementsAreMatcher2(const T1& e1, const T2& e2) : e1_(e1), e2_(e2) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&> matchers[] = { > MatcherCast<const Element&>(e1_), > MatcherCast<const Element&>(e2_), > }; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 2)); > } > > private: > const T1& e1_; > const T2& e2_; > > void operator=(ElementsAreMatcher2 const &); >}; > >template <typename T1, typename T2, typename T3> >class ElementsAreMatcher3 { > public: > ElementsAreMatcher3(const T1& e1, const T2& e2, const T3& e3) : e1_(e1), > e2_(e2), e3_(e3) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&> matchers[] = { > MatcherCast<const Element&>(e1_), > MatcherCast<const Element&>(e2_), > MatcherCast<const Element&>(e3_), > }; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 3)); > } > > private: > const T1& e1_; > const T2& e2_; > const T3& e3_; > > void operator=(ElementsAreMatcher3 const &); >}; > >template <typename T1, typename T2, typename T3, typename T4> >class ElementsAreMatcher4 { > public: > ElementsAreMatcher4(const T1& e1, const T2& e2, const T3& e3, > const T4& e4) : e1_(e1), e2_(e2), e3_(e3), e4_(e4) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&> matchers[] = { > MatcherCast<const Element&>(e1_), > MatcherCast<const Element&>(e2_), > MatcherCast<const Element&>(e3_), > MatcherCast<const Element&>(e4_), > }; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 4)); > } > > private: > const T1& e1_; > const T2& e2_; > const T3& e3_; > const T4& e4_; > > void operator=(ElementsAreMatcher4 const &); >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5> >class ElementsAreMatcher5 { > public: > ElementsAreMatcher5(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5) : e1_(e1), e2_(e2), e3_(e3), e4_(e4), e5_(e5) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&> matchers[] = { > MatcherCast<const Element&>(e1_), > MatcherCast<const Element&>(e2_), > MatcherCast<const Element&>(e3_), > MatcherCast<const Element&>(e4_), > MatcherCast<const Element&>(e5_), > }; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 5)); > } > > private: > const T1& e1_; > const T2& e2_; > const T3& e3_; > const T4& e4_; > const T5& e5_; > > void operator=(ElementsAreMatcher5 const &); >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6> >class ElementsAreMatcher6 { > public: > ElementsAreMatcher6(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6) : e1_(e1), e2_(e2), e3_(e3), e4_(e4), > e5_(e5), e6_(e6) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&> matchers[] = { > MatcherCast<const Element&>(e1_), > MatcherCast<const Element&>(e2_), > MatcherCast<const Element&>(e3_), > MatcherCast<const Element&>(e4_), > MatcherCast<const Element&>(e5_), > MatcherCast<const Element&>(e6_), > }; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 6)); > } > > private: > const T1& e1_; > const T2& e2_; > const T3& e3_; > const T4& e4_; > const T5& e5_; > const T6& e6_; > > void operator=(ElementsAreMatcher6 const &); >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7> >class ElementsAreMatcher7 { > public: > ElementsAreMatcher7(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6, const T7& e7) : e1_(e1), e2_(e2), e3_(e3), > e4_(e4), e5_(e5), e6_(e6), e7_(e7) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&> matchers[] = { > MatcherCast<const Element&>(e1_), > MatcherCast<const Element&>(e2_), > MatcherCast<const Element&>(e3_), > MatcherCast<const Element&>(e4_), > MatcherCast<const Element&>(e5_), > MatcherCast<const Element&>(e6_), > MatcherCast<const Element&>(e7_), > }; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 7)); > } > > private: > const T1& e1_; > const T2& e2_; > const T3& e3_; > const T4& e4_; > const T5& e5_; > const T6& e6_; > const T7& e7_; > > void operator=(ElementsAreMatcher7 const &); >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8> >class ElementsAreMatcher8 { > public: > ElementsAreMatcher8(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6, const T7& e7, const T8& e8) : e1_(e1), > e2_(e2), e3_(e3), e4_(e4), e5_(e5), e6_(e6), e7_(e7), e8_(e8) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&> matchers[] = { > MatcherCast<const Element&>(e1_), > MatcherCast<const Element&>(e2_), > MatcherCast<const Element&>(e3_), > MatcherCast<const Element&>(e4_), > MatcherCast<const Element&>(e5_), > MatcherCast<const Element&>(e6_), > MatcherCast<const Element&>(e7_), > MatcherCast<const Element&>(e8_), > }; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 8)); > } > > private: > const T1& e1_; > const T2& e2_; > const T3& e3_; > const T4& e4_; > const T5& e5_; > const T6& e6_; > const T7& e7_; > const T8& e8_; > > void operator=(ElementsAreMatcher8 const &); >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9> >class ElementsAreMatcher9 { > public: > ElementsAreMatcher9(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6, const T7& e7, const T8& e8, > const T9& e9) : e1_(e1), e2_(e2), e3_(e3), e4_(e4), e5_(e5), e6_(e6), > e7_(e7), e8_(e8), e9_(e9) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&> matchers[] = { > MatcherCast<const Element&>(e1_), > MatcherCast<const Element&>(e2_), > MatcherCast<const Element&>(e3_), > MatcherCast<const Element&>(e4_), > MatcherCast<const Element&>(e5_), > MatcherCast<const Element&>(e6_), > MatcherCast<const Element&>(e7_), > MatcherCast<const Element&>(e8_), > MatcherCast<const Element&>(e9_), > }; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 9)); > } > > private: > const T1& e1_; > const T2& e2_; > const T3& e3_; > const T4& e4_; > const T5& e5_; > const T6& e6_; > const T7& e7_; > const T8& e8_; > const T9& e9_; > > void operator=(ElementsAreMatcher9 const &); >}; > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10> >class ElementsAreMatcher10 { > public: > ElementsAreMatcher10(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6, const T7& e7, const T8& e8, const T9& e9, > const T10& e10) : e1_(e1), e2_(e2), e3_(e3), e4_(e4), e5_(e5), e6_(e6), > e7_(e7), e8_(e8), e9_(e9), e10_(e10) {} > > template <typename Container> > operator Matcher<Container>() const { > typedef typename ::testing::internal::RemoveConst<typename ::testing::internal::RemoveReference<Container>::type>::type RawContainer; > typedef typename internal::StlContainerView<RawContainer>::type::value_type > Element; > > const Matcher<const Element&> matchers[] = { > MatcherCast<const Element&>(e1_), > MatcherCast<const Element&>(e2_), > MatcherCast<const Element&>(e3_), > MatcherCast<const Element&>(e4_), > MatcherCast<const Element&>(e5_), > MatcherCast<const Element&>(e6_), > MatcherCast<const Element&>(e7_), > MatcherCast<const Element&>(e8_), > MatcherCast<const Element&>(e9_), > MatcherCast<const Element&>(e10_), > }; > > return MakeMatcher(new ElementsAreMatcherImpl<Container>(matchers, 10)); > } > > private: > const T1& e1_; > const T2& e2_; > const T3& e3_; > const T4& e4_; > const T5& e5_; > const T6& e6_; > const T7& e7_; > const T8& e8_; > const T9& e9_; > const T10& e10_; > > void operator=(ElementsAreMatcher10 const &); >}; > >} > > > > >template <typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher>(matcher); >} > >template <int k1, typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1>(matcher); >} > >template <int k1, int k2, typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1, k2> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1, k2>(matcher); >} > >template <int k1, int k2, int k3, typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1, k2, k3> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1, k2, k3>(matcher); >} > >template <int k1, int k2, int k3, int k4, typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4>(matcher); >} > >template <int k1, int k2, int k3, int k4, int k5, typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5>(matcher); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6>(matcher); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, > typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6, k7> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6, > k7>(matcher); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8, > typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6, k7, k8> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6, k7, > k8>(matcher); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8, > int k9, typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6, k7, k8, k9> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6, k7, k8, > k9>(matcher); >} > >template <int k1, int k2, int k3, int k4, int k5, int k6, int k7, int k8, > int k9, int k10, typename InnerMatcher> >inline internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6, k7, k8, k9, > k10> >Args(const InnerMatcher& matcher) { > return internal::ArgsMatcher<InnerMatcher, k1, k2, k3, k4, k5, k6, k7, k8, > k9, k10>(matcher); >} ># 10991 "../gtest_contrib/gmock/gmock.h" >inline internal::ElementsAreMatcher0 ElementsAre() { > return internal::ElementsAreMatcher0(); >} > >template <typename T1> >inline internal::ElementsAreMatcher1<T1> ElementsAre(const T1& e1) { > return internal::ElementsAreMatcher1<T1>(e1); >} > >template <typename T1, typename T2> >inline internal::ElementsAreMatcher2<T1, T2> ElementsAre(const T1& e1, > const T2& e2) { > return internal::ElementsAreMatcher2<T1, T2>(e1, e2); >} > >template <typename T1, typename T2, typename T3> >inline internal::ElementsAreMatcher3<T1, T2, T3> ElementsAre(const T1& e1, > const T2& e2, const T3& e3) { > return internal::ElementsAreMatcher3<T1, T2, T3>(e1, e2, e3); >} > >template <typename T1, typename T2, typename T3, typename T4> >inline internal::ElementsAreMatcher4<T1, T2, T3, T4> ElementsAre(const T1& e1, > const T2& e2, const T3& e3, const T4& e4) { > return internal::ElementsAreMatcher4<T1, T2, T3, T4>(e1, e2, e3, e4); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5> >inline internal::ElementsAreMatcher5<T1, T2, T3, T4, > T5> ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5) { > return internal::ElementsAreMatcher5<T1, T2, T3, T4, T5>(e1, e2, e3, e4, e5); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6> >inline internal::ElementsAreMatcher6<T1, T2, T3, T4, T5, > T6> ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6) { > return internal::ElementsAreMatcher6<T1, T2, T3, T4, T5, T6>(e1, e2, e3, e4, > e5, e6); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7> >inline internal::ElementsAreMatcher7<T1, T2, T3, T4, T5, T6, > T7> ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6, const T7& e7) { > return internal::ElementsAreMatcher7<T1, T2, T3, T4, T5, T6, T7>(e1, e2, e3, > e4, e5, e6, e7); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8> >inline internal::ElementsAreMatcher8<T1, T2, T3, T4, T5, T6, T7, > T8> ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6, const T7& e7, const T8& e8) { > return internal::ElementsAreMatcher8<T1, T2, T3, T4, T5, T6, T7, T8>(e1, e2, > e3, e4, e5, e6, e7, e8); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9> >inline internal::ElementsAreMatcher9<T1, T2, T3, T4, T5, T6, T7, T8, > T9> ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6, const T7& e7, const T8& e8, const T9& e9) { > return internal::ElementsAreMatcher9<T1, T2, T3, T4, T5, T6, T7, T8, T9>(e1, > e2, e3, e4, e5, e6, e7, e8, e9); >} > >template <typename T1, typename T2, typename T3, typename T4, typename T5, > typename T6, typename T7, typename T8, typename T9, typename T10> >inline internal::ElementsAreMatcher10<T1, T2, T3, T4, T5, T6, T7, T8, T9, > T10> ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, > const T5& e5, const T6& e6, const T7& e7, const T8& e8, const T9& e9, > const T10& e10) { > return internal::ElementsAreMatcher10<T1, T2, T3, T4, T5, T6, T7, T8, T9, > T10>(e1, e2, e3, e4, e5, e6, e7, e8, e9, e10); >} > > > > > > > >template <typename T> >inline internal::ElementsAreArrayMatcher<T> ElementsAreArray( > const T* first, size_t count) { > return internal::ElementsAreArrayMatcher<T>(first, count); >} > >template <typename T, size_t N> >inline internal::ElementsAreArrayMatcher<T> >ElementsAreArray(const T (&array)[N]) { > return internal::ElementsAreArrayMatcher<T>(array, N); >} > > > > >template <typename Matcher1, typename Matcher2> >inline internal::BothOfMatcher<Matcher1, Matcher2> >AllOf(Matcher1 m1, Matcher2 m2) { > return internal::BothOfMatcher<Matcher1, Matcher2>(m1, m2); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3> >inline internal::BothOfMatcher<Matcher1, internal::BothOfMatcher<Matcher2, > Matcher3> > >AllOf(Matcher1 m1, Matcher2 m2, Matcher3 m3) { > return ::testing::AllOf(m1, ::testing::AllOf(m2, m3)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4> >inline internal::BothOfMatcher<Matcher1, internal::BothOfMatcher<Matcher2, > internal::BothOfMatcher<Matcher3, Matcher4> > > >AllOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4) { > return ::testing::AllOf(m1, ::testing::AllOf(m2, m3, m4)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5> >inline internal::BothOfMatcher<Matcher1, internal::BothOfMatcher<Matcher2, > internal::BothOfMatcher<Matcher3, internal::BothOfMatcher<Matcher4, > Matcher5> > > > >AllOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5) { > return ::testing::AllOf(m1, ::testing::AllOf(m2, m3, m4, m5)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6> >inline internal::BothOfMatcher<Matcher1, internal::BothOfMatcher<Matcher2, > internal::BothOfMatcher<Matcher3, internal::BothOfMatcher<Matcher4, > internal::BothOfMatcher<Matcher5, Matcher6> > > > > >AllOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6) { > return ::testing::AllOf(m1, ::testing::AllOf(m2, m3, m4, m5, m6)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6, typename Matcher7> >inline internal::BothOfMatcher<Matcher1, internal::BothOfMatcher<Matcher2, > internal::BothOfMatcher<Matcher3, internal::BothOfMatcher<Matcher4, > internal::BothOfMatcher<Matcher5, internal::BothOfMatcher<Matcher6, > Matcher7> > > > > > >AllOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6, Matcher7 m7) { > return ::testing::AllOf(m1, ::testing::AllOf(m2, m3, m4, m5, m6, m7)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6, typename Matcher7, > typename Matcher8> >inline internal::BothOfMatcher<Matcher1, internal::BothOfMatcher<Matcher2, > internal::BothOfMatcher<Matcher3, internal::BothOfMatcher<Matcher4, > internal::BothOfMatcher<Matcher5, internal::BothOfMatcher<Matcher6, > internal::BothOfMatcher<Matcher7, Matcher8> > > > > > > >AllOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6, Matcher7 m7, Matcher8 m8) { > return ::testing::AllOf(m1, ::testing::AllOf(m2, m3, m4, m5, m6, m7, m8)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6, typename Matcher7, > typename Matcher8, typename Matcher9> >inline internal::BothOfMatcher<Matcher1, internal::BothOfMatcher<Matcher2, > internal::BothOfMatcher<Matcher3, internal::BothOfMatcher<Matcher4, > internal::BothOfMatcher<Matcher5, internal::BothOfMatcher<Matcher6, > internal::BothOfMatcher<Matcher7, internal::BothOfMatcher<Matcher8, > Matcher9> > > > > > > > >AllOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6, Matcher7 m7, Matcher8 m8, Matcher9 m9) { > return ::testing::AllOf(m1, ::testing::AllOf(m2, m3, m4, m5, m6, m7, m8, m9)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6, typename Matcher7, > typename Matcher8, typename Matcher9, typename Matcher10> >inline internal::BothOfMatcher<Matcher1, internal::BothOfMatcher<Matcher2, > internal::BothOfMatcher<Matcher3, internal::BothOfMatcher<Matcher4, > internal::BothOfMatcher<Matcher5, internal::BothOfMatcher<Matcher6, > internal::BothOfMatcher<Matcher7, internal::BothOfMatcher<Matcher8, > internal::BothOfMatcher<Matcher9, Matcher10> > > > > > > > > >AllOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6, Matcher7 m7, Matcher8 m8, Matcher9 m9, Matcher10 m10) { > return ::testing::AllOf(m1, ::testing::AllOf(m2, m3, m4, m5, m6, m7, m8, m9, > m10)); >} > > > > >template <typename Matcher1, typename Matcher2> >inline internal::EitherOfMatcher<Matcher1, Matcher2> >AnyOf(Matcher1 m1, Matcher2 m2) { > return internal::EitherOfMatcher<Matcher1, Matcher2>(m1, m2); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3> >inline internal::EitherOfMatcher<Matcher1, internal::EitherOfMatcher<Matcher2, > Matcher3> > >AnyOf(Matcher1 m1, Matcher2 m2, Matcher3 m3) { > return ::testing::AnyOf(m1, ::testing::AnyOf(m2, m3)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4> >inline internal::EitherOfMatcher<Matcher1, internal::EitherOfMatcher<Matcher2, > internal::EitherOfMatcher<Matcher3, Matcher4> > > >AnyOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4) { > return ::testing::AnyOf(m1, ::testing::AnyOf(m2, m3, m4)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5> >inline internal::EitherOfMatcher<Matcher1, internal::EitherOfMatcher<Matcher2, > internal::EitherOfMatcher<Matcher3, internal::EitherOfMatcher<Matcher4, > Matcher5> > > > >AnyOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5) { > return ::testing::AnyOf(m1, ::testing::AnyOf(m2, m3, m4, m5)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6> >inline internal::EitherOfMatcher<Matcher1, internal::EitherOfMatcher<Matcher2, > internal::EitherOfMatcher<Matcher3, internal::EitherOfMatcher<Matcher4, > internal::EitherOfMatcher<Matcher5, Matcher6> > > > > >AnyOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6) { > return ::testing::AnyOf(m1, ::testing::AnyOf(m2, m3, m4, m5, m6)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6, typename Matcher7> >inline internal::EitherOfMatcher<Matcher1, internal::EitherOfMatcher<Matcher2, > internal::EitherOfMatcher<Matcher3, internal::EitherOfMatcher<Matcher4, > internal::EitherOfMatcher<Matcher5, internal::EitherOfMatcher<Matcher6, > Matcher7> > > > > > >AnyOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6, Matcher7 m7) { > return ::testing::AnyOf(m1, ::testing::AnyOf(m2, m3, m4, m5, m6, m7)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6, typename Matcher7, > typename Matcher8> >inline internal::EitherOfMatcher<Matcher1, internal::EitherOfMatcher<Matcher2, > internal::EitherOfMatcher<Matcher3, internal::EitherOfMatcher<Matcher4, > internal::EitherOfMatcher<Matcher5, internal::EitherOfMatcher<Matcher6, > internal::EitherOfMatcher<Matcher7, Matcher8> > > > > > > >AnyOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6, Matcher7 m7, Matcher8 m8) { > return ::testing::AnyOf(m1, ::testing::AnyOf(m2, m3, m4, m5, m6, m7, m8)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6, typename Matcher7, > typename Matcher8, typename Matcher9> >inline internal::EitherOfMatcher<Matcher1, internal::EitherOfMatcher<Matcher2, > internal::EitherOfMatcher<Matcher3, internal::EitherOfMatcher<Matcher4, > internal::EitherOfMatcher<Matcher5, internal::EitherOfMatcher<Matcher6, > internal::EitherOfMatcher<Matcher7, internal::EitherOfMatcher<Matcher8, > Matcher9> > > > > > > > >AnyOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6, Matcher7 m7, Matcher8 m8, Matcher9 m9) { > return ::testing::AnyOf(m1, ::testing::AnyOf(m2, m3, m4, m5, m6, m7, m8, m9)); >} > >template <typename Matcher1, typename Matcher2, typename Matcher3, > typename Matcher4, typename Matcher5, typename Matcher6, typename Matcher7, > typename Matcher8, typename Matcher9, typename Matcher10> >inline internal::EitherOfMatcher<Matcher1, internal::EitherOfMatcher<Matcher2, > internal::EitherOfMatcher<Matcher3, internal::EitherOfMatcher<Matcher4, > internal::EitherOfMatcher<Matcher5, internal::EitherOfMatcher<Matcher6, > internal::EitherOfMatcher<Matcher7, internal::EitherOfMatcher<Matcher8, > internal::EitherOfMatcher<Matcher9, Matcher10> > > > > > > > > >AnyOf(Matcher1 m1, Matcher2 m2, Matcher3 m3, Matcher4 m4, Matcher5 m5, > Matcher6 m6, Matcher7 m7, Matcher8 m8, Matcher9 m9, Matcher10 m10) { > return ::testing::AnyOf(m1, ::testing::AnyOf(m2, m3, m4, m5, m6, m7, m8, m9, > m10)); >} > >} ># 11493 "../gtest_contrib/gmock/gmock.h" >#define MATCHER(name,description) class name ##Matcher { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl() {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<>())); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>()); } name ##Matcher() { } private: GTEST_DISALLOW_ASSIGN_(name ##Matcher); }; inline name ##Matcher name() { return name ##Matcher(); } template <typename arg_type> bool name ##Matcher::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 11540 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P(name,p0,description) template <typename p0 ##_type> class name ##MatcherP { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: explicit gmock_Impl(p0 ##_type gmock_p0) : p0(gmock_p0) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type>(p0))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0)); } name ##MatcherP(p0 ##_type gmock_p0) : p0(gmock_p0) { } p0 ##_type p0; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP); }; template <typename p0 ##_type> inline name ##MatcherP<p0 ##_type> name(p0 ##_type p0) { return name ##MatcherP<p0 ##_type>(p0); } template <typename p0 ##_type> template <typename arg_type> bool name ##MatcherP<p0 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 11592 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P2(name,p0,p1,description) template <typename p0 ##_type, typename p1 ##_type> class name ##MatcherP2 { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1) : p0(gmock_p0), p1(gmock_p1) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; p1 ##_type p1; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type, p1 ##_type>(p0, p1))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0, p1)); } name ##MatcherP2(p0 ##_type gmock_p0, p1 ##_type gmock_p1) : p0(gmock_p0), p1(gmock_p1) { } p0 ##_type p0; p1 ##_type p1; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP2); }; template <typename p0 ##_type, typename p1 ##_type> inline name ##MatcherP2<p0 ##_type, p1 ##_type> name(p0 ##_type p0, p1 ##_type p1) { return name ##MatcherP2<p0 ##_type, p1 ##_type>(p0, p1); } template <typename p0 ##_type, typename p1 ##_type> template <typename arg_type> bool name ##MatcherP2<p0 ##_type, p1 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 11649 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P3(name,p0,p1,p2,description) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type> class name ##MatcherP3 { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type, p1 ##_type, p2 ##_type>(p0, p1, p2))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0, p1, p2)); } name ##MatcherP3(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2) { } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP3); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type> inline name ##MatcherP3<p0 ##_type, p1 ##_type, p2 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2) { return name ##MatcherP3<p0 ##_type, p1 ##_type, p2 ##_type>(p0, p1, p2); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type> template <typename arg_type> bool name ##MatcherP3<p0 ##_type, p1 ##_type, p2 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 11709 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P4(name,p0,p1,p2,p3,description) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type> class name ##MatcherP4 { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type>(p0, p1, p2, p3))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0, p1, p2, p3)); } name ##MatcherP4(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3) { } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP4); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type> inline name ##MatcherP4<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3) { return name ##MatcherP4<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type>(p0, p1, p2, p3); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type> template <typename arg_type> bool name ##MatcherP4<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 11778 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P5(name,p0,p1,p2,p3,p4,description) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type> class name ##MatcherP5 { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type>(p0, p1, p2, p3, p4))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0, p1, p2, p3, p4)); } name ##MatcherP5(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4) { } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP5); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type> inline name ##MatcherP5<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4) { return name ##MatcherP5<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type>(p0, p1, p2, p3, p4); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type> template <typename arg_type> bool name ##MatcherP5<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 11851 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P6(name,p0,p1,p2,p3,p4,p5,description) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type> class name ##MatcherP6 { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type>(p0, p1, p2, p3, p4, p5))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0, p1, p2, p3, p4, p5)); } name ##MatcherP6(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5) { } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP6); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type> inline name ##MatcherP6<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5) { return name ##MatcherP6<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type>(p0, p1, p2, p3, p4, p5); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type> template <typename arg_type> bool name ##MatcherP6<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 11926 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P7(name,p0,p1,p2,p3,p4,p5,p6,description) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type> class name ##MatcherP7 { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type>(p0, p1, p2, p3, p4, p5, p6))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0, p1, p2, p3, p4, p5, p6)); } name ##MatcherP7(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6) { } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP7); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type> inline name ##MatcherP7<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6) { return name ##MatcherP7<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type>(p0, p1, p2, p3, p4, p5, p6); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type> template <typename arg_type> bool name ##MatcherP7<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 12010 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P8(name,p0,p1,p2,p3,p4,p5,p6,p7,description) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type> class name ##MatcherP8 { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type>(p0, p1, p2, p3, p4, p5, p6, p7))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0, p1, p2, p3, p4, p5, p6, p7)); } name ##MatcherP8(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7) { } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP8); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type> inline name ##MatcherP8<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6, p7 ##_type p7) { return name ##MatcherP8<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type>(p0, p1, p2, p3, p4, p5, p6, p7); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type> template <typename arg_type> bool name ##MatcherP8<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 12099 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P9(name,p0,p1,p2,p3,p4,p5,p6,p7,p8,description) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type> class name ##MatcherP9 { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type>(p0, p1, p2, p3, p4, p5, p6, p7, p8))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0, p1, p2, p3, p4, p5, p6, p7, p8)); } name ##MatcherP9(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8) { } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP9); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type> inline name ##MatcherP9<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6, p7 ##_type p7, p8 ##_type p8) { return name ##MatcherP9<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type>(p0, p1, p2, p3, p4, p5, p6, p7, p8); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type> template <typename arg_type> bool name ##MatcherP9<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 12192 "../gtest_contrib/gmock/gmock.h" >#define MATCHER_P10(name,p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,description) template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type, typename p9 ##_type> class name ##MatcherP10 { public: template <typename arg_type> class gmock_Impl : public ::testing::MatcherInterface<arg_type> { public: gmock_Impl(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8, p9 ##_type gmock_p9) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8), p9(gmock_p9) {} virtual bool MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener) const; virtual void DescribeTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(false); } virtual void DescribeNegationTo(::std::ostream* gmock_os) const { *gmock_os << FormatDescription(true); } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; p9 ##_type p9; private: ::testing::internal::string FormatDescription(bool negation) const { const ::testing::internal::string gmock_description = (description); if (!gmock_description.empty()) return gmock_description; return ::testing::internal::FormatMatcherDescription( negation, #name, ::testing::internal::UniversalTersePrintTupleFieldsToStrings( ::std::tr1::tuple<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type, p9 ##_type>(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9))); } GTEST_DISALLOW_ASSIGN_(gmock_Impl); }; template <typename arg_type> operator ::testing::Matcher<arg_type>() const { return ::testing::Matcher<arg_type>( new gmock_Impl<arg_type>(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)); } name ##MatcherP10(p0 ##_type gmock_p0, p1 ##_type gmock_p1, p2 ##_type gmock_p2, p3 ##_type gmock_p3, p4 ##_type gmock_p4, p5 ##_type gmock_p5, p6 ##_type gmock_p6, p7 ##_type gmock_p7, p8 ##_type gmock_p8, p9 ##_type gmock_p9) : p0(gmock_p0), p1(gmock_p1), p2(gmock_p2), p3(gmock_p3), p4(gmock_p4), p5(gmock_p5), p6(gmock_p6), p7(gmock_p7), p8(gmock_p8), p9(gmock_p9) { } p0 ##_type p0; p1 ##_type p1; p2 ##_type p2; p3 ##_type p3; p4 ##_type p4; p5 ##_type p5; p6 ##_type p6; p7 ##_type p7; p8 ##_type p8; p9 ##_type p9; private: GTEST_DISALLOW_ASSIGN_(name ##MatcherP10); }; template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type, typename p9 ##_type> inline name ##MatcherP10<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type, p9 ##_type> name(p0 ##_type p0, p1 ##_type p1, p2 ##_type p2, p3 ##_type p3, p4 ##_type p4, p5 ##_type p5, p6 ##_type p6, p7 ##_type p7, p8 ##_type p8, p9 ##_type p9) { return name ##MatcherP10<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type, p9 ##_type>(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); } template <typename p0 ##_type, typename p1 ##_type, typename p2 ##_type, typename p3 ##_type, typename p4 ##_type, typename p5 ##_type, typename p6 ##_type, typename p7 ##_type, typename p8 ##_type, typename p9 ##_type> template <typename arg_type> bool name ##MatcherP10<p0 ##_type, p1 ##_type, p2 ##_type, p3 ##_type, p4 ##_type, p5 ##_type, p6 ##_type, p7 ##_type, p8 ##_type, p9 ##_type>::gmock_Impl<arg_type>::MatchAndExplain( arg_type arg, ::testing::MatchResultListener* result_listener GTEST_ATTRIBUTE_UNUSED_) const ># 12328 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_MORE_ACTIONS_H_ > > > > >namespace testing { >namespace internal { > > > > > > >template <typename FunctionImpl> >class InvokeAction { > public: > > > explicit InvokeAction(FunctionImpl function_impl) > : function_impl_(function_impl) {} > > template <typename Result, typename ArgumentTuple> > Result Perform(const ArgumentTuple& args) { > return InvokeHelper<Result, ArgumentTuple>::Invoke(function_impl_, args); > } > > private: > FunctionImpl function_impl_; > > void operator=(InvokeAction const &); >}; > > >template <class Class, typename MethodPtr> >class InvokeMethodAction { > public: > InvokeMethodAction(Class* obj_ptr, MethodPtr method_ptr) > : obj_ptr_(obj_ptr), method_ptr_(method_ptr) {} > > template <typename Result, typename ArgumentTuple> > Result Perform(const ArgumentTuple& args) const { > return InvokeHelper<Result, ArgumentTuple>::InvokeMethod( > obj_ptr_, method_ptr_, args); > } > > private: > Class* const obj_ptr_; > const MethodPtr method_ptr_; > > void operator=(InvokeMethodAction const &); >}; > >} > > > > > >template <typename FunctionImpl> >PolymorphicAction<internal::InvokeAction<FunctionImpl> > Invoke( > FunctionImpl function_impl) { > return MakePolymorphicAction( > internal::InvokeAction<FunctionImpl>(function_impl)); >} > > > >template <class Class, typename MethodPtr> >PolymorphicAction<internal::InvokeMethodAction<Class, MethodPtr> > Invoke( > Class* obj_ptr, MethodPtr method_ptr) { > return MakePolymorphicAction( > internal::InvokeMethodAction<Class, MethodPtr>(obj_ptr, method_ptr)); >} > > > > > >template <typename InnerAction> >inline internal::WithArgsAction<InnerAction> >WithoutArgs(const InnerAction& action) { > return internal::WithArgsAction<InnerAction>(action); >} > > > > > > >template <int k, typename InnerAction> >inline internal::WithArgsAction<InnerAction, k> >WithArg(const InnerAction& action) { > return internal::WithArgsAction<InnerAction, k>(action); >} ># 12434 "../gtest_contrib/gmock/gmock.h" >template <int k > class ReturnArgAction { public: ReturnArgAction () {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl () {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>()); } private: void operator=(ReturnArgAction const &); }; template <int k > inline ReturnArgAction< k > ReturnArg( ) { return ReturnArgAction< k >( ); } template <int k > template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnArgAction< k >::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > return std::tr1::get<k>(args); >} > > > >template <int k , typename pointer_type> class SaveArgActionP { public: SaveArgActionP (pointer_type gmock_p0) : pointer(gmock_p0) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (pointer_type gmock_p0) : pointer(gmock_p0) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; pointer_type pointer; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(pointer)); } pointer_type pointer; private: void operator=(SaveArgActionP const &); }; template <int k , typename pointer_type> inline SaveArgActionP< k , pointer_type> SaveArg( pointer_type pointer) { return SaveArgActionP< k , pointer_type>( pointer); } template <int k , typename pointer_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result SaveArgActionP< k , pointer_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > *pointer = ::std::tr1::get<k>(args); >} > > > >template <int k , typename pointer_type> class SaveArgPointeeActionP { public: SaveArgPointeeActionP (pointer_type gmock_p0) : pointer(gmock_p0) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (pointer_type gmock_p0) : pointer(gmock_p0) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; pointer_type pointer; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(pointer)); } pointer_type pointer; private: void operator=(SaveArgPointeeActionP const &); }; template <int k , typename pointer_type> inline SaveArgPointeeActionP< k , pointer_type> SaveArgPointee( pointer_type pointer) { return SaveArgPointeeActionP< k , pointer_type>( pointer); } template <int k , typename pointer_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result SaveArgPointeeActionP< k , pointer_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > *pointer = *::std::tr1::get<k>(args); >} > > > >template <int k , typename value_type> class SetArgRefereeActionP { public: SetArgRefereeActionP (value_type gmock_p0) : value(gmock_p0) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (value_type gmock_p0) : value(gmock_p0) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; value_type value; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(value)); } value_type value; private: void operator=(SetArgRefereeActionP const &); }; template <int k , typename value_type> inline SetArgRefereeActionP< k , value_type> SetArgReferee( value_type value) { return SetArgRefereeActionP< k , value_type>( value); } template <int k , typename value_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result SetArgRefereeActionP< k , value_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > typedef typename ::std::tr1::tuple_element<k, args_type>::type argk_type; > > > > typedef ::testing::internal::CompileAssert<(bool(internal::is_reference<argk_type>::value))> SetArgReferee_must_be_used_with_a_reference_argument[bool(internal::is_reference<argk_type>::value) ? 1 : -1] > ; > ::std::tr1::get<k>(args) = value; >} > > > > > > >template <int k , typename first_type, typename last_type> class SetArrayArgumentActionP2 { public: SetArrayArgumentActionP2 (first_type gmock_p0, last_type gmock_p1) : first(gmock_p0), last(gmock_p1) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl (first_type gmock_p0, last_type gmock_p1) : first(gmock_p0), last(gmock_p1) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; first_type first; last_type last; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>(first, last)); } first_type first; last_type last; private: void operator=(SetArrayArgumentActionP2 const &); }; template <int k , typename first_type, typename last_type> inline SetArrayArgumentActionP2< k , first_type, last_type> SetArrayArgument( first_type first, last_type last) { return SetArrayArgumentActionP2< k , first_type, last_type>( first, last); } template <int k , typename first_type, typename last_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result SetArrayArgumentActionP2< k , first_type, last_type>::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > > > > > > > ::std::copy(first, last, ::std::tr1::get<k>(args)); > > > >} > > > >template <int k > class DeleteArgAction { public: DeleteArgAction () {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl () {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>( new gmock_Impl<F>()); } private: void operator=(DeleteArgAction const &); }; template <int k > inline DeleteArgAction< k > DeleteArg( ) { return DeleteArgAction< k >( ); } template <int k > template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result DeleteArgAction< k >::gmock_Impl<F>:: gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const > > { > delete ::std::tr1::get<k>(args); >} > > >template <typename pointer_type> class ReturnPointeeActionP { public: ReturnPointeeActionP(pointer_type gmock_p0) : pointer(gmock_p0) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl(pointer_type gmock_p0) : pointer(gmock_p0) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; pointer_type pointer; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(pointer)); } pointer_type pointer; private: void operator=(ReturnPointeeActionP const &); }; template <typename pointer_type> inline ReturnPointeeActionP<pointer_type> ReturnPointee(pointer_type pointer) { return ReturnPointeeActionP<pointer_type>(pointer); } template <typename pointer_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ReturnPointeeActionP<pointer_type>::gmock_Impl<F>::gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const { return *pointer; } ># 12510 "../gtest_contrib/gmock/gmock.h" >template <typename exception_type> class ThrowActionP { public: ThrowActionP(exception_type gmock_p0) : exception(gmock_p0) {} template <typename F> class gmock_Impl : public ::testing::ActionInterface<F> { public: typedef F function_type; typedef typename ::testing::internal::Function<F>::Result return_type; typedef typename ::testing::internal::Function<F>::ArgumentTuple args_type; explicit gmock_Impl(exception_type gmock_p0) : exception(gmock_p0) {} virtual return_type Perform(const args_type& args) { return ::testing::internal::ActionHelper<return_type, gmock_Impl>:: Perform(this, args); } template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> return_type gmock_PerformImpl(const args_type& args, arg0_type arg0, arg1_type arg1, arg2_type arg2, arg3_type arg3, arg4_type arg4, arg5_type arg5, arg6_type arg6, arg7_type arg7, arg8_type arg8, arg9_type arg9) const; exception_type exception; private: void operator=(gmock_Impl const &); }; template <typename F> operator ::testing::Action<F>() const { return ::testing::Action<F>(new gmock_Impl<F>(exception)); } exception_type exception; private: void operator=(ThrowActionP const &); }; template <typename exception_type> inline ThrowActionP<exception_type> Throw(exception_type exception) { return ThrowActionP<exception_type>(exception); } template <typename exception_type> template <typename F> template <typename arg0_type, typename arg1_type, typename arg2_type, typename arg3_type, typename arg4_type, typename arg5_type, typename arg6_type, typename arg7_type, typename arg8_type, typename arg9_type> typename ::testing::internal::Function<F>::Result ThrowActionP<exception_type>::gmock_Impl<F>::gmock_PerformImpl( const args_type& args __attribute__ ((unused)), arg0_type arg0 __attribute__ ((unused)), arg1_type arg1 __attribute__ ((unused)), arg2_type arg2 __attribute__ ((unused)), arg3_type arg3 __attribute__ ((unused)), arg4_type arg4 __attribute__ ((unused)), arg5_type arg5 __attribute__ ((unused)), arg6_type arg6 __attribute__ ((unused)), arg7_type arg7 __attribute__ ((unused)), arg8_type arg8 __attribute__ ((unused)), arg9_type arg9 __attribute__ ((unused))) const { throw exception; } ># 12521 "../gtest_contrib/gmock/gmock.h" >} ># 12583 "../gtest_contrib/gmock/gmock.h" >#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_ > > >namespace testing { > >template <class MockClass> >class NiceMock : public MockClass { > public: > > > NiceMock() { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > > > template <typename A1> > explicit NiceMock(const A1& a1) : MockClass(a1) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > template <typename A1, typename A2> > NiceMock(const A1& a1, const A2& a2) : MockClass(a1, a2) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3> > NiceMock(const A1& a1, const A2& a2, const A3& a3) : MockClass(a1, a2, a3) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4> > NiceMock(const A1& a1, const A2& a2, const A3& a3, > const A4& a4) : MockClass(a1, a2, a3, a4) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5> > NiceMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5) : MockClass(a1, a2, a3, a4, a5) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6> > NiceMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6) : MockClass(a1, a2, a3, a4, a5, a6) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7> > NiceMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6, const A7& a7) : MockClass(a1, a2, a3, a4, a5, > a6, a7) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7, typename A8> > NiceMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6, const A7& a7, const A8& a8) : MockClass(a1, > a2, a3, a4, a5, a6, a7, a8) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7, typename A8, typename A9> > NiceMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6, const A7& a7, const A8& a8, > const A9& a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7, typename A8, typename A9, typename A10> > NiceMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6, const A7& a7, const A8& a8, const A9& a9, > const A10& a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { > ::testing::Mock::AllowUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > virtual ~NiceMock() { > ::testing::Mock::UnregisterCallReaction( > internal::ImplicitCast_<MockClass*>(this)); > } > > private: > NiceMock(NiceMock const &); void operator=(NiceMock const &); >}; > >template <class MockClass> >class StrictMock : public MockClass { > public: > > > StrictMock() { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1> > explicit StrictMock(const A1& a1) : MockClass(a1) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > template <typename A1, typename A2> > StrictMock(const A1& a1, const A2& a2) : MockClass(a1, a2) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3> > StrictMock(const A1& a1, const A2& a2, const A3& a3) : MockClass(a1, a2, a3) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4> > StrictMock(const A1& a1, const A2& a2, const A3& a3, > const A4& a4) : MockClass(a1, a2, a3, a4) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5> > StrictMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5) : MockClass(a1, a2, a3, a4, a5) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6> > StrictMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6) : MockClass(a1, a2, a3, a4, a5, a6) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7> > StrictMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6, const A7& a7) : MockClass(a1, a2, a3, a4, a5, > a6, a7) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7, typename A8> > StrictMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6, const A7& a7, const A8& a8) : MockClass(a1, > a2, a3, a4, a5, a6, a7, a8) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7, typename A8, typename A9> > StrictMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6, const A7& a7, const A8& a8, > const A9& a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > template <typename A1, typename A2, typename A3, typename A4, typename A5, > typename A6, typename A7, typename A8, typename A9, typename A10> > StrictMock(const A1& a1, const A2& a2, const A3& a3, const A4& a4, > const A5& a5, const A6& a6, const A7& a7, const A8& a8, const A9& a9, > const A10& a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { > ::testing::Mock::FailUninterestingCalls( > internal::ImplicitCast_<MockClass*>(this)); > } > > virtual ~StrictMock() { > ::testing::Mock::UnregisterCallReaction( > internal::ImplicitCast_<MockClass*>(this)); > } > > private: > StrictMock(StrictMock const &); void operator=(StrictMock const &); >}; > > > > > > > >template <typename MockClass> >class NiceMock<NiceMock<MockClass> >; >template <typename MockClass> >class NiceMock<StrictMock<MockClass> >; >template <typename MockClass> >class StrictMock<NiceMock<MockClass> >; >template <typename MockClass> >class StrictMock<StrictMock<MockClass> >; > >} > > > >namespace testing { > > >extern bool FLAGS_gmock_catch_leaked_mocks; >extern ::testing::internal::String FLAGS_gmock_verbose; ># 12814 "../gtest_contrib/gmock/gmock.h" >void InitGoogleMock(int* argc, char** argv); > > > >void InitGoogleMock(int* argc, wchar_t** argv); > >} ># 9159 "../gtest_contrib/gmock-gtest-all.cc" 2 ># 9197 "../gtest_contrib/gmock-gtest-all.cc" ># 1 "/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/limits.h" 1 3 4 ># 9198 "../gtest_contrib/gmock-gtest-all.cc" 2 > > > > >namespace testing { > >namespace { > > >class BetweenCardinalityImpl : public CardinalityInterface { > public: > BetweenCardinalityImpl(int min, int max) > : min_(min >= 0 ? min : 0), > max_(max >= min_ ? max : min_) { > std::stringstream ss; > if (min < 0) { > ss << "The invocation lower bound must be >= 0, " > << "but is actually " << min << "."; > internal::Expect(false, "../gtest_contrib/gmock-gtest-all.cc", 9216, ss.str()); > } else if (max < 0) { > ss << "The invocation upper bound must be >= 0, " > << "but is actually " << max << "."; > internal::Expect(false, "../gtest_contrib/gmock-gtest-all.cc", 9220, ss.str()); > } else if (min > max) { > ss << "The invocation upper bound (" << max > << ") must be >= the invocation lower bound (" << min > << ")."; > internal::Expect(false, "../gtest_contrib/gmock-gtest-all.cc", 9225, ss.str()); > } > } > > > > virtual int ConservativeLowerBound() const { return min_; } > virtual int ConservativeUpperBound() const { return max_; } > > virtual bool IsSatisfiedByCallCount(int call_count) const { > return min_ <= call_count && call_count <= max_ ; > } > > virtual bool IsSaturatedByCallCount(int call_count) const { > return call_count >= max_; > } > > virtual void DescribeTo(::std::ostream* os) const; > private: > const int min_; > const int max_; > > BetweenCardinalityImpl(BetweenCardinalityImpl const &); void operator=(BetweenCardinalityImpl const &); >}; > > >inline internal::string FormatTimes(int n) { > if (n == 1) { > return "once"; > } else if (n == 2) { > return "twice"; > } else { > std::stringstream ss; > ss << n << " times"; > return ss.str(); > } >} > > >void BetweenCardinalityImpl::DescribeTo(::std::ostream* os) const { > if (min_ == 0) { > if (max_ == 0) { > *os << "never called"; > } else if (max_ == 2147483647) { > *os << "called any number of times"; > } else { > *os << "called at most " << FormatTimes(max_); > } > } else if (min_ == max_) { > *os << "called " << FormatTimes(min_); > } else if (max_ == 2147483647) { > *os << "called at least " << FormatTimes(min_); > } else { > > *os << "called between " << min_ << " and " << max_ << " times"; > } >} > >} > > >void Cardinality::DescribeActualCallCountTo(int actual_call_count, > ::std::ostream* os) { > if (actual_call_count > 0) { > *os << "called " << FormatTimes(actual_call_count); > } else { > *os << "never called"; > } >} > > >Cardinality AtLeast(int n) { return Between(n, 2147483647); } > > >Cardinality AtMost(int n) { return Between(0, n); } > > >Cardinality AnyNumber() { return AtLeast(0); } > > >Cardinality Between(int min, int max) { > return Cardinality(new BetweenCardinalityImpl(min, max)); >} > > >Cardinality Exactly(int n) { return Between(n, n); } > >} ># 9355 "../gtest_contrib/gmock-gtest-all.cc" >namespace testing { >namespace internal { > > > > > >string ConvertIdentifierNameToWords(const char* id_name) { > string result; > char prev_char = '\0'; > for (const char* p = id_name; *p != '\0'; prev_char = *(p++)) { > > > const bool starts_new_word = IsUpper(*p) || > (!IsAlpha(prev_char) && IsLower(*p)) || > (!IsDigit(prev_char) && IsDigit(*p)); > > if (IsAlNum(*p)) { > if (starts_new_word && result != "") > result += ' '; > result += ToLower(*p); > } > } > return result; >} > > > > >class GoogleTestFailureReporter : public FailureReporterInterface { > public: > virtual void ReportFailure(FailureType type, const char* file, int line, > const string& message) { > AssertHelper(type == FATAL ? > TestPartResult::kFatalFailure : > TestPartResult::kNonFatalFailure, > file, > line, > message.c_str()) = Message(); > if (type == FATAL) { > posix::Abort(); > } > } >}; > > > >FailureReporterInterface* GetFailureReporter() { > > > > > > static FailureReporterInterface* const failure_reporter = > new GoogleTestFailureReporter(); > return failure_reporter; >} > > >static ::testing::internal::MutexBase g_log_mutex = { { { 0, 0, 0, 0, 0, 0, 0, { 0, 0 } } }, 0 }; > > > >bool LogIsVisible(LogSeverity severity) { > if (FLAGS_gmock_verbose == kInfoVerbosity) { > > return true; > } else if (FLAGS_gmock_verbose == kErrorVerbosity) { > > return false; > } else { > > > return severity == WARNING; > } >} ># 9439 "../gtest_contrib/gmock-gtest-all.cc" >void Log(LogSeverity severity, const string& message, > int stack_frames_to_skip) { > if (!LogIsVisible(severity)) > return; > > > MutexLock l(&g_log_mutex); > > > > > if (severity == WARNING) { > > std::cout << "\nGMOCK WARNING:"; > } > > if (message.empty() || message[0] != '\n') { > std::cout << "\n"; > } > std::cout << message; > if (stack_frames_to_skip >= 0) { > > > > > > > const int actual_to_skip = stack_frames_to_skip + 1; > > > > if (!message.empty() && *message.rbegin() != '\n') { > std::cout << "\n"; > } > std::cout << "Stack trace:\n" > << ::testing::internal::GetCurrentOsStackTraceExceptTop( > ::testing::UnitTest::GetInstance(), actual_to_skip); > } > std::cout << ::std::flush; >} > >} >} ># 9523 "../gtest_contrib/gmock-gtest-all.cc" >namespace testing { > > > >Matcher<const internal::string&>::Matcher(const internal::string& s) { > *this = Eq(s); >} > > > >Matcher<const internal::string&>::Matcher(const char* s) { > *this = Eq(internal::string(s)); >} > > >Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s); } > > >Matcher<internal::string>::Matcher(const char* s) { > *this = Eq(internal::string(s)); >} > >namespace internal { > > > >string JoinAsTuple(const Strings& fields) { > switch (fields.size()) { > case 0: > return ""; > case 1: > return fields[0]; > default: > string result = "(" + fields[0]; > for (size_t i = 1; i < fields.size(); i++) { > result += ", "; > result += fields[i]; > } > result += ")"; > return result; > } >} > > > > > > >string FormatMatcherDescription(bool negation, const char* matcher_name, > const Strings& param_values) { > string result = ConvertIdentifierNameToWords(matcher_name); > if (param_values.size() >= 1) > result += " " + JoinAsTuple(param_values); > return negation ? "not (" + result + ")" : result; >} > >} >} ># 9628 "../gtest_contrib/gmock-gtest-all.cc" >namespace testing { >namespace internal { > > > >::testing::internal::MutexBase g_gmock_mutex = { { { 0, 0, 0, 0, 0, 0, 0, { 0, 0 } } }, 0 }; > > >void LogWithLocation(testing::internal::LogSeverity severity, > const char* file, int line, > const string& message) { > ::std::ostringstream s; > s << file << ":" << line << ": " << message << ::std::endl; > Log(severity, s.str(), 0); >} > > >ExpectationBase::ExpectationBase(const char* a_file, > int a_line, > const string& a_source_text) > : file_(a_file), > line_(a_line), > source_text_(a_source_text), > cardinality_specified_(false), > cardinality_(Exactly(1)), > call_count_(0), > retired_(false), > extra_matcher_specified_(false), > repeated_action_specified_(false), > retires_on_saturation_(false), > last_clause_(kNone), > action_count_checked_(false) {} > > >ExpectationBase::~ExpectationBase() {} > > > >void ExpectationBase::SpecifyCardinality(const Cardinality& a_cardinality) { > cardinality_specified_ = true; > cardinality_ = a_cardinality; >} > > >void ExpectationBase::RetireAllPreRequisites() { > if (is_retired()) { > > > return; > } > > for (ExpectationSet::const_iterator it = immediate_prerequisites_.begin(); > it != immediate_prerequisites_.end(); ++it) { > ExpectationBase* const prerequisite = it->expectation_base().get(); > if (!prerequisite->is_retired()) { > prerequisite->RetireAllPreRequisites(); > prerequisite->Retire(); > } > } >} > > > > >bool ExpectationBase::AllPrerequisitesAreSatisfied() const { > g_gmock_mutex.AssertHeld(); > for (ExpectationSet::const_iterator it = immediate_prerequisites_.begin(); > it != immediate_prerequisites_.end(); ++it) { > if (!(it->expectation_base()->IsSatisfied()) || > !(it->expectation_base()->AllPrerequisitesAreSatisfied())) > return false; > } > return true; >} > > > >void ExpectationBase::FindUnsatisfiedPrerequisites( > ExpectationSet* result) const { > g_gmock_mutex.AssertHeld(); > for (ExpectationSet::const_iterator it = immediate_prerequisites_.begin(); > it != immediate_prerequisites_.end(); ++it) { > if (it->expectation_base()->IsSatisfied()) { > > > if (it->expectation_base()->call_count_ == 0) { > it->expectation_base()->FindUnsatisfiedPrerequisites(result); > } > } else { > > > > *result += *it; > } > } >} > > > > >void ExpectationBase::DescribeCallCountTo(::std::ostream* os) const { > g_gmock_mutex.AssertHeld(); > > > *os << " Expected: to be "; > cardinality().DescribeTo(os); > *os << "\n Actual: "; > Cardinality::DescribeActualCallCountTo(call_count(), os); > > > > *os << " - " << (IsOverSaturated() ? "over-saturated" : > IsSaturated() ? "saturated" : > IsSatisfied() ? "satisfied" : "unsatisfied") > << " and " > << (is_retired() ? "retired" : "active"); >} > > > > > > >void ExpectationBase::CheckActionCountIfNotDone() const { > bool should_check = false; > { > MutexLock l(&mutex_); > if (!action_count_checked_) { > action_count_checked_ = true; > should_check = true; > } > } > > if (should_check) { > if (!cardinality_specified_) { > > > return; > } > > > const int action_count = static_cast<int>(untyped_actions_.size()); > const int upper_bound = cardinality().ConservativeUpperBound(); > const int lower_bound = cardinality().ConservativeLowerBound(); > bool too_many; > > if (action_count > upper_bound || > (action_count == upper_bound && repeated_action_specified_)) { > too_many = true; > } else if (0 < action_count && action_count < lower_bound && > !repeated_action_specified_) { > too_many = false; > } else { > return; > } > > ::std::stringstream ss; > DescribeLocationTo(&ss); > ss << "Too " << (too_many ? "many" : "few") > << " actions specified in " << source_text() << "...\n" > << "Expected to be "; > cardinality().DescribeTo(&ss); > ss << ", but has " << (too_many ? "" : "only ") > << action_count << " WillOnce()" > << (action_count == 1 ? "" : "s"); > if (repeated_action_specified_) { > ss << " and a WillRepeatedly()"; > } > ss << "."; > Log(WARNING, ss.str(), -1); > } >} > > >void ExpectationBase::UntypedTimes(const Cardinality& a_cardinality) { > if (last_clause_ == kTimes) { > ExpectSpecProperty(false, > ".Times() cannot appear " > "more than once in an EXPECT_CALL()."); > } else { > ExpectSpecProperty(last_clause_ < kTimes, > ".Times() cannot appear after " > ".InSequence(), .WillOnce(), .WillRepeatedly(), " > "or .RetiresOnSaturation()."); > } > last_clause_ = kTimes; > > SpecifyCardinality(a_cardinality); >} > > > >ThreadLocal<Sequence*> g_gmock_implicit_sequence; > > > >void ReportUninterestingCall(CallReaction reaction, const string& msg) { > switch (reaction) { > case ALLOW: > Log(INFO, msg, 3); > break; > case WARN: > Log(WARNING, msg, 3); > break; > default: > Expect(false, __null, -1, msg); > } >} > >UntypedFunctionMockerBase::UntypedFunctionMockerBase() > : mock_obj_(__null), name_("") {} > >UntypedFunctionMockerBase::~UntypedFunctionMockerBase() {} > > > > > > >void UntypedFunctionMockerBase::RegisterOwner(const void* mock_obj) { > { > MutexLock l(&g_gmock_mutex); > mock_obj_ = mock_obj; > } > Mock::Register(mock_obj, this); >} > > > > > >void UntypedFunctionMockerBase::SetOwnerAndName( > const void* mock_obj, const char* name) { > > > MutexLock l(&g_gmock_mutex); > mock_obj_ = mock_obj; > name_ = name; >} > > > > >const void* UntypedFunctionMockerBase::MockObject() const { > const void* mock_obj; > { > > > MutexLock l(&g_gmock_mutex); > Assert(mock_obj_ != __null, "../gtest_contrib/gmock-gtest-all.cc", 9877, > "MockObject() must not be called before RegisterOwner() or " > "SetOwnerAndName() has been called."); > mock_obj = mock_obj_; > } > return mock_obj; >} > > > > >const char* UntypedFunctionMockerBase::Name() const { > const char* name; > { > > > MutexLock l(&g_gmock_mutex); > Assert(name_ != __null, "../gtest_contrib/gmock-gtest-all.cc", 9894, > "Name() must not be called before SetOwnerAndName() has " > "been called."); > name = name_; > } > return name; >} > > > > > >const UntypedActionResultHolderBase* >UntypedFunctionMockerBase::UntypedInvokeWith(const void* const untyped_args) { > if (untyped_expectations_.size() == 0) { > > > > > > > > const CallReaction reaction = > Mock::GetReactionOnUninterestingCalls(MockObject()); > > > > > const bool need_to_report_uninteresting_call = > > > reaction == ALLOW ? LogIsVisible(INFO) : > > > reaction == WARN ? LogIsVisible(WARNING) : > > > true; > > if (!need_to_report_uninteresting_call) { > > return this->UntypedPerformDefaultAction(untyped_args, ""); > } > > > ::std::stringstream ss; > this->UntypedDescribeUninterestingCall(untyped_args, &ss); > > > const UntypedActionResultHolderBase* const result = > this->UntypedPerformDefaultAction(untyped_args, ss.str()); > > > if (result != __null) > result->PrintAsActionResult(&ss); > > ReportUninterestingCall(reaction, ss.str()); > return result; > } > > bool is_excessive = false; > ::std::stringstream ss; > ::std::stringstream why; > ::std::stringstream loc; > const void* untyped_action = __null; > > > > const ExpectationBase* const untyped_expectation = > this->UntypedFindMatchingExpectation( > untyped_args, &untyped_action, &is_excessive, > &ss, &why); > const bool found = untyped_expectation != __null; > > > > > const bool need_to_report_call = !found || is_excessive || LogIsVisible(INFO); > if (!need_to_report_call) { > > return > untyped_action == __null ? > this->UntypedPerformDefaultAction(untyped_args, "") : > this->UntypedPerformAction(untyped_action, untyped_args); > } > > ss << " Function call: " << Name(); > this->UntypedPrintArgs(untyped_args, &ss); > > > > if (found && !is_excessive) { > untyped_expectation->DescribeLocationTo(&loc); > } > > const UntypedActionResultHolderBase* const result = > untyped_action == __null ? > this->UntypedPerformDefaultAction(untyped_args, ss.str()) : > this->UntypedPerformAction(untyped_action, untyped_args); > if (result != __null) > result->PrintAsActionResult(&ss); > ss << "\n" << why.str(); > > if (!found) { > > Expect(false, __null, -1, ss.str()); > } else if (is_excessive) { > > Expect(false, untyped_expectation->file(), > untyped_expectation->line(), ss.str()); > } else { > > > Log(INFO, loc.str() + ss.str(), 2); > } > > return result; >} > > > >Expectation UntypedFunctionMockerBase::GetHandleOf(ExpectationBase* exp) { > for (UntypedExpectations::const_iterator it = > untyped_expectations_.begin(); > it != untyped_expectations_.end(); ++it) { > if (it->get() == exp) { > return Expectation(*it); > } > } > > Assert(false, "../gtest_contrib/gmock-gtest-all.cc", 10024, "Cannot find expectation."); > return Expectation(); > > >} > > > > > >bool UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked() { > g_gmock_mutex.AssertHeld(); > bool expectations_met = true; > for (UntypedExpectations::const_iterator it = > untyped_expectations_.begin(); > it != untyped_expectations_.end(); ++it) { > ExpectationBase* const untyped_expectation = it->get(); > if (untyped_expectation->IsOverSaturated()) { > > > > expectations_met = false; > } else if (!untyped_expectation->IsSatisfied()) { > expectations_met = false; > ::std::stringstream ss; > ss << "Actual function call count doesn't match " > << untyped_expectation->source_text() << "...\n"; > > > > untyped_expectation->MaybeDescribeExtraMatcherTo(&ss); > untyped_expectation->DescribeCallCountTo(&ss); > Expect(false, untyped_expectation->file(), > untyped_expectation->line(), ss.str()); > } > } > untyped_expectations_.clear(); > return expectations_met; >} > >} > > > >namespace { > >typedef std::set<internal::UntypedFunctionMockerBase*> FunctionMockers; > > > > >struct MockObjectState { > MockObjectState() > : first_used_file(__null), first_used_line(-1), leakable(false) {} > > > > const char* first_used_file; > int first_used_line; > ::std::string first_used_test_case; > ::std::string first_used_test; > bool leakable; > FunctionMockers function_mockers; >}; > > > > > >class MockObjectRegistry { > public: > > typedef std::map<const void*, MockObjectState> StateMap; > > > > > > ~MockObjectRegistry() { > > > > if (!FLAGS_gmock_catch_leaked_mocks) > return; > > int leaked_count = 0; > for (StateMap::const_iterator it = states_.begin(); it != states_.end(); > ++it) { > if (it->second.leakable) > continue; > > > > std::cout << "\n"; > const MockObjectState& state = it->second; > std::cout << internal::FormatFileLocation(state.first_used_file, > state.first_used_line); > std::cout << " ERROR: this mock object"; > if (state.first_used_test != "") { > std::cout << " (used in test " << state.first_used_test_case << "." > << state.first_used_test << ")"; > } > std::cout << " should be deleted but never is. Its address is @" > << it->first << "."; > leaked_count++; > } > if (leaked_count > 0) { > std::cout << "\nERROR: " << leaked_count > << " leaked mock " << (leaked_count == 1 ? "object" : "objects") > << " found at program exit.\n"; > std::cout.flush(); > ::std::cerr.flush(); > > > > _exit(1); > > } > } > > StateMap& states() { return states_; } > private: > StateMap states_; >}; > > >MockObjectRegistry g_mock_object_registry; > > > >std::map<const void*, internal::CallReaction> g_uninteresting_call_reaction; > > > > >void SetReactionOnUninterestingCalls(const void* mock_obj, > internal::CallReaction reaction) { > internal::MutexLock l(&internal::g_gmock_mutex); > g_uninteresting_call_reaction[mock_obj] = reaction; >} > >} > > > > >void Mock::AllowUninterestingCalls(const void* mock_obj) { > SetReactionOnUninterestingCalls(mock_obj, internal::ALLOW); >} > > > > >void Mock::WarnUninterestingCalls(const void* mock_obj) { > SetReactionOnUninterestingCalls(mock_obj, internal::WARN); >} > > > > >void Mock::FailUninterestingCalls(const void* mock_obj) { > SetReactionOnUninterestingCalls(mock_obj, internal::FAIL); >} > > > > >void Mock::UnregisterCallReaction(const void* mock_obj) { > internal::MutexLock l(&internal::g_gmock_mutex); > g_uninteresting_call_reaction.erase(mock_obj); >} > > > > >internal::CallReaction Mock::GetReactionOnUninterestingCalls( > const void* mock_obj) { > internal::MutexLock l(&internal::g_gmock_mutex); > return (g_uninteresting_call_reaction.count(mock_obj) == 0) ? > internal::WARN : g_uninteresting_call_reaction[mock_obj]; >} > > > > >void Mock::AllowLeak(const void* mock_obj) { > internal::MutexLock l(&internal::g_gmock_mutex); > g_mock_object_registry.states()[mock_obj].leakable = true; >} > > > > > >bool Mock::VerifyAndClearExpectations(void* mock_obj) { > internal::MutexLock l(&internal::g_gmock_mutex); > return VerifyAndClearExpectationsLocked(mock_obj); >} > > > > > >bool Mock::VerifyAndClear(void* mock_obj) { > internal::MutexLock l(&internal::g_gmock_mutex); > ClearDefaultActionsLocked(mock_obj); > return VerifyAndClearExpectationsLocked(mock_obj); >} > > > > > >bool Mock::VerifyAndClearExpectationsLocked(void* mock_obj) { > internal::g_gmock_mutex.AssertHeld(); > if (g_mock_object_registry.states().count(mock_obj) == 0) { > > return true; > } > > > > bool expectations_met = true; > FunctionMockers& mockers = > g_mock_object_registry.states()[mock_obj].function_mockers; > for (FunctionMockers::const_iterator it = mockers.begin(); > it != mockers.end(); ++it) { > if (!(*it)->VerifyAndClearExpectationsLocked()) { > expectations_met = false; > } > } > > > > return expectations_met; >} > > > >void Mock::Register(const void* mock_obj, > internal::UntypedFunctionMockerBase* mocker) { > internal::MutexLock l(&internal::g_gmock_mutex); > g_mock_object_registry.states()[mock_obj].function_mockers.insert(mocker); >} > > > > > >void Mock::RegisterUseByOnCallOrExpectCall( > const void* mock_obj, const char* file, int line) { > internal::MutexLock l(&internal::g_gmock_mutex); > MockObjectState& state = g_mock_object_registry.states()[mock_obj]; > if (state.first_used_file == __null) { > state.first_used_file = file; > state.first_used_line = line; > const TestInfo* const test_info = > UnitTest::GetInstance()->current_test_info(); > if (test_info != __null) { > > > > state.first_used_test_case = test_info->test_case_name(); > state.first_used_test = test_info->name(); > } > } >} > > > > > > >void Mock::UnregisterLocked(internal::UntypedFunctionMockerBase* mocker) { > internal::g_gmock_mutex.AssertHeld(); > for (MockObjectRegistry::StateMap::iterator it = > g_mock_object_registry.states().begin(); > it != g_mock_object_registry.states().end(); ++it) { > FunctionMockers& mockers = it->second.function_mockers; > if (mockers.erase(mocker) > 0) { > > if (mockers.empty()) { > g_mock_object_registry.states().erase(it); > } > return; > } > } >} > > > >void Mock::ClearDefaultActionsLocked(void* mock_obj) { > internal::g_gmock_mutex.AssertHeld(); > > if (g_mock_object_registry.states().count(mock_obj) == 0) { > > return; > } > > > > FunctionMockers& mockers = > g_mock_object_registry.states()[mock_obj].function_mockers; > for (FunctionMockers::const_iterator it = mockers.begin(); > it != mockers.end(); ++it) { > (*it)->ClearDefaultActionsLocked(); > } > > > >} > >Expectation::Expectation() {} > >Expectation::Expectation( > const internal::linked_ptr<internal::ExpectationBase>& an_expectation_base) > : expectation_base_(an_expectation_base) {} > >Expectation::~Expectation() {} > > >void Sequence::AddExpectation(const Expectation& expectation) const { > if (*last_expectation_ != expectation) { > if (last_expectation_->expectation_base() != __null) { > expectation.expectation_base()->immediate_prerequisites_ > += *last_expectation_; > } > *last_expectation_ = expectation; > } >} > > >InSequence::InSequence() { > if (internal::g_gmock_implicit_sequence.get() == __null) { > internal::g_gmock_implicit_sequence.set(new Sequence); > sequence_created_ = true; > } else { > sequence_created_ = false; > } >} > > > >InSequence::~InSequence() { > if (sequence_created_) { > delete internal::g_gmock_implicit_sequence.get(); > internal::g_gmock_implicit_sequence.set(__null); > } >} > >} ># 10407 "../gtest_contrib/gmock-gtest-all.cc" >namespace testing { > > > > >bool FLAGS_gmock_catch_leaked_mocks = (true) > > ; > >::testing::internal::String FLAGS_gmock_verbose = (internal::kWarningVerbosity) > > > > > ; > >namespace internal { > > > > > > >static const char* ParseGoogleMockFlagValue(const char* str, > const char* flag, > bool def_optional) { > > if (str == __null || flag == __null) return __null; > > > const String flag_str = String::Format("--gmock_%s", flag); > const size_t flag_len = flag_str.length(); > if (strncmp(str, flag_str.c_str(), flag_len) != 0) return __null; > > > const char* flag_end = str + flag_len; > > > if (def_optional && (flag_end[0] == '\0')) { > return flag_end; > } > > > > > if (flag_end[0] != '=') return __null; > > > return flag_end + 1; >} > > > > > > >static bool ParseGoogleMockBoolFlag(const char* str, const char* flag, > bool* value) { > > const char* const value_str = ParseGoogleMockFlagValue(str, flag, true); > > > if (value_str == __null) return false; > > > *value = !(*value_str == '0' || *value_str == 'f' || *value_str == 'F'); > return true; >} > > > > > > >static bool ParseGoogleMockStringFlag(const char* str, const char* flag, > String* value) { > > const char* const value_str = ParseGoogleMockFlagValue(str, flag, false); > > > if (value_str == __null) return false; > > > *value = value_str; > return true; >} > > > > > >template <typename CharType> >void InitGoogleMockImpl(int* argc, CharType** argv) { > > > InitGoogleTest(argc, argv); > if (*argc <= 0) return; > > for (int i = 1; i != *argc; i++) { > const String arg_string = StreamableToString(argv[i]); > const char* const arg = arg_string.c_str(); > > > if (ParseGoogleMockBoolFlag(arg, "catch_leaked_mocks", > &FLAGS_gmock_catch_leaked_mocks) || > ParseGoogleMockStringFlag(arg, "verbose", &FLAGS_gmock_verbose)) { > > > > > for (int j = i; j != *argc; j++) { > argv[j] = argv[j + 1]; > } > > > (*argc)--; > > > > i--; > } > } >} > >} ># 10544 "../gtest_contrib/gmock-gtest-all.cc" >void InitGoogleMock(int* argc, char** argv) { > internal::InitGoogleMockImpl(argc, argv); >} > > > >void InitGoogleMock(int* argc, wchar_t** argv) { > internal::InitGoogleMockImpl(argc, argv); >} > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1061007
: 858941