1 //===-- CFCMutableSet.h -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef CoreFoundationCPP_CFMutableSet_h_
11 #define CoreFoundationCPP_CFMutableSet_h_
13 #include "CFCReleaser.h"
15 class CFCMutableSet : public CFCReleaser<CFMutableSetRef> {
17 //------------------------------------------------------------------
18 // Constructors and Destructors
19 //------------------------------------------------------------------
20 CFCMutableSet(CFMutableSetRef s = NULL);
21 CFCMutableSet(const CFCMutableSet &rhs);
22 virtual ~CFCMutableSet();
24 //------------------------------------------------------------------
26 //------------------------------------------------------------------
27 const CFCMutableSet &operator=(const CFCMutableSet &rhs);
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();
37 //------------------------------------------------------------------
38 // Classes that inherit from CFCMutableSet can see and modify these
39 //------------------------------------------------------------------
42 //------------------------------------------------------------------
43 // For CFCMutableSet only
44 //------------------------------------------------------------------
47 #endif // CoreFoundationCPP_CFMutableSet_h_