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

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

?? refhash3keysidpool.hpp

?? IBM的解析xml的工具Xerces的源代碼
?? HPP
字號:
/* * Copyright 2001,2004 The Apache Software Foundation. *  * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *//* * $Log: RefHash3KeysIdPool.hpp,v $ * Revision 1.11  2004/09/08 13:56:22  peiyongz * Apache License Version 2.0 * * Revision 1.10  2004/03/01 15:03:08  peiyongz * new getter: getHashModulus * * Revision 1.9  2004/01/29 11:48:46  cargilld * Code cleanup changes to get rid of various compiler diagnostic messages. * * Revision 1.8  2003/12/17 00:18:35  cargilld * Update to memory management so that the static memory manager (one used to call Initialize) is only for static data. * * Revision 1.7  2003/11/03 22:00:31  peiyongz * RefHashTable-like enumeration accessing added * * Revision 1.6  2003/10/29 16:17:48  peiyongz * size() added * * Revision 1.5  2003/05/16 06:01:52  knoaman * Partial implementation of the configurable memory manager. * * Revision 1.4  2003/05/15 19:04:35  knoaman * Partial implementation of the configurable memory manager. * * Revision 1.3  2002/11/04 15:22:04  tng * C++ Namespace Support. * * Revision 1.2  2002/06/12 17:15:12  tng * Remove redundant include header file. * * Revision 1.1.1.1  2002/02/01 22:22:12  peiyongz * sane_include * * Revision 1.4  2001/12/22 01:06:08  jasons * Made the destructors virtual for: * * * ~RefHash2KeysTableOfEnumerator * * ~RefHash3KeysIdPoolEnumerator * * This fixes bug #5514 * * Revision 1.3  2001/06/04 13:45:04  tng * The "hash" argument clashes with STL hash.  Fixed by Pei Yong Zhang. * * Revision 1.2  2001/05/11 13:26:29  tng * Copyright update. * * Revision 1.1  2001/03/21 21:56:12  tng * Schema: Add Schema Grammar, Schema Validator, and split the DTDValidator into DTDValidator, DTDScanner, and DTDGrammar. * */#if !defined(REFHASH3KEYSIDPOOL_HPP)#define REFHASH3KEYSIDPOOL_HPP#include <xercesc/util/HashBase.hpp>#include <xercesc/util/IllegalArgumentException.hpp>#include <xercesc/util/NoSuchElementException.hpp>#include <xercesc/util/RuntimeException.hpp>#include <xercesc/util/PlatformUtils.hpp>#include <xercesc/util/XMLString.hpp>#include <xercesc/util/HashXMLCh.hpp>XERCES_CPP_NAMESPACE_BEGIN// This hash table is a combination of RefHash2KeyTableOf (with an additional integer as key3)// and NameIdPool with an id as index////  Forward declare the enumerator so he can be our friend. Can you say//  friend? Sure...//template <class TVal> class RefHash3KeysIdPoolEnumerator;template <class TVal> struct RefHash3KeysTableBucketElem;////  This should really be a nested class, but some of the compilers we//  have to support cannot deal with that!//template <class TVal> struct RefHash3KeysTableBucketElem : public XMemory{    RefHash3KeysTableBucketElem(              void* key1              , int key2              , int key3              , TVal* const value              , RefHash3KeysTableBucketElem<TVal>* next) :		fData(value)    , fNext(next)    , fKey1(key1)    , fKey2(key2)    , fKey3(key3)    {    }        RefHash3KeysTableBucketElem() {};    TVal*  fData;    RefHash3KeysTableBucketElem<TVal>*   fNext;    void*  fKey1;    int    fKey2;    int    fKey3;private:    // -----------------------------------------------------------------------    //  Unimplemented constructors and operators    // -----------------------------------------------------------------------    RefHash3KeysTableBucketElem(const RefHash3KeysTableBucketElem<TVal>&);    RefHash3KeysTableBucketElem<TVal>& operator=(const RefHash3KeysTableBucketElem<TVal>&);};template <class TVal> class RefHash3KeysIdPool : public XMemory{public:    // -----------------------------------------------------------------------    //  Constructors and Destructor    // -----------------------------------------------------------------------    // backwards compatability - default hasher is HashXMLCh    RefHash3KeysIdPool    (          const unsigned int   modulus        , const unsigned int   initSize = 128        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager    );    // backwards compatability - default hasher is HashXMLCh    RefHash3KeysIdPool    (          const unsigned int   modulus        , const bool           adoptElems        , const unsigned int   initSize = 128        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager    );    // if a hash function is passed in, it will be deleted when the hashtable is deleted.    // use a new instance of the hasher class for each hashtable, otherwise one hashtable    // may delete the hasher of a different hashtable if both use the same hasher.    RefHash3KeysIdPool    (          const unsigned int   modulus        , const bool           adoptElems        , HashBase* hashBase        , const unsigned int initSize = 128        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager    );    ~RefHash3KeysIdPool();    // -----------------------------------------------------------------------    //  Element management    // -----------------------------------------------------------------------    bool isEmpty() const;    bool containsKey(const void* const key1, const int key2, const int key3) const;    void removeAll();    // -----------------------------------------------------------------------    //  Getters    // -----------------------------------------------------------------------    TVal* getByKey(const void* const key1, const int key2, const int key3);    const TVal* getByKey(const void* const key1, const int key2, const int key3) const;    TVal* getById(const unsigned elemId);    const TVal* getById(const unsigned elemId) const;    MemoryManager* getMemoryManager() const;    unsigned int   getHashModulus()   const;    // -----------------------------------------------------------------------    //  Putters    // -----------------------------------------------------------------------	unsigned int put(void* key1, int key2, int key3, TVal* const valueToAdopt);private :    // -----------------------------------------------------------------------    //  Declare our friends    // -----------------------------------------------------------------------    friend class RefHash3KeysIdPoolEnumerator<TVal>;private:    // -----------------------------------------------------------------------    //  Unimplemented constructors and operators    // -----------------------------------------------------------------------    RefHash3KeysIdPool(const RefHash3KeysIdPool<TVal>&);    RefHash3KeysIdPool<TVal>& operator=(const RefHash3KeysIdPool<TVal>&);    // -----------------------------------------------------------------------    //  Private methods    // -----------------------------------------------------------------------    RefHash3KeysTableBucketElem<TVal>* findBucketElem(const void* const key1, const int key2, const int key3, unsigned int& hashVal);    const RefHash3KeysTableBucketElem<TVal>* findBucketElem(const void* const key1, const int key2, const int key3, unsigned int& hashVal) const;    void initialize(const unsigned int modulus);    // -----------------------------------------------------------------------    //  Data members    //    //  fAdoptedElems    //      Indicates whether the values added are adopted or just referenced.    //      If adopted, then they are deleted when they are removed from the    //      hash table.    //    //  fBucketList    //      This is the array that contains the heads of all of the list    //      buckets, one for each possible hash value.    //    //  fHashModulus    //      The modulus used for this hash table, to hash the keys. This is    //      also the number of elements in the bucket list.    //    //  fHash    //      The hasher for the key1 data type.    //    //  fIdPtrs    //  fIdPtrsCount    //      This is the array of pointers to the bucket elements in order of    //      their assigned ids. So taking id N and referencing this array    //      gives you the element with that id. The count field indicates    //      the current size of this list. When fIdCounter+1 reaches this    //      value the list must be expanded.    //    //  fIdCounter    //      This is used to give out unique ids to added elements. It starts    //      at zero (which means empty), and is bumped up for each newly added    //      element. So the first element is 1, the next is 2, etc... This    //      means that this value is set to the top index of the fIdPtrs array.    // -----------------------------------------------------------------------    MemoryManager*                      fMemoryManager;    bool                                fAdoptedElems;    RefHash3KeysTableBucketElem<TVal>** fBucketList;    unsigned int                        fHashModulus;    HashBase*                           fHash;    TVal**                              fIdPtrs;    unsigned int                        fIdPtrsCount;    unsigned int                        fIdCounter;};////  An enumerator for a value array. It derives from the basic enumerator//  class, so that value vectors can be generically enumerated.//template <class TVal> class RefHash3KeysIdPoolEnumerator : public XMLEnumerator<TVal>, public XMemory{public :    // -----------------------------------------------------------------------    //  Constructors and Destructor    // -----------------------------------------------------------------------    RefHash3KeysIdPoolEnumerator(RefHash3KeysIdPool<TVal>* const toEnum        , const bool adopt = false        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);    virtual ~RefHash3KeysIdPoolEnumerator();    RefHash3KeysIdPoolEnumerator(const RefHash3KeysIdPoolEnumerator<TVal>&);    // -----------------------------------------------------------------------    //  Enum interface    // -----------------------------------------------------------------------    bool hasMoreElements() const;    TVal& nextElement();    void Reset();    int  size() const;    // -----------------------------------------------------------------------    //  New interface     // -----------------------------------------------------------------------    void resetKey();    void nextElementKey(void*&, int&, int&);    bool hasMoreKeys()   const;private :    // -----------------------------------------------------------------------    //  Unimplemented constructors and operators    // -----------------------------------------------------------------------        RefHash3KeysIdPoolEnumerator<TVal>& operator=(const RefHash3KeysIdPoolEnumerator<TVal>&);    // -----------------------------------------------------------------------    //  Private methods    // -----------------------------------------------------------------------    void findNext();    // -----------------------------------------------------------------------    //  Data Members    //  fAdoptedElems    //      Indicates whether the values added are adopted or just referenced.    //      If adopted, then they are deleted when they are removed from the    //      hash table    //    //  fCurIndex    //      This is the current index into the pool's id mapping array. This    //      is now we enumerate it.    //    //  fToEnum    //      The name id pool that is being enumerated.    // -----------------------------------------------------------------------    bool                                fAdoptedElems;    unsigned int                        fCurIndex;    RefHash3KeysIdPool<TVal>*           fToEnum;    RefHash3KeysTableBucketElem<TVal>*  fCurElem;    unsigned int                        fCurHash;    MemoryManager* const                fMemoryManager;};XERCES_CPP_NAMESPACE_END#if !defined(XERCES_TMPLSINC)#include <xercesc/util/RefHash3KeysIdPool.c>#endif#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人精品免费| 精品一区二区三区的国产在线播放| 在线免费亚洲电影| 亚洲国产精品传媒在线观看| 一区二区在线看| av中文字幕亚洲| 色播五月激情综合网| 国产亚洲一区二区三区| 精品在线播放免费| 色94色欧美sute亚洲线路一ni| 欧美精品色一区二区三区| 亚洲欧洲三级电影| 91论坛在线播放| 亚洲图片欧美激情| 精品国产亚洲在线| 在线观看不卡一区| 国产成人av电影在线观看| 亚洲五月六月丁香激情| 中文字幕乱码一区二区免费| 91.com在线观看| 成人黄页在线观看| 久久精品久久精品| 亚洲自拍偷拍网站| 国产精品久久久久久久久晋中| 日韩一区二区三区视频在线观看| 91免费在线视频观看| 国产精品中文字幕日韩精品 | 亚洲国产一区在线观看| 久久精品亚洲精品国产欧美kt∨| 欧美精选午夜久久久乱码6080| 成人av在线观| 国产精品一区二区久久精品爱涩| 三级不卡在线观看| 亚洲综合成人在线| 亚洲柠檬福利资源导航| 欧美精彩视频一区二区三区| 精品国产一区久久| 欧美一级夜夜爽| 欧美人妇做爰xxxⅹ性高电影| 97久久精品人人做人人爽50路 | 成人午夜伦理影院| 奇米精品一区二区三区在线观看 | 久久综合九色欧美综合狠狠| 欧美日韩中文国产| 91丝袜美女网| a级精品国产片在线观看| 国产mv日韩mv欧美| 亚洲人成网站精品片在线观看| 色综合天天视频在线观看 | 一区二区三区资源| 色婷婷亚洲精品| 日本美女视频一区二区| 日本不卡中文字幕| 国产欧美一区二区精品性| 91搞黄在线观看| 麻豆精品国产91久久久久久| 成人黄色av电影| 国产精品理伦片| 国产欧美日韩精品在线| 久久久噜噜噜久噜久久综合| 久久麻豆一区二区| 亚洲精品在线免费观看视频| 精品国一区二区三区| 久久蜜桃av一区二区天堂| 久久久99久久| 成人欧美一区二区三区黑人麻豆| 国产精品久久久一本精品| 国产精品嫩草影院av蜜臀| 国产精品高潮久久久久无| 国产精品久久99| 亚洲精品视频免费观看| 亚洲第一搞黄网站| 免费成人美女在线观看.| 国产一区二区三区不卡在线观看| 国产激情一区二区三区| 99视频有精品| 欧美午夜免费电影| 欧美一区二区三区免费大片| 精品国产一区二区三区久久久蜜月| 久久精品在线观看| 亚洲欧洲无码一区二区三区| 亚洲一区av在线| 久久99蜜桃精品| 99视频热这里只有精品免费| 欧美日韩美女一区二区| 亚洲精品在线三区| 亚洲丝袜另类动漫二区| 午夜久久久影院| 韩国精品主播一区二区在线观看| 成人国产精品免费观看视频| 欧美午夜精品久久久久久孕妇| 欧美一区二区免费观在线| 久久久精品黄色| 一区二区欧美在线观看| 蜜臀av一区二区三区| 丁香婷婷综合网| 欧美日韩视频一区二区| 久久蜜臀中文字幕| 亚洲精品免费一二三区| 麻豆国产欧美日韩综合精品二区 | 91一区一区三区| 91在线码无精品| 欧美日韩国产在线观看| 亚洲免费观看高清完整版在线观看 | 欧美视频日韩视频在线观看| 色婷婷综合久久久| 91精品国产综合久久香蕉的特点 | 中文一区在线播放| 亚洲天堂精品在线观看| 亚洲精品国产第一综合99久久| 午夜影院久久久| 国产精品18久久久久久久网站| 97成人超碰视| 69av一区二区三区| 亚洲国产精品成人综合| 五月天中文字幕一区二区| 国产999精品久久久久久| 精品1区2区3区| 国产欧美日韩视频在线观看| 亚洲一级二级在线| 国产盗摄一区二区| 精品视频在线看| 国产精品乱码一区二区三区软件| 亚洲一区二区五区| 国产精品白丝av| 91精品麻豆日日躁夜夜躁| 国产精品高潮呻吟| 裸体在线国模精品偷拍| 色综合av在线| 亚洲精品一区二区三区香蕉| 亚洲一区免费在线观看| 成人动漫视频在线| 欧美大片顶级少妇| 亚洲综合色噜噜狠狠| 成人一区二区三区在线观看| 91 com成人网| 亚洲第一精品在线| 北条麻妃一区二区三区| 欧美v国产在线一区二区三区| 亚洲狼人国产精品| 懂色av一区二区在线播放| 日韩免费福利电影在线观看| 亚洲精品免费一二三区| 国产夫妻精品视频| 欧美大胆一级视频| 天堂蜜桃一区二区三区| 一本在线高清不卡dvd| 国产天堂亚洲国产碰碰| 久久精品噜噜噜成人av农村| 欧美日韩国产免费| 亚洲精品国产成人久久av盗摄| 懂色av一区二区三区免费观看| 精品国产伦一区二区三区免费| 午夜精品福利一区二区三区av| 色一区在线观看| 国产精品国产三级国产普通话三级 | 久久久久国产免费免费 | 欧美美女直播网站| 亚洲免费观看高清完整版在线观看| 国产不卡视频一区二区三区| 精品成人佐山爱一区二区| 毛片av一区二区三区| 欧美午夜片在线看| 亚洲综合激情网| 欧美中文一区二区三区| 亚洲欧美日韩小说| 91美女视频网站| 亚洲精品国产成人久久av盗摄 | 色婷婷精品久久二区二区蜜臀av| 国产精品欧美精品| 成人爽a毛片一区二区免费| 国产视频不卡一区| 高清视频一区二区| 国产精品全国免费观看高清| 成人av综合在线| 亚洲欧洲综合另类在线| 91极品美女在线| 亚洲成人精品影院| 欧美丰满嫩嫩电影| 日本视频中文字幕一区二区三区 | 一级日本不卡的影视| 91在线精品一区二区| ㊣最新国产の精品bt伙计久久| 97久久精品人人做人人爽| 一区二区三区欧美日| 欧美视频在线观看一区二区| 天天av天天翘天天综合网| 在线不卡免费欧美| 久草在线在线精品观看| 亚洲国产成人午夜在线一区| 不卡免费追剧大全电视剧网站| 亚洲日穴在线视频| 欧美性高清videossexo| 日韩成人dvd| 久久精品欧美日韩| 色先锋资源久久综合| 亚洲国产欧美日韩另类综合| 欧美成人a∨高清免费观看| 国产成人免费视频网站高清观看视频 | 中文字幕精品三区|