Fixed memory leak in RsaConvertKey function.
[platform/framework/native/appfw.git] / inc / FBaseColIMultiMap.h
index eb97e67..78c1803 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -29,7 +28,6 @@
 #include <FBaseColIMapEnumerator.h>
 #include <FBaseObject.h>
 
-
 namespace Tizen { namespace Base { namespace Collection
 {
 
@@ -42,8 +40,8 @@ class MapEntry;
  *
  * @since 2.0
  *
- * The %IMultiMap interface abstracts a collection of key-value pairs.
- * There is no limit on the number of elements with the same key, but duplicated elements with the same key are not allowed.
+ * The %IMultiMap interface represents a collection of key-value pairs.
+ * There is no limit on the number of elements having the same key, but duplicate elements with the same key are not allowed.
  * The key and value cannot be a @c null reference.
  * @n
  * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/base/hashmap_multihashmap.htm">HashMap and MultiHashMap</a>.
@@ -66,18 +64,19 @@ public:
         * Adds the specified key-value pair to the map.
         *
         * @brief               <i> [Deprecated] </i>
-        * @deprecated  This method is deprecated because it has a problem of const reference argument.
+        * @deprecated  This method is deprecated because it has a problem of constant reference argument.
         *                              Instead of using this method, use Add(Object* pKey, Object* pValue).
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   key     The key to add
-        * @param[in]   value   The corresponding value to add
+        * @param[in]   key                             The key to add
+        * @param[in]   value                           The corresponding value to add
         * @exception   E_SUCCESS                       The method is successful.
-        * @exception   E_INVALID_ARG           A specified input parameter is invalid, or
-        *                                                                      the comparer has failed to compare the keys.
+        * @exception   E_INVALID_ARG           Either of the following conditions has occurred:
+        *                                                                      - A specified input parameter is invalid.
+        *                                                                      - The comparer has failed to compare the keys.
         * @exception   E_OBJ_ALREADY_EXIST     The specified @c key and @c value already exist.
-        * @remarks             This method performs a shallow copy. It adds just the pointer; not the element itself.
+        * @remarks     This method performs a shallow copy. It adds just the pointer and not the element itself.
         * @see Remove()
         * @endif
         */
@@ -92,13 +91,14 @@ public:
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   pKey    The pointer to key to add
-        * @param[in]   pValue  The pointer to corresponding value to add
+        * @param[in]   pKey                            A pointer to the key to add
+        * @param[in]   pValue                          A pointer to the corresponding value to add
         * @exception   E_SUCCESS                       The method is successful.
-        * @exception   E_INVALID_ARG           A specified input parameter is invalid, or
-        *                                                                      the comparer has failed to compare the keys.
+        * @exception   E_INVALID_ARG           Either of the following conditions has occurred:
+        *                                                                      - A specified input parameter is invalid.
+        *                                                                      - The comparer has failed to compare the keys.
         * @exception   E_OBJ_ALREADY_EXIST     The specified @c pKey and @c pValue already exist.
-        * @remarks             This method performs a shallow copy. It adds just the pointer; not the element itself.
+        * @remarks     This method performs a shallow copy. It adds just the pointer and not the element itself.
         * @see Remove()
         */
        virtual result Add(Object* pKey, Object* pValue) = 0;
@@ -113,94 +113,99 @@ public:
        virtual int GetCount(void) const = 0;
 
        /**
-        * Gets the number of values with keys matching the specified key.
+        * Gets the number of values with keys matching the specified @c key.
         *
         * @since 2.0
         *
         * @return              The number of values with keys matching the specified key
-        * @param[in]   key     The key to locate in the map
-        * @param[out]  count   The number of values with keys matching the specified key
+        * @param[in]   key                             The key to locate in the map
+        * @param[out]  count                           The number of values with keys matching the specified key
         * @exception   E_SUCCESS                       The method is successful.
-        * @exception   E_INVALID_ARG           The specified input parameter is invalid, or
-        *                                                                      the comparer has failed to compare the keys.
-        * @exception   E_OBJ_NOT_FOUND         The specified @c key is not found in the map.
+        * @exception   E_INVALID_ARG           Either of the following conditions has occurred:
+        *                                                                      - A specified input parameter is invalid.
+        *                                                                      - The comparer has failed to compare the keys.
+        * @exception   E_OBJ_NOT_FOUND         The specified @c key has not been found in the map.
         */
        virtual result GetCount(const Object& key, int& count) const = 0;
 
        /**
-        * Gets an enumerator of the values associated with the specified key.
+        * Gets the enumerator of the values associated with the specified @c key.
         *
         * @since 2.0
         *
-        * @return              An instance of the IEnumerator derived class with the values associated with the specified key, @n
+        * @return              An instance of the IEnumerator derived class that contains the values associated with the specified key, @n
         *                              else @c null if an exception occurs
         * @param[in]   key                     The key to locate in the map
         * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
-        * @exception   E_OBJ_NOT_FOUND The specified @c key is not found in the map.
+        * @exception   E_INVALID_ARG   Either of the following conditions has occurred:
+        *                                                              - A specified input parameter is invalid.
+        *                                                              - The comparer has failed to compare the keys.
+        * @exception   E_OBJ_NOT_FOUND The specified @c key has not been found in the map.
         * @remarks             The specific error code can be accessed using the GetLastResult() method.
         */
        virtual IEnumerator* GetValuesN(const Object& key) const = 0;
 
        /**
-        * Gets a list of all the keys in the map.
+        * Gets the list of all the unique keys in the map.
         *
         * @since 2.0
         *
-        * @return              A pointer to a list of all the keys in the map, @n
+        * @return              A pointer to the list of all the unique keys in the map, @n
         *                              else @c null if an exception occurs
-        * @remarks             The order of the keys is the same as the corresponding values in the IList interface returned by the GetValuesN() method.
-        * @remarks             The %IList stores just the pointers to the elements in the map, not the elements themselves.
-        * @remarks             The specific error code can be accessed using the GetLastResult() method.
+        * @remarks
+        *                              - The IList stores just the pointers to the elements in the map and not the elements themselves.
+        *                              - The specific error code can be accessed using the GetLastResult() method.
         * @see                 GetValuesN()
         */
        virtual IList* GetKeysN(void) const = 0;
 
        /**
-        * Gets a list of all the values in the map.
+        * Gets the list of all the values in the map.
         *
         * @since 2.0
         *
-        * @return              A pointer to a list of all the values in the map, @n
+        * @return              A pointer to the list of all the values in the map, @n
         *                              else @c null if an exception occurs
-        * @remarks             The IList stores just the pointers to the elements in the map, not the elements themselves.
-        * @remarks             The specific error code can be accessed using the GetLastResult() method.
+        * @remarks
+        *                              - The IList stores just the pointers to the elements in the map and not the elements themselves.
+        *                              - The specific error code can be accessed using the GetLastResult() method.
         * @see                 SetValue()
         */
        virtual IList* GetValuesN(void) const = 0;
 
        /**
-        * Removes all the values associated with the specified key.
+        * Removes all the values associated with the specified @c key.
         *
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   key The key for which the associated values need to remove
+        * @param[in]   key                             The key for which the associated values are removed
         * @param[in]   forceDeletion           Set to @c true to deallocate the object, @n
-        *                                                              else @c false
-        * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
-        * @exception   E_OBJ_NOT_FOUND The specified @c key is not found in the map.
-        * @remarks             Based on the specified element deleter, the remove operation not only gets rid of an element from a list, but also deletes its object instance.@n
-        *                              The element deleter style is recommended rather than using the @c forceDeletetion argument in the remove method.@n
-        *                              If both an element deleter and forceDeleteion are set, the remove operation follows @c forceDeletion setting.
-        * @remarks             Remove(key, @b true) internally works as the below code:
+        *                                                                      else @c false
+        * @exception   E_SUCCESS                       The method is successful.
+        * @exception   E_INVALID_ARG           Either of the following conditions has occurred:
+        *                                                                      - A specified input parameter is invalid.
+        *                                                                      - The comparer has failed to compare the keys.
+        * @exception   E_OBJ_NOT_FOUND         The specified @c key has not been found in the map.
+        * @remarks
+        *                              - Based on the specified element deleter, the remove operation not only gets rid of an element from the list, but also deletes its object instance. @n
+        *                              The element deleter style is recommended rather than using @c forceDeletetion in the removing method. @n
+        *                              If both the element deleter and the @c forceDeleteion are set, the remove operation follows the @c forceDeletion setting.
+        *                              - Remove(key, @b true) internally works as the below code:
         * @code
         * DeleterFunctionType deleter = GetDeleter();
         * SetDeleter(SingleObjectDeleter);
         * Remove(key);
         * SetDeleter(deleter);
         * @endcode
-        * @remarks             Remove(key, @b false) internally works as the below code:
+        *                              - Remove(key, @b false) internally works as the below code:
         * @code
         * DeleterFunctionType deleter = GetDeleter();
         * SetDeleter(NoOpDeleter);
         * Remove(key);
         * SetDeleter(deleter);
         * @endcode
-        * @see                 Add()
+        * @see                 Add(Object*, Object*)
         */
        result Remove(const Object& key, bool forceDeletion)
        {
@@ -221,53 +226,56 @@ public:
        }
 
        /**
-        * Removes all the values associated with the specified key.
+        * Removes all the values associated with the specified @c key.
         *
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   key The key for which the associated values need to remove
+        * @param[in]   key                             The key for which the associated values are removed
         * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
-        * @exception   E_OBJ_NOT_FOUND The specified @c key is not found in the map.
-        * @see                 Add()
+        * @exception   E_INVALID_ARG   Either of the following conditions has occurred:
+        *                                                              - A specified input parameter is invalid.
+        *                                                              - The comparer has failed to compare the keys.
+        * @exception   E_OBJ_NOT_FOUND The specified @c key has not been found in the map.
+        * @see                 Add(Object*, Object*)
         */
        virtual result Remove(const Object& key) = 0;
 
        /**
-        * Removes the specified value associated with the specified key. @n
-        * The key is also removed if there are no more values associated with it.
+        * Removes the specified @c value associated with the specified @c key. @n
+        * The @c key is also removed if there are no more values associated with it.
         *
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   key     The key for which the mapping is to remove from the map
-        * @param[in]   value   The value to remove
+        * @param[in]   key                             The key for which the mapping is removed from the map
+        * @param[in]   value                           The value to remove
         * @param[in]   forceDeletion           Set to @c true to deallocate the object, @n
-        *                                                              else @c false
-        * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
-        * @exception   E_OBJ_NOT_FOUND The @c key and @c value pair is not found in the map.
-        * @remarks             Based on the specified element deleter, the remove operation not only gets rid of an element from a list, but also deletes its object instance.@n
-        *                              The element deleter style is recommended rather than using the @c forceDeletetion argument in the remove method.@n
-        *                              If both an element deleter and forceDeleteion are set, the remove operation follows @c forceDeletion setting.
-        * @remarks             Remove(key, value, @b true) internally works as the below code:
+        *                                                                      else @c false
+        * @exception   E_SUCCESS                       The method is successful.
+        * @exception   E_INVALID_ARG           Either of the following conditions has occurred:
+        *                                                                      - A specified input parameter is invalid.
+        *                                                                      - The comparer has failed to compare the keys.
+        * @exception   E_OBJ_NOT_FOUND         The specified @c key and the specified @c value pair has not been found in the map.
+        * @remarks
+        *                              - Based on the specified element deleter, the remove operation not only gets rid of an element from the list, but also deletes its object instance. @n
+        *                              - The element deleter style is recommended rather than using @c forceDeletetion in the removing method. @n
+        *                              - If both the element deleter and the @c forceDeleteion are set, the remove operation follows the @c forceDeletion setting.
+        *                              - Remove(key, value, @b true) internally works as the below code:
         * @code
         * DeleterFunctionType deleter = GetDeleter();
         * SetDeleter(SingleObjectDeleter);
         * Remove(key, value);
         * SetDeleter(deleter);
         * @endcode
-        * @remarks             Remove(key, value, @b false) internally works as the below code:
+        *                              - Remove(key, value, @b false) internally works as the below code:
         * @code
         * DeleterFunctionType deleter = GetDeleter();
         * SetDeleter(NoOpDeleter);
         * Remove(key, value);
         * SetDeleter(deleter);
         * @endcode
-        * @see                 Add()
+        * @see                 Add(Object*, Object*)
         */
        result Remove(const Object& key, const Object& value, bool forceDeletion)
        {
@@ -288,41 +296,43 @@ public:
        }
 
        /**
-        * Removes the specified value associated with the specified key. @n
-        * The key is also removed if there are no more values associated with it.
+        * Removes the specified @c value associated with the specified @c key. @n
+        * The @c key is also removed if there are no more values associated with it.
         *
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   key     The key for which the mapping is to remove from the map
-        * @param[in]   value   The value to remove
+        * @param[in]   key                     The key for which the mapping is removed from the map
+        * @param[in]   value                   The value to remove
         * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
-        * @exception   E_OBJ_NOT_FOUND The @c key and @c value pair is not found in the map.
-        * @see                 Add()
+        * @exception   E_INVALID_ARG   Either of the following conditions has occurred:
+        *                                                              - A specified input parameter is invalid.
+        *                                                              - The comparer has failed to compare the keys.
+        * @exception   E_OBJ_NOT_FOUND The specified @c key and the specified @c value pair has not been found in the map.
+        * @see                 Add(Object*, Object*)
         */
        virtual result Remove(const Object& key, const Object& value) = 0;
 
        /**
         * Removes all the object pointers in the collection. @n
-        * If the @c forceDeletion parameter is set to @c true, the method also removes all the objects. This method can be called before deleting the collection.
+        * If @c forceDeletion is set to @c true, the method also removes all the objects. This method can be called before deleting the collection.
         *
         * @since 2.0
         *
         * @param[in]   forceDeletion           Set to @c true to deallocate all objects, @n
-        *                                                              else @c false
-        * @remarks             Based on the specified element deleter, the remove operation not only gets rid of an element from a list, but also deletes its object instance.@n
-        *                              The element deleter style is recommended rather than using the @c forceDeletetion argument in the remove method.@n
-        *                              If both an element deleter and forceDeleteion are set, the remove operation follows @c forceDeletion setting.
-        * @remarks             RemoveAll(@b true) internally works as the below code:
+        *                                                                      else @c false
+        * @remarks
+        *                              - Based on the specified element deleter, the remove operation not only gets rid of an element from the list, but also deletes its object instance. @n
+        *                              - The element deleter style is recommended rather than using @c forceDeletetion in the removing method. @n
+        *                              - If both the element deleter and the @c forceDeletion are set, the remove operation follows the @c forceDeletion setting.
+        *                              - RemoveAll(@b true) internally works as the below code:
         * @code
         * DeleterFunctionType deleter = GetDeleter();
         * SetDeleter(SingleObjectDeleter);
         * RemoveAll();
         * SetDeleter(deleter);
         * @endcode
-        * @remarks             RemoveAll(@b false) internally works as the below code:
+        *                              - RemoveAll(@b false) internally works as the below code:
         * @code
         * DeleterFunctionType deleter = GetDeleter();
         * SetDeleter(NoOpDeleter);
@@ -349,46 +359,47 @@ public:
 
        /**
         * Removes all the object pointers in the collection. @n
-        * This method can be called before deleting the collection.
+        * The %RemoveAll() method can be called before deleting the collection.
         *
         * @since 2.0
         */
        virtual void RemoveAll(void) = 0;
 
        /**
-        * Replaces the specified value associated with the specified key with a new value.
+        * Replaces the specified @c value associated with the specified @c key with a @c newValue.
         *
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   key     The key for which the associated value needs to replace
-        * @param[in]   value   The value associated with the key
-        * @param[in]   newValue        The new value
-        * @param[in]   forceDeletion           Set to @c true to deallocate the object, @n
+        * @param[in]   key                     The key for which the associated value is replaced
+        * @param[in]   value                   The value associated with the key
+        * @param[in]   newValue                The new value
+        * @param[in]   forceDeletion   Set to @c true to deallocate the object, @n
         *                                                              else @c false
         * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
-        * @exception   E_OBJ_NOT_FOUND The key-value pair is not found in the map.
-        * @remarks             Use the Add() method to add a new key-value pair.
-        * @remarks             Based on the specified element deleter, the set operation not only gets rid of an element from a list, but also deletes its object instance.@n
-        *                              The element deleter style is recommended rather than using the @c forceDeletetion argument in the set method.@n
-        *                              If both an element deleter and forceDeleteion are set, the set operation follows @c forceDeletion setting.
-        * @remarks             SetValue(key, value, newValue, @b true) internally works as the below code:
+        * @exception   E_INVALID_ARG   Either of the following conditions has occurred:
+        *                                                              - A specified input parameter is invalid.
+        *                                                              - The comparer has failed to compare the keys.
+        * @exception   E_OBJ_NOT_FOUND The key-value pair has not been found in the map.
+        * @remarks
+        *                              - Use the Add(Object*, Object*) method to add a new key-value pair.
+        *                              - Based on the specified element deleter, the set operation not only gets rid of an element from the list, but also deletes its object instance. @n
+        *                              The element deleter style is recommended rather than using @c forceDeletetion in the set method. @n
+        *                              If both the element deleter and the @c forceDeleteion are set, the set operation follows the @c forceDeletion setting.
+        *                              - SetValue(key, value, newValue, @b true) internally works as the below code:
         * @code
         * DeleterFunctionType deleter = GetDeleter();
         * SetDeleter(SingleObjectDeleter);
         * SetValue(key, value, const_cast< Object* >(&newValue));
         * SetDeleter(deleter);
         * @endcode
-        * @remarks             SetValue(key, value, newValue, @b false) internally works as the below code:
+        *                              - SetValue(key, value, newValue, @b false) internally works as the below code:
         * @code
         * DeleterFunctionType deleter = GetDeleter();
         * SetDeleter(NoOpDeleter);
         * SetValue(key, value, const_cast< Object* >(&newValue));
         * SetDeleter(deleter);
         * @endcode
-        * @see                 Add()
         * @see                 GetValuesN()
         */
        result SetValue(const Object& key, const Object& value, const Object& newValue, bool forceDeletion = false)
@@ -410,20 +421,20 @@ public:
        }
 
        /**
-        * Replaces the specified value associated with the specified key with a new value.
+        * Replaces the specified @c value associated with the specified @c key with a @c pNewValue.
         *
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   key     The key for which the associated value needs to replace
-        * @param[in]   value   The value associated with the key
-        * @param[in]   pNewValue       The pointer to new value
+        * @param[in]   key                             The key for which the associated value is replaced
+        * @param[in]   value                   The value associated with the key
+        * @param[in]   pNewValue               A pointer to the new value
         * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
-        * @exception   E_OBJ_NOT_FOUND The key-value pair is not found in the map.
-        * @remarks             Use the Add() method to add a new key-value pair.
-        * @see                 Add()
+        * @exception   E_INVALID_ARG   Either of the following conditions has occurred:
+        *                                                              - A specified input parameter is invalid.
+        *                                                              - The comparer has failed to compare the keys.
+        * @exception   E_OBJ_NOT_FOUND The key-value pair has not been found in the map.
+        * @remarks             Use the Add(Object*, Object*) method to add a new key-value pair.
         * @see                 GetValuesN()
         */
        virtual result SetValue(const Object& key, const Object& value, Object* pNewValue) = 0;
@@ -433,19 +444,20 @@ public:
         * Checks whether the map contains the specified key-value pair.
         *
         * @brief               <i> [Deprecated] </i>
-        * @deprecated  This method is deprecated because it transfers a result of comparison in out-parameter form.
-        *                              The return type will be changed into boolean type and this method will return the result.
+        * @deprecated  This method is deprecated because it transfers the result of the comparison in an out-parameter form.
+        *                              The return type is changed into boolean and this method returns the result.
         *                              Instead of using this method, use bool Contains(const Object& key, const Object& value).
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   key     The key to locate
-        * @param[in]   value   The value to locate
-        * @param[out]  out             Set to @c true if the map contains the specified key-value pair, @n
-        *                                              else @c false
+        * @param[in]   key                     The key to locate
+        * @param[in]   value                   The value to locate
+        * @param[out]  out                             Set to @c true if the map contains the specified key-value pair, @n
+        *                                                              else @c false
         * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
+        * @exception   E_INVALID_ARG   Either of the following conditions has occurred:
+        *                                                              - A specified input parameter is invalid.
+        *                                                              - The comparer has failed to compare the keys.
         * @see                 ContainsKey()
         * @see                 ContainsValue()
         * @endif
@@ -464,36 +476,38 @@ public:
         *
         * @return              @c true if the map contains the specified key-value pair, @n
         *                              else @c false
-        * @param[in]   key     The key to locate
-        * @param[in]   value   The value to locate
+        * @param[in]   key                     The key to locate
+        * @param[in]   value                   The value to locate
         * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
+        * @exception   E_INVALID_ARG   Either of the following conditions has occurred:
+        *                                                              - A specified input parameter is invalid.
+        *                                                              - The comparer has failed to compare the keys.
         * @remarks             The specific error code can be accessed using the GetLastResult() method.
-        * @see                 ContainsKey()
+        * @see                 ContainsKey(const Object&) const
         * @see                 ContainsValue()
         */
        virtual bool Contains(const Object& key, const Object& value) const = 0;
 
        /**
         * @if OSPDEPREC
-        * Checks whether the map contains the specified key.
+        * Checks whether the map contains the specified @c key.
         *
         * @brief               <i> [Deprecated] </i>
-        * @deprecated  This method is deprecated because it transfers a result of comparison in out-parameter form.
-        *                              The return type will be changed into boolean type and this method will return the result.
+        * @deprecated  This method is deprecated because it transfers the result of the comparison in an out-parameter form.
+        *                              The return type is changed into boolean and this method returns the result.
         *                              Instead of using this method, use bool ContainsKey(const Object& key).
         * @since 2.0
         *
         * @return              An error code
-        * @param[in]   key     The key to locate
-        * @param[out]  out             Set to @c true if the map contains the specified key, @n
-        *                                              else @c false
+        * @param[in]   key                     The key to locate
+        * @param[out]  out                             Set to @c true if the map contains the specified key, @n
+        *                                                              else @c false
         * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
+        * @exception   E_INVALID_ARG   Either of the following conditions has occurred:
+        *                                                              - A specified input parameter is invalid.
+        *                                                              - The comparer has failed to compare the keys.
         * @see                 ContainsValue()
-        * @see                 Contains()
+        * @see                 Contains(const Object&, const Object&)
         * @endif
         */
        result ContainsKey(const Object& key, bool& out) const
@@ -504,24 +518,25 @@ public:
        }
 
        /**
-        * Checks whether the map contains the specified key.
+        * Checks whether the map contains the specified @c key.
         *
         * @since 2.0
         *
         * @return              @c true if the map contains the specified key, @n
         *                              else @c false
-        * @param[in]   key     The key to locate
+        * @param[in]   key                             The key to locate
         * @exception   E_SUCCESS               The method is successful.
-        * @exception   E_INVALID_ARG   A specified input parameter is invalid, or
-        *                                                              the comparer has failed to compare the keys.
+        * @exception   E_INVALID_ARG   Either of the following conditions has occurred:
+        *                                                              - A specified input parameter is invalid.
+        *                                                              - The comparer has failed to compare the keys.
         * @remarks             The specific error code can be accessed using the GetLastResult() method.
         * @see                 ContainsValue()
-        * @see                 Contains()
+        * @see                 Contains(const Object&, const Object&) const
         */
        virtual bool ContainsKey(const Object& key) const = 0;
 
        /**
-        * Checks whether the map contains the specified value.
+        * Checks whether the map contains the specified @c value.
         *
         * @since 2.0
         *
@@ -529,24 +544,24 @@ public:
         *                              else @c false
         * @param[in]   value   The value to locate
         *
-        * @see                 ContainsKey()
-        * @see                 Contains()
+        * @see                 ContainsKey(const Object&) const
+        * @see                 Contains(const Object&, const Object&) const
         */
        virtual bool ContainsValue(const Object& value) const = 0;
 
        /**
-        * Gets an enumerator of the map.
+        * Gets the enumerator of the map.
         *
         * @since 2.0
         *
-        * @return              An instance of the IMapEnumerator class for the map, @n
+        * @return              An instance of IMapEnumerator for the map, @n
         *                              else @c null if an exception occurs
         * @exception   E_SUCCESS               The method is successful.
-        * @remarks             If a key has multiple values, the enumeration proceeds as follows: @n
+        * @remarks
+        *                              - If a key has multiple values, the enumeration proceeds as follows: @n
         *                              {A: a}, {B: b}, {B: c}, {B, d}, {C: e}, ...
-        * @remarks             The specific error code can be accessed using the GetLastResult() method.
+        *                              - The specific error code can be accessed using the GetLastResult() method.
         * @see                 IEnumerator
-        * @see                 IMapEnumerator
         */
        virtual IMapEnumerator* GetMapEnumeratorN(void) const = 0;
 
@@ -555,7 +570,7 @@ public:
         *
         * @since 2.0
         *
-        * @return              An function pointer to the existing element deleter
+        * @return              A function pointer to the existing element deleter
         */
        virtual DeleterFunctionType GetDeleter(void) const = 0;
 
@@ -569,7 +584,6 @@ protected:
        //
        virtual void IMultiMap_Reserved1(void) { }
 
-
        //
        // This method is for internal use only. Using this method can cause behavioral, security-related,
        // and consistency-related issues in the application.