Merge "Added new method to the NotificationManager Interface" into tizen_2.2
[platform/framework/native/appfw.git] / inc / FBaseColQueueT.h
index c47f7ba..a9929a8 100644 (file)
@@ -28,7 +28,6 @@
 #include <FBaseResult.h>
 #include <FBaseColICollectionT.h>
 
-
 namespace Tizen { namespace Base { namespace Collection
 {
 
@@ -36,7 +35,7 @@ template< class Type > class __QueueEnumeratorT;
 
 /**
  * @class      QueueT
- * @brief      This represents a template-based queue (a first-in-first-out collection of objects).
+ * @brief      This class represents a template-based queue (a first-in-first-out collection of objects).
  *
  * @since 2.0
  *
@@ -117,8 +116,9 @@ public:
         *                                  The default capacity is @c 10.
         * @exception   E_SUCCESS                       The method is successful.
         * @exception   E_OUT_OF_MEMORY         The memory is insufficient.
-        * @exception   E_INVALID_ARG   The specified input parameter is invalid, or
-        *                                                                the specified @c capacity is negative.
+        * @exception   E_INVALID_ARG           Either of the following conditions has occurred:
+        *                                                                      - The specified input parameter is invalid.
+        *                                                                      - The specified @c capacity is negative.
         */
        result Construct(int capacity = DEFAULT_CAPACITY)
        {
@@ -141,11 +141,12 @@ public:
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   collection The collection to copy the elements from
+        * @param[in]   collection                      The collection to copy the elements from
         * @exception   E_SUCCESS                       The method is successful.
         * @exception   E_OUT_OF_MEMORY         The memory is insufficient.
-        * @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.
+        * @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.
         * @see                 QueueT()
         */
        result Construct(const ICollectionT< Type >& collection)
@@ -201,10 +202,11 @@ CATCH:
         * @since 2.0
         *
         * @return              An error code
-        * @param[out]  obj The element at the beginning of this queue
+        * @param[out]  obj                     The element at the beginning of this queue
         * @exception   E_SUCCESS       The method is successful.
-        * @exception   E_UNDERFLOW     The operation (arithmetic/casting/conversion) has caused an underflow, or
-        *                                                      this queue is empty.
+        * @exception   E_UNDERFLOW     Either of the following conditions has occurred:
+        *                                                      - The operation (arithmetic/casting/conversion) has caused an underflow.
+        *                                                      - The queue is empty.
         * @see                 Enqueue()
         */
        virtual result Dequeue(Type& obj)
@@ -227,7 +229,7 @@ CATCH:
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   obj The object to add to this queue
+        * @param[in]   obj                             The object to add to this queue
         * @exception   E_SUCCESS               The method is successful.
         * @exception   E_OUT_OF_MEMORY The memory is insufficient.
         * @see                 Dequeue()
@@ -265,7 +267,7 @@ CATCH:
        }
 
        /**
-        * Removes all the elements in this queue.
+        * Removes all the elements from this queue.
         *
         * @since 2.0
         */
@@ -285,16 +287,15 @@ CATCH:
        }
 
        /**
-        * Gets an enumerator of this queue.
+        * Gets the enumerator of this queue.
         *
         * @since 2.0
         *
-        * @return              An enumerator (an instance of the IEnumeratorT derived class) of this queue, @n
+        * @return              The enumerator (an instance of the IEnumeratorT derived class) of this queue, @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
        {
@@ -318,10 +319,11 @@ CATCH:
         * @since 2.0
         *
         * @return              An error code
-        * @param[out]  obj The element at the beginning of this queue
+        * @param[out]  obj                     The element at the beginning of this queue
         * @exception   E_SUCCESS       The method is successful.
-        * @exception   E_UNDERFLOW     The operation (arithmetic/casting/conversion) has caused an underflow, or
-        *                                                      this queue is empty.
+        * @exception   E_UNDERFLOW     Either of the following conditions has occurred:
+        *                                                      - The operation (arithmetic/casting/conversion) has caused an underflow.
+        *                                                      - The queue is empty.
         */
        virtual result Peek(Type& obj) const
        {
@@ -377,12 +379,13 @@ CATCH:
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   collection      The collection to locate
-        * @param[out]  out  Set to @c true if this queue contains all of the elements in the specified collection, @n
-        *                                       else @c false
+        * @param[in]   collection                      The collection to locate
+        * @param[out]  out                                     Set to @c true if this queue contains all of 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 specified @c collection is modified during the operation of this method.
+        * @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_OUT_OF_MEMORY         The memory is insufficient.
         */
        virtual result ContainsAll(const ICollectionT< Type >& collection, bool& out) const
@@ -438,8 +441,8 @@ CATCH:
         * @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 if and only if the specified object is also an instance of %QueueT class,
-        *                              both queues have the same size, and all corresponding pairs of elements in the two queues are equal.
+        * @remarks     This method returns @c true if and only if the specified object is also an instance of the %QueueT class,
+        *                              both queues have the same size, and all the corresponding pairs of elements in the two queues are equal. @n
         *                              In other words, two queues are equal if they contain the same elements in the same order.
         */
        virtual bool Equals(const Object& obj) const
@@ -480,8 +483,8 @@ CATCH:
         * @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. For better performance, @n
-        *                      the used hash function must generate a random distribution for all inputs.
+        * @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.
         */
        virtual int GetHashCode(void) const
        {
@@ -539,7 +542,7 @@ public:
         *
         * @since 2.0
         *
-        * @param[in]   queue           A queue to enumerate
+        * @param[in]   queue           The queue to enumerate
         * @param[in]   modeCount       The modification count to detect the change in the queue
         */
        __QueueEnumeratorT(const QueueT< Type >& queue, int modeCount)
@@ -564,13 +567,13 @@ public:
         * @since 2.0
         *
         * @return              An error code
-        * @param[out]  obj The current object
-        * @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. @n
-        *                                                                      - The queue is modified after this enumerator is created.
-        * @exception   E_SUCCESS                       The method is successful.
+        * @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. @n
+        *                                                                              - This enumerator is currently positioned before the first element or
+        *                                                                              past the last element.
+        *                                                                              - The queue is modified after this enumerator is created.
+        * @exception   E_SUCCESS                               The method is successful.
         */
        result GetCurrent(Type& obj) const
        {
@@ -593,8 +596,9 @@ public:
         *
         * @return              An error code
         * @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 queue is modified after this enumerator is created.
+        * @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 queue is modified after this enumerator is created.
         * @exception   E_OUT_OF_RANGE          The enumerator has passed the end of the queue.
         * @see                 Reset()
         */
@@ -629,8 +633,9 @@ public:
         *
         * @return              An error code
         * @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 queue is modified after this enumerator is created.
+        * @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 queue is modified after this enumerator is created.
         */
        result Reset(void)
        {