* @file FBaseColArrayList.cpp
* @brief This is the implementation for ArrayList class.
*/
-
#include <new>
#include <unique_ptr.h>
#include <FBaseResult.h>
#include <FBaseSysLog.h>
-
namespace Tizen { namespace Base { namespace Collection
{
return E_SUCCESS;
}
-
result
_ArrayListEnumerator::MovePrevious(void)
{
{
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)
{
{
__deleter = deleter;
}
-
}}} // Tizen::Base::Collection
* @file FBaseColHashMap.cpp
* @brief This is the implementation for HashMap class.
*/
-
#include <new>
#include <unique_ptr.h>
#include <FBaseColHashMap.h>
#include <FBaseFloat.h>
#include <FBaseSysLog.h>
-
namespace Tizen { namespace Base { namespace Collection
{
/**
* 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
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);
{
__deleter = deleter;
}
-} } } // Tizen::Base::Collectionn
+}}} // Tizen::Base::Collectionn
\ No newline at end of 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
{
{
__deleter = deleter;
}
-
-} } } // Tizen::Base::Collection
+}}} // Tizen::Base::Collection
* @file FBaseColMapEntry.cpp
* @brief This is the implementation for MapEntry class.
*/
-
#include <FBaseColMapEntry.h>
#include <FBaseErrors.h>
-
namespace Tizen { namespace Base { namespace Collection
{
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)
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;
return false;
}
+
int
MapEntry::GetHashCode(void) const
{
}
return hash;
}
-} } } // Tizen::Base::Collection
+}}} // Tizen::Base::Collection
\ No newline at end of file
* @file FBaseColMultiHashMap.cpp
* @brief This is the implementation for MultiHashMap class.
*/
-
#include <new>
#include <unique_ptr.h>
#include <FBaseColMultiHashMap.h>
#include <FBaseFloat.h>
#include <FBaseSysLog.h>
-
namespace Tizen { namespace Base { namespace Collection
{
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;
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);
{
__deleter = deleter;
}
-} } } // Tizen::Base::Collectionn
+}}} // Tizen::Base::Collectionn
\ No newline at end of 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
{
}
return hash;
}
-}}} // Tizen::Base::Collection
+}}} // Tizen::Base::Collection
\ No newline at end of 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
return hash;
}
-
}}} // Tizen::Base::Collection
//
/**
- * @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
*
* @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)
*
* @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)
*
* @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