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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? cmleaf.hpp

?? IBM的解析xml的工具Xerces的源代碼
?? HPP
字號:
/* * Copyright 1999-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: CMLeaf.hpp,v $ * Revision 1.8  2004/09/08 13:56:51  peiyongz * Apache License Version 2.0 * * Revision 1.7  2004/01/29 11:51:21  cargilld * Code cleanup changes to get rid of various compiler diagnostic messages. * * Revision 1.6  2003/05/30 16:11:45  gareth * Fixes so we compile under VC7.1. Patch by Alberto Massari. * * Revision 1.5  2003/05/18 14:02:06  knoaman * Memory manager implementation: pass per instance manager. * * Revision 1.4  2003/05/16 21:43:20  knoaman * Memory manager implementation: Modify constructors to pass in the memory manager. * * Revision 1.3  2003/05/15 18:48:27  knoaman * Partial implementation of the configurable memory manager. * * Revision 1.2  2002/11/04 14:54:58  tng * C++ Namespace Support. * * Revision 1.1.1.1  2002/02/01 22:22:37  peiyongz * sane_include * * Revision 1.6  2001/12/06 17:52:17  tng * Performance Enhancement.  The QName that was passed to the CMLeaf * constructor was always being copied, even though the CMLeaf objects * only existed during construction of a DFA.  In most cases the original * QName that was passed into the CMLeaf constructor continued to exist long * after the CMLeaf was destroyed; in some cases the QName was constructed * specifically to be passed to the CMLeaf constructor.  Added a second CMLeaf constructor that indicated the QName passed in was to be adopted; otherwise the CMLeaf constructor just sets a reference to the QName passed in. * By Henry Zongaro. * * Revision 1.5  2001/10/03 15:08:45  tng * typo fix: remove the extra space which may confuse some compilers while constructing the qname. * * Revision 1.4  2001/05/11 13:27:16  tng * Copyright update. * * Revision 1.3  2001/04/19 18:17:27  tng * Schema: SchemaValidator update, and use QName in Content Model * * Revision 1.2  2001/02/16 14:58:57  tng * Schema: Update Makefile, configure files, project files, and include path in * certain cpp files because of the move of the common Content Model files.  By Pei Yong Zhang. * * Revision 1.1  2001/02/16 14:17:29  tng * Schema: Move the common Content Model files that are shared by DTD * and schema from 'DTD' folder to 'common' folder.  By Pei Yong Zhang. * * Revision 1.5  2000/03/28 19:43:25  roddey * Fixes for signed/unsigned warnings. New work for two way transcoding * stuff. * * Revision 1.4  2000/03/02 19:55:37  roddey * This checkin includes many changes done while waiting for the * 1.1.0 code to be finished. I can't list them all here, but a list is * available elsewhere. * * Revision 1.3  2000/02/24 20:16:47  abagchi * Swat for removing Log from API docs * * Revision 1.2  2000/02/09 21:42:36  abagchi * Copyright swat * * Revision 1.1.1.1  1999/11/09 01:03:04  twl * Initial checkin * * Revision 1.2  1999/11/08 20:45:36  rahul * Swat for adding in Product name and CVS comment log variable. * */#if !defined(CMLEAF_HPP)#define CMLEAF_HPP#include <xercesc/validators/common/CMNode.hpp>XERCES_CPP_NAMESPACE_BEGIN////  This class represents a leaf in the content spec node tree of an//  element's content model. It just has an element qname and a position value,//  the latter of which is used during the building of a DFA.//class CMLeaf : public CMNode{public :    // -----------------------------------------------------------------------    //  Constructors    // -----------------------------------------------------------------------    CMLeaf    (          QName* const         element        , const unsigned int   position = (~0)        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager    );    CMLeaf    (          QName* const         element        , const unsigned int   position        , const bool           adopt        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager    );    ~CMLeaf();    // -----------------------------------------------------------------------    //  Getter methods    // -----------------------------------------------------------------------    QName* getElement();    const QName* getElement() const;    unsigned int getPosition() const;    // -----------------------------------------------------------------------    //  Setter methods    // -----------------------------------------------------------------------    void setPosition(const unsigned int newPosition);    // -----------------------------------------------------------------------    //  Implementation of public CMNode virtual interface    // -----------------------------------------------------------------------    bool isNullable() const;protected :    // -----------------------------------------------------------------------    //  Implementation of protected CMNode virtual interface    // -----------------------------------------------------------------------    void calcFirstPos(CMStateSet& toSet) const;    void calcLastPos(CMStateSet& toSet) const;private :    // -----------------------------------------------------------------------    //  Private data members    //    //  fElement    //      This is the element that this leaf represents.    //    //  fPosition    //      Part of the algorithm to convert a regex directly to a DFA    //      numbers each leaf sequentially. If its -1, that means its an    //      epsilon node. All others are non-epsilon positions.    //    //  fAdopt    //      This node is responsible for the storage of the fElement QName.    // -----------------------------------------------------------------------    QName*          fElement;    unsigned int    fPosition;    bool            fAdopt;    // -----------------------------------------------------------------------    //  Unimplemented constructors and operators    // -----------------------------------------------------------------------    CMLeaf(const CMLeaf&);    CMLeaf& operator=(const CMLeaf&);};// -----------------------------------------------------------------------//  Constructors// -----------------------------------------------------------------------inline CMLeaf::CMLeaf(       QName* const         element                     , const unsigned int         position                     ,       MemoryManager* const manager) :    CMNode(ContentSpecNode::Leaf, manager)    , fElement(0)    , fPosition(position)    , fAdopt(false){    if (!element)    {        fElement = new (fMemoryManager) QName        (              XMLUni::fgZeroLenString            , XMLUni::fgZeroLenString            , XMLElementDecl::fgInvalidElemId            , fMemoryManager        );        // We have to be responsible for this QName - override default fAdopt        fAdopt = true;    }    else    {        fElement = element;    }}inline CMLeaf::CMLeaf(       QName* const         element                     , const unsigned int         position                     , const bool                 adopt                     ,       MemoryManager* const manager) :    CMNode(ContentSpecNode::Leaf, manager)    , fElement(0)    , fPosition(position)    , fAdopt(adopt){    if (!element)    {        fElement = new (fMemoryManager) QName        (              XMLUni::fgZeroLenString            , XMLUni::fgZeroLenString            , XMLElementDecl::fgInvalidElemId            , fMemoryManager        );        // We have to be responsible for this QName - override adopt parameter        fAdopt = true;    }    else    {        fElement = element;    }}inline CMLeaf::~CMLeaf(){    if (fAdopt)        delete fElement;}// ---------------------------------------------------------------------------//  Getter methods// ---------------------------------------------------------------------------inline QName* CMLeaf::getElement(){    return fElement;}inline const QName* CMLeaf::getElement() const{    return fElement;}inline unsigned int CMLeaf::getPosition() const{    return fPosition;}// ---------------------------------------------------------------------------//  Setter methods// ---------------------------------------------------------------------------inline void CMLeaf::setPosition(const unsigned int newPosition){    fPosition = newPosition;}// ---------------------------------------------------------------------------//  Implementation of public CMNode virtual interface// ---------------------------------------------------------------------------inline bool CMLeaf::isNullable() const{    // Leaf nodes are never nullable unless its an epsilon node    return (fPosition == -1);}// ---------------------------------------------------------------------------//  Implementation of protected CMNode virtual interface// ---------------------------------------------------------------------------inline void CMLeaf::calcFirstPos(CMStateSet& toSet) const{    // If we are an epsilon node, then the first pos is an empty set    if (fPosition == -1)    {        toSet.zeroBits();        return;    }    // Otherwise, its just the one bit of our position    toSet.setBit(fPosition);}inline void CMLeaf::calcLastPos(CMStateSet& toSet) const{    // If we are an epsilon node, then the last pos is an empty set    if (fPosition == -1)    {        toSet.zeroBits();        return;    }    // Otherwise, its just the one bit of our position    toSet.setBit(fPosition);}XERCES_CPP_NAMESPACE_END#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产91久久久久久久妲己| 久久青草国产手机看片福利盒子| 久久国产精品99精品国产| 欧美极品美女视频| 欧美精品v国产精品v日韩精品| 国产成a人亚洲精| 日本aⅴ精品一区二区三区 | 国产精品久久精品日日| 69堂精品视频| 色先锋资源久久综合| 国产精品一二三四区| 日本亚洲电影天堂| 一区二区三区日韩精品| 国产精品无圣光一区二区| 91精品国产高清一区二区三区蜜臀| 99精品国产99久久久久久白柏| 久久99久久精品| 午夜一区二区三区视频| 亚洲欧洲综合另类| 国产精品久久久久久久久免费桃花| 日韩欧美高清一区| 欧美久久久久中文字幕| 91精品91久久久中77777| 大尺度一区二区| 国产激情91久久精品导航| 精品一区免费av| 久久精品国产99国产精品| 午夜电影网亚洲视频| 亚洲国产欧美在线| 亚洲精品视频在线| 亚洲人成人一区二区在线观看| 中文字幕乱码日本亚洲一区二区| 26uuu成人网一区二区三区| 欧美一区二区三区免费视频| 91官网在线免费观看| 91蜜桃在线免费视频| 91浏览器打开| 欧美在线视频你懂得| 欧美网站一区二区| 欧美蜜桃一区二区三区| 欧美日韩久久久久久| 欧美三级欧美一级| 91麻豆精品国产91久久久久| 欧美丰满一区二区免费视频| 911精品国产一区二区在线| 56国语精品自产拍在线观看| 56国语精品自产拍在线观看| 日韩欧美国产综合| 久久精品一区二区三区四区| 中文在线一区二区 | 国产日韩在线不卡| 中文字幕av免费专区久久| 国产精品激情偷乱一区二区∴| 国产精品久久久久久久第一福利 | 国产网站一区二区三区| 欧美国产日韩亚洲一区| 亚洲天堂成人在线观看| 一二三区精品视频| 日韩av一级电影| 国产激情91久久精品导航| 99re热这里只有精品视频| 欧美亚洲国产一区在线观看网站| 91麻豆精品国产91久久久使用方法 | 日韩黄色小视频| 久久se精品一区精品二区| 国产不卡一区视频| 91在线免费播放| 欧美三片在线视频观看| 欧美成人激情免费网| 中文字幕一区二区三区在线观看| 亚洲综合图片区| 精品综合久久久久久8888| jlzzjlzz国产精品久久| 欧美日韩不卡一区二区| 久久女同精品一区二区| 一区二区不卡在线视频 午夜欧美不卡在| 性久久久久久久| 成人一级黄色片| 欧美二区三区91| 亚洲国产精品成人综合| 亚洲国产精品久久人人爱蜜臀| 激情小说欧美图片| 91国偷自产一区二区使用方法| 日韩色视频在线观看| 国产精品福利在线播放| 免费高清成人在线| 91视频国产观看| 精品欧美久久久| 亚洲综合在线免费观看| 国产一区二区美女诱惑| 91久久人澡人人添人人爽欧美| 日韩免费成人网| 亚洲夂夂婷婷色拍ww47| 高清av一区二区| 日韩限制级电影在线观看| 亚洲人成亚洲人成在线观看图片| 黄色小说综合网站| 欧美日韩一区二区三区四区五区| 国产午夜精品美女毛片视频| 日韩国产在线一| 日本韩国视频一区二区| 久久久久久久久久电影| 日韩有码一区二区三区| 91丝袜国产在线播放| 久久久国产精品午夜一区ai换脸| 午夜精品久久一牛影视| 99精品欧美一区二区蜜桃免费 | 欧美日韩国产天堂| 亚洲丝袜制服诱惑| 国产成人啪免费观看软件| 日韩视频免费观看高清完整版| 洋洋成人永久网站入口| 99视频精品在线| 久久这里只有精品视频网| 日精品一区二区三区| 91精品福利视频| 综合在线观看色| 懂色av噜噜一区二区三区av| 精品99久久久久久| 蜜桃一区二区三区在线观看| 欧美欧美欧美欧美首页| 亚洲影视在线观看| 色妹子一区二区| 亚洲精品国产精品乱码不99| 99在线精品一区二区三区| 国产精品嫩草久久久久| 国产**成人网毛片九色| 久久久久久电影| 国产一区二区三区免费| 精品成人私密视频| 国产伦精品一区二区三区在线观看 | 风间由美中文字幕在线看视频国产欧美| 5月丁香婷婷综合| 欧美a级一区二区| 日韩欧美一二三| 精品在线播放免费| 亚洲精品在线网站| 国产福利不卡视频| 国产欧美日韩综合精品一区二区| 欧美日韩免费电影| 日韩高清不卡一区二区三区| 欧美精品日韩一区| 日韩中文字幕91| 精品国产乱码久久久久久图片| 玖玖九九国产精品| 久久久精品日韩欧美| 东方aⅴ免费观看久久av| 国产精品视频观看| 色狠狠色狠狠综合| 亚洲一区二区三区四区五区黄 | 中文字幕欧美区| 99视频有精品| 亚洲成a人片在线不卡一二三区| 欧美日韩国产bt| 免费xxxx性欧美18vr| 国产亚洲短视频| 99久久er热在这里只有精品15| 一级特黄大欧美久久久| 91麻豆精品国产综合久久久久久 | 亚洲va中文字幕| 26uuu国产在线精品一区二区| 粉嫩av一区二区三区在线播放| 亚洲同性同志一二三专区| 欧美日韩视频专区在线播放| 久久精品国产精品青草| 国产女人18毛片水真多成人如厕 | 久久伊人中文字幕| 北条麻妃国产九九精品视频| 亚洲综合成人在线| 精品国精品国产尤物美女| av在线免费不卡| 日韩电影网1区2区| 国产精品久久看| 欧美一区二区二区| 成人动漫中文字幕| 午夜欧美在线一二页| 久久免费偷拍视频| 欧美无人高清视频在线观看| 精品一区二区三区不卡| 亚洲日本乱码在线观看| 日韩欧美国产小视频| 91免费看`日韩一区二区| 免费的国产精品| 亚洲欧美另类在线| 日韩精品一区二区三区视频 | 欧美日韩在线电影| 国产v日产∨综合v精品视频| 亚洲一区二区偷拍精品| 国产亚洲综合av| 精品视频999| 99亚偷拍自图区亚洲| 久久99热这里只有精品| 一个色妞综合视频在线观看| 国产三级欧美三级日产三级99 | 国产精品每日更新在线播放网址| 91麻豆精品国产自产在线观看一区 | 国产91在线观看| 三级影片在线观看欧美日韩一区二区| 国产精品激情偷乱一区二区∴| 精品国产网站在线观看|