AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Static Public Member Functions | List of all members
alexaClientSDK::acsdkManufactory::FactorySequencer< ResultType, PrecursorTypes... > Class Template Reference

#include <FactorySequencer.h>

Static Public Member Functions

template<typename... ParameterTypes>
static std::function< ResultType(ParameterTypes..., PrecursorTypes...)> get (ResultType(*factory)(ParameterTypes...))
 

Detailed Description

template<typename ResultType, typename... PrecursorTypes>
class alexaClientSDK::acsdkManufactory::FactorySequencer< ResultType, PrecursorTypes... >

Template to provide a sequenced factory function to invoke a factory function after the PrecursorTypes have been instantiated first.

In other words, this class can be used to sequence calls to factory methods in the manufactory. The PrecursorTypes are guaranteed to be instantiated by the manufactory before the ResultType, which will be created using the provided factory method and the ParameterTypes.

Template Parameters
ResultTypeThe type being constructed.
PrecursorTypesThe types that are required to have been constructed before the ResultType is constructed.

Member Function Documentation

◆ get()

template<typename ResultType , typename... PrecursorTypes>
template<typename... ParameterTypes>
std::function< ResultType(ParameterTypes..., PrecursorTypes...)> alexaClientSDK::acsdkManufactory::FactorySequencer< ResultType, PrecursorTypes... >::get ( ResultType(*)(ParameterTypes...)  factory)
inlinestatic

Get the factory sequencer wrapping the ResultType's factory.

Template Parameters
ParameterTypesThe parameters for the ResultType's factory.
Returns
A std::function that will return the ResultType and takes the ParameterTypes and PrecursorTypes as arguments.

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0