Beautify Source Code of base_collection/*
authorFaysal <faysal.m@samsung.com>
Tue, 2 Jul 2013 12:51:09 +0000 (18:51 +0600)
committerdahyeong.kim <dahyeong.kim@samsung.com>
Tue, 2 Jul 2013 10:38:48 +0000 (19:38 +0900)
Change-Id: If864a3cb6b316fac4d55a166470810deffa5e410
Signed-off-by: Faysal <faysal.m@samsung.com>
src/base/collection/FBaseColArrayList.cpp
src/base/collection/FBaseColHashMap.cpp
src/base/collection/FBaseColLinkedList.cpp
src/base/collection/FBaseColMapEntry.cpp
src/base/collection/FBaseColMultiHashMap.cpp
src/base/collection/FBaseColQueue.cpp
src/base/collection/FBaseColStack.cpp
src/base/collection/FBaseColTypes.cpp

index 33ae5af..9fa2a67 100644 (file)
@@ -18,7 +18,6 @@
  * @file               FBaseColArrayList.cpp
  * @brief              This is the implementation for ArrayList class.
  */
-
 #include <new>
 #include <unique_ptr.h>
 
@@ -26,7 +25,6 @@
 #include <FBaseResult.h>
 #include <FBaseSysLog.h>
 
-
 namespace Tizen { namespace Base { namespace Collection
 {
 
@@ -103,7 +101,6 @@ _ArrayListEnumerator::Reset(void)
        return E_SUCCESS;
 }
 
-
 result
 _ArrayListEnumerator::MovePrevious(void)
 {
@@ -419,9 +416,9 @@ ArrayList::RemoveItems(int startIndex, int count)
 {
        SysTryReturnResult(NID_BASE_COL, startIndex >= 0 && count >= 0, E_OUT_OF_RANGE, "Both of the startIndex(%d) and count(%d) MUST be greater than or equal to 0.", startIndex, count);
        SysTryReturnResult(NID_BASE_COL, startIndex < __count, E_OUT_OF_RANGE,
-                          "The startIndex(%d) MUST be less than the number of elements(%d).", startIndex, __count);
+               "The startIndex(%d) MUST be less than the number of elements(%d).", startIndex, __count);
        SysTryReturnResult(NID_BASE_COL, count <= __count && (startIndex + count <= __count), E_OUT_OF_RANGE,
-                          "The startIndex(%d) + count(%d) MUST be less than or equal to the number of elements(%d).", startIndex, count, __count);
+               "The startIndex(%d) + count(%d) MUST be less than or equal to the number of elements(%d).", startIndex, count, __count);
 
        if (count > 0)
        {
@@ -724,5 +721,4 @@ ArrayList::SetDeleter(DeleterFunctionType deleter)
 {
        __deleter = deleter;
 }
-
 }}}  // Tizen::Base::Collection
index bec9d8a..599f724 100644 (file)
@@ -18,7 +18,6 @@
  * @file               FBaseColHashMap.cpp
  * @brief              This is the implementation for HashMap class.
  */
-
 #include <new>
 #include <unique_ptr.h>
 #include <FBaseColHashMap.h>
@@ -28,7 +27,6 @@
 #include <FBaseFloat.h>
 #include <FBaseSysLog.h>
 
