/external/google-fruit/include/fruit/impl/ |
D | component.defn.h | 28 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 …]
|
D | injector.defn.h | 25 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 …]
|
D | normalized_component.defn.h | 25 namespace fruit { 31 : NormalizedComponent(std::move(fruit::Component<Params...>( in NormalizedComponent() 32 … fruit::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() 40 … fruit::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()
|
D | component_function.defn.h | 24 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()
|
D | meta_operation_wrappers.h | 22 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/ |
D | component.h | 30 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 …]
|
D | injector.h | 28 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< 224 … fruit::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 …]
|
D | provider.h | 25 namespace fruit { 77 …typename fruit::impl::meta::CheckIfError<fruit::impl::meta::Eval<fruit::impl::meta::CheckNormalize… 78 …fruit::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;
|
D | normalized_component.h | 29 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/ |
D | cached_greeter_test_with_normalized_component.cpp | 22 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 …]
|
D | cached_greeter_test.cpp | 21 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()
|
D | BUILD | 15 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/ |
D | injector_storage.defn.h | 33 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>, 241 … fruit::impl::meta::RemoveAnnotations(fruit::impl::meta::Type<T>))); 264 FruitStaticAssert(fruit::impl::meta::IsSame(fruit::impl::meta::Type<C>, 265 … fruit::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 …]
|
D | injector_accessor_for_tests.defn.h | 22 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()
|
D | injector_storage.h | 30 namespace fruit { 52 using RemoveAnnotations = fruit::impl::meta::UnwrapType< 53 …fruit::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< 75 … fruit::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/ |
D | postsubmit.sh | 19 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/ |
D | deploy_to_bintray.bat | 3 …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
|
D | deploy_to_bintray.sh | 14 …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/ |
D | BUILD | 13 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/ |
D | README.md | 13 $ ~/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/ |
D | fixed_size_allocator.defn.h | 31 namespace fruit { 66 FRUIT_ALWAYS_INLINE inline fruit::impl::meta::UnwrapType< 67 …fruit::impl::meta::Eval<fruit::impl::meta::RemoveAnnotations(fruit::impl::meta::Type<AnnotatedT>)>… 69 using T = fruit::impl::meta::UnwrapType< in constructObject() 70 …fruit::impl::meta::Eval<fruit::impl::meta::RemoveAnnotations(fruit::impl::meta::Type<AnnotatedT>)>… in constructObject()
|
/external/google-fruit/include/fruit/impl/util/ |
D | call_with_tuple.h | 22 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)...); 40 …fruit::impl::meta::Eval<fruit::impl::meta::GenerateIntSequence(fruit::impl::meta::Int<sizeof...(Ar…
|
D | lambda_invoker.h | 31 namespace fruit { 45 FruitStaticAssert(fruit::impl::meta::IsEmpty(fruit::impl::meta::Type<F>)); 46 FruitStaticAssert(fruit::impl::meta::IsTriviallyCopyable(fruit::impl::meta::Type<F>));
|
D | type_info.defn.h | 28 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/ |
D | README.md | 2 …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…
|