aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/basetypes/MCSet.h
diff options
context:
space:
mode:
authorGravatar DINH Viet Hoa <hoa@sprw.me>2013-01-21 15:06:46 -0800
committerGravatar DINH Viet Hoa <hoa@sprw.me>2013-01-21 15:06:46 -0800
commit119b654d35db873bb7dbc77e24649462eb1aa4e6 (patch)
treeae42d35a781f94d8fe6994963230b095a1b2340a /src/core/basetypes/MCSet.h
parentd998016c04cb1e1dfc9fcf608639bfb5a4147439 (diff)
headers show public API first. cleanup.
Diffstat (limited to 'src/core/basetypes/MCSet.h')
-rw-r--r--src/core/basetypes/MCSet.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/core/basetypes/MCSet.h b/src/core/basetypes/MCSet.h
index b4a339d4..2d6df20c 100644
--- a/src/core/basetypes/MCSet.h
+++ b/src/core/basetypes/MCSet.h
@@ -4,6 +4,8 @@
#include <mailcore/MCObject.h>
+#ifdef __cplusplus
+
namespace mailcore {
class String;
@@ -11,20 +13,13 @@ namespace mailcore {
class HashMap;
class Set : public Object {
- private:
- HashMap * mHash;
- void init();
public:
Set();
Set(Set * o);
- virtual ~Set();
static Set * set();
static Set * setWithArray(Array * objects);
- virtual String * description();
- virtual Object * copy();
-
virtual unsigned int count();
virtual void addObject(Object * obj);
virtual void removeObject(Object * obj);
@@ -34,8 +29,19 @@ namespace mailcore {
virtual Array * allObjects();
virtual void removeAllObjects();
virtual void addObjectsFromArray(Array * objects);
+
+ public: // subclass behavior
+ virtual ~Set();
+ virtual String * description();
+ virtual Object * copy();
+
+ private:
+ HashMap * mHash;
+ void init();
};
}
#endif
+
+#endif