-
 namespace Tizen { namespace Base { namespace Collection
 {
 
@@ -43,7 +41,7 @@ public:
        /**
         * This is the constructor.
         *
-        * @param[in]   pKey            A key to be included in this entry. It can not be @c null.
+        * @param[in]   pKey    A key to be included in this entry. It can not be @c null.
         * @param[in]   pValue  A value to be included in this entry. It can not be @c null.
         * @param[in]   pNext   A pointer to the next entry
         * @param[in]   hash    An hash value of the key
@@ -508,7 +506,7 @@ CATCH:
 result
 HashMap::Add(Object* pKey, Object* pValue)
 {
-       SysTryReturnResult(NID_BASE_COL, pKey != null , E_INVALID_ARG, "Invalid argument used. The pKey is null");
+       SysTryReturnResult(NID_BASE_COL, pKey != null, E_INVALID_ARG, "Invalid argument used. The pKey is null");
        SysTryReturnResult(NID_BASE_COL, pValue != null, E_INVALID_ARG, "Invalid argument used. The pValue is null");
 
        int hash = Hash(*pKey);
@@ -930,4 +928,4 @@ HashMap::SetDeleter(DeleterFunctionType deleter)
 {
        __deleter = deleter;
 }
-} } }  // Tizen::Base::Collectionn
+}}}  // Tizen::Base::Collectionn
\ No newline at end of file
index 2503d57..b90abba 100644 (file)
  * @file               FBaseColLinkedList.cpp
  * @brief              This is the implementation for LinkedList class.
  */
-
 #include <new>
 #include <unique_ptr.h>
 #include <FBaseColLinkedList.h>
 #include <FBaseResult.h>
 #include <FBaseSysLog.h>
 
-
 namespace Tizen { namespace Base { namespace Collection
 {
 
@@ -958,5 +956,4 @@ LinkedList::SetDeleter(DeleterFunctionType deleter)
 {
        __deleter = deleter;
 }
-
-} } }  // Tizen::Base::Collection
+}}}  // Tizen::Base::Collection
index 879ab3b..8e16fce 100644 (file)
  * @file               FBaseColMapEntry.cpp
  * @brief              This is the implementation for MapEntry class.
  */
-
 #include <FBaseColMapEntry.h>
 #include <FBaseErrors.h>
 
-
 namespace Tizen { namespace Base { namespace Collection
 {
 
@@ -36,8 +34,8 @@ MapEntry::MapEntry(void)
 MapEntry::MapEntry(const Object& pKey, const Object& pValue)
        : __pMapEntryImpl(null)
 {
-       _pKey = const_cast <Object*>(&pKey);
-       _pValue = const_cast <Object*>(&pValue);
+       _pKey = const_cast< Object* >(&pKey);
+       _pValue = const_cast< Object* >(&pValue);
 }
 
 MapEntry::~MapEntry(void)
@@ -71,7 +69,7 @@ MapEntry::GetValue(void)
 bool
 MapEntry::Equals(const Object& obj) const
 {
-       const MapEntry* pOther = dynamic_cast <const MapEntry*>(&obj);
+       const MapEntry* pOther = dynamic_cast< const MapEntry* >(&obj);
        if (pOther == null)
        {
                return false;
@@ -84,6 +82,7 @@ MapEntry::Equals(const Object& obj) const
 
        return false;
 }
+
 int
 MapEntry::GetHashCode(void) const
 {
@@ -98,4 +97,4 @@ MapEntry::GetHashCode(void) const
        }
        return hash;
 }
-} } }  // Tizen::Base::Collection
+}}}  // Tizen::Base::Collection
\ No newline at end of file
index 0d0427c..721050d 100644 (file)
@@ -18,7 +18,6 @@
  * @file               FBaseColMultiHashMap.cpp
  * @brief              This is the implementation for MultiHashMap class.
  */
-
 #include <new>
 #include <unique_ptr.h>
 #include <FBaseColMultiHashMap.h>
@@ -28,7 +27,6 @@
 #include <FBaseFloat.h>
 #include <FBaseSysLog.h>
 
