* @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 Either of the following conditions has occurred:
- * - The specified input parameter is invalid.
- * - The specified @c capacity is negative.
+ * @exception E_INVALID_ARG The specified input parameter is invalid, or
+ * the specified @c capacity is negative.
*/
result Construct(int capacity = DEFAULT_CAPACITY)
{
* @return An error code
* @param[in] collection The collection to copy elements from
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_OPERATION Either of the following conditions has occurred:
- * - The current state of the instance prohibits the execution of the specified operation.
- * - The specified @c collection is modified during the operation of this method.
+ * @exception E_INVALID_OPERATION The current state of the instance prohibits the execution of the specified operation, or
+ * the specified @c collection is modified during the operation of this method.
* @see StackT()
*/
result Construct(const ICollectionT< Type >& collection)
}
/**
- * Gets the enumerator of this stack.
+ * Gets an enumerator of this stack.
*
* @since 2.0
*
- * @return The enumerator (an instance of the IEnumeratorT derived class) of this stack, @n
+ * @return An enumerator (an instance of the IEnumeratorT derived class) of this stack, @n
* else @c null if an exception occurs
* @exception E_SUCCESS The method is successful.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @see Tizen::Base::Collection::IEnumeratorT
*/
virtual IEnumeratorT< Type >* GetEnumeratorN(void) const
{
* @return An error code
* @param[out] obj The element at the beginning of this stack
* @exception E_SUCCESS The method is successful.
- * @exception E_UNDERFLOW Either of the following conditions has occurred:
- * - The operation (arithmetic/casting/conversion) has caused an underflow.
- * - The stack is empty.
+ * @exception E_UNDERFLOW The operation (arithmetic/casting/conversion) has caused an underflow, or
+ * this stack is empty.
*/
virtual result Peek(Type& obj) const
{
* @return An error code
* @param[out] obj The element at the beginning of this stack
* @exception E_SUCCESS The method is successful.
- * @exception E_UNDERFLOW Either of the following conditions has occurred:
- * - The operation (arithmetic/casting/conversion) has caused an underflow.
- * - The stack is empty.
+ * @exception E_UNDERFLOW The operation (arithmetic/casting/conversion) has caused an underflow, or
+ * this stack is empty.
* @see Push()
*/
virtual result Pop(Type& obj)
}
/**
- * Pushes an object to the top of this stack.
+ * Pushes an object at the top of this stack.
*
* @since 2.0
*
}
/**
- * Removes all the elements from this stack.
+ * Removes all elements in this stack.
*
* @since 2.0
*/
}
/**
- * Checks whether this stack contains all the elements in the specified @c collection.
+ * Checks whether this stack contains all of the elements in the specified @c collection.
*
* @since 2.0
*
* @return An error code
- * @param[in] collection The collection to locate
- * @param[out] out The boolean value that indicates if this stack contains all the elements in the specified @c collection
+ * @param[in] collection The collection to locate
+ * @param[out] out Set to @c true if this stack contains all of the elements in the specified @c collection, @n
+ * else @c false
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_OPERATION Either of the following conditions has occurred:
- * - The current state of the instance prohibits the execution of the specified operation.
- * - The specified @c collection is modified during the operation of this method.
+ * @exception E_INVALID_OPERATION The current state of the instance prohibits the execution of the specified operation, or
+ * the specified @c collection is modified during the operation of this method.
*/
virtual result ContainsAll(const ICollectionT< Type >& collection, bool& out) const
{
* @return @c true if the specified instance equals the current instance, @n
* else @c false
* @param[in] obj The object to compare with the current instance
- * @remarks This method returns @c true only if the specified object is also an instance of the Stack class,
- * both the stacks have the same size, and all the corresponding pairs of elements in the two stacks are equal. @n
+ * @remarks This method returns @c true only if the specified object is also an instance of the Stack class,
+ * both stacks have the same size, and all the corresponding pairs of elements in the two stacks are equal.
* In other words, two stacks are equal if they contain the same elements in the same order.
*/
virtual bool Equals(const Object& obj) const
* @since 2.0
*
* @return The hash value of the current instance
- * @remarks The two Tizen::Base::Object::Equals() instances must return the same hash value.@n
- * For better performance, the used hash function must generate a random distribution for all the inputs.
+ * @remarks The two Tizen::Base::Object::Equals() instances must return the same hash value. For better performance, @n
+ * the used hash function must generate a random distribution for all inputs.
*/
virtual int GetHashCode(void) const
{
*
* @return An error code
* @param[out] obj The current object
- * @exception E_INVALID_OPERATION Either of the following conditions has occurred:
- * - The current state of the instance prohibits the execution of the specified operation.
+ * @exception E_INVALID_OPERATION Either of the following conditions has occurred: @n
+ * - The current state of the instance prohibits the execution of the specified operation. @n
* - This enumerator is currently positioned before the first element or
- * past the last element.
+ * past the last element. @n
* - The stack is modified after this enumerator is created.
* @exception E_SUCCESS The method is successful.
*/