2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FBaseColTypes.h
19 * @brief This is the header file for the element deleter.
21 * This header file contains the declarations of the element deleter.
22 * Depending on the element deleter, collection decides whether to remove the object or not.
24 #ifndef _FBASE_COL_TYPES_H_
25 #define _FBASE_COL_TYPES_H_
27 #include <FBaseObject.h>
29 namespace Tizen { namespace Base { namespace Collection
32 typedef void (*DeleterFunctionType)(Object* pObj);
35 * This function does not remove the object.
39 * @param[in] pObj The pointer to the object to remove
41 _OSP_EXPORT_ void NoOpDeleter(Object* pObj);
44 * This function removes the single object.
48 * @param[in] pObj The pointer to the object to remove
50 _OSP_EXPORT_ void SingleObjectDeleter(Object* pObj);
53 * This function removes the array object.
57 * @param[in] pObj The pointer to the object to remove
59 _OSP_EXPORT_ void ArrayDeleter(Object* pObj);
61 }}} // Tizen::Base::Collection
63 #endif // _FBASE_COL_TYPES_H_