Run tabbing pass
[satune.git] / src / Collections / array.h
index 6197de71968b351d30d22a732e425e680793e3b1..496bdc65613e0586d2ad7de75bff3c8a7ab05422 100644 (file)
@@ -3,49 +3,49 @@
 
 template<typename type>
 class Array {
- public:
- Array(uint _size) :
-       array((type *)ourcalloc(1, sizeof(type) * _size)),
+public:
      Array(uint _size) :
+               array((type *)ourcalloc(1, sizeof(type) * _size)),
                size(_size)
-               {
-               }
-  
Array(type * _array, uint _size) :
-       array((type *)ourcalloc(1, sizeof(type) * _size)),
+       {
+       }
+
      Array(type *_array, uint _size) :
+               array((type *)ourcalloc(1, sizeof(type) * _size)),
                size(_size) {
-    memcpy(array, _array, _size * sizeof(type));
-  }
-
-  ~Array() {
-    ourfree(array);
-  }
-
-  void remove(uint index) {
-    size--;
-    for (; index < size; index++) {
-      array[index] = array[index + 1];
-    }
-  }
-  
-  type get(uint index) {
-    return array[index];
-  }
-
-  void set(uint index, type item) {
-    array[index] = item;
-  }
-  
-  uint getSize() {
-    return size;
-  }
-
-  type *expose() {
-    return array;
-  }
-
- private:
-  type *array;
-  uint size;
+               memcpy(array, _array, _size * sizeof(type));
+       }
+
+       ~Array() {
+               ourfree(array);
+       }
+
+       void remove(uint index) {
+               size--;
+               for (; index < size; index++) {
+                       array[index] = array[index + 1];
+               }
+       }
+
+       type get(uint index) {
+               return array[index];
+       }
+
+       void set(uint index, type item) {
+               array[index] = item;
+       }
+
+       uint getSize() {
+               return size;
+       }
+
+       type *expose() {
+               return array;
+       }
+
+private:
+       type *array;
+       uint size;
 };