-
 namespace Tizen { namespace Base { namespace Collection
 {
 
@@ -532,7 +530,7 @@ CATCH:
 result
 MultiHashMap::Add(Object* pKey, Object* pValue)
 {
-       SysTryReturnResult(NID_BASE_COL, pKey != null , E_INVALID_ARG, "Invalid argument used. The pKey is null");
+       SysTryReturnResult(NID_BASE_COL, pKey != null, E_INVALID_ARG, "Invalid argument used. The pKey is null");
        SysTryReturnResult(NID_BASE_COL, pValue != null, E_INVALID_ARG, "Invalid argument used. The pValue is null");
 
        __Node* pNewNode = null;
@@ -844,7 +842,7 @@ MultiHashMap::RemoveAll(void)
 result
 MultiHashMap::SetValue(const Object& key, const Object& value, Object* pNewValue)
 {
-       SysTryReturnResult(NID_BASE_COL, pNewValue != null , E_INVALID_ARG, "Invalid argument used. The pNewValue is null");
+       SysTryReturnResult(NID_BASE_COL, pNewValue != null, E_INVALID_ARG, "Invalid argument used. The pNewValue is null");
 
        result r = E_SUCCESS;
        int hash = Hash(key);
@@ -1189,4 +1187,4 @@ MultiHashMap::SetDeleter(DeleterFunctionType deleter)
 {
        __deleter = deleter;
 }
-} } }  // Tizen::Base::Collectionn
+}}}  // Tizen::Base::Collectionn
\ No newline at end of file
index dc47501..f168632 100644 (file)
 //
 
 /**
- * @file               FBaseColQueue.cpp
- * @brief              This is the implementation for Queue class.
+ * @file       FBaseColQueue.cpp
+ * @brief      This is the implementation for Queue class.
  */
-
 #include <new>
 #include <unique_ptr.h>
 #include <FBaseColQueue.h>
 #include <FBaseResult.h>
 #include <FBaseSysLog.h>
 
-
 namespace Tizen { namespace Base { namespace Collection
 {
 
@@ -351,4 +349,4 @@ Queue::GetHashCode(void) const
        }
        return hash;
 }
-}}}  // Tizen::Base::Collection
+}}}  // Tizen::Base::Collection
\ No newline at end of file
index 4b39f62..b38b30d 100644 (file)
  * @file               FBaseColStack.cpp
  * @brief              This is the implementation for Stack class.
  */
-
 #include <new>
 #include <unique_ptr.h>
 #include <FBaseColStack.h>
 #include <FBaseResult.h>
 #include <FBaseSysLog.h>
 
-
-
 using namespace Tizen::Base::Runtime;
 
 namespace Tizen { namespace Base { namespace Collection
@@ -338,5 +335,4 @@ Stack::GetHashCode(void) const
 
        return hash;
 }
-
 }}}  // Tizen::Base::Collection
index 0960030..295bbff 100644 (file)
 //
 
 /**
- * @file               FBaseColTypes.cpp
- * @brief              This is the implementation for the element deleter.
+ * @file       FBaseColTypes.cpp
+ * @brief      This is the implementation for the element deleter.
  */
-
 #include <FBaseColTypes.h>
 
 namespace Tizen { namespace Base { namespace Collection
@@ -29,7 +28,7 @@ namespace Tizen { namespace Base { namespace Collection
  *
  * @since 2.0
  *
- * @param[in]  pObj            The pointer to object to be removed.
+ * @param[in]  pObj    The pointer to object to be removed.
  */
 void
 NoOpDeleter(Object* pObj)
@@ -41,7 +40,7 @@ NoOpDeleter(Object* pObj)
  *
  * @since 2.0
  *
- * @param[in]  pObj            The pointer to object to be removed.
+ * @param[in]  pObj    The pointer to object to be removed.
  */
 void
 SingleObjectDeleter(Object* pObj)
@@ -54,12 +53,11 @@ SingleObjectDeleter(Object* pObj)
  *
  * @since 2.0
  *
- * @param[in]  pObj            The pointer to object to be removed.
+ * @param[in]  pObj    The pointer to object to be removed.
  */
 void
 ArrayDeleter(Object* pObj)
 {
        delete[] pObj;
 }
-
-}}} // Tizen::Base::Collection
+}}} // Tizen::Base::Collection
\ No newline at end of file