![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <SharedPointerCache.h>
Public Member Functions | |
SharedPointerCache (std::shared_ptr< AbstractRecipe > recipe) | |
~SharedPointerCache () | |
AbstractPointerCache methods. | |
void * | get (RuntimeManufactory &runtimeManufactory) override |
void | cleanup () override |
![]() | |
virtual | ~AbstractPointerCache ()=default |
Class used to cache a shared_ptr to an instance.
alexaClientSDK::acsdkManufactory::internal::SharedPointerCache::SharedPointerCache | ( | std::shared_ptr< AbstractRecipe > | recipe | ) |
Constructor.
recipe | The recipe that contains information on the means of producing an instance. |
alexaClientSDK::acsdkManufactory::internal::SharedPointerCache::~SharedPointerCache | ( | ) |
Destructor.
|
overridevirtual |
Release any unneeded references in the cache after calling get().
Implements alexaClientSDK::acsdkManufactory::internal::AbstractPointerCache.
|
overridevirtual |
Get the instance from the cache.
runtimeManufactory | The RuntimeManufactory to use to acquire an instance if the cache is empty. |
Implements alexaClientSDK::acsdkManufactory::internal::AbstractPointerCache.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0