X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FFBaseComparerT.h;h=176c3d3204fad4b061dee3c8d90788b40454b74c;hb=60d143778a54ae4c638a08d8c7304b099f70434e;hp=7cfad9ef9f45781c9eee86d904af6c9fb7ca006f;hpb=84ae32fc9014edf1457554db60000885285034ff;p=platform%2Fframework%2Fnative%2Fappfw.git diff --git a/inc/FBaseComparerT.h b/inc/FBaseComparerT.h index 7cfad9e..176c3d3 100644 --- a/inc/FBaseComparerT.h +++ b/inc/FBaseComparerT.h @@ -1,5 +1,4 @@ // -// Open Service Platform // Copyright (c) 2012 Samsung Electronics Co., Ltd. // // Licensed under the Apache License, Version 2.0 (the License); @@ -24,20 +23,18 @@ #ifndef _FBASE_COMPARER_T_H_ #define _FBASE_COMPARER_T_H_ -// Includes #include #include - namespace Tizen { namespace Base { /** * @class ComparerT * - * @brief This class checks for equivalence between 2 values of the same primitive type. + * @brief This class checks for equivalence between two values of the same primitive type. * @since 2.0 * - * The %ComparerT class checks for equivalence between 2 values of the same primitive type. + * The %ComparerT class checks for equivalence between two values of the same primitive type. * * The following example demonstrates how to use the %ComparerT class. * @@ -64,9 +61,9 @@ namespace Tizen { namespace Base * } * @endcode */ -template +template< class Type > class ComparerT - : public virtual Tizen::Base::Collection::IComparerT + : public virtual Tizen::Base::Collection::IComparerT< Type > , public Object { public: @@ -91,16 +88,16 @@ public: * @since 2.0 * * @return An error code - * @param[in] obj1 The first object to compare - * @param[in] obj2 The second object to compare - * @param[out] cmp The result of comparison + * @param[in] obj1 The first object to compare + * @param[in] obj2 The second object to compare + * @param[out] cmp The result of the comparison * @exception E_SUCCESS The method is successful. * @exception E_INVALID_ARG The specified objects are not of the expected type. * @remarks @c cmp can take one of the following values: * @code - * < 0 if the value of @c obj1 is less than the value of @c obj2 - * == 0 if the value of @c obj1 is equal to the value of @c obj2 - * > 0 if the value of @c obj1 is greater than the value of @c obj2 + * < 0 if the value of obj1 is less than the value of obj2 + * == 0 if the value of obj1 is equal to the value of obj2 + * > 0 if the value of obj1 is greater than the value of obj2 * @endcode */ virtual result Compare(const Type& obj1, const Type& obj2, int& cmp) const @@ -134,9 +131,9 @@ private: }; // ComparerT -template<> -class ComparerT - : public virtual Tizen::Base::Collection::IComparerT +template< > +class ComparerT< Tizen::Base::String > + : public virtual Tizen::Base::Collection::IComparerT< Tizen::Base::String > , public Object { public: @@ -155,14 +152,14 @@ public: virtual ~ComparerT(void) { } /** - * Compare two String instances. + * Compares two String instances. * * @since 2.1 * - * @return Always returns E_SUCCESS + * @return Always returns @c E_SUCCESS * @param[in] str1 The String instance to compare * @param[in] str2 The String instance to compare - * @param[in] cmp An integer value for result + * @param[in] cmp The integer value for the result */ virtual result Compare(const Tizen::Base::String& str1, const Tizen::Base::String& str2, int& cmp) const {