Lit Window Library
?
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)如何,有空要研究研究。
?
?
其中新增加的部分有:
- 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ì)究了。