• <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++

            成人午夜精品无码区久久| 青青青国产精品国产精品久久久久| 国产成人久久激情91| 精品久久久久久中文字幕人妻最新 | 久久这里只有精品18| 久久www免费人成看片| 亚洲AV日韩精品久久久久久 | 久久久久这里只有精品 | 久久精品久久久久观看99水蜜桃 | 91精品国产色综合久久| 久久WWW免费人成—看片| 久久伊人中文无码| 国产综合久久久久久鬼色| 亚洲国产成人精品女人久久久 | 久久天天躁狠狠躁夜夜avapp| 久久噜噜电影你懂的| 久久综合伊人77777| 九九久久自然熟的香蕉图片| 久久精品国产一区二区| 久久国产热精品波多野结衣AV| 国产高潮久久免费观看| 久久国产精品成人片免费| 伊人久久大香线蕉无码麻豆| 97久久精品人人澡人人爽| 人妻精品久久久久中文字幕69| 久久一本综合| 国产精品伦理久久久久久| 久久狠狠高潮亚洲精品| 奇米综合四色77777久久| 色老头网站久久网| 热久久国产欧美一区二区精品| 久久亚洲欧美日本精品| 97久久久久人妻精品专区| 久久精品aⅴ无码中文字字幕不卡| 久久精品免费全国观看国产| 久久夜色撩人精品国产| 日本高清无卡码一区二区久久| 国产亚洲美女精品久久久| 精品久久综合1区2区3区激情| 一本伊大人香蕉久久网手机| 中文字幕成人精品久久不卡 |