AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <TypeRegistry.h>
Public Types | |
using | const_iterator = std::unordered_set< avsCommon::utils::TypeIndex >::const_iterator |
type alias for const_iterator, no order is guaranteed More... | |
Public Member Functions | |
template<typename ComponentType > | |
ACSDK_INLINE_VISIBILITY void | addType () |
void | addTypeIndex (const avsCommon::utils::TypeIndex &typeIndex) |
template<typename ComponentType > | |
ACSDK_INLINE_VISIBILITY void | removeType () |
bool | empty () const |
TypeRegistry | typeDifference (const TypeRegistry &other) const |
bool | typeDifferenceIsEmpty (const TypeRegistry &other) const |
void | outputToStream (std::ostream &stream) const |
std::string | toString () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
Internal class which keeps track of a set of types
using alexaClientSDK::sdkClient::internal::TypeRegistry::const_iterator = std::unordered_set<avsCommon::utils::TypeIndex>::const_iterator |
type alias for const_iterator, no order is guaranteed
|
inline |
Adds the given type, provided as a template to the registry
ComponentType | The type to add |
void alexaClientSDK::sdkClient::internal::TypeRegistry::addTypeIndex | ( | const avsCommon::utils::TypeIndex & | typeIndex | ) |
Adds the given type, provided as a parameter to the registry
typeIndex | The type to add |
const_iterator alexaClientSDK::sdkClient::internal::TypeRegistry::cbegin | ( | ) | const |
Get the const_iterator referencing the first of the types in this TypeRegistry
const_iterator alexaClientSDK::sdkClient::internal::TypeRegistry::cend | ( | ) | const |
Get the const_iterator referencing one past the end of the types in this TypeRegistry
bool alexaClientSDK::sdkClient::internal::TypeRegistry::empty | ( | ) | const |
Check if this registry contains no items
void alexaClientSDK::sdkClient::internal::TypeRegistry::outputToStream | ( | std::ostream & | stream | ) | const |
Uses the given stream to output a list of types contained within this registry, note that the readability of the string depends to a large extent on whether the SDK has been built with RTTI support.
stream | The output stream |
|
inline |
Removes the given type from the registry
ComponentType | The type to remove |
std::string alexaClientSDK::sdkClient::internal::TypeRegistry::toString | ( | ) | const |
Creates a string containing the list of types contained within this registry, note that the readability of the string depends to a large extent on whether the SDK has been built with RTTI support.
TypeRegistry alexaClientSDK::sdkClient::internal::TypeRegistry::typeDifference | ( | const TypeRegistry & | other | ) | const |
Returns a type registry containing the types present in this TypeRegistry, but not the other
other | The other TypeRegistry |
bool alexaClientSDK::sdkClient::internal::TypeRegistry::typeDifferenceIsEmpty | ( | const TypeRegistry & | other | ) | const |
Returns whether all types present in this registry are present in the other
other | The other TypeRegistry |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0