* @return An enumerator (an instance of the IEnumerator derived class) of this map, @n
* else @c null if some exception occurs
* @remarks If the key has multiple values, the enumeration proceeds as follows: {A: a}, {B: b}, {B: c}, {B, d}, {C: e}, ...
- * The specific error code can be accessed using the GetLastResult() method.
+ * The specific error code can be accessed using the GetLastResult() method.
* @see IMapEnumerator
*/
virtual IEnumerator* GetEnumeratorN(void) const;
* @return An enumerator (an instance of the IMapEnumerator derived class) of this map, @n
* else @c null if some exception occurs
* @remarks If the key has multiple values, the enumeration proceeds as follows: {A: a}, {B: b}, {B: c}, {B, d}, {C: e}, ...
- * The specific error code can be accessed using the GetLastResult() method.
+ * The specific error code can be accessed using the GetLastResult() method.
* @see IEnumerator
*/
virtual IMapEnumerator* GetMapEnumeratorN(void) const;
* @return An IteratorT instance
* @param[in] pList A pointer to the IList instance to convert
*/
- template < typename T >
+ template< typename T >
static IteratorT< T > GetBeginIterator(const IList* pList)
{
return IteratorT< T >(*pList);
* @return An IteratorT instance
* @param[in] pList A pointer to the IList instance to convert
*/
- template < typename T >
+ template< typename T >
static IteratorT< T > GetEndIterator(const IList* pList)
{
return IteratorT< T >(*pList, true);
* @return A RandomIteratorT instance
* @param[in] pList A pointer to the IList instance to convert
*/
- template < typename T >
+ template< typename T >
static RandomIteratorT< T > GetBeginRandomIterator(const IList* pList)
{
return RandomIteratorT< T >(*pList, 0);
* @return A RandomIteratorT instance
* @param[in] pList A pointer to the IList instance to convert
*/
- template < typename T >
+ template< typename T >
static RandomIteratorT< T > GetEndRandomIterator(const IList* pList)
{
return RandomIteratorT< T >(*pList, pList->GetCount());
* @return A PairIteratorT instance
* @param[in] pMap A pointer to the IMap instance to convert
*/
- template < typename K, typename V >
+ template< typename K, typename V >
static PairIteratorT< K, V > GetBeginPairIterator(const IMap* pMap)
{
return PairIteratorT< K, V >(*pMap);
* @return A PairIteratorT instance
* @param[in] pMap A pointer to the IMap instance to convert
*/
- template < typename K, typename V >
+ template< typename K, typename V >
static PairIteratorT< K, V > GetEndPairIterator(const IMap* pMap)
{
return PairIteratorT< K, V >(*pMap, true);
* @return A PairIteratorT instance
* @param[in] pMultiMap A pointer to the IMultiMap instance to convert
*/
- template < typename K, typename V >
+ template< typename K, typename V >
static PairIteratorT< K, V > GetBeginPairIterator(const IMultiMap* pMultiMap)
{
return PairIteratorT< K, V >(*pMultiMap);
* @return A PairIteratorT instance
* @param[in] pMultiMap A pointer to the IMultiMap instance to convert
*/
- template < typename K, typename V >
+ template< typename K, typename V >
static PairIteratorT< K, V > GetEndPairIterator(const IMultiMap* pMultiMap)
{
return PairIteratorT< K, V >(*pMultiMap, true);
* @see SingleObjectDeleter()
* @see ArrayDeleter()
*/
- template < typename FwdIter >
+ template< typename FwdIter >
static std::unique_ptr< ArrayList > GetArrayListN(FwdIter begin, FwdIter end, DeleterFunctionType deleter = NoOpDeleter)
{
std::unique_ptr< ArrayList > pArrayList(new (std::nothrow) ArrayList(deleter));
* @see SingleObjectDeleter()
* @see ArrayDeleter()
*/
- template < typename FwdIter >
+ template< typename FwdIter >
static std::unique_ptr< LinkedList > GetLinkedListN(FwdIter begin, FwdIter end, DeleterFunctionType deleter = NoOpDeleter)
{
std::unique_ptr< LinkedList > pLinkedList(new (std::nothrow) LinkedList(deleter));
* @see SingleObjectDeleter()
* @see ArrayDeleter()
*/
- template < typename PairedFwdIter >
+ template< typename PairedFwdIter >
static std::unique_ptr< HashMap > GetHashMapN(PairedFwdIter begin, PairedFwdIter end, DeleterFunctionType deleter = NoOpDeleter)
{
std::unique_ptr< HashMap > pMap(new (std::nothrow) HashMap(deleter));
* @see SingleObjectDeleter()
* @see ArrayDeleter()
*/
- template < typename PairedFwdIter >
+ template< typename PairedFwdIter >
static std::unique_ptr< MultiHashMap > GetMultiHashMapN(PairedFwdIter begin, PairedFwdIter end, DeleterFunctionType deleter = NoOpDeleter)
{
std::unique_ptr< MultiHashMap > pMultiMap(new (std::nothrow) MultiHashMap(deleter));
// @return A reference to the %StlConverter instance
// @param[in] rhs A reference to the %StlConverter instance
//
- StlConverter& operator=(const StlConverter& rhs);
+ StlConverter& operator =(const StlConverter& rhs);
};
}}} // Tizen::Base::Collection
#ifndef _FBASE_COMPARER_T_H_
#define _FBASE_COMPARER_T_H_
-// Includes
#include <FBaseTypes.h>
#include <FBaseColIComparerT.h>
-
namespace Tizen { namespace Base
{
/**
* }
* @endcode
*/
-template<class Type>
+template< class Type >
class ComparerT
- : public virtual Tizen::Base::Collection::IComparerT <Type>
+ : public virtual Tizen::Base::Collection::IComparerT< Type >
, public Object
{
public:
}; // ComparerT
-template<>
-class ComparerT <Tizen::Base::String>
- : public virtual Tizen::Base::Collection::IComparerT <Tizen::Base::String>
+template< >
+class ComparerT< Tizen::Base::String >
+ : public virtual Tizen::Base::Collection::IComparerT< Tizen::Base::String >
, public Object
{
public:
class String;
}}
+/**
+ * The user ID for authentication
+ * @since 2.0
+ */
typedef Tizen::Base::String UserId;
+
+/**
+ * The user ID for login
+ * @since 2.0
+ */
typedef Tizen::Base::String LoginId;
/**
-* The invocation ID is returned when a request is sent.
-* @since 2.0
-*/
+ * The invocation ID is returned when a request is sent.
+ * @since 2.0
+ */
typedef long RequestId;
+
#define INVALID_REQUEST_ID -1
// Macro to get the value in byte
#include <FBaseNumber.h>
-
namespace Tizen { namespace Base
{
/**
* @param[out] ret The numeric representation of the string
* @exception E_SUCCESS The method is successful.
* @exception E_NUM_FORMAT The specified string does not contain a number that can be parsed.
- * @remarks
+ * @remarks
* - This method guarantees that the original value of out-parameter is not changed when the method returns error.
* - The behavior of this method is dependent on the system default locale setting.
* @see Tizen::Base::Double::Parse()
* @since 2.0
*
* @return A string containing a Unicode representation of the value of the current instance
- * @remarks
+ * @remarks
* - If the value is Not-a-Number (NaN), the result is the string "NaN". Furthermore, infinity
* produces the result "Infinity". @n
* 6 digits are given for the precision of this method. Use String::Format() to set the specific precision.
*
* @return A string containing a Unicode representation of the specified @c float value
* @param[in] value A @c float value to convert
- * @remarks
+ * @remarks
* - If the value is Not-a-Number (NaN), the result is the string "NaN". Furthermore, infinity
* produces the result "Infinity". @n
* 6 digits are given for the precision of this method. Use String::Format() to set the specific precision.
static const int __DBL_MAX_10_EXP = 308;
friend class _FloatImpl;
- class _FloatImpl * __pFloatImpl;
+ class _FloatImpl* __pFloatImpl;
}; // Float
#include <FBaseObject.h>
#include <FBaseColIComparer.h>
-
namespace Tizen { namespace Base
{
/**
* @exception E_INVALID_ARG The specified object instances are not of the expected type.
* @remarks The value of @c cmp can be:
*
- * @code
+ * @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
FloatComparer& operator =(const FloatComparer& rhs);
friend class _FloatComparerImpl;
- class _FloatComparerImpl * __pFloatComparerImpl;
+ class _FloatComparerImpl* __pFloatComparerImpl;
}; // FloatComparer
* This header file contains the declarations of the %FloatMatrix class.
*
*/
-
#ifndef _FBASE_FLOAT_MATRIX_H_
#define _FBASE_FLOAT_MATRIX_H_
*
* @param[in] rowCount The number of rows in the current instance
* @param[in] columnCount The number of columns in the current instance
- * @param[in] pArray A one-dimensional array @n The array must be at least row * column in length.
+ * @param[in] pArray A one-dimensional array @n The array must be at least row * column in length.
* @param[in] rowMajor Set to @c true to copy the array in row-major order, @n
* else @c copy in column-major order
*/
*
* @since 2.0
*
- * @return The reference to this instance
+ * @return The reference to this instance
* @param[in] rhs An instance of %FloatMatrix
* @exception E_INVALID_ARG Either row or column count of the current instance is not same with that of the specified instance.
- * @remarks The specific error code can be accessed using the GetLastResult() method.
- * @remarks If either row or column count of the current instance is not same with that of the specified instance,
+ * @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @remarks If either row or column count of the current instance is not same with that of the specified instance,
* return the reference to this instance without assigning.
*/
FloatMatrix& operator =(const FloatMatrix& rhs);
* @return @c true if the values of the current instance are equal to the value of the specified instance, @n
* else @c false
* @param[in] obj An instance of %FloatMatrix
- * @remarks This method overrides Tizen::Base::Object::Equals(). This method uses the values of the Matrix components to compare the two instances.
+ * @remarks This method overrides Tizen::Base::Object::Equals(). This method uses the values of the Matrix components to compare the two instances.
*/
virtual bool Equals(const Tizen::Base::Object& obj) const;
*
* @return The hash value of the current instance
* @remarks Two equal instances must return the same hash value. For better performance,
- * the used hash function must generate a random distribution for all inputs.
+ * the used hash function must generate a random distribution for all inputs.
*/
virtual int GetHashCode(void) const;
* @since 2.0
*
* @return An error code
- * @param[in] matrix An instance of %FloatMatrix
- * @exception E_SUCCESS The method is successful.
+ * @param[in] matrix An instance of %FloatMatrix
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG Either row or column count of the current instance is not same with that of the specified instance.
*/
result Add(const FloatMatrix& matrix);
* @since 2.0
*
* @return A pointer to float array
- * @param[in] columnIndex The target column number in the current instance
+ * @param[in] columnIndex The target column number in the current instance
* @exception E_INVALID_ARG The @c columnIndex is larger than the column count of the current instance.
- * @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @remarks The specific error code can be accessed using the GetLastResult() method.
*/
float* GetColumnN(int columnIndex) const;
*
* @since 2.0
*
- * @return The determinant value of the current instance
+ * @return The determinant value of the current instance
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
- * @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @remarks The specific error code can be accessed using the GetLastResult() method.
* @remarks If the current instance is not a square matrix, return zero.
*/
float GetDeterminant(void) const;
* @since 2.0
*
* @return The value at the specified row and column of the current instance
- * @param[in] rowIndex The target row number in the current instance
- * @param[in] columnIndex The target column number in the current instance
+ * @param[in] rowIndex The target row number in the current instance
+ * @param[in] columnIndex The target column number in the current instance
* @exception E_INVALID_ARG The @c columnIndex or @c rowIndex is larger than that of the current instance.
- * @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @remarks The specific error code can be accessed using the GetLastResult() method.
*/
float GetElement(int rowIndex, int columnIndex) const;
*
* @since 2.0
*
- * @return A pointer to the instance of %FloatMatrix containing the resulting value of the operation
+ * @return A pointer to the instance of %FloatMatrix containing the resulting value of the operation
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
- * @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @remarks The specific error code can be accessed using the GetLastResult() method.
*/
FloatMatrix* GetInverseN(void) const;
* @since 2.0
*
* @return A pointer to @c float array
- * @param[in] rowIndex The target row number in the current instance
+ * @param[in] rowIndex The target row number in the current instance
* @exception E_INVALID_ARG The @c rowIndex is larger than the row count of the current instance.
- * @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @remarks The specific error code can be accessed using the GetLastResult() method.
*/
float* GetRowN(int rowIndex) const;
* @since 2.0
*
* @return An error code
- * @param[out] value A @c float value
+ * @param[out] value A @c float value
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
*
* @since 2.0
*
- * @return A pointer to the instance of %FloatMatrix containing the resulting value of the operation
- * @exception E_INVALID_OPERATION The current instance is not a square matrix.
- * @remarks The specific error code can be accessed using the GetLastResult() method.
+ * @return A pointer to the instance of %FloatMatrix containing the resulting value of the operation
+ * @exception E_INVALID_OPERATION The current instance is not a square matrix.
+ * @remarks The specific error code can be accessed using the GetLastResult() method.
*/
FloatMatrix* GetTransposeN(void) const;
* @since 2.0
*
* @return An error code
- * @param[in] matrix An instance of %FloatMatrix
- * @exception E_SUCCESS The method is successful.
+ * @param[in] matrix An instance of %FloatMatrix
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The column count of the current instance is not same with the row count of the specified instance.
*/
result Multiply(const FloatMatrix& matrix);
* @since 2.0
*
* @return An error code
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
result SetAsIdentity(void);
* @since 2.0
*
* @return An error code
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
result Invert(void);
* @since 2.0
*
* @return An error code
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
result Transpose(void);
* @since 2.0
*
* @return An error code
- * @param[in] columnIndex The target column number in the current instance
- * @param[in] pArray An array which includes the values @n The array must be at least row in length.
- * @exception E_SUCCESS The method is successful.
+ * @param[in] columnIndex The target column number in the current instance
+ * @param[in] pArray An array which includes the values @n The array must be at least row in length.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The @c pArray is @c null, or the @c columnIndex is larger than the column count of the current instance.
*/
result SetColumn(int columnIndex, const float* pArray);
* @since 2.0
*
* @return An error code
- * @param[in] rowIndex The target row number in the current instance
- * @param[in] pArray An array which includes the values @n The array must be at least column in length.
- * @exception E_SUCCESS The method is successful.
+ * @param[in] rowIndex The target row number in the current instance
+ * @param[in] pArray An array which includes the values @n The array must be at least column in length.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The @c pArray is @c null, or the @c rowIndex is larger than the row count of the current instance.
*/
result SetRow(int rowIndex, const float* pArray);
* @return An error code
* @param[in] rowIndex The target row number in the current instance
* @param[in] columnIndex The target column number in the current instance
- * @param[in] value A @c float value
+ * @param[in] value A @c float value
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The pArray is @c null, or the @c rowIndex is larger than the row count of the current instance,
* or the @c columnIndex is larger than the column count of the current instance.
* @since 2.0
*
* @return An error code
- * @param[in] pArray A one-dimensional array @n The array must be at least row * column in length.
+ * @param[in] pArray A one-dimensional array @n The array must be at least row * column in length.
* @param[in] rowMajor Set to @c true to copy the array in row-major order, @n
* else @c false to copy in column-major order
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The pArray is @c null.
*/
result SetValue(const float* pArray, bool rowMajor = true);
* @since 2.0
*
* @return An error code
- * @param[in] matrix An instance of %FloatMatrix
- * @exception E_SUCCESS The method is successful.
+ * @param[in] matrix An instance of %FloatMatrix
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG Either row or column count of the current instance is not same with that of the specified instance.
*/
result Subtract(const FloatMatrix& matrix);
* This header file contains the declarations of the %FloatMatrix3 class.
*
*/
-
#ifndef _FBASE_FLOAT_MATRIX3_H_
#define _FBASE_FLOAT_MATRIX3_H_
* @return @c true if the values of the current instance is equal to the value of the specified instance, @n
* else @c false
* @param[in] obj An instance of %FloatMatrix3
- * @remarks This method overrides Tizen::Base::Object::Equals(). This method uses the values of the Matrix components to compare the two instances.
+ * @remarks This method overrides Tizen::Base::Object::Equals(). This method uses the values of the Matrix components to compare the two instances.
*/
virtual bool Equals(const Tizen::Base::Object& obj) const;
}; // FloatMatrix3
-}}// Tizen::Base
+}} // Tizen::Base
#endif //_FBASE_FLOAT_MATRIX3_H_
* This header file contains the declarations of the %FloatMatrix4 class.
*
*/
-
#ifndef _FBASE_FLOAT_MATRIX4_H_
#define _FBASE_FLOAT_MATRIX4_H_
*
* @return A new instance of %FloatMatrix4 containing the resulting value of the operation
* @param[in] value A @c float value to add
- * @param[in] rhs An instance of %FloatMatrix4
+ * @param[in] rhs An instance of %FloatMatrix4
*/
_OSP_EXPORT_ friend FloatMatrix4 operator +(const float& value, const FloatMatrix4& rhs);
*
* @return A new instance of %FloatMatrix4 containing the resulting value of the operation
* @param[in] value A @c float value to multiply
- * @param[in] rhs An instance of %FloatMatrix4
+ * @param[in] rhs An instance of %FloatMatrix4
*/
_OSP_EXPORT_ friend FloatMatrix4 operator *(const float& value, const FloatMatrix4& rhs);
*
* @return A new instance of %FloatMatrix4 containing the resulting value of the operation
* @param[in] value A @c float value to subtract
- * @param[in] rhs An instance of %FloatMatrix4
+ * @param[in] rhs An instance of %FloatMatrix4
*/
_OSP_EXPORT_ friend FloatMatrix4 operator -(const float& value, const FloatMatrix4& rhs);
* @return @c true if the values of the current instance is equal to the value of the specified instance, @n
* else @c false
* @param[in] obj An instance of %FloatMatrix4
- * @remarks This method overrides Tizen::Base::Object::Equals(). This method uses the values of the Matrix components to compare the two instances.
+ * @remarks This method overrides Tizen::Base::Object::Equals(). This method uses the values of the Matrix components to compare the two instances.
*/
virtual bool Equals(const Tizen::Base::Object& obj) const;
*
* @return The hash value of the current instance
* @remarks Two equal instances must return the same hash value. For better performance,
- * the used hash function must generate a random distribution for all inputs.
+ * the used hash function must generate a random distribution for all inputs.
*/
virtual int GetHashCode(void) const;
* @since 2.0
*
* @return An error code
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current instance is not invertible.
*/
result Invert(void);
#include <FBaseNumber.h>
-
namespace Tizen { namespace Base
{
/**
*/
Int8(char value = 0);
-
/**
* Copying of objects using this copy constructor is allowed.
*
*
* @since 2.0
*
- * @return An integer value indicating the hash value of the specified @c char value
- * @param[in] val A @c char value to get the hash value
+ * @return An integer value indicating the hash value of the specified @c char value
+ * @param[in] val A @c char value to get the hash value
*/
static int GetHashCode(char val);
private:
friend class _Int8Impl;
- class _Int8Impl * __pInt8Impl;
+ class _Int8Impl* __pInt8Impl;
}; // Int8
#include <FBaseObject.h>
#include <FBaseColIComparer.h>
-
namespace Tizen { namespace Base
{
/**
* @since 2.0
*
* @return An error code
- * @param[in] obj1 The first instance of type Int8
- * @param[in] obj2 The second instance of type Int8
- * @param[out] cmp The result of comparison
+ * @param[in] obj1 The first instance of type Int8
+ * @param[in] obj2 The second instance of type Int8
+ * @param[out] cmp The result of comparison
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The specified object instances are not of the expected type.
* @remarks The value of @c cmp can be:
*
- * @code
+ * @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
Int8Comparer& operator =(const Int8Comparer& rhs);
friend class _Int8ComparerImpl;
- class _Int8ComparerImpl * __pInt8ComparerImpl;
+ class _Int8ComparerImpl* __pInt8ComparerImpl;
}; // Int8Comparer
*
* @param[in] rowCount The number of rows in the current instance
* @param[in] columnCount The number of columns in the current instance
- * @param[in] pArray A one-dimensional array @n The array must be at least row * column in length.
+ * @param[in] pArray A one-dimensional array @n The array must be at least row * column in length.
* @param[in] rowMajor Set to @c true to copy the array in row-major order, @n
* else @c copy in column-major order
*/
* @param[in] rhs An instance of %IntMatrix
* @exception E_INVALID_ARG Either row or column count of the current instance is not same with that of the specified instance.
* @remarks If either row or column count of the current instance is not same with that of the specified instance,
- * return the reference to this instance without assigning.
+ * return the reference to this instance without assigning.
*/
IntMatrix& operator =(const IntMatrix& rhs);
*
* @return The hash value of the current instance
* @remarks Two equal instances must return the same hash value. For better performance,
- * the used hash function must generate a random distribution for all inputs.
+ * the used hash function must generate a random distribution for all inputs.
*/
virtual int GetHashCode(void) const;
* @since 2.0
*
* @return An error code
- * @param[in] matrix An instance of %IntMatrix
- * @exception E_SUCCESS The method is successful.
+ * @param[in] matrix An instance of %IntMatrix
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG Either row or column count of the current instance is not same with that of the specified instance.
*/
result Add(const IntMatrix& matrix);
* @since 2.0
*
* @return A pointer to @c int array
- * @param[in] columnIndex The target column number in the current instance
+ * @param[in] columnIndex The target column number in the current instance
* @exception E_INVALID_ARG The @c columnIndex is larger than the column count of the current instance.
*/
int* GetColumnN(int columnIndex) const;
* @since 2.0
*
* @return The determinant value of the current instance
- * @exception E_INVALID_OPERATION The current instance is not a square matrix.
+ * @exception E_INVALID_OPERATION The current instance is not a square matrix.
* @remarks If the current instance is not a square matrix, return zero.
*/
int GetDeterminant(void) const;
*
* @since 2.0
*
- * @return A pointer to the instance of %IntMatrix containing the resulting value of the operation
- * @exception E_INVALID_OPERATION The current instance is not a square matrix.
+ * @return A pointer to the instance of %IntMatrix containing the resulting value of the operation
+ * @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
IntMatrix* GetInverseN(void) const;
* @since 2.0
*
* @return A pointer to @c int array
- * @param[in] rowIndex The target row number in the current instance
+ * @param[in] rowIndex The target row number in the current instance
* @exception E_INVALID_ARG The @c rowIndex is larger than the row count of the current instance.
*/
int* GetRowN(int rowIndex) const;
*
* @return An error code
* @param[out] value A @c int value
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
result GetTrace(int& value) const;
*
* @since 2.0
*
- * @return A pointer to the instance of %IntMatrix containing the resulting value of the operation
- * @exception E_INVALID_OPERATION The current instance is not a square matrix.
+ * @return A pointer to the instance of %IntMatrix containing the resulting value of the operation
+ * @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
IntMatrix* GetTransposeN(void) const;
* @since 2.0
*
* @return An error code
- * @param[in] matrix An instance of %IntMatrix
- * @exception E_SUCCESS The method is successful.
+ * @param[in] matrix An instance of %IntMatrix
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The column count of the current instance is not same with the row count of the specified instance.
*/
result Multiply(const IntMatrix& matrix);
* @since 2.0
*
* @return An error code
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
result SetAsIdentity(void);
* @since 2.0
*
* @return An error code
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
result Invert(void);
* @since 2.0
*
* @return An error code
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION The current instance is not a square matrix.
*/
result Transpose(void);
* @since 2.0
*
* @return An error code
- * @param[in] columnIndex The target column number in the current instance
- * @param[in] pArray An array which includes the values @n The array must be at least row in length.
- * @exception E_SUCCESS The method is successful.
+ * @param[in] columnIndex The target column number in the current instance
+ * @param[in] pArray An array which includes the values @n The array must be at least row in length.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The @c pArray is @c null, or the @c columnIndex is larger than the column count of the current instance.
*/
result SetColumn(int columnIndex, const int* pArray);
* @since 2.0
*
* @return An error code
- * @param[in] rowIndex The target row number in the current instance
- * @param[in] pArray An array which includes the values @n The array must be at least column in length.
- * @exception E_SUCCESS The method is successful.
+ * @param[in] rowIndex The target row number in the current instance
+ * @param[in] pArray An array which includes the values @n The array must be at least column in length.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The @c pArray is @c null, or the @c rowIndex is larger than the row count of the current instance.
*/
result SetRow(int rowIndex, const int* pArray);
* @return An error code
* @param[in] rowIndex The target row number in the current instance
* @param[in] columnIndex The target column number in the current instance
- * @param[in] value A @c int value
- * @exception E_SUCCESS The method is successful.
+ * @param[in] value A @c int value
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The pArray is @c null, or the @c rowIndex is larger than the row count of the current instance,
* or the @c columnIndex is larger than the column count of the current instance.
*/
* @param[in] pArray A one-dimensional array @n The array must be at least row * column in length.
* @param[in] rowMajor Set to @c true to copy the array in row-major order, @n
* else @c false to copy in column-major order
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The pArray is @c null.
*/
result SetValue(const int* pArray, bool rowMajor = true);
*
* @return An error code
* @param[in] matrix An instance of %IntMatrix
- * @exception E_SUCCESS The method is successful.
+ * @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG Either row or column count of the current instance is not same with that of the specified instance.
*/
result Subtract(const IntMatrix& matrix);
#include <FBaseNumber.h>
-
namespace Tizen { namespace Base
{
/**
* @since 2.0
*
* @return An error code
- * @param[in] s A string representing the numeric value
- * @param[out] ret The result of the operation
+ * @param[in] s A string representing the numeric value
+ * @param[out] ret The result of the operation
* @exception E_SUCCESS The method is successful.
* @exception E_NUM_FORMAT The specified string does not contain a number that can be parsed.
* @remarks This method accepts decimal, hexadecimal, and octal numbers given by the
* @param[out] ret The result of the operation
* @exception E_SUCCESS The method is successful.
* @exception E_NUM_FORMAT The specified string does not contain a number that can be parsed.
- * @exception E_OUT_OF_RANGE The specified @c radix is invalid.
+ * @exception E_OUT_OF_RANGE The specified @c radix is invalid.
* @remarks This method guarantees that the original value of out-parameter is not changed when the method returns error.
*/
static result Parse(const String& s, int radix, int& ret);
private:
friend class _IntegerImpl;
- class _IntegerImpl * __pIntegerImpl;
+ class _IntegerImpl* __pIntegerImpl;
}; // Integer
#include <FBaseObject.h>
#include <FBaseColIComparer.h>
-
namespace Tizen { namespace Base
{
/**
* @exception E_INVALID_ARG The specified object instances are not of the expected type.
* @remarks The value of @c cmp can be:
*
- * @code
+ * @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
IntegerComparer& operator =(const IntegerComparer& rhs);
friend class _IntegerComparerImpl;
- class _IntegerComparerImpl * __pIntegerComparerImpl;
+ class _IntegerComparerImpl* __pIntegerComparerImpl;
}; // IntegerComparer
else {;}
#define AppAssert(condition) \
- if (!(condition)) { \
+ if (!(condition)) { \
AppassertInternal(__PRETTY_FUNCTION__, __LINE__); \
} \
else {;}
#define AppAssertf(condition, ...) \
- if (!(condition)) { \
+ if (!(condition)) { \
AppassertfInternal(# condition, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__); \
} \
else {;}
* @since 2.0
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to print, if the assertion fails
+ * @param[in] ... The message to print, if the assertion fails
*
* @image html debugging_appassert.png
*
* @since 2.0
*
* @param[in] expression The expression to evaluate
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the AppLogIf macro.
*
* @since 2.0
*
* @param[in] expression The expression to evaluate
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the AppLogDebugIf macro.
*
* @since 2.0
*
* @param[in] expression The expression to evaluate
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the AppLogExceptionIf macro.
*
*
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the Try macro.
*
* @hideinitializer
*/
#define TryCatch(condition, expr, ...) \
- if (!(condition)) { \
+ if (!(condition)) { \
AppLogException(__VA_ARGS__); \
expr; \
goto CATCH; \
*
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchResult(condition, expr, r, ...) \
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to catchLabel
* @param[in] catchLabel The label for goto operation
-* @param[in] r The last result to set
-* @param[in] ... The message to display
+* @param[in] r The last result to set
+* @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchLabelResult(condition, expr, catchLabel, r, ...) \
*
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturn(condition, returnValue, ...) \
*
* @since 2.0
*
- * @param[in] condition The condition that is expected to be true
+ * @param[in] condition The condition that is expected to be true
* @param[in] r The last result to set
* @param[in] ... The message to display
* @hideinitializer
* @since 2.0
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnVoid(condition, ...) \
* @since 2.0
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryLog(condition, ...) \
*
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
-* @param[in] ... The message to display
+* @param[in] ... The message to display
* @hideinitializer
*/
#define TryLogReturn(condition, returnValue, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchTag(tag, condition, expr, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchResultTag(tag, condition, expr, r, ...) \
*
* @since 2.1
*
-* @param[in] tag Used to identify the source of a log message
+* @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to catchLabel
* @param[in] catchLabel The label for goto operation
-* @param[in] r The last result to set
-* @param[in] ... The message to display
+* @param[in] r The last result to set
+* @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchLabelResultTag(tag, condition, expr, catchLabel, r, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnTag(tag, condition, returnValue, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnResultTag(tag, condition, returnValue, r, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnVoidResultTag(tag, condition, r, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnVoidTag(tag, condition, ...) \
* @since 2.0
*
* @param[in] tag Used to identify the source of a log message
- * @param[in] condition The condition that is expected to be true
+ * @param[in] condition The condition that is expected to be true
* @param[in] ... The message to display
* @hideinitializer
*/
*
* @since 2.1
*
-* @param[in] tag Used to identify the source of a log message
+* @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
-* @param[in] ... The message to display
+* @param[in] ... The message to display
* @hideinitializer
*/
#define TryLogReturnTag(tag, condition, returnValue, ...) \
#if (defined(_APP_LOG) || defined(_OSP_DEBUG_) || defined(_DEBUG)) && defined(_SECURE_LOG)
-#define AppSecureLog(...) AppLogInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
+#define AppSecureLog(...) AppLogInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
#define AppSecureLogDebug(...) AppLogDebugInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
#define AppSecureLogException(...) AppLogExceptionInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
-#define AppSecureLogTag(tag, ...) AppLogTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
+#define AppSecureLogTag(tag, ...) AppLogTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
#define AppSecureLogDebugTag(tag, ...) AppLogDebugTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
#define AppSecureLogExceptionTag(tag, ...) AppLogExceptionTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
*
* @since 2.1
*
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the AppSecureLogException macro.
*
*
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the SecureTry macro.
*
*
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryCatchResult(condition, expr, r, ...) \
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to catchLabel
* @param[in] catchLabel The label for goto operation
- * @param[in] r The last result to set
+ * @param[in] r The last result to set
* @param[in] ... The message to display
* @hideinitializer
*/
*
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturn(condition, returnValue, ...) \
*
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnResult(condition, returnValue, r, ...) \
* @since 2.1
*
* @param[in] condition The condition that is expected to be true
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnVoidResult(condition, r, ...) \
* @since 2.1
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnVoid(condition, ...) \
* @since 2.1
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryLog(condition, ...) \
*
* @since 2.1
*
- * @param[in] condition The condition that is expected to be true
+ * @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryLogReturn(condition, returnValue, ...) \
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryCatchTag(tag, condition, expr, ...) \
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryCatchResultTag(tag, condition, expr, r, ...) \
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to catchLabel
* @param[in] catchLabel The label for goto operation
- * @param[in] r The last result to set
+ * @param[in] r The last result to set
* @param[in] ... The message to display
* @hideinitializer
*/
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnTag(tag, condition, returnValue, ...) \
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnResultTag(tag, condition, returnValue, r, ...) \
* @since 2.1
*
* @param[in] tag Used to identify the source of a log message
- * @param[in] condition The condition that is expected to be true
+ * @param[in] condition The condition that is expected to be true
* @param[in] r The last result to set
* @param[in] ... The message to display
* @hideinitializer
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnVoidTag(tag, condition, ...) \
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryLogTag(tag, condition, ...) \
- if (!(condition)) { \
+ if (!(condition)) { \
AppSecureLogTag(tag, __VA_ARGS__); \
} \
else {;}
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
- * @param[in] condition The condition that is expected to be true
+ * @param[in] tag Used to identify the source of a log message
+ * @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryLogReturnTag(tag, condition, returnValue, ...) \
#include <FBaseNumber.h>
-
namespace Tizen { namespace Base
{
/**
* @param[out] ret The result of the operation
* @exception E_SUCCESS The method is successful.
* @exception E_NUM_FORMAT The specified string does not contain a number that can be parsed.
- * @exception E_OUT_OF_RANGE The specified @c radix is invalid.
+ * @exception E_OUT_OF_RANGE The specified @c radix is invalid.
* @remarks This method guarantees that the original value of out-parameter is not changed when the method returns error.
*/
static result Parse(const String& s, int radix, long& ret);
private:
friend class _LongImpl;
- class _LongImpl * __pLongImpl;
+ class _LongImpl* __pLongImpl;
}; // Long
#include <FBaseObject.h>
#include <FBaseColIComparer.h>
-
namespace Tizen { namespace Base
{
/**
* @since 2.0
*
* @return An error code
- * @param[in] obj1 The first instance of type %Long
- * @param[in] obj2 The second instance of type %Long
- * @param[out] cmp The result of comparison
+ * @param[in] obj1 The first instance of type %Long
+ * @param[in] obj2 The second instance of type %Long
+ * @param[out] cmp The result of comparison
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The specified object instances are not of the expected type.
* @remarks The value of @c cmp can be:
*
- * @code
+ * @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
LongComparer& operator =(const LongComparer& rhs);
friend class _LongComparerImpl;
- class _LongComparerImpl * __pLongComparerImpl;
+ class _LongComparerImpl* __pLongComparerImpl;
}; // LongComparer
#include <FBaseNumber.h>
-
namespace Tizen { namespace Base
{
/**
*
* @since 2.0
*
- * @return An integer value indicating the hash value of the specified @c long @c long value
+ * @return An integer value indicating the hash value of the specified @c long @c long value
* @param[in] val A @c long @c long value to get the hash value
*/
static int GetHashCode(long long val);
*
* @since 2.0
*
- * @return The string containing a Unicode representation of the specified @c signed @c long @c long value
+ * @return The string containing a Unicode representation of the specified @c signed @c long @c long value
* @param[in] value A @c signed @c long @c long value to convert
*/
static String ToString(long long value);
private:
friend class _LongLongImpl;
- class _LongLongImpl * __pLongLongImpl;
+ class _LongLongImpl* __pLongLongImpl;
}; // LongLong
#include <FBaseObject.h>
#include <FBaseColIComparer.h>
-
namespace Tizen { namespace Base
{
/**
{
public:
/**
- * This is the default constructor for this class.
+ * This is the default constructor for this class.
*
- * @since 2.0
+ * @since 2.0
*/
LongLongComparer(void);
/**
- * This destructor overrides Tizen::Base::Object::~Object().
+ * This destructor overrides Tizen::Base::Object::~Object().
*
- * @since 2.0
+ * @since 2.0
*/
virtual ~LongLongComparer(void);
/**
- * Compares two given instances of type LongLong.
+ * Compares two given instances of type LongLong.
*
- * @since 2.0
- * @return An error code
- * @param[in] obj1 The first instance of type LongLong
- * @param[in] obj2 The second instance of type LongLong
- * @param[out] cmp The result of comparison
- * @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified object instances are not of the expected type.
- * @remarks The value of @c cmp can be:
+ * @since 2.0
+ * @return An error code
+ * @param[in] obj1 The first instance of type LongLong
+ * @param[in] obj2 The second instance of type LongLong
+ * @param[out] cmp The result of comparison
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_ARG The specified object instances are not of the expected type.
+ * @remarks The value of @c cmp can be:
*
- * @code
+ * @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
- * @endcode
+ * @endcode
*/
virtual result Compare(const Tizen::Base::Object& obj1, const Tizen::Base::Object& obj2, int& cmp) const;
LongLongComparer& operator =(const LongLongComparer& rhs);
friend class _LongLongComparerImpl;
- class _LongLongComparerImpl * __pLongLongComparerImpl;
+ class _LongLongComparerImpl* __pLongLongComparerImpl;
}; // LongLongComparer
#include <FBaseObject.h>
#include <FBaseString.h>
-
namespace Tizen { namespace Base
{
/**
#include <FOspConfig.h>
#include <FOspCompat.h>
-
namespace Tizen { namespace Base
{
/**
* @since 2.0
*
* @return @c true if the value of the specified instance of %Object is equal to the value of the current instance of %Object, @n
- * else @c false
+ * else @c false
* @param[in] obj An instance of %Object to compare
* @remarks The default implementation of this method returns @c true
* if the two instances have the same address. @n
_OSP_EXPORT_ const char* GetErrorMessage(result value);
-_OSP_EXPORT_ result TransExceptionsExclusiveInternal(result r, result e, int num,...);
+_OSP_EXPORT_ result TransExceptionsExclusiveInternal(result r, result e, int num, ...);
-_OSP_EXPORT_ result TransExceptionsInclusiveInternal(result r, result e, int num,...);
+_OSP_EXPORT_ result TransExceptionsInclusiveInternal(result r, result e, int num, ...);
-#define NUMARGS(...) (sizeof((result[]){0, ##__VA_ARGS__})/sizeof(result)-1)
+#define NUMARGS(...) (sizeof((result[]){0, ##__VA_ARGS__}) / sizeof(result) - 1)
/**
* This macro returns translated exception when the checked exception doesn't correspond with the conditional exceptions.
-* In contrast, this macro returns the checked exception if it corresponds with the conditional exceptions.
+* In contrast, this macro returns the checked exception if it corresponds with the conditional exceptions.
*
* @since 2.0
*
-* @return The translated exception
-* @param[in] r The result that will be checked
-* @param[in] e The translated exception
-* @param[in] ... The list of exceptions that will be excluded in translation process @n
-* All other exceptions than this list will be translated into @c e.
+* @return The translated exception
+* @param[in] r The result that will be checked
+* @param[in] e The translated exception
+* @param[in] ... The list of exceptions that will be excluded in translation process @n
+* All other exceptions than this list will be translated into @c e.
*
*
*/
#define TransExceptionsExclusive(r, e, ...) TransExceptionsExclusiveInternal(r, e, NUMARGS(__VA_ARGS__), __VA_ARGS__)
-
+
/**
* This macro returns translated exception when the checked exception corresponds with the conditional exceptions.
* In contrast, this macro returns the checked exception if it doesn't correspond with the conditional exceptions.
*
* @since 2.0
*
-* @return The translated exception
-* @param[in] r The result that will be checked
-* @param[in] e The translated exception
-* @param[in] ... The list of exceptions that will be included in translation process @n
-* All exceptions in this list will be translated into @c e.
+* @return The translated exception
+* @param[in] r The result that will be checked
+* @param[in] e The translated exception
+* @param[in] ... The list of exceptions that will be included in translation process @n
+* All exceptions in this list will be translated into @c e.
*
*/
pMinor[i] = new double[__row - 1];
if (pMinor[i] == null)
{
- for (int i = 0; i < __row; i++)
+ for (int k = 0; k < __row; k++)
{
- delete[] pInverse[i];
+ delete[] pInverse[k];
}
for (int j = 0; j < i; j++)
pMinor[i] = new (std::nothrow) float[__row - 1];
if (pMinor[i] == null)
{
- for (int i = 0; i < __row; i++)
+ for (int k = 0; k < __row; k++)
{
- delete[] pInverse[i];
+ delete[] pInverse[k];
}
for (int j = 0; j < i; j++)
pMinor[i] = new int[__row - 1];
if (pMinor[i] == null)
{
- for (int i = 0; i < __row; i++)
+ for (int k = 0; k < __row; k++)
{
- delete[] pInverse[i];
+ delete[] pInverse[k];
}
for (int j = 0; j < i; j++)
}
va_start(ap, num);
- for (count; count < num; count++)
+ for (; count < num; count++)
{
if (r == va_arg(ap, result))
{
}
va_start(ap, num);
- for (count; count < num; count++)
+ for (; count < num; count++)
{
if (r == va_arg(ap, result))
{
#define WEB_RESERVED(X) NID_WEB+X
#define SHELL_RESERVED(X) NID_SHELL+X
-LogInfo logInfo =
+static LogInfo logInfo =
{
{
//OSP Namespace ID ===============================================================
{
va_list args;
- if (!envLoaded)
+ if (unlikely(!envLoaded))
{
int ret = access("/home/developer/.platforminfologgingmode", F_OK);
if (ret == 0)
{
va_list args;
- if (!envLoaded)
+ if (unlikely(!envLoaded))
{
int ret = access("/home/developer/.platforminfologgingmode", F_OK);
if (ret == 0)
void
__PrintLog(_LogType type, const char* pFunction, int lineNumber, const char* pFormat, va_list args)
{
- if (!iniLoaded)
+ if (unlikely(!iniLoaded))
{
__InitializeLogInfo();
}
char logTag[LOG_MODULE_NAME_LEN_MAX];
- if (!appNameLoaded)
+ if (unlikely(!appNameLoaded))
{
appNameLoaded = true;
char* pAppName = _StringConverter::CopyToCharArrayN(_AppInfo::GetAppExecutableName());
void
__PrintLogTag(const char* pTag, _LogType type, const char* pFunction, int lineNumber, const char* pFormat, va_list args)
{
- if (!iniLoaded)
+ if (unlikely(!iniLoaded))
{
__InitializeLogInfo();
}
void
__PrintSysLog(_LogType type, LogID id, const char* pFunction, int lineNumber, const char* pFormat, va_list args)
{
- if (!iniLoaded)
+ if (unlikely(!iniLoaded))
{
__InitializeLogInfo();
}
void
__PrintSysLogTag(const char* pTag, _LogType type, LogID id, const char* pFunction, int lineNumber, const char* pFormat, va_list args)
{
- if (!iniLoaded)
+ if (unlikely(!iniLoaded))
{
__InitializeLogInfo();
}
}
}
-char*
+const char*
__GetModuleName(LogID id)
{
return logInfo.logTable[id].logModuleName;
void
__InitializeLogLevel(const Registry& reg)
{
- String sectApp(L"Application");
- String sectPlatform(L"Platform");
+ const String sectApp(L"Application");
+ const String sectPlatform(L"Platform");
- String entryInfo(L"INFO");
- String entryDebug(L"DEBUG");
- String entryException(L"EXCEPTION");
+ const String entryInfo(L"INFO");
+ const String entryDebug(L"DEBUG");
+ const String entryException(L"EXCEPTION");
- String strYes(L"YES");
+ const String strYes(L"YES");
String retString;
result r;
void
__InitializePlatformModule(const Registry& reg)
{
- String strYes(L"YES");
+ const String strYes(L"YES");
String retString;
- String sectModule(L"PlatformModules");
+ const String sectModule(L"PlatformModules");
result r;
*/
typedef struct LogEntry
{
- int logID;
- char logIDName[LOG_MODULE_NAME_LEN_MAX];
- char logModuleName[LOG_MODULE_NAME_LEN_MAX];
+ const int logID;
+ const char logIDName[LOG_MODULE_NAME_LEN_MAX];
+ const char logModuleName[LOG_MODULE_NAME_LEN_MAX];
bool loggingEnabled;
} LogEntry;
void __PrintSysLog(_LogType type, LogID id, const char* pFunction, int lineNumber, const char* pFormat, va_list args);
void __PrintSysLogTag(const char* pTag, _LogType type, LogID id, const char* pFunction, int lineNumber, const char* pFormat, va_list args);
-char* __GetModuleName(LogID id);
+const char* __GetModuleName(LogID id);
bool __GetEnableInfo(LogID id);
void __InitializeLogInfo(void);
*
* @since 2.0
*/
- _ObjectManagerImpl(_ObjectManagerImpl& pObjectManagerImpl)
+ _ObjectManagerImpl(_ObjectManagerImpl& objectManagerImpl)
{
- __slotCount = pObjectManagerImpl.__slotCount;
- __slotCapacity = pObjectManagerImpl.__slotCapacity;
- __pSlots = new _HandleElement[pObjectManagerImpl.__slotCapacity];
+ __slotCount = objectManagerImpl.__slotCount;
+ __slotCapacity = objectManagerImpl.__slotCapacity;
+ __pSlots = new _HandleElement[objectManagerImpl.__slotCapacity];
- for (unsigned int i = 0; i < pObjectManagerImpl.__slotCapacity; i++)
+ for (unsigned int i = 0; i < objectManagerImpl.__slotCapacity; i++)
{
- __pSlots[i] = pObjectManagerImpl.__pSlots[i];
+ __pSlots[i] = objectManagerImpl.__pSlots[i];
}
__pLock = new (std::nothrow) Tizen::Base::Runtime::Mutex();