*
* This file contains the declarations of the %_ObjectManagerT class.
*/
-
-
#ifndef _FBASE_INTERNAL_OBJECT_MANAGER_TEMPLATE_H_
#define _FBASE_INTERNAL_OBJECT_MANAGER_TEMPLATE_H_
#include "FBase_HandleT.h"
#include "FBase_ObjectManagerImpl.h"
-
-
namespace Tizen { namespace Base
{
* }
* @endcode
*/
-template<typename T>
+template< typename T >
class _ObjectManagerT
: Tizen::Base::Object
{
* @exception E_SUCCESS The method was successful.
* @see Unregister()
*/
- _HandleT <T> Register(const T& object)
+ _HandleT< T > Register(const T& object)
{
- _HandleT <T> handle;
+ _HandleT< T > handle;
unsigned int rawHandle = 0;
- rawHandle = __pImpl->Register((void*)&object);
+ rawHandle = __pImpl->Register((void*) &object);
handle.Initialize(rawHandle, __pImpl);
return handle;
* @exception E_OBJ_NOT_FOUND The specified handle was not found.
* @see Register()
*/
- T* Unregister(const _HandleT <T>& handle)
+ T* Unregister(const _HandleT< T >& handle)
{
void* pObject = __pImpl->Unregister(handle.__handle);
* @return Handle specifed by a signed @c integer
* @param[in] value A signed @c integer value;
*/
- _HandleT<T> GetHandle(int value)
+ _HandleT< T > GetHandle(int value)
{
- _HandleT<T> handle;
- handle.Initialize((unsigned int)value, __pImpl);
+ _HandleT< T > handle;
+ handle.Initialize((unsigned int) value, __pImpl);
return handle;
}
* @exception E_SUCCESS The method was successful.
* @exception E_OBJ_NOT_FOUND The specified handle was not found.
*/
- T* GetObject(const _HandleT <T>& handle)
+ T* GetObject(const _HandleT< T >& handle)
{
void* pObject = null;
return (T*)pObject;
}
-
/**
* Gets an object specified by the handle.
*
* @exception E_SUCCESS The method was successful.
* @exception E_OBJ_NOT_FOUND The specified handle was not found.
*/
- const T* GetObject(const _HandleT <T>& handle) const
+ const T* GetObject(const _HandleT< T >& handle) const
{
if (handle.IsNull())
return null;
return (const T*)pObject;
}
-
/**
* Gets the number of objects in the object manager.
*
private:
_ObjectManagerImpl* __pImpl;
}; // _ObjectManagerT
-
}} // Tizen::Base
-
-#endif // _FBASE_INTERNAL_OBJECT_MANAGER_TEMPLATE_H_
+#endif // _FBASE_INTERNAL_OBJECT_MANAGER_TEMPLATE_H_
\ No newline at end of file