Mirror C++ reflection library
Mirror C++ 反射庫提供了編譯時和運行時的 C++ 程序元數據,例如命名空間、類型、枚舉、類以及類成員和構造函數等。同時提供一些高級的工具用于類似工廠類生成器。
- Reusability: The meta-data provided by Mirror is reusable in many situations and for many different purposes.
- Flexibility: Mirror and the additional layers built on top of it allow to access the provided meta-data both at compile-time and run-time in a functional and object-oriented manner depending on the application needs.
- Encapsulation: Mirror and the additional layers provide interfaces for easy access to program meta-data.
- Stratification: Mirror is non-intrusive and separates the meta-level from the base-level constructs it reflects.
- Ontological correspondence: The meta-level facilities correspond to the ontology of the base-level C++ language constructs which they reflect.
- Completeness: Mirror tries to provide as much useful meta-data as possible, including various specifiers, iteration of namespace members and much more.
- Ease of use: Although Mirror allows to do very complicated reflective (meta-)programming, simple things are kept simple.
- Cooperation with other librares: Mirror can be used with the introspection facilites provided by the standard library and other libraries.
本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!