Beautified source code of appfw/src/base/inc
[platform/framework/native/appfw.git] / src / base / inc / FBase_HandleT.h
index d6fad1a..5891a73 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -21,7 +20,6 @@
  *
  * This file contains the declarations of the %_HandleT class.
  */
-
 #ifndef _FBASE_INTERNAL_HANDLE_TEMPLATE_H_
 #define _FBASE_INTERNAL_HANDLE_TEMPLATE_H_
 
 namespace Tizen { namespace Base
 {
 
-template<typename T>
+template< typename T >
 class _ObjectManagerT;
 
-template<typename T>
+template< typename T >
 class _HandleT
        : public Tizen::Base::Object
 {
@@ -45,7 +43,8 @@ public:
         * @since 2.0
         */
        _HandleT(void)
-               : __handle(0), __pObjectManagerImpl(null)
+               : __handle(0)
+               , __pObjectManagerImpl(null)
        {
        }
 
@@ -74,7 +73,7 @@ public:
         * Checks whether the handle is valid or not.
         *
         * @since 2.0
-        * return @c true if the handle is valid, @n else @c false
+        * return               @c true if the handle is valid, @n else @c false
         */
        bool IsValid(void) const
        {
@@ -90,11 +89,11 @@ public:
         * Get the signed @c int equivalent of the current instance.
         *
         * @since 2.0
-        * @return Signed @c int equivalent of the current instance
+        * @return              Signed @c int equivalent of the current instance
         */
        int ToInt(void) const
        {
-               return (int)__handle;
+               return (int) __handle;
        }
 
        /**
@@ -105,7 +104,7 @@ public:
         *                      else @c false
         * @param[in]   rhs             An instance of %_HandleT
         */
-       inline bool operator ==(const _HandleT <T>& rhs) const
+       inline bool operator ==(const _HandleT< T >& rhs) const
        {
                return __handle == rhs.__handle;
        }
@@ -119,18 +118,18 @@ public:
         * @param[in]   rhs             An instance of %_HandleT
         *
         */
-       inline bool operator !=(const _HandleT <T>& rhs) const
+       inline bool operator !=(const _HandleT< T >& rhs) const
        {
                return !(*this == rhs);
        }
 
-       _HandleT(const _HandleT<T>& handle)
+       _HandleT(const _HandleT< T >& handle)
        {
                this->__handle = handle.__handle;
                this->__pObjectManagerImpl = handle.__pObjectManagerImpl;
        }
 
-       _HandleT<T>& operator = (const _HandleT& handle)
+       _HandleT< T >& operator =(const _HandleT& handle)
        {
                if (this == &handle)
                {
@@ -154,9 +153,7 @@ private:
        unsigned int __handle;
        _ObjectManagerImpl* __pObjectManagerImpl;
 
-       friend class _ObjectManagerT <T>;
+       friend class _ObjectManagerT< T >;
 }; // _HandleT
-
 }} // Tizen::Base
-
-#endif // _FBASE_RT_INTERNAL_HANDLE_TEMPLATE_H_
+#endif // _FBASE_RT_INTERNAL_HANDLE_TEMPLATE_H_
\ No newline at end of file