• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            牽著老婆滿(mǎn)街逛

            嚴(yán)以律己,寬以待人. 三思而后行.
            GMail/GTalk: yanglinbo#google.com;
            MSN/Email: tx7do#yahoo.com.cn;
            QQ: 3 0 3 3 9 6 9 2 0 .

            C++ 的“反射”技術(shù)

            Lit Window Library
            來(lái)自http://sourceforge.net/projects/litwindow?大概看了一下,使用了宏建立了一個(gè)比較復(fù)雜的數(shù)據(jù)結(jié)構(gòu),用來(lái)提供成員反查以及成員訪問(wèn)。
            ?
            tinybind
            來(lái)自http://sourceforge.net/projects/tinybind/? 這個(gè)應(yīng)該不算是反射,不過(guò)通過(guò)了定義一個(gè)Binding函數(shù)實(shí)現(xiàn)成員和XML的Element之間的綁定,自動(dòng)實(shí)現(xiàn)了XML<->class,對(duì)實(shí)現(xiàn)C++的“反射”也有一定的參考作用。
            ?
            OODBC
            來(lái)自http://www.garret.ru/~knizhnik/cpp.html? 這個(gè)也應(yīng)該不算是反射,也是通過(guò)宏建立一個(gè)記錄成員變量在類(lèi)中的偏移位置的鏈表。自動(dòng)實(shí)現(xiàn)數(shù)據(jù)庫(kù)字段與成員的綁定,有點(diǎn)Hibernate的味道。呵呵。同時(shí),作者提供的另外幾個(gè)例如FastDB、GigaBase、goods、POST++都使用了類(lèi)似的技術(shù)。

            ?
            AGM::LibReflection: A reflection library for C++.
            ?
            用的是宏,不過(guò)實(shí)現(xiàn)出來(lái)的東西比較有“反射”的味道,而且只需要一個(gè)頭文件就足夠了。不知道g++下表現(xiàn)如何,有空要研究研究。
            ?
            ?
            boost出了1.32,去 http://boost.c-view.org/?可以找到。
            其中新增加的部分有:
            • Assignment Library: Filling containers with constant or generated data has never been easier, from Thorsten Ottosen.
            • Minmax Library: Standard library extensions for simultaneous min/max and min/max element computations, from Hervé Br?nnimann.
            • Multi-index Containers Library: Containers with multiple STL-compatible access interfaces, from Joaquín M López Mu?oz.
            • Numeric Conversion Library: Optimized policy-based numeric conversions, from Fernando Cacciola.
            • Program Options Library: Access to configuration data given on command line, in config files and other sources, from Vladimir Prus.
            • Range Library: A new infrastructure for generic algorithms that builds on top of the new iterator concepts, from Thorsten Ottosen.
            • Serialization Library: Serialization/de-serialization of arbitrary C++ data structures to various formats including text, binary, and xml, from Robert Ramey.
            • String Algorithms Library: Collection of string related algorithms for case conversion, trimming, find/replace operations and more, from Pavol Droba.
            • Tribool: 3-state boolean type library, from Doug Gregor.

            其中的 Multi-index Containers Library?還是比較有特色,其他的大部分倒是在其他地方也看到過(guò),可能是那些作者加入了boost了吧,沒(méi)功夫細(xì)究了。

            posted on 2006-09-05 13:03 楊粼波 閱讀(4218) 評(píng)論(0)  編輯 收藏 引用 所屬分類(lèi): 文章收藏C++

            久久se精品一区二区| 99久久夜色精品国产网站| 亚洲精品成人网久久久久久| 国产精自产拍久久久久久蜜| 久久精品成人免费国产片小草| 亚洲精品无码久久毛片| 国内精品九九久久久精品| 久久国产精品免费一区二区三区 | 亚洲国产成人久久综合一区77| 亚洲精品国产第一综合99久久| 久久无码人妻一区二区三区午夜| 四虎国产永久免费久久| 亚洲精品国产自在久久| 欧美一区二区精品久久| 久久久无码精品亚洲日韩京东传媒 | 热RE99久久精品国产66热| 亚洲精品国精品久久99热一| 99久久精品国产综合一区| 综合网日日天干夜夜久久| 久久国产福利免费| 国产精品久久久久久久久鸭| 久久精品成人欧美大片| 久久99亚洲综合精品首页| 97久久久久人妻精品专区| 国产成人久久精品一区二区三区| 久久成人国产精品二三区| 久久99热这里只有精品国产| 久久久久国产视频电影| 天天久久狠狠色综合| 99国产欧美精品久久久蜜芽| 亚洲国产精品无码久久一区二区 | 亚洲国产精品成人久久| 久久久精品国产| 四虎影视久久久免费| 青青热久久国产久精品 | 亚洲国产精品高清久久久| 欧美伊人久久大香线蕉综合| 综合久久给合久久狠狠狠97色| 国产综合免费精品久久久| 93精91精品国产综合久久香蕉| 97久久综合精品久久久综合|