Home
last modified time | relevance | path

Searched refs:ComponentStorageEntry (Results 1 – 21 of 21) sorted by relevance

/external/google-fruit/include/fruit/impl/normalized_component_storage/
Dbinding_normalization.templates.h36 FixedSizeVector<ComponentStorageEntry>& toplevel_entries, in BindingNormalizationContext()
39 HashMapWithArenaAllocator<TypeId, ComponentStorageEntry>& binding_data_map, in BindingNormalizationContext()
46 ArenaAllocator<ComponentStorageEntry>(memory_pool)) { in BindingNormalizationContext()
56 …for (const ComponentStorageEntry::LazyComponentWithArgs& x : fully_expanded_components_with_args) { in ~BindingNormalizationContext()
62 const ComponentStorageEntry& replacement_component = pair.second; in ~BindingNormalizationContext()
68 const ComponentStorageEntry& replacement_component = pair.second; in ~BindingNormalizationContext()
74 void BindingNormalization::normalizeBindings(FixedSizeVector<ComponentStorageEntry>&& toplevel_entr… in normalizeBindings()
79 … HashMapWithArenaAllocator<TypeId, ComponentStorageEntry>& binding_data_map, in normalizeBindings()
95 case ComponentStorageEntry::Kind::BINDING_FOR_CONSTRUCTED_OBJECT: in normalizeBindings()
99 case ComponentStorageEntry::Kind::BINDING_FOR_OBJECT_TO_CONSTRUCT_THAT_NEEDS_ALLOCATION: in normalizeBindings()
[all …]
Dbinding_normalization.h47 using LazyComponentWithNoArgs = ComponentStorageEntry::LazyComponentWithNoArgs;
48 using LazyComponentWithArgs = ComponentStorageEntry::LazyComponentWithArgs;
62 FixedSizeVector<ComponentStorageEntry>&& toplevel_entries,
65 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector,
74 FixedSizeVector<ComponentStorageEntry>&& toplevel_entries,
79 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector,
88 FixedSizeVector<ComponentStorageEntry>&& toplevel_entries, MemoryPool& memory_pool,
91 … std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& new_bindings_vector,
95 using multibindings_vector_elem_t = std::pair<ComponentStorageEntry, ComponentStorageEntry>;
108 …const std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& entries_to_proces…
[all …]
Dnormalized_bindings.h30 ComponentStorageEntry::BindingForConstructedObject::object_ptr_t object;
33 ComponentStorageEntry::BindingForObjectToConstruct::create_t create;
47 explicit NormalizedBinding(ComponentStorageEntry entry);
57 ComponentStorageEntry::MultibindingForConstructedObject::object_ptr_t object;
60 ComponentStorageEntry::MultibindingForObjectToConstruct::create_t create;
73ComponentStorageEntry::MultibindingVectorCreator::get_multibindings_vector_t get_multibindings_vec…
Dnormalized_bindings.defn.h25 inline NormalizedBinding::NormalizedBinding(ComponentStorageEntry entry) { in NormalizedBinding()
27 case ComponentStorageEntry::Kind::BINDING_FOR_CONSTRUCTED_OBJECT: in NormalizedBinding()
34 case ComponentStorageEntry::Kind::BINDING_FOR_OBJECT_TO_CONSTRUCT_THAT_NEEDS_ALLOCATION: in NormalizedBinding()
35 case ComponentStorageEntry::Kind::BINDING_FOR_OBJECT_TO_CONSTRUCT_THAT_NEEDS_NO_ALLOCATION: in NormalizedBinding()
36 case ComponentStorageEntry::Kind::BINDING_FOR_OBJECT_TO_CONSTRUCT_WITH_UNKNOWN_ALLOCATION: in NormalizedBinding()
Dnormalized_component_storage.h49 ComponentStorageEntry::BindingForObjectToConstruct i_binding;
50 ComponentStorageEntry::BindingForObjectToConstruct c_binding;
58 using LazyComponentWithNoArgs = ComponentStorageEntry::LazyComponentWithNoArgs;
59 using LazyComponentWithArgs = ComponentStorageEntry::LazyComponentWithArgs;
85 HashMapWithArenaAllocator<LazyComponentWithNoArgs, ComponentStorageEntry,
89 HashMapWithArenaAllocator<LazyComponentWithArgs, ComponentStorageEntry,
Dnormalized_component_storage.defn.h41 …n createHashMapWithArenaAllocatorAndCustomFunctors<LazyComponentWithNoArgs, ComponentStorageEntry>( in createLazyComponentWithNoArgsReplacementMap()
48 …urn createHashMapWithArenaAllocatorAndCustomFunctors<LazyComponentWithArgs, ComponentStorageEntry>( in createLazyComponentWithArgsReplacementMap()
/external/google-fruit/include/fruit/impl/component_storage/
Dcomponent_storage_entry.defn.h30 inline ComponentStorageEntry ComponentStorageEntry::copy() const { in copy()
32 ComponentStorageEntry result; in copy()
50 inline void ComponentStorageEntry::destroy() const { in destroy()
67 inline ComponentStorageEntry::LazyComponentWithArgs::ComponentInterface::ComponentInterface(erased_… in ComponentInterface()
71 class ComponentInterfaceImpl : public ComponentStorageEntry::LazyComponentWithArgs::ComponentInterf…
73 using ComponentInterface = ComponentStorageEntry::LazyComponentWithArgs::ComponentInterface;
83 …areParamsEqual(const ComponentStorageEntry::LazyComponentWithArgs::ComponentInterface& other) cons… in areParamsEqual()
93 … FixedSizeVector<ComponentStorageEntry> component_entries = std::move(component.storage).release(); in addBindings()
113 inline ComponentStorageEntry ComponentStorageEntry::LazyComponentWithArgs::create(Component (*fun)(… in create()
115 ComponentStorageEntry result; in create()
[all …]
Dcomponent_storage_entry.h35 struct ComponentStorageEntry { struct
193 … using entry_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>; argument
203 static ComponentStorageEntry create(Component (*fun)());
206 static ComponentStorageEntry create(fruit::ComponentFunction<Component> component_function);
209 static ComponentStorageEntry createReplacedComponentEntry(Component (*fun)());
212 static ComponentStorageEntry createReplacementComponentEntry(Component (*fun)());
239 … using entry_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>; argument
262 static ComponentStorageEntry create(Component (*fun)(Args...), std::tuple<Args...> args_tuple);
265 …static ComponentStorageEntry create(fruit::ComponentFunction<Component, Arg, Args...> component_fu…
268 static ComponentStorageEntry createReplacedComponentEntry(Component (*fun)(Args...),
[all …]
Dpartial_component_storage.defn.h34 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
52 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
70 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
89 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
109 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
129 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
150 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
170 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
189 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
210 void addBindings(FixedSizeVector<ComponentStorageEntry>& entries) const { in addBindings()
[all …]
Dcomponent_storage.defn.h26 inline ComponentStorage::ComponentStorage(FixedSizeVector<ComponentStorageEntry>&& entries) in ComponentStorage()
38 for (ComponentStorageEntry& entry : entries) { in destroy()
48 inline FixedSizeVector<ComponentStorageEntry> ComponentStorage::release() && { in release()
59 entries = FixedSizeVector<ComponentStorageEntry>(other.entries.size());
60 for (const ComponentStorageEntry& entry : other.entries) {
Dcomponent_storage.h40 FixedSizeVector<ComponentStorageEntry> entries;
46 ComponentStorage(FixedSizeVector<ComponentStorageEntry>&& entries);
52 FixedSizeVector<ComponentStorageEntry> release() &&;
/external/google-fruit/src/
Dbinding_normalization.cpp41 …const std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& entries_to_proces… in printLazyComponentInstallationLoop() argument
42 const ComponentStorageEntry& last_entry) { in printLazyComponentInstallationLoop()
45 for (const ComponentStorageEntry& entry : entries_to_process) { in printLazyComponentInstallationLoop()
47 case ComponentStorageEntry::Kind::COMPONENT_WITH_ARGS_END_MARKER: in printLazyComponentInstallationLoop()
49 last_entry.kind == ComponentStorageEntry::Kind::LAZY_COMPONENT_WITH_ARGS && in printLazyComponentInstallationLoop()
56 case ComponentStorageEntry::Kind::COMPONENT_WITHOUT_ARGS_END_MARKER: in printLazyComponentInstallationLoop()
58 last_entry.kind == ComponentStorageEntry::Kind::LAZY_COMPONENT_WITH_NO_ARGS && in printLazyComponentInstallationLoop()
71 case ComponentStorageEntry::Kind::LAZY_COMPONENT_WITH_ARGS: in printLazyComponentInstallationLoop()
75 case ComponentStorageEntry::Kind::LAZY_COMPONENT_WITH_NO_ARGS: in printLazyComponentInstallationLoop()
100 …const ComponentStorageEntry& replaced_component_entry, const ComponentStorageEntry& replacement_co… in printIncompatibleComponentReplacementsError()
[all …]
Dnormalized_component_storage.cpp58 …using bindings_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>… in NormalizedComponentStorage()
59 …bindings_vector_t bindings_vector = bindings_vector_t(ArenaAllocator<ComponentStorageEntry>(memory… in NormalizedComponentStorage()
84 …using bindings_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>… in NormalizedComponentStorage()
85 …bindings_vector_t bindings_vector = bindings_vector_t(ArenaAllocator<ComponentStorageEntry>(memory… in NormalizedComponentStorage()
104 const ComponentStorageEntry& replacement_component = pair.second; in ~NormalizedComponentStorage()
110 const ComponentStorageEntry& replacement_component = pair.second; in ~NormalizedComponentStorage()
Dinjector_storage.cpp87 …using new_bindings_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEn… in InjectorStorage()
88 …ctor_t new_bindings_vector = new_bindings_vector_t(ArenaAllocator<ComponentStorageEntry>(memory_po… in InjectorStorage()
/external/google-fruit/include/fruit/impl/injector/
Dinjector_storage.defn.h58 FruitAssert(itr->kind != ComponentStorageEntry::Kind::COMPRESSED_BINDING); in getId()
59 FruitAssert(itr->kind != ComponentStorageEntry::Kind::LAZY_COMPONENT_WITH_NO_ARGS); in getId()
60 FruitAssert(itr->kind != ComponentStorageEntry::Kind::REPLACED_LAZY_COMPONENT_WITH_NO_ARGS); in getId()
61 FruitAssert(itr->kind != ComponentStorageEntry::Kind::REPLACEMENT_LAZY_COMPONENT_WITH_NO_ARGS); in getId()
62 FruitAssert(itr->kind != ComponentStorageEntry::Kind::LAZY_COMPONENT_WITH_ARGS); in getId()
63 FruitAssert(itr->kind != ComponentStorageEntry::Kind::REPLACED_LAZY_COMPONENT_WITH_ARGS); in getId()
64 FruitAssert(itr->kind != ComponentStorageEntry::Kind::REPLACEMENT_LAZY_COMPONENT_WITH_ARGS); in getId()
74 if (itr->kind != ComponentStorageEntry::Kind::BINDING_FOR_CONSTRUCTED_OBJECT && in isTerminal()
75 … itr->kind != ComponentStorageEntry::Kind::BINDING_FOR_OBJECT_TO_CONSTRUCT_THAT_NEEDS_ALLOCATION && in isTerminal()
76 …itr->kind != ComponentStorageEntry::Kind::BINDING_FOR_OBJECT_TO_CONSTRUCT_THAT_NEEDS_NO_ALLOCATION… in isTerminal()
[all …]
Dinjector_storage.h85 static ComponentStorageEntry createComponentStorageEntryForBind();
88 static ComponentStorageEntry createComponentStorageEntryForConstBind();
91 static ComponentStorageEntry createComponentStorageEntryForBindInstance(C& instance);
94 static ComponentStorageEntry createComponentStorageEntryForBindConstInstance(const C& instance);
97 static ComponentStorageEntry createComponentStorageEntryForProvider();
100 static ComponentStorageEntry createComponentStorageEntryForCompressedProvider();
103 static ComponentStorageEntry createComponentStorageEntryForConstructor();
106 static ComponentStorageEntry createComponentStorageEntryForCompressedConstructor();
109 static ComponentStorageEntry createComponentStorageEntryForMultibindingVectorCreator();
112 static ComponentStorageEntry createComponentStorageEntryForMultibinding();
[all …]
/external/google-fruit/include/fruit/impl/
Dcomponent_functors.defn.h68 void operator()(FixedSizeVector<ComponentStorageEntry>&) {} in operator()
86 void operator()(FixedSizeVector<ComponentStorageEntry>& entries) { in operator()
150 void operator()(FixedSizeVector<ComponentStorageEntry>&) {}
182 void operator()(FixedSizeVector<ComponentStorageEntry>& entries) {
195 void operator()(FixedSizeVector<ComponentStorageEntry>& entries) {
216 void operator()(FixedSizeVector<ComponentStorageEntry>& entries) {
239 inline void operator()(FixedSizeVector<ComponentStorageEntry>& entries) {
252 inline void operator()(FixedSizeVector<ComponentStorageEntry>& entries) {
273 void operator()(FixedSizeVector<ComponentStorageEntry>& entries) {
345 void operator()(FixedSizeVector<ComponentStorageEntry>& entries) {
[all …]
Dfruit_internal_forward_decls.h30 struct ComponentStorageEntry;
Dcomponent.defn.h64 fruit::impl::FixedSizeVector<fruit::impl::ComponentStorageEntry> entries(num_entries); in Component()
/external/google-fruit/include/fruit/
Dcomponent_function.h39 friend struct fruit::impl::ComponentStorageEntry;
Dcomponent.h82 friend struct fruit::impl::ComponentStorageEntry::LazyComponentWithNoArgs;