brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 3b8f93a Raw
39 lines · c
1//===-- CFCMutableSet.h -----------------------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCMUTABLESET_H10#define LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCMUTABLESET_H11 12#include "CFCReleaser.h"13 14class CFCMutableSet : public CFCReleaser<CFMutableSetRef> {15public:16  // Constructors and Destructors17  CFCMutableSet(CFMutableSetRef s = NULL);18  CFCMutableSet(const CFCMutableSet &rhs);19  ~CFCMutableSet() override;20 21  // Operators22  const CFCMutableSet &operator=(const CFCMutableSet &rhs);23 24  CFIndex GetCount() const;25  CFIndex GetCountOfValue(const void *value) const;26  const void *GetValue(const void *value) const;27  const void *AddValue(const void *value, bool can_create);28  void RemoveValue(const void *value);29  void RemoveAllValues();30 31protected:32  // Classes that inherit from CFCMutableSet can see and modify these33 34private:35  // For CFCMutableSet only36};37 38#endif // LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCMUTABLESET_H39