![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <Component.h>
Public Member Functions | |
ComponentAccumulator () | |
template<typename... RhsParameters> | |
ComponentAccumulator (const ComponentAccumulator< RhsParameters... > &componentAccumulator) | |
template<typename Type , typename... Dependencies> | |
ComponentAccumulator< Import< internal::RemoveCvref_t< Dependencies > >..., Type, Parameters... > | addUniqueFactory (Type(*factory)(Dependencies...)) |
template<typename Type , typename... Dependencies> | |
ComponentAccumulator< Import< internal::RemoveCvref_t< Dependencies > >..., Type, Parameters... > | addPrimaryFactory (std::function< Type(Dependencies...)> factory) |
template<typename Type , typename... Dependencies> | |
ComponentAccumulator< Import< internal::RemoveCvref_t< Dependencies > >..., Type, Parameters... > | addPrimaryFactory (Type(*factory)(Dependencies...)) |
template<typename Type , typename... Dependencies> | |
ComponentAccumulator< Import< internal::RemoveCvref_t< Dependencies > >..., Type, Parameters... > | addRequiredFactory (std::function< Type(Dependencies...)> factory) |
template<typename Type , typename... Dependencies> | |
ComponentAccumulator< Import< internal::RemoveCvref_t< Dependencies > >..., Type, Parameters... > | addRequiredFactory (Type(*factory)(Dependencies...)) |
template<typename Type , typename... Dependencies> | |
ComponentAccumulator< Import< internal::RemoveCvref_t< Dependencies > >..., Type, Parameters... > | addRetainedFactory (std::function< Type(Dependencies...)> factory) |
template<typename Type , typename... Dependencies> | |
ComponentAccumulator< Import< internal::RemoveCvref_t< Dependencies > >..., Type, Parameters... > | addRetainedFactory (Type(*factory)(Dependencies...)) |
template<typename Type , typename... Dependencies> | |
ComponentAccumulator< Import< internal::RemoveCvref_t< Dependencies > >..., Type, Parameters... > | addUnloadableFactory (std::function< Type(Dependencies...)> factory) |
template<typename Type , typename... Dependencies> | |
ComponentAccumulator< Import< internal::RemoveCvref_t< Dependencies > >..., Type, Parameters... > | addUnloadableFactory (Type(*factory)(Dependencies...)) |
template<typename Type > | |
ComponentAccumulator< Type, Parameters... > | addInstance (Type instance) |
template<typename Type > | |
ComponentAccumulator< internal::MakeOptional< Type >, Parameters... > | makeImportOptional () |
template<typename... SubComponentParameters> | |
ComponentAccumulator< SubComponentParameters..., Parameters... > | addComponent (const Component< SubComponentParameters... > &component) |
ComponentAccumulator is a builder style helper class that is used to accumulate the set of types that will be exported and imported by a component as well as how instances of exported types will be provided.
Parameters | The types potentially exported by the accumulating component as well as any types required by the accumulating component (tagged via Import<Type>). |
Create an ComponentAccumulator with no exports or imports.
|
inline |
Copy constructor.
RhsParameters | The exports and imports of the source and result ComponentAccumulator . |
componentAccumulator | The ComponentAccumulator to copy. |
|
inline |
Add the declarations from a Component
to this ComponentAccumulator
.
SubComponentParameters | The Parameters ... defining the type of Component whose declarations are to be added. |
component | The Componment whose declarations are to be added. |
|
inline |
Declare an specific instance as the source of instances of Type
.
Type | The type for which an instance is being specified |
instance | The instance that will be used to satisfy requests for the type Type. |
|
inline |
Add a factory that returns a pointer (std::shared_ptr<>
or Annotated<>) to a primary
value (i.e. a value that must instantiated before all others).
Type | The full type (including std::shared_ptr<> or Annotated<>) returned by the factory. |
Dependencies | The dependencies (arguments) of the factory to be added. |
factory | The factory to be added. |
ComponentAccumulator
.
|
inline |
Add a factory that returns a pointer (std::shared_ptr<>
or Annotated<>) to a primary
value (i.e. a value that must instantiated before all others).
Type | The full type (including std::shared_ptr<> or Annotated<>) returned by the factory. |
Dependencies | The dependencies (arguments) of the factory to be added. |
factory | The factory to be added. |
ComponentAccumulator
.
|
inline |
Add a factory that returns a pointer (std::shared_ptr<>
or Annotated<>) to a required
value (i.e. a value that must always be instantiated).
Type | The full type (including std::shared_ptr<> or Annotated<>) returned by the factory. |
Dependencies | The dependencies (arguments) of the factory to be added. |
factory | The factory to be added. |
ComponentAccumulator
.
|
inline |
Add a factory that returns a pointer (std::shared_ptr<>
or Annotated<>) to a required
value (i.e. a value that must always be instantiated).
Type | The full type (including std::shared_ptr<> or Annotated<>) returned by the factory. |
Dependencies | The dependencies (arguments) of the factory to be added. |
factory | The factory to be added. |
ComponentAccumulator
.
|
inline |
Add a factory that returns a pointer (std::shared_ptr<>
or Annotated<>) to a retained
value (i.e. a value that must retained once instantiated).
Type | The full type (including std::shared_ptr<> or Annotated<>) returned by the factory. |
Dependencies | The dependencies (arguments) of the factory to be added. |
factory | The factory to be added. |
ComponentAccumulator
.
|
inline |
Add a factory that returns a pointer (std::shared_ptr<>
or Annotated<>) to a retained
value (i.e. a value that must retained once instantiated).
Type | The full type (including std::shared_ptr<> or Annotated<>) returned by the factory. |
Dependencies | The dependencies (arguments) of the factory to be added. |
factory | The factory to be added. |
ComponentAccumulator
.
|
inline |
Add a factory that returns a std::unique_ptr
value.
Type | The full type (including std::unique_ptr<>) returned by the factory. |
Dependencies | The dependencies (arguments) of the factory to be added. |
factory | The factory to be added. |
ComponentAccumulator
.
|
inline |
Add a factory that returns a pointer (std::shared_ptr<>
or Annotated<>) to an unloadable value (i.e. a value that may be released when all references to it are cleared).
Type | The full type (including std::shared_ptr<> or Annotated<>) returned by the factory. |
Dependencies | The dependencies (arguments) of the factory to be added. |
factory | The factory to be added. |
ComponentAccumulator
.
|
inline |
Add a factory that returns a pointer (std::shared_ptr<>
or Annotated<>) to an unloadable value (i.e. a value that may be released when all references to it are cleared).
Type | The full type (including std::shared_ptr<> or Annotated<>) returned by the factory. |
Dependencies | The dependencies (arguments) of the factory to be added. |
factory | The factory to be added. |
ComponentAccumulator
.
|
inline |
Make an import optional for this component accumulator.
Type | The type that will be marked as optional. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0