1061da546Spatrick //===-- CFCMutableSet.h -----------------------------------------*- C++ -*-===// 2061da546Spatrick // 3061da546Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4061da546Spatrick // See https://llvm.org/LICENSE.txt for license information. 5061da546Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6061da546Spatrick // 7061da546Spatrick //===----------------------------------------------------------------------===// 8061da546Spatrick 9dda28197Spatrick #ifndef LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCMUTABLESET_H 10dda28197Spatrick #define LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCMUTABLESET_H 11061da546Spatrick 12061da546Spatrick #include "CFCReleaser.h" 13061da546Spatrick 14061da546Spatrick class CFCMutableSet : public CFCReleaser<CFMutableSetRef> { 15061da546Spatrick public: 16061da546Spatrick // Constructors and Destructors 17061da546Spatrick CFCMutableSet(CFMutableSetRef s = NULL); 18061da546Spatrick CFCMutableSet(const CFCMutableSet &rhs); 19*f6aab3d8Srobert ~CFCMutableSet() override; 20061da546Spatrick 21061da546Spatrick // Operators 22061da546Spatrick const CFCMutableSet &operator=(const CFCMutableSet &rhs); 23061da546Spatrick 24061da546Spatrick CFIndex GetCount() const; 25061da546Spatrick CFIndex GetCountOfValue(const void *value) const; 26061da546Spatrick const void *GetValue(const void *value) const; 27061da546Spatrick const void *AddValue(const void *value, bool can_create); 28061da546Spatrick void RemoveValue(const void *value); 29061da546Spatrick void RemoveAllValues(); 30061da546Spatrick 31061da546Spatrick protected: 32061da546Spatrick // Classes that inherit from CFCMutableSet can see and modify these 33061da546Spatrick 34061da546Spatrick private: 35061da546Spatrick // For CFCMutableSet only 36061da546Spatrick }; 37061da546Spatrick 38dda28197Spatrick #endif // LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCMUTABLESET_H 39