You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,13 @@ Static library, the core design maintains several tables of function pointers(re
9
9
-**Builder Pattern**: Manual registration of types is simple and intuitive, with no mysterious macros involved.
10
10
-**Clean Code**: No reflection-related code needs to be added to class, struct, or function declarations or implementations— keeping your codebase clean and free of clutter.
11
11
-**Centralized Registration**: Manage all manual registrations in a single implementation unit, separate from the rest of your project code.
12
-
-**Simple Integration**: Just create an instance of **`CxxMirror`**, pass all type information to reflect as a constructor parameter, and you’re done!
12
+
-**Simple Integration**: Just create an instance of `CxxMirror`, pass all type information to reflect as a constructor parameter, and you’re done!
13
13
```c++
14
14
rtl::CxxMirror cxxReflection({/*.. Pass all type information ..*/});
15
15
```
16
16
The *cxxReflection* object provides interface to query and instantiate registered types.
17
17
- **Thread-Safe & Exception-Safe**: The library is designed to be thread-safe and exception-safe, providing error codes on possible failures to ensure robust operation.
18
-
- **Automatic Code Generation**: To generate manual registration code automatically, **`clang-reflect`** can be used. It is a work-in-progress tool available here: *https://github.com/ReflectCxx/clang-reflect*. This tool will generate registration code for any large project without requiring changes to your project’s code.
18
+
- **Automatic Code Generation**: To generate manual registration code automatically, `clang-reflect` can be used. It is a work-in-progress tool available here: *https://github.com/ReflectCxx/clang-reflect*. This tool will generate registration code for any large project without requiring changes to your project’s code.
19
19
20
20
## How To build (Windows/Linux),
21
21
@@ -33,7 +33,7 @@ to build, any IDE applicable to the generator can be used or you can also just b
33
33
```
34
34
Run **CxxReflectionTests** binary, generated in ../bin folder. *(tested on windows and Ubuntu-20)*
35
35
## How To Use,
36
-
In this example, we'll reflect a simple Person class. **`Person.h`**,
36
+
In this example, we'll reflect a simple Person class. `Person.h`,
37
37
```c++
38
38
classPerson {
39
39
int age;
@@ -136,8 +136,8 @@ int main()
136
136
- Check, `CxxReflectionTests/src` for test cases.
137
137
138
138
## Reflection Features,
139
-
[x] Register and invoke functions, supporting all overloads.
140
-
[x] Register classes/structs and reflect their methods, constructors, and destructors.
139
+
-[x] Register and invoke functions, supporting all overloads.
140
+
-[x] Register classes/structs and reflect their methods, constructors, and destructors.
141
141
[x] Invoke the default constructor.
142
142
[x] Invoke the copy constructor with a non-const reference argument.
143
143
[x] Invoke the copy constructor with a const reference argument.
0 commit comments