//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
#include <FBaseTypes.h>
#include <FBaseColICollection.h>
-
namespace Tizen { namespace Base { namespace Collection
{
* const Object* pObj = stack.Peek(); // pObj: "Third", stack.GetCount(): 3
*
* // Reads and removes the element at the top
- * String* pStr = static_cast<String*> (stack.Pop()); // pStr: "Third", stack.GetCount(): 2
+ * String* pStr = static_cast< String* > (stack.Pop()); // pStr: "Third", stack.GetCount(): 2
*
* delete pStr; // Because the stack does not have the ownership of this pStr after popping
*
* @since 2.0
*
* @return An error code
- * @param[in] capacity The number of elements @n
- * The default capacity is @c 10.
- * @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified input parameter is invalid, or
- * the specified @c capacity is negative.
+ * @param[in] capacity The number of elements @n
+ * The default capacity is @c 10.
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_ARG The specified input parameter is invalid, or
+ * the specified @c capacity is negative.
* @remarks If the number of elements added to the stack reaches the current capacity,
* the capacity is automatically increased by memory reallocation. @n
* Therefore, if the size of the stack can be estimated,
* @since 2.0
*
* @return An error code
- * @param[in] collection The collection to copy elements from
+ * @param[in] collection The collection to copy elements from
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current state of the instance prohibits the execution of the specified operation, or
* the @c collection is modified during the operation of this method.
* @return An enumerator (an instance of the IEnumerator derived class) of this stack, @n
* else @c null if an exception occurs
* @remarks The specific error code can be accessed using the GetLastResult() method.
- * @see IEnumerator
+ * @see IEnumerator
*/
virtual IEnumerator* GetEnumeratorN(void) const;
* @exception E_UNDERFLOW The operation (arithmetic/casting/conversion) has caused an underflow, or
* this stack is empty.
* @remarks The specific error code can be accessed using the GetLastResult() method.
- * @see Push()
+ * @see Push(Object*)
*/
virtual Object* Pop(void);
* @since 2.0
*
* @return An error code
- * @param[in] obj The object to add to this stack
+ * @param[in] obj The object to add to this stack
* @exception E_SUCCESS The method is successful.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @remarks This method performs a shallow copy. It inserts just the pointer; not the element itself.
- * @see Pop()
+ * @see Pop()
* @endif
*/
result Push(const Object& obj)
* @since 2.0
*
* @return An error code
- * @param[in] pObj The pointer to object to add to this stack
+ * @param[in] pObj The pointer to object to add to this stack
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The specified input parameter is invalid.
* @remarks This method performs a shallow copy. It inserts just the pointer; not the element itself.
- * @see Pop()
+ * @see Pop()
*/
virtual result Push(Object* pObj);
*
* @return An error code
* @param[in] collection The collection to locate
- * @param[out] out Set to @c true if this stack contains all the elements in the specified collection, @n
- * else @c false
+ * @param[out] out Set to @c true if this stack contains all the elements in the specified collection, @n
+ * else @c false
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current state of the instance prohibits the execution of the specified operation, or
* the @c collection is modified during the operation of this method.
* @since 2.0
*
* @return @c true if this stack contains all the elements in the specified collection, @n
- * else @c false
- * @param[in] collection The collection to locate
+ * else @c false
+ * @param[in] collection The collection to locate
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current state of the instance prohibits the execution of the specified operation, or
* the @c collection is modified during the operation of this method.