AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::GuardedValue< ValueT > Class Template Reference

#include <GuardedValue.h>

Public Member Functions

 operator ValueT () const
 
ValueT operator= (const ValueT &value)
 
 GuardedValue (const ValueT &value)
 

Detailed Description

template<typename ValueT>
class alexaClientSDK::avsCommon::utils::GuardedValue< ValueT >

Auxiliary class that uses mutex to synchronize non-trivially copyable object manipulation.

Constructor & Destructor Documentation

◆ GuardedValue()

template<typename ValueT >
alexaClientSDK::avsCommon::utils::GuardedValue< ValueT >::GuardedValue ( const ValueT &  value)

Builds the object with the given value.

Parameters
valueThe value to be used to initialize m_value.

Member Function Documentation

◆ operator ValueT()

template<typename ValueT >
alexaClientSDK::avsCommon::utils::GuardedValue< ValueT >::operator ValueT ( ) const

Covert this object to value T.

◆ operator=()

template<typename ValueT >
ValueT alexaClientSDK::avsCommon::utils::GuardedValue< ValueT >::operator= ( const ValueT &  value)

Assign the underlying m_value to the new value.

Parameters
valueThe new value to be used.

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