AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::acsdkNotifierInterfaces::NotifierInterface< ObserverType > Class Template Referenceabstract

#include <NotifierInterface.h>

Inheritance diagram for alexaClientSDK::acsdkNotifierInterfaces::NotifierInterface< ObserverType >:
Inheritance graph
[legend]

Public Member Functions

virtual ~NotifierInterface ()=default
 
virtual void addObserver (const std::shared_ptr< ObserverType > &observer)=0
 
virtual void removeObserver (const std::shared_ptr< ObserverType > &observer)=0
 
virtual void notifyObservers (std::function< void(const std::shared_ptr< ObserverType > &)> notify)=0
 
virtual bool notifyObserversInReverse (std::function< void(const std::shared_ptr< ObserverType > &)> notify)=0
 
virtual void setAddObserverFunction (std::function< void(const std::shared_ptr< ObserverType > &)> postAddFunc)=0
 

Detailed Description

template<typename ObserverType>
class alexaClientSDK::acsdkNotifierInterfaces::NotifierInterface< ObserverType >

Interface for maintains a set of observers that are notified with a caller defined function.

Template Parameters
ObserverTypeThe type of observer notified by the template instantiation.

Constructor & Destructor Documentation

◆ ~NotifierInterface()

template<typename ObserverType>
virtual alexaClientSDK::acsdkNotifierInterfaces::NotifierInterface< ObserverType >::~NotifierInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ addObserver()

template<typename ObserverType>
virtual void alexaClientSDK::acsdkNotifierInterfaces::NotifierInterface< ObserverType >::addObserver ( const std::shared_ptr< ObserverType > &  observer)
pure virtual

◆ notifyObservers()

template<typename ObserverType>
virtual void alexaClientSDK::acsdkNotifierInterfaces::NotifierInterface< ObserverType >::notifyObservers ( std::function< void(const std::shared_ptr< ObserverType > &)>  notify)
pure virtual

◆ notifyObserversInReverse()

template<typename ObserverType>
virtual bool alexaClientSDK::acsdkNotifierInterfaces::NotifierInterface< ObserverType >::notifyObserversInReverse ( std::function< void(const std::shared_ptr< ObserverType > &)>  notify)
pure virtual

◆ removeObserver()

template<typename ObserverType>
virtual void alexaClientSDK::acsdkNotifierInterfaces::NotifierInterface< ObserverType >::removeObserver ( const std::shared_ptr< ObserverType > &  observer)
pure virtual

◆ setAddObserverFunction()

template<typename ObserverType>
virtual void alexaClientSDK::acsdkNotifierInterfaces::NotifierInterface< ObserverType >::setAddObserverFunction ( std::function< void(const std::shared_ptr< ObserverType > &)>  postAddFunc)
pure virtual

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

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