refcpp:在 C++ 中免费反射*

时间:2021-07-08 13:52:02
【文件属性】:
文件名称:refcpp:在 C++ 中免费反射*
文件大小:22KB
文件格式:ZIP
更新时间:2021-07-08 13:52:02
C++ REFCPP - 一些免费的 C++ 反射 REFCPP 是一种定义 C++ 类的新方法,它可以在编译和运行时免费为您提供一些有限但有时足够的反射。 下面的示例首先显示一个普通的 C++ 类,然后使用 REFCPP 显示其版本。 class Person { public: std::string getName () const { return name; } void setName (std::string name_) { name = name_; } std::string getSurname () const { return surname; } void setSurname (std::string surname_) { surname = surname_; } uint32_t getAge () const {
【文件预览】:
refcpp-master
----CMakeLists.txt(250B)
----examples()
--------person.cpp(2KB)
--------graphviz.cpp(2KB)
--------CMakeLists.txt(246B)
--------company.hpp(888B)
--------company.cpp(121B)
----LICENSE(1KB)
----test()
--------test_feature.cpp(2KB)
--------test_structuralcontext.cpp(3KB)
--------test_descriptor.cpp(2KB)
--------CMakeLists.txt(369B)
----README.md(3KB)
----ref()
--------Holder.hpp(1KB)
--------Class.hpp(2KB)
--------utils()
--------mpl.hpp(665B)
--------Descriptors.hpp(8KB)
--------CMakeLists.txt(121B)
--------DescriptorsImpl.ipp(19KB)
--------DescriptorsImpl.hpp(8KB)
--------detail()
----.gitignore(177B)

网友评论