]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - source/Host/macosx/cfcpp/CFCMutableSet.h
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / source / Host / macosx / cfcpp / CFCMutableSet.h
1 //===-- CFCMutableSet.h -----------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef CoreFoundationCPP_CFMutableSet_h_
11 #define CoreFoundationCPP_CFMutableSet_h_
12
13 #include "CFCReleaser.h"
14
15 class CFCMutableSet : public CFCReleaser<CFMutableSetRef> {
16 public:
17   //------------------------------------------------------------------
18   // Constructors and Destructors
19   //------------------------------------------------------------------
20   CFCMutableSet(CFMutableSetRef s = NULL);
21   CFCMutableSet(const CFCMutableSet &rhs);
22   virtual ~CFCMutableSet();
23
24   //------------------------------------------------------------------
25   // Operators
26   //------------------------------------------------------------------
27   const CFCMutableSet &operator=(const CFCMutableSet &rhs);
28
29   CFIndex GetCount() const;
30   CFIndex GetCountOfValue(const void *value) const;
31   const void *GetValue(const void *value) const;
32   const void *AddValue(const void *value, bool can_create);
33   void RemoveValue(const void *value);
34   void RemoveAllValues();
35
36 protected:
37   //------------------------------------------------------------------
38   // Classes that inherit from CFCMutableSet can see and modify these
39   //------------------------------------------------------------------
40
41 private:
42   //------------------------------------------------------------------
43   // For CFCMutableSet only
44   //------------------------------------------------------------------
45 };
46
47 #endif // CoreFoundationCPP_CFMutableSet_h_