![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <WeakPointerCache.h>
Public Member Functions | |
WeakPointerCache (std::shared_ptr< AbstractRecipe > recipe) | |
~WeakPointerCache () | |
AbstractPointerCache methods. | |
void * | get (RuntimeManufactory &runtimeManufactory) override |
void | cleanup () override |
![]() | |
virtual | ~AbstractPointerCache ()=default |
Class used to cache a weak_ptr to an instance.
alexaClientSDK::acsdkManufactory::internal::WeakPointerCache::WeakPointerCache | ( | std::shared_ptr< AbstractRecipe > | recipe | ) |
Constructor.
recipe | The recipe that contains information on the means of producing an instance. |
alexaClientSDK::acsdkManufactory::internal::WeakPointerCache::~WeakPointerCache | ( | ) |
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