//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
*
* 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
{
* @since 2.0
*/
_HandleT(void)
- : __handle(0), __pObjectManagerImpl(null)
+ : __handle(0)
+ , __pObjectManagerImpl(null)
{
}
* 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
{
* 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;
}
/**
* 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;
}
* @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)
{
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