Home
last modified time | relevance | path

Searched refs:checked_cast (Results 1 – 25 of 1914) sorted by relevance

12345678910>>...77

/dports/math/kalker/kalker-1.1.0/cargo-crates/az-1.0.0/src/tests/
H A Dfloat_to_int.rs91 assert_eq!(checked_cast(-src_nan), None); in float_to_nonwrapping_signed()
92 assert_eq!(checked_cast(-src_inf), None); in float_to_nonwrapping_signed()
93 assert_eq!(checked_cast(-src_max), None); in float_to_nonwrapping_signed()
95 assert_eq!(checked_cast(-src_c), None); in float_to_nonwrapping_signed()
108 assert_eq!(checked_cast(src_8), None); in float_to_nonwrapping_signed()
109 assert_eq!(checked_cast(src_9ish), None); in float_to_nonwrapping_signed()
110 assert_eq!(checked_cast(src_c), None); in float_to_nonwrapping_signed()
111 assert_eq!(checked_cast(src_fish), None); in float_to_nonwrapping_signed()
112 assert_eq!(checked_cast(src_max), None); in float_to_nonwrapping_signed()
113 assert_eq!(checked_cast(src_inf), None); in float_to_nonwrapping_signed()
[all …]
H A Dint_to_int.rs36 assert_eq!(checked_cast(false), Some(zero)); in bool_to_nonwrapping_int()
37 assert_eq!(checked_cast(true), Some(one)); in bool_to_nonwrapping_int()
60 assert_eq!(checked_cast(false), Some(zero)); in bool_to_wrapping_int()
61 assert_eq!(checked_cast(true), Some(one)); in bool_to_wrapping_int()
131 assert_eq!(checked_cast(src_m10), None); in signed_to_smaller_nonwrapping_signed()
132 assert_eq!(checked_cast(src_m09), None); in signed_to_smaller_nonwrapping_signed()
138 assert_eq!(checked_cast(src_p08), None); in signed_to_smaller_nonwrapping_signed()
139 assert_eq!(checked_cast(src_p0f), None); in signed_to_smaller_nonwrapping_signed()
140 assert_eq!(checked_cast(src_p10), None); in signed_to_smaller_nonwrapping_signed()
526 assert_eq!(checked_cast(src_m8), None); in signed_to_larger_same_nonwrapping_unsigned()
[all …]
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/cpp/src/arrow/util/
H A Dchecked_cast_test.cc49 ASSERT_EQ(nullptr, checked_cast<Bar*>(&foo)); in TEST()
52 ASSERT_THROW(checked_cast<const Bar&>(foosubref), std::bad_cast); in TEST()
55 ASSERT_NO_THROW(checked_cast<const FooSub&>(foosubref)); in TEST()
56 ASSERT_NO_THROW(checked_cast<const Baz<double>&>(bazref)); in TEST()
61 ASSERT_NE(nullptr, checked_cast<const FooSub*>(&foosubref)); in TEST()
65 auto& x = checked_cast<const FooSub&>(foosubref); in TEST()
68 auto& y = checked_cast<const Baz<double>&>(bazref); in TEST()
/dports/databases/arrow/apache-arrow-6.0.1/cpp/src/arrow/util/
H A Dchecked_cast_test.cc49 ASSERT_EQ(nullptr, checked_cast<Bar*>(&foo)); in TEST()
52 ASSERT_THROW(checked_cast<const Bar&>(foosubref), std::bad_cast); in TEST()
55 ASSERT_NO_THROW(checked_cast<const FooSub&>(foosubref)); in TEST()
56 ASSERT_NO_THROW(checked_cast<const Baz<double>&>(bazref)); in TEST()
61 ASSERT_NE(nullptr, checked_cast<const FooSub*>(&foosubref)); in TEST()
65 auto& x = checked_cast<const FooSub&>(foosubref); in TEST()
68 auto& y = checked_cast<const Baz<double>&>(bazref); in TEST()
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/cpp/src/arrow/util/
H A Dchecked_cast_test.cc49 ASSERT_EQ(nullptr, checked_cast<Bar*>(&foo)); in TEST()
52 ASSERT_THROW(checked_cast<const Bar&>(foosubref), std::bad_cast); in TEST()
55 ASSERT_NO_THROW(checked_cast<const FooSub&>(foosubref)); in TEST()
56 ASSERT_NO_THROW(checked_cast<const Baz<double>&>(bazref)); in TEST()
61 ASSERT_NE(nullptr, checked_cast<const FooSub*>(&foosubref)); in TEST()
65 auto& x = checked_cast<const FooSub&>(foosubref); in TEST()
68 auto& y = checked_cast<const Baz<double>&>(bazref); in TEST()
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/cpp/src/arrow/compute/kernels/
H A Dscalar_boolean.cc100 *checked_cast<BooleanScalar*>(out) = InvertScalar(in); in Call()
122 checked_cast<BooleanScalar*>(out)->value = in Call()
123 checked_cast<const BooleanScalar&>(left).value && in Call()
124 checked_cast<const BooleanScalar&>(right).value; in Call()
132 return checked_cast<const BooleanScalar&>(right).value in Call()
205 checked_cast<BooleanScalar*>(out)->value = in Call()
207 checked_cast<const BooleanScalar&>(right).value; in Call()
215 return checked_cast<const BooleanScalar&>(right).value in Call()
290 checked_cast<BooleanScalar*>(out)->value = in Call()
291 checked_cast<const BooleanScalar&>(left).value ^ in Call()
[all …]
/dports/databases/arrow/apache-arrow-6.0.1/cpp/src/arrow/compute/kernels/
H A Dscalar_boolean.cc100 *checked_cast<BooleanScalar*>(out) = InvertScalar(in); in Call()
124 checked_cast<BooleanScalar*>(out)->value = in Call()
125 checked_cast<const BooleanScalar&>(left).value && in Call()
126 checked_cast<const BooleanScalar&>(right).value; in Call()
134 checked_cast<const BooleanScalar&>(right).value in Call()
228 checked_cast<BooleanScalar*>(out)->value = in Call()
230 checked_cast<const BooleanScalar&>(right).value; in Call()
238 checked_cast<const BooleanScalar&>(right).value in Call()
334 checked_cast<BooleanScalar*>(out)->value = in Call()
344 checked_cast<const BooleanScalar&>(right).value in Call()
[all …]
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/cpp/src/arrow/
H A Dcompare.cc51 using internal::checked_cast;
134 const auto& right = checked_cast<const ArrayType&>(right_); in CompareValues()
210 const auto& right = checked_cast<const StructArray&>(right_); in CompareStructs()
231 const auto& right = checked_cast<const UnionArray&>(right_); in CompareUnions()
503 const auto& right = checked_cast<const ArrayType&>(right_); in ValueOffsetsEqual()
656 left, checked_cast<const FloatArray&>(right_), opts_); in Visit()
662 left, checked_cast<const DoubleArray&>(right_), opts_); in Visit()
749 const auto& right = checked_cast<const T&>(right_); in Visit()
779 const auto& right = checked_cast<const MapType&>(right_); in Visit()
788 const auto& right = checked_cast<const UnionType&>(right_); in Visit()
[all …]
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/cpp/src/arrow/adapters/orc/
H A Dadapter_util.cc41 using internal::checked_cast;
48 auto builder = checked_cast<StructBuilder*>(abuilder); in AppendStructBatch()
66 auto builder = checked_cast<ListBuilder*>(abuilder); in AppendListBatch()
88 auto list_builder = checked_cast<ListBuilder*>(abuilder); in AppendMapBatch()
115 auto builder = checked_cast<builder_type*>(abuilder); in AppendNumericBatch()
116 auto batch = checked_cast<batch_type*>(cbatch); in AppendNumericBatch()
133 auto builder = checked_cast<builder_type*>(abuilder); in AppendNumericBatchCast()
134 auto batch = checked_cast<batch_type*>(cbatch); in AppendNumericBatchCast()
156 auto builder = checked_cast<BooleanBuilder*>(abuilder); in AppendBoolBatch()
179 auto builder = checked_cast<TimestampBuilder*>(abuilder); in AppendTimestampBatch()
[all …]
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/cpp/src/arrow/adapters/orc/
H A Dadapter_util.cc41 using internal::checked_cast;
48 auto builder = checked_cast<StructBuilder*>(abuilder); in AppendStructBatch()
66 auto builder = checked_cast<ListBuilder*>(abuilder); in AppendListBatch()
88 auto list_builder = checked_cast<ListBuilder*>(abuilder); in AppendMapBatch()
115 auto builder = checked_cast<builder_type*>(abuilder); in AppendNumericBatch()
116 auto batch = checked_cast<batch_type*>(cbatch); in AppendNumericBatch()
133 auto builder = checked_cast<builder_type*>(abuilder); in AppendNumericBatchCast()
134 auto batch = checked_cast<batch_type*>(cbatch); in AppendNumericBatchCast()
156 auto builder = checked_cast<BooleanBuilder*>(abuilder); in AppendBoolBatch()
179 auto builder = checked_cast<TimestampBuilder*>(abuilder); in AppendTimestampBatch()
[all …]
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/cpp/src/arrow/python/
H A Ddeserialize.cc52 using internal::checked_cast;
75 const auto& data = checked_cast<const StructArray&>(array); in DeserializeDict()
136 auto view = checked_cast<const BinaryArray&>(arr).GetView(index); in GetValue()
163 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
168 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
173 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
178 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
183 int32_t ref = checked_cast<const Int32Array&>(arr).Value(index); in GetValue()
188 int32_t ref = checked_cast<const Int32Array&>(arr).Value(index); in GetValue()
196 int32_t ref = checked_cast<const Int32Array&>(arr).Value(index); in GetValue()
[all …]
/dports/databases/arrow/apache-arrow-6.0.1/cpp/src/arrow/python/
H A Ddeserialize.cc52 using internal::checked_cast;
75 const auto& data = checked_cast<const StructArray&>(array); in DeserializeDict()
136 auto view = checked_cast<const BinaryArray&>(arr).GetView(index); in GetValue()
163 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
168 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
173 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
178 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
183 int32_t ref = checked_cast<const Int32Array&>(arr).Value(index); in GetValue()
188 int32_t ref = checked_cast<const Int32Array&>(arr).Value(index); in GetValue()
196 int32_t ref = checked_cast<const Int32Array&>(arr).Value(index); in GetValue()
[all …]
/dports/security/vault/vault-1.8.2/vendor/github.com/apache/arrow/cpp/src/arrow/python/
H A Ddeserialize.cc52 using internal::checked_cast;
75 const auto& data = checked_cast<const StructArray&>(array); in DeserializeDict()
132 auto view = checked_cast<const BinaryArray&>(arr).GetView(index); in GetValue()
159 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
164 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
169 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
174 const auto& l = checked_cast<const ListArray&>(arr); in GetValue()
179 int32_t ref = checked_cast<const Int32Array&>(arr).Value(index); in GetValue()
184 int32_t ref = checked_cast<const Int32Array&>(arr).Value(index); in GetValue()
192 int32_t ref = checked_cast<const Int32Array&>(arr).Value(index); in GetValue()
[all …]
/dports/databases/arrow/apache-arrow-6.0.1/cpp/src/arrow/adapters/orc/
H A Dadapter_util.cc44 using internal::checked_cast;
61 auto builder = checked_cast<StructBuilder*>(abuilder); in AppendStructBatch()
80 auto builder = checked_cast<ListBuilder*>(abuilder); in AppendListBatch()
103 auto builder = checked_cast<MapBuilder*>(abuilder); in AppendMapBatch()
130 auto builder = checked_cast<BuilderType*>(abuilder); in AppendNumericBatch()
148 auto builder = checked_cast<BuilderType*>(abuilder); in AppendNumericBatchCast()
171 auto builder = checked_cast<BooleanBuilder*>(abuilder); in AppendBoolBatch()
223 auto builder = checked_cast<BuilderType*>(abuilder); in AppendBinaryBatch()
339 using internal::checked_cast;
891 checked_cast<const MapType&>(type).key_type(); in GetOrcType()
[all …]
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/cpp/src/arrow/
H A Dscalar.cc40 using internal::checked_cast;
210 const auto& struct_type = checked_cast<const StructType&>(*this->type); in field()
224 const auto& dict_type = checked_cast<DictionaryType&>(*type); in GetEncodedValue()
322 auto dict_scalar = checked_cast<const DictionaryScalar*>(this); in ToString()
462 return timestamp(checked_cast<const TypeWithTimeUnit&>(*type).unit()); in AsTimestampType()
524 to->value = std::move(checked_cast<ScalarType&>(*out).value); in CastImpl()
546 auto from_type = checked_cast<const Decimal128Type*>(from.type.get()); in CastImpl()
552 auto from_type = checked_cast<const Decimal256Type*>(from.type.get()); in CastImpl()
578 checked_cast<ToScalar*>(out_)); in Visit()
585 checked_cast<ToScalar*>(out_)->value = checked_cast<const ToScalar&>(from_).value; in Visit()
[all …]
/dports/devel/aarch64-none-elf-gcc/gcc-8.4.0/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()
/dports/lang/gcc9/gcc-9.4.0/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()
/dports/devel/arm-none-eabi-gcc492/gcc-4.9.2/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()
/dports/devel/riscv64-gcc/gcc-8.3.0/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()
/dports/lang/gnat_util/gcc-6-20180516/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()
/dports/devel/avr-gcc/gcc-10.2.0/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()
/dports/lang/gcc11-devel/gcc-11-20211009/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()
/dports/lang/gcc48/gcc-4.8.5/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()
/dports/lang/gcc11/gcc-11.2.0/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()
/dports/devel/arm-none-eabi-gcc/gcc-8.4.0/gcc/testsuite/g++.dg/template/
H A Dspec21.C10 template <typename T, typename R> T checked_cast (R const &) {return 0;} in checked_cast() function
11 template <typename T, typename R> T checked_cast (R *) {return 1;} in checked_cast() function
21 if (checked_cast<int>(i) != 0) in main()
24 if (checked_cast<int>(&i) != 1) in main()

12345678910>>...77