edits
[iotcloud.git] / version2 / src / C / hashset.h
index 2a94d9666f1842885f399dcb134eaf271441cc54..7874e652aefd05d7337eea9aeacdb0b7f841b219 100644 (file)
@@ -162,10 +162,10 @@ public:
        /** @brief Return random key from set. */
 
        _Key getRandomElement() {
-               if (getSize() == 0)
+               if (size() == 0)
                        return NULL;
-               else if (getSize() < 6) {
-                       uint count = random() % getSize();
+               else if (size() < 6) {
+                       uint count = random() % size();
                        Linknode<_Key> *ptr = list;
                        while (count > 0) {
                                ptr = ptr->next;
@@ -216,12 +216,12 @@ public:
                return true;
        }
 
-       unsigned int getSize() const {
+       unsigned int size() const {
                return table->getSize();
        }
 
        bool isEmpty() const {
-               return getSize() == 0;
+               return size() == 0;
        }
 
        SetIterator<_Key, _KeyInt, _Shift, hash_function, equals> *iterator() {