Home
last modified time | relevance | path

Searched refs:fruit (Results 1 – 25 of 245) sorted by relevance

12345678910

/external/google-fruit/include/fruit/impl/
Dcomponent.defn.h28 namespace fruit {
53 (void)typename fruit::impl::meta::CheckIfError<Comp>::type(); in Component()
55 using Op = typename fruit::impl::meta::OpForComponent<Bindings...>::template ConvertTo<Comp>; in Component()
56 (void)typename fruit::impl::meta::CheckIfError<Op>::type(); in Component()
59 (void)typename fruit::impl::meta::CheckIfError< in Component()
60 fruit::impl::meta::Eval<fruit::impl::meta::CheckNoLoopInDeps(typename Op::Result)>>::type(); in Component()
64 fruit::impl::FixedSizeVector<fruit::impl::ComponentStorageEntry> entries(num_entries); in Component()
77 storage = fruit::impl::ComponentStorage(std::move(entries)); in Component()
86 inline PartialComponent<fruit::impl::Bind<AnnotatedI, AnnotatedC>, Bindings...> PartialComponent<Bi… in bind()
87 using Op = OpFor<fruit::impl::Bind<AnnotatedI, AnnotatedC>>; in bind()
[all …]
Dinjector.defn.h25 namespace fruit {
30 …Component<P...> component = fruit::createComponent().install(getComponent, std::forward<Args>(args… in Injector()
32 fruit::impl::MemoryPool memory_pool; in Injector()
33 …using exposed_types_t = std::vector<fruit::impl::TypeId, fruit::impl::ArenaAllocator<fruit::impl::… in Injector()
35 exposed_types_t(std::initializer_list<fruit::impl::TypeId>{fruit::impl::getTypeId<P>()...}, in Injector()
36 fruit::impl::ArenaAllocator<fruit::impl::TypeId>(memory_pool)); in Injector()
37 storage = std::unique_ptr<fruit::impl::InjectorStorage>( in Injector()
38 new fruit::impl::InjectorStorage(std::move(component.storage), exposed_types, memory_pool)); in Injector()
96 …Component<ComponentParams...> component = fruit::createComponent().install(getComponent, std::forw… in Injector()
98 fruit::impl::MemoryPool memory_pool; in Injector()
[all …]
Dnormalized_component.defn.h25 namespace fruit {
31 : NormalizedComponent(std::move(fruit::Component<Params...>( in NormalizedComponent()
32fruit::createComponent().install(getComponent, std::forward<Args>(args)...)) in NormalizedComponent()
34 fruit::impl::MemoryPool()) {} in NormalizedComponent()
37 inline NormalizedComponent<Params...>::NormalizedComponent(fruit::impl::ComponentStorage&& storage, in NormalizedComponent()
38 fruit::impl::MemoryPool memory_pool) in NormalizedComponent()
40fruit::impl::getTypeIdsForList<typename fruit::impl::meta::Eval<fruit::impl::meta::SetToVector( in NormalizedComponent()
41 typename fruit::impl::meta::Eval<fruit::impl::meta::ConstructComponentImpl( in NormalizedComponent()
42 fruit::impl::meta::Type<Params>...)>::Ps)>>(memory_pool), in NormalizedComponent()
43 … memory_pool, fruit::impl::NormalizedComponentStorageHolder::WithUndoableCompression()) {} in NormalizedComponent()
Dcomponent_function.defn.h24 namespace fruit {
31 …(void)IntCollector{0, fruit::impl::checkAcceptableComponentInstallArg<ComponentFunctionArgs>()...};
44 return fruit::impl::callWithTuple(getComponent, args_tuple); in operator()
48 inline ComponentFunction<fruit::Component<ComponentParams...>, FormalArgs...> componentFunction( in componentFunction()
49 fruit::Component<ComponentParams...> (*getComponent)(FormalArgs...), in componentFunction()
51 return ComponentFunction<fruit::Component<ComponentParams...>, FormalArgs...>::create( in componentFunction()
Dmeta_operation_wrappers.h22 namespace fruit {
27 using type = fruit::impl::meta::UnwrapType<
28 fruit::impl::meta::Eval<fruit::impl::meta::RemoveAnnotations(fruit::impl::meta::Type<T>)>>;
/external/google-fruit/include/fruit/
Dcomponent.h30 namespace fruit {
77 friend class fruit::impl::PartialComponentStorage;
80 friend class fruit::impl::LazyComponentImpl;
82 friend struct fruit::impl::ComponentStorageEntry::LazyComponentWithNoArgs;
85 friend class fruit::impl::ComponentInterfaceImpl;
87 fruit::impl::ComponentStorage storage;
89 …using Comp = fruit::impl::meta::Eval<fruit::impl::meta::ConstructComponentImpl(fruit::impl::meta::…
91 using Check1 = typename fruit::impl::meta::CheckIfError<Comp>::type;
258 PartialComponent<fruit::impl::Bind<I, C>, Bindings...> bind();
330 PartialComponent<fruit::impl::RegisterConstructor<Signature>, Bindings...> registerConstructor();
[all …]
Dinjector.h28 namespace fruit {
170 fruit::impl::RemoveAnnotations<T> get();
203 const std::vector<fruit::impl::RemoveAnnotations<T>*>& getMultibindings();
223 using Check1 = typename fruit::impl::meta::CheckIfError<fruit::impl::meta::Eval<
224fruit::impl::meta::CheckNoRequiredTypesInInjectorArguments(fruit::impl::meta::Type<P>...)>>::type;
228 …using Comp = fruit::impl::meta::Eval<fruit::impl::meta::ConstructComponentImpl(fruit::impl::meta::…
230 using Check2 = typename fruit::impl::meta::CheckIfError<Comp>::type;
231 using VoidType = fruit::impl::meta::Type<void>;
234 …using Check3 = typename fruit::impl::meta::CheckIfError<fruit::impl::meta::Eval<fruit::impl::meta:…
235 fruit::impl::meta::Not(fruit::impl::meta::IsEmptySet(typename Comp::RsSuperset)),
[all …]
Dprovider.h25 namespace fruit {
77 …typename fruit::impl::meta::CheckIfError<fruit::impl::meta::Eval<fruit::impl::meta::CheckNormalize…
78fruit::impl::meta::RemoveConstFromTypes(fruit::impl::meta::Vector<fruit::impl::meta::Type<C>>))>>:…
83 …typename fruit::impl::meta::CheckIfError<fruit::impl::meta::Eval<fruit::impl::meta::CheckNotAnnota…
84 fruit::impl::meta::Vector<fruit::impl::meta::Type<C>>)>>::type;
138 fruit::impl::InjectorStorage* storage;
139 fruit::impl::InjectorStorage::Graph::node_iterator itr;
141 …Provider(fruit::impl::InjectorStorage* storage, fruit::impl::InjectorStorage::Graph::node_iterator…
143 friend class fruit::impl::InjectorStorage;
146 friend struct fruit::impl::GetFirstStage;
Dnormalized_component.h29 namespace fruit {
123 NormalizedComponent(fruit::impl::ComponentStorage&& storage, fruit::impl::MemoryPool memory_pool);
127 fruit::impl::NormalizedComponentStorageHolder storage;
132 …using Comp = fruit::impl::meta::Eval<fruit::impl::meta::ConstructComponentImpl(fruit::impl::meta::…
134 using Check1 = typename fruit::impl::meta::CheckIfError<Comp>::type;
/external/google-fruit/examples/testing/
Dcached_greeter_test_with_normalized_component.cpp22 fruit::Component<fruit::Annotated<Cached, Greeter>> getMainComponent() { in getMainComponent()
23 return fruit::createComponent() in getMainComponent()
30 fruit::Component<> getEmptyComponent() { in getEmptyComponent()
31 return fruit::createComponent(); in getEmptyComponent()
34 fruit::Injector<fruit::Annotated<Cached, Greeter>> createInjector() { in createInjector()
35 …static fruit::NormalizedComponent<fruit::Annotated<Cached, Greeter>> normalizedComponent(getMainCo… in createInjector()
36 return fruit::Injector<fruit::Annotated<Cached, Greeter>>(normalizedComponent, getEmptyComponent); in createInjector()
40 fruit::Injector<fruit::Annotated<Cached, Greeter>> injector = createInjector(); in TEST()
41 Greeter* greeter = injector.get<fruit::Annotated<Cached, Greeter*>>(); in TEST()
46 fruit::Injector<fruit::Annotated<Cached, Greeter>> injector = createInjector(); in TEST()
[all …]
Dcached_greeter_test.cpp21 fruit::Component<fruit::Annotated<Cached, Greeter>> getMainComponent() { in getMainComponent()
22 return fruit::createComponent() in getMainComponent()
29 fruit::Injector<fruit::Annotated<Cached, Greeter>> createInjector() { in createInjector()
30 return fruit::Injector<fruit::Annotated<Cached, Greeter>>(getMainComponent); in createInjector()
34 fruit::Injector<fruit::Annotated<Cached, Greeter>> injector = createInjector(); in TEST()
35 Greeter* greeter = injector.get<fruit::Annotated<Cached, Greeter*>>(); in TEST()
40 fruit::Injector<fruit::Annotated<Cached, Greeter>> injector = createInjector(); in TEST()
41 Greeter* greeter = injector.get<fruit::Annotated<Cached, Greeter*>>(); in TEST()
/external/google-fruit/include/fruit/impl/injector/
Dinjector_storage.defn.h33 namespace fruit {
165 struct GetFirstStage<fruit::Annotated<Annotation, T>> : public GetFirstStage<T> {};
230 struct GetSecondStage<fruit::Annotated<Annotation, T>> : public GetSecondStage<T> {};
240 FruitStaticAssert(fruit::impl::meta::IsSame(fruit::impl::meta::Type<T>,
241fruit::impl::meta::RemoveAnnotations(fruit::impl::meta::Type<T>)));
264 FruitStaticAssert(fruit::impl::meta::IsSame(fruit::impl::meta::Type<C>,
265fruit::impl::meta::NormalizeType(fruit::impl::meta::Type<C>)));
372 …FruitStaticAssert(fruit::impl::meta::Not(fruit::impl::meta::IsPointer(fruit::impl::meta::Type<I>))…
373 …FruitStaticAssert(fruit::impl::meta::Not(fruit::impl::meta::IsPointer(fruit::impl::meta::Type<C>))…
379 binding.deps = getBindingDeps<fruit::impl::meta::Vector<fruit::impl::meta::Type<AnnotatedC>>>();
[all …]
Dinjector_accessor_for_tests.defn.h22 namespace fruit {
26 const fruit::impl::RemoveAnnotations<AnnotatedC>*
27 InjectorAccessorForTests::unsafeGet(fruit::Injector<Params...>& injector) { in unsafeGet()
28 using Op = fruit::impl::meta::Eval<fruit::impl::meta::CheckNormalizedTypes( in unsafeGet()
29 fruit::impl::meta::Vector<fruit::impl::meta::Type<AnnotatedC>>)>; in unsafeGet()
30 (void)typename fruit::impl::meta::CheckIfError<Op>::type(); in unsafeGet()
Dinjector_storage.h31 namespace fruit {
53 using RemoveAnnotations = fruit::impl::meta::UnwrapType<
54fruit::impl::meta::Eval<fruit::impl::meta::RemoveAnnotations(fruit::impl::meta::Type<AnnotatedT>)>…
66 using NormalizeType = fruit::impl::meta::UnwrapType<
67 fruit::impl::meta::Eval<fruit::impl::meta::NormalizeType(fruit::impl::meta::Type<T>)>>;
75 using SignatureType = fruit::impl::meta::UnwrapType<
76fruit::impl::meta::Eval<fruit::impl::meta::SignatureType(fruit::impl::meta::Type<Signature>)>>;
79 using NormalizedSignatureArgs = fruit::impl::meta::Eval<fruit::impl::meta::NormalizeTypeVector(
80 fruit::impl::meta::SignatureArgs(fruit::impl::meta::Type<Signature>))>;
179 friend class fruit::Provider;
/external/google-fruit/tests/
DBUILD13 visibility = ["//third_party/fruit/tests:__subpackages__"],
20 visibility = ["//third_party/fruit/tests:__subpackages__"],
23 "//third_party/fruit",
33 "//third_party/fruit",
41 "fruit",
52 "//third_party/fruit",
53 "//third_party/fruit:fruit_headers",
70 visibility = ["//third_party/fruit/tests:__subpackages__"],
73 …+ "LIBFRUIT_LOCATION=`for f in $(locations //third_party/fruit); do echo \"$$f\"; done | fgrep lib…
74 …+ "LIBTEST_HEADERS_LOCATION=`for f in $(locations //third_party/fruit/tests:test_headers); do echo…
[all …]
Dbuild_defs.bzl10 "//third_party/fruit/tests:fruit_test_common",
13 "//third_party/fruit:fruit_headers",
14 "//third_party/fruit/tests:libfruit.so",
15 "//third_party/fruit/tests:libtest_headers_copy.so",
16 "//third_party/fruit/tests:test_headers_filegroup",
/external/google-fruit/
DBUILD10 "//third_party/fruit/configuration/bazel:fruit-config-base",
15 name = "fruit",
18 "include/fruit/impl/**/*.h",
20 hdrs = glob(["include/fruit/*.h"]),
24 "//third_party/fruit/configuration/bazel:fruit-config-base",
/external/google-fruit/extras/bazel_root/third_party/fruit/
DBUILD10 "//third_party/fruit/configuration/bazel:fruit-config-base",
15 name = "fruit",
18 "include/fruit/impl/**/*.h",
20 hdrs = glob(["include/fruit/*.h"]),
24 "//third_party/fruit/configuration/bazel:fruit-config-base",
/external/google-fruit/extras/scripts/
Dpostsubmit.sh19 docker rm -f fruit &>/dev/null || true
20 docker run -d -it --name fruit --privileged "${DOCKER_IMAGE}"
21 docker exec fruit mkdir fruit
22 docker cp . fruit:/fruit
24 docker exec fruit bash -c "
/external/google-fruit/extras/packaging/
Ddeploy_to_bintray.bat3 …D /C for %%I in (True False) DO conan create . google/stable -o fruit:shared=%%H -o fruit:use_boos…
5 conan remote add fruit-bintray https://api.bintray.com/conan/google/fruit
8 REM conan user -p BINTRAY_API_KEY_HERE -r fruit-bintray polettimarco
10 conan upload fruit/%FRUIT_VERSION%@google/stable --all -r fruit-bintray
Ddeploy_to_bintray.sh14 …conan create . google/stable -o fruit:shared=$is_shared -o fruit:use_boost=$use_boost -s build_typ…
19 conan remote update fruit-bintray https://api.bintray.com/conan/google/fruit
20 conan upload fruit/${FRUIT_VERSION}@google/stable --all -r fruit-bintray
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/
DTestSubtypesExternalPropertyMissingProperty.java22 public Fruit fruit; field in TestSubtypesExternalPropertyMissingProperty.Box
27 public Box(String type, Fruit fruit) { in Box() argument
29 this.fruit = fruit; in Box()
40 public Fruit fruit; field in TestSubtypesExternalPropertyMissingProperty.ReqBox
45 public ReqBox(String type, Fruit fruit) { in ReqBox() argument
47 this.fruit = fruit; in ReqBox()
192 Fruit deserOrange = deserOrangeBox.fruit; in checkOrangeBox()
202 Fruit deserApple = deserAppleBox.fruit; in checkAppleBox()
212 Fruit deserOrange = deserOrangeBox.fruit; in checkOrangeBoxEmpty()
222 Fruit deserApple = deserAppleBox.fruit; in checkAppleBoxEmpty()
[all …]
/external/google-fruit/extras/benchmark/
DREADME.md13 $ ~/projects/fruit/extras/benchmark/run_benchmarks.py \
15 --benchmark-definition ~/projects/fruit/extras/benchmark/suites/fruit_full.yml
17 --fruit-sources-dir ~/projects/fruit \
18 --fruit-benchmark-sources-dir ~/projects/fruit \
53 $ ~/projects/fruit/extras/benchmark/format_bench_results.py \
55 --benchmark-tables-definition ~/projects/fruit/extras/benchmark/tables/fruit_wiki.yml
62 $ ~/projects/fruit/extras/benchmark/format_bench_results.py \
64 --benchmark-tables-definition ~/projects/fruit/extras/benchmark/tables/fruit_wiki.yml \
80 $ cd ~/projects/fruit
89 --fruit-sources-dir ~/projects/fruit \
[all …]
/external/google-fruit/include/fruit/impl/util/
Dcall_with_tuple.h22 namespace fruit {
29 struct CallWithTupleHelper<fruit::impl::meta::Vector<Ints...>, Result, std::tuple<Args...>> {
33 return fun(std::get<fruit::impl::meta::getIntValue<Ints>()>(args)...);
40fruit::impl::meta::Eval<fruit::impl::meta::GenerateIntSequence(fruit::impl::meta::Int<sizeof...(Ar…
/external/google-fruit/include/fruit/impl/data_structures/
Dfixed_size_allocator.defn.h31 namespace fruit {
66 FRUIT_ALWAYS_INLINE inline fruit::impl::meta::UnwrapType<
67fruit::impl::meta::Eval<fruit::impl::meta::RemoveAnnotations(fruit::impl::meta::Type<AnnotatedT>)>…
69 using T = fruit::impl::meta::UnwrapType< in constructObject()
70fruit::impl::meta::Eval<fruit::impl::meta::RemoveAnnotations(fruit::impl::meta::Type<AnnotatedT>)>… in constructObject()

12345678910