Home
last modified time | relevance | path

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

123456789

/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()
89 inline PartialComponent<fruit::impl::Bind<AnnotatedI, AnnotatedC>, Bindings...> PartialComponent<Bi… in bind()
90 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()
DBUILD15 deps = ["//third_party/fruit"],
23 "//third_party/fruit",
35 "//third_party/fruit",
45 "//third_party/fruit",
56 "//third_party/fruit",
/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.h30 namespace fruit {
52 using RemoveAnnotations = fruit::impl::meta::UnwrapType<
53fruit::impl::meta::Eval<fruit::impl::meta::RemoveAnnotations(fruit::impl::meta::Type<AnnotatedT>)>…
65 using NormalizeType = fruit::impl::meta::UnwrapType<
66 fruit::impl::meta::Eval<fruit::impl::meta::NormalizeType(fruit::impl::meta::Type<T>)>>;
74 using SignatureType = fruit::impl::meta::UnwrapType<
75fruit::impl::meta::Eval<fruit::impl::meta::SignatureType(fruit::impl::meta::Type<Signature>)>>;
78 using NormalizedSignatureArgs = fruit::impl::meta::Eval<fruit::impl::meta::NormalizeTypeVector(
79 fruit::impl::meta::SignatureArgs(fruit::impl::meta::Type<Signature>))>;
178 friend class fruit::Provider;
/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/google-fruit/tests/
DBUILD13 visibility = ["//third_party/fruit/tests:__subpackages__"],
20 visibility = ["//third_party/fruit/tests:__subpackages__"],
29 "//third_party/fruit",
37 "fruit",
48 "//third_party/fruit",
49 "//third_party/fruit:fruit_headers",
58 visibility = ["//third_party/fruit/tests:__subpackages__"],
60 …+ "FRUIT_HEADERS_LOCATION=`for f in $(locations //third_party/fruit:fruit_headers); do echo \"$$f\…
62 …+ "LIBFRUIT_LOCATION=`for f in $(locations //third_party/fruit); do echo \"$$f\"; done | fgrep lib…
91 visibility = ["//third_party/fruit/tests:__subpackages__"],
[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/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()
/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…
Dlambda_invoker.h31 namespace fruit {
45 FruitStaticAssert(fruit::impl::meta::IsEmpty(fruit::impl::meta::Type<F>));
46 FruitStaticAssert(fruit::impl::meta::IsTriviallyCopyable(fruit::impl::meta::Type<F>));
Dtype_info.defn.h28 namespace fruit {
121 struct GetTypeInfoForType<fruit::Annotated<Annotation, T>> {
124 return TypeInfo(typeid(fruit::Annotated<Annotation, T>), GetConcreteTypeInfo<T>()());
148 struct GetTypeIdsForListHelper<fruit::impl::meta::Vector<Ts...>> {
172 inline std::size_t hash<fruit::impl::TypeId>::operator()(fruit::impl::TypeId type) const {
173 return hash<const fruit::impl::TypeInfo*>()(type.type_info);
/external/google-fruit/
DREADME.md2 …tps://img.shields.io/travis/google/fruit/master.svg?label=Linux/OSX%20build/tests)](https://travis…
3 …/appveyor/ci/poletti-marco/fruit/master.svg?label=Windows%20build/tests)](https://ci.appveyor.com/…
4 ….io/coverity/scan/8486.svg?label=Coverity%20scan)](https://scan.coverity.com/projects/google-fruit)
11 See the [wiki](https://github.com/google/fruit/wiki) for more information, including installation i…

123456789