16 #ifndef ACSDK_SDKCLIENT_INCLUDE_ACSDK_SDKCLIENT_INTERNAL_TYPEREGISTRY_H_ 17 #define ACSDK_SDKCLIENT_INCLUDE_ACSDK_SDKCLIENT_INTERNAL_TYPEREGISTRY_H_ 19 #include <unordered_set> 36 template <
typename ComponentType>
38 m_types.insert(avsCommon::utils::getTypeIndex<ComponentType>());
51 template <
typename ComponentType>
53 m_types.erase(avsCommon::utils::getTypeIndex<ComponentType>());
91 using const_iterator = std::unordered_set<avsCommon::utils::TypeIndex>::const_iterator;
107 std::unordered_set<avsCommon::utils::TypeIndex> m_types;
124 #endif // ACSDK_SDKCLIENT_INCLUDE_ACSDK_SDKCLIENT_INTERNAL_TYPEREGISTRY_H_
std::string toString() const
void outputToStream(std::ostream &stream) const
::std::string string
Definition: gtest-port.h:1097
Definition: TypeIndex.h:35
bool typeDifferenceIsEmpty(const TypeRegistry &other) const
const_iterator cbegin() const
const_iterator cend() const
TypeRegistry typeDifference(const TypeRegistry &other) const
std::unordered_set< avsCommon::utils::TypeIndex >::const_iterator const_iterator
type alias for const_iterator, no order is guaranteed
Definition: TypeRegistry.h:91
std::ostream & operator<<(std::ostream &stream, const TypeRegistry &typeRegistry)
Definition: TypeRegistry.h:117
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
ACSDK_INLINE_VISIBILITY void removeType()
Definition: TypeRegistry.h:52
Definition: TypeRegistry.h:30
ACSDK_INLINE_VISIBILITY void addType()
Definition: TypeRegistry.h:37
void addTypeIndex(const avsCommon::utils::TypeIndex &typeIndex)