亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? arraylist.h

?? funambol windows mobile plugin source code, the source code is taken from the funambol site
?? H
字號:
/*
 * Copyright (C) 2003-2007 Funambol, Inc
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 * 02111-1307  USA
 */


#ifndef INCL_BASE_UTIL_ARRAY_LIST
#define INCL_BASE_UTIL_ARRAY_LIST
/** @cond DEV */

#include "base/fscapi.h"

#include "base/util/ArrayElement.h"

/**
 * This class implements a simple linked list that can be accessed by index too.
 * This class does not make use of C++ templates by choice, since it must be
 * as much easier and portable as possible.
 *
 * Each list element must be an instance of ArrayElement, which must be
 * considered an abstract class. Implementing classes must define the destructor
 * and the method clone(), which is used to replicate a given object. This is
 * used by insertion methods: they always clone the item and store the cloned
 * element so that the version inside the list and the caller can independently
 * release their memory. Note that clone methods MUST use the C++ operator to
 * allocate new object, since ArrayList will delete them calling the C++ delete
 * operator.
 */

struct Element {
	ArrayElement* e; // the element value
	Element* n;      // the next element (NULL for the latest)
};

class ArrayList {
	private:
	    Element* head;
        Element* lastElement;

        Element* iterator;

        int count;

        ArrayList& set (const ArrayList & other);

	public:
	    ArrayList();
        ArrayList(const ArrayList &other);
	    ~ArrayList();

	    /**
	     * Is this list empty?
	     */
	    bool isEmpty();

		/**
		 * Adds a new element at the specified index. If index is greater than
		 * the list size the element is appended.
		 * The element is dinamically duplicated so that the caller can release
		 * the element at any time. This method returns the position (0 based) at which
		 * the element has been inserted. It can be different by index if index is out
		 * of the array bounds, in that case element is appended as last element.
		 * It returns -1 in case of errors.
		 *
		 * @param index the insertion position
		 * @param element the element to insert
		 */
	    int add(int index, ArrayElement& element);

	    /**
	     * Same as add(index, element, size), but append at the end of the array.
	     *
	     * @param element the element to insert
	     */
	    int add(ArrayElement& element);

        /**
        * Add all the ArrayElement of the given ArrayList to the current
        * array list
        */
        int add(ArrayList* list);

	    /**
	     * Frees the list. All elements are freed as well.
	     */
	    void clear();

	    /**
	     * Frees the list and all its elements, regardless the value of
	     * autoDeleteElements.
	     */
	    void clearAll();

        int removeElementAt(int index);

	    /**
	     * Returns the index-th element of the array or NULL if index is out of
	     * the array bounds. Note that the retuned element will be released at
	     * list destruction. Clone it if it must have a different life cycle.
	     *
	     * @param index the element position
	     */
	    ArrayElement* get(int index);

        /**
         * Returns the first element of the array and set here the internal iterator.
         *
         * Note that the retuned element will be released at list destruction.
         * Clone it if it must have a different life cycle.
         *
         * @return - the first element of the array, or NULL if empty.
         */
        ArrayElement* front();

        /**
         * Returns the next element of the array and increment the internal iterator.
         *
         * Note that the retuned element will be released at list destruction.
         * Clone it if it must have a different life cycle.
         *
         * @return - the next element of the array, or NULL if beyond the last.
         */
        ArrayElement* next();

        /**
         * Returns the previous element of the array and decrement the internal iterator.
         *
         * Note that the retuned element will be released at list destruction.
         * Clone it if it must have a different life cycle.
         *
         * @return - the previous element of the array, or NULL if before the first.
         */
        ArrayElement* prev();

        /**
         * Returns the last element of the array and set here the internal iterator.
         *
         * Note that the retuned element will be released at list destruction.
         * Clone it if it must have a different life cycle.
         *
         * @return - the first element of the array, or NULL if empty.
         */
        ArrayElement* back();

	    /**
	     * Returns the array size.
	     */
	    int size();

	    /**
	     * Same as get(index)
	     */
	    ArrayElement* operator[] (int index);

        /**
         * Copy the ArrayList
         */
        ArrayList& operator= (const ArrayList &v);


        /**
        * Clones the arrayList a return a pointer to a new one.
        */
        ArrayList* clone();

};
/** @endcond */
#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区在线观看| 一区二区三区免费在线观看| 日韩精品综合一本久道在线视频| 在线看日韩精品电影| 制服丝袜国产精品| 久久综合色天天久久综合图片| 在线不卡的av| 国产午夜精品一区二区三区嫩草 | 欧美在线视频不卡| 欧美日韩不卡一区| 国产网站一区二区| 亚洲综合色婷婷| 国产在线国偷精品产拍免费yy| 国产99久久久久久免费看农村| 99久久综合精品| 日韩精品最新网址| 亚洲精品国产一区二区精华液| 午夜精品一区二区三区电影天堂| 激情六月婷婷综合| 欧美日韩在线亚洲一区蜜芽| 欧美激情一区二区三区蜜桃视频 | 欧美性做爰猛烈叫床潮| 欧美美女直播网站| 亚洲人午夜精品天堂一二香蕉| 麻豆91免费看| 欧美一级在线观看| 久久精品99国产精品| 欧美午夜精品理论片a级按摩| 国产精品成人网| 色嗨嗨av一区二区三区| 亚洲国产一区二区视频| 欧美一区二区高清| 精品一区二区三区视频在线观看| 久久综合久久99| 青青国产91久久久久久| 8x福利精品第一导航| 性久久久久久久久久久久| 欧美在线观看你懂的| 日韩中文字幕亚洲一区二区va在线 | 蜜桃视频免费观看一区| 久久久99精品免费观看| 风间由美中文字幕在线看视频国产欧美 | 精品国产伦一区二区三区观看方式| 日韩不卡一二三区| 欧美极品xxx| 欧美日韩国产影片| 精品一区二区三区在线观看国产| 精品国产凹凸成av人导航| 国产福利视频一区二区三区| 1024亚洲合集| 日韩精品一区二区在线| 成人18视频日本| 奇米一区二区三区| 国产精品国产馆在线真实露脸| 色婷婷精品大视频在线蜜桃视频 | 欧美日韩中文另类| 国产成人在线视频网站| 亚洲成人黄色影院| 中文字幕一区二区三区精华液| 欧美在线免费观看视频| 国产麻豆视频精品| 青青青伊人色综合久久| 亚洲日本成人在线观看| 日韩一区二区在线看片| 91污在线观看| 国产九九视频一区二区三区| 天天色天天爱天天射综合| 最新国产成人在线观看| 欧美成人三级电影在线| 欧美日韩亚洲综合在线| 色综合久久中文字幕综合网| 成人一区二区视频| 国产在线精品不卡| 狠狠色丁香久久婷婷综合_中| 日韩国产欧美在线播放| 伊人色综合久久天天| 亚洲天堂a在线| 亚洲视频一区在线| 亚洲天堂av一区| 亚洲bt欧美bt精品777| 亚洲午夜免费视频| 首页国产欧美久久| 偷拍亚洲欧洲综合| 日韩电影在线一区二区| 日本91福利区| 国产一区二区导航在线播放| 国产精品77777| 色婷婷国产精品久久包臀| 欧美精品在线观看一区二区| 日韩三级.com| 久久九九影视网| 夜夜揉揉日日人人青青一国产精品| 亚洲国产成人av网| 另类欧美日韩国产在线| 国产伦精品一区二区三区免费| 国产精华液一区二区三区| 福利一区福利二区| 色狠狠综合天天综合综合| 91麻豆精品国产91久久久使用方法| 欧美一级高清片| 国产精品欧美极品| 日韩中文字幕区一区有砖一区| 国产在线精品一区二区夜色| 97精品国产露脸对白| 91精品国产综合久久香蕉的特点 | 欧美在线观看视频在线| 欧美成人伊人久久综合网| 中文字幕一区二区三区乱码在线| 午夜激情一区二区三区| 91在线视频官网| 久久精品人人做| 美女免费视频一区二区| 一本大道av一区二区在线播放| 久久久综合九色合综国产精品| 综合在线观看色| 色偷偷一区二区三区| 日韩高清在线一区| 制服丝袜激情欧洲亚洲| 亚洲情趣在线观看| 日本道色综合久久| 国产精品久久久久久久蜜臀| 国产一区二区三区蝌蚪| www精品美女久久久tv| 免费的国产精品| 在线不卡的av| 免费在线观看精品| 日韩精品一区二区三区四区| 午夜精品福利在线| 日韩一区二区免费在线电影| 天天操天天综合网| 欧美va亚洲va在线观看蝴蝶网| 日韩av中文在线观看| 欧美tickling网站挠脚心| 国产精品911| 一区二区三区视频在线观看| 欧美精品第1页| 国产乱人伦偷精品视频不卡| 欧美国产精品一区| 欧美日韩一本到| 裸体健美xxxx欧美裸体表演| 精品国产一区久久| 99re视频这里只有精品| 性久久久久久久| 中文字幕欧美日韩一区| 91成人看片片| 国产高清视频一区| 亚洲综合一区在线| 国产网站一区二区| 欧美理论片在线| av欧美精品.com| 精品一区二区在线视频| 亚洲欧美国产三级| 精品国精品国产| 欧美日韩在线一区二区| 99视频精品免费视频| 国产在线国偷精品免费看| 丝袜美腿成人在线| 亚洲精品中文在线影院| 国产女主播一区| 中文子幕无线码一区tr| 精品对白一区国产伦| 6080午夜不卡| 欧美一区二区黄| 精品久久久久久久久久久久久久久 | 国产一区二区91| 久久99精品国产| 黄一区二区三区| 三级欧美韩日大片在线看| 日韩精品久久理论片| 一区二区三区欧美激情| 亚洲综合一区二区| 一区二区三区日本| 一区二区三区欧美日| 亚洲a一区二区| 粉嫩av一区二区三区粉嫩| 国产成人午夜高潮毛片| 成人激情电影免费在线观看| 国产a区久久久| 91免费看视频| 欧美日韩五月天| 精品乱码亚洲一区二区不卡| 国产精品视频第一区| 亚洲主播在线观看| 国产精品中文有码| 一本久久精品一区二区| 欧美一级免费大片| 综合婷婷亚洲小说| 蜜桃av噜噜一区| 色欧美片视频在线观看在线视频| 欧美日韩小视频| 中文字幕视频一区二区三区久| 亚洲综合一区在线| 成人综合日日夜夜| 欧美高清视频一二三区| 久久久777精品电影网影网| 洋洋成人永久网站入口| 国内精品免费在线观看| 欧美午夜寂寞影院| 国产精品高清亚洲| 黄色成人免费在线|