AnsiV01
dfc24ad932
rfl::UnderlyingEnums (#186 )
...
* First part
* Plural
* Update rfl.hpp
* Documentation
* Update rfl.hpp
* Update processors.md
* underlying_enums test
* Update Parser_default.hpp
* Fix typo in test
2024-09-12 09:37:31 +02:00
Dr. Patrick Urbanke (劉自成)
d796c8cf0c
Optimizations for classes with many fields; #168 ( #171 )
2024-08-03 13:48:09 +02:00
Dr. Patrick Urbanke (劉自成)
9c9eceab92
Added rfl::Tuple ( #160 )
2024-07-28 15:35:38 +02:00
Dr. Patrick Urbanke (劉自成)
d9387e29ef
Improved the documentation for the reflector to account for #156 and #157 ( #158 )
2024-07-22 22:40:06 +02:00
Dr. Patrick Urbanke (劉自成)
a562a6fb88
Added a custom implementation of a variant (rfl::Variant) ( #151 )
2024-07-17 22:10:28 +02:00
Matthew
0045030512
feat: optional to/from methods on Reflector. ( #150 ) ( #152 )
2024-07-17 21:40:18 +02:00
BjornSAIM and Daedie
9b1f70ea78
Fix several warnings ( #143 )
...
Co-authored-by: Daedie <daedie@gmail.com >
2024-07-07 23:36:03 +02:00
BjornSAIM and Daedie
6dadbc2506
added a new method of implementing a custom parser using a Reflector … ( #142 )
...
Co-authored-by: Daedie <daedie@gmail.com >
2024-07-07 22:41:31 +02:00
Dr. Patrick Urbanke (劉自成) and Patrick Urbanke
7f0350f576
Move some code into source files to reduce compile time; #86 ( #136 )
...
---------
Co-authored-by: Patrick Urbanke <patrick@getml.com >
2024-07-03 23:14:10 +02:00
Dr. Patrick Urbanke (劉自成)
80aea11e0c
Added official support for Clang 14.0 ( #126 )
2024-06-28 21:24:20 +02:00
Dr. Patrick Urbanke (劉自成)
28b89ae0df
Added generic elements; resolves #96 ( #125 )
2024-06-27 23:05:48 +02:00
Manuel Bellersen
c3db8321b3
Feature/compatibilities gcc14 clang14 vcpkg ( #124 )
2024-06-27 11:20:51 +02:00
Dr. Patrick Urbanke (劉自成)
1ce78479ac
Removed recursion in the no_duplicate_field_names function and rfl::Literal ( #123 )
2024-06-19 19:28:18 +02:00
Dr. Patrick Urbanke (劉自成)
0247c57d5b
Added the rfl::NoFieldNames processor ( #121 )
2024-06-18 19:23:43 +02:00
Patrick Urbanke
641ae00b9f
Renamed flag for consistency
2024-06-15 00:30:28 +02:00
Dr. Patrick Urbanke (劉自成)
e36994084d
Implemented some measures to reduce the compile time; #86 ( #120 )
2024-06-15 00:26:05 +02:00
liuzicheng1987
1eed713fff
Added rfl::NoOptionals; resolved #100 ( #105 )
2024-05-26 21:32:00 +02:00
liuzicheng1987
adf8463527
Added rfl::Skip; resolves #99 ( #103 )
2024-05-21 18:13:42 +02:00
liuzicheng1987 and Patrick Urbanke
15f2c632dd
Added support for processors; resolves #67 ( #94 )
...
Co-authored-by: Patrick Urbanke <patrick@getml.com >
2024-05-01 20:08:06 +02:00
liuzicheng1987
bf1c9bea36
Made sure that Github Actions also work for MSVC ( #88 )
2024-04-21 14:47:12 +02:00
Lixin Wei
fbeca9b095
Support one-level inheritance cases ( #83 )
...
* Substract base class param from num of fields
* Fix comments from @schaumb
* Fix CI
* fix comments from @liuzicheng1987
* fix some comments form @schaumb
* rename some funcs
* one-level inheritance fixed
* fix CI
2024-04-11 16:54:17 +02:00
Heiko Lewin
1146f76bde
More elegant formulation
2024-04-08 16:02:16 +02:00
Heiko Lewin
0b33c92c9b
Fix names of inherited members being prefixed with the base-class's name when using clang
2024-04-08 10:42:42 +02:00
Patrick Urbanke
1dcd6af373
Added Names to NamedTuple
2024-03-31 17:45:09 +02:00
Patrick Urbanke
63e7bf3d81
Allow tagged unions with explicit tags
2024-03-31 14:37:34 +02:00
Patrick Urbanke
32ac265293
Made sure we can serialize and deserialize empty structs
2024-03-31 12:33:54 +02:00
Patrick Urbanke
6f01c3fccb
Minor bugfix in copy_from_named_tuple
2024-03-31 11:44:34 +02:00
Patrick Urbanke
12a294af71
Allow writing from pointers
2024-03-31 11:42:20 +02:00
Patrick Urbanke
58d89e717c
Optimizationg for the reader and writer; #68
2024-03-16 09:58:26 +01:00
Patrick Urbanke
54785ec893
Use std::string_view for the field names during the write process
2024-03-10 16:32:53 +01:00
Patrick Urbanke
1e6bf03387
Minor bugfix in get_type_name
2024-03-03 17:13:15 +01:00
Patrick Urbanke
eaa715362c
Added explanatory notes for clang on windows
2024-03-03 11:08:29 +01:00
Patrick Urbanke
d1a9bc6b61
Added the JSON schema; #25
2024-03-03 07:09:28 +01:00
stu
617226cd1d
rename to get_underlying_enumerators
2024-03-01 19:02:51 +00:00
stu
cdca9ac73a
add get_enumerators_underlying and get_enumerator_array_underlying
2024-03-01 18:59:47 +00:00
stu
c76e7a6471
add rfl::get_enumerators() and rfl::get_enumerator_array()
2024-02-22 15:24:20 +00:00
stu
dd8118637c
fix use of std::source_location on windows clang
2024-02-06 13:59:09 +00:00
Mark Melton
6a65d01a26
Two small fixes for clang/Darwin build
...
On clang/Darwin, the array member `arr_` in StringLiteral was not
considered initalized when constructed using "". Adding default
initialization fixed the issue.
On clang/Darwin, std::string was not defined in Result.hpp. Including
<string> fixed the issue.
2024-01-12 16:43:13 -05:00
Patrick Urbanke
05b6955358
Added missing header; #46
2024-01-07 23:09:00 +01:00
Patrick Urbanke
696289dbf2
Made sure that we can get field names from structs declared inside functions or unnamed namespaces; #46
2024-01-07 23:05:39 +01:00
Patrick Urbanke
b63c246f92
Made sure that to_named_tuple (and, by extension, rfl::replace) works properly
2024-01-04 21:49:25 +01:00
Patrick Urbanke
03f6f2ef44
Moved Array.hpp and wrap_in_rfl_array_t into internal
2024-01-04 04:39:36 +01:00
Patrick Urbanke
a89cca0a94
Added explanatory comments to num_fields.hpp
2024-01-04 04:14:42 +01:00
Patrick Urbanke
f4d2cf57d7
Simplified flatten_c_arrays
2024-01-03 23:13:33 +01:00
Patrick Urbanke
d6f3fa510d
Got rid of the reinterpret_casts
2024-01-03 17:40:42 +01:00
hazby2002
804e0ed868
Wrap C arrays with rfl::Array.
2024-01-02 15:27:11 +08:00
hazby2002
fe956b3779
Implement read operation of Parser for c-arrays.
2024-01-02 13:38:51 +08:00
hazby2002
2d45ddfdc8
Change all decay to remove_cvref.
2023-12-29 17:05:16 +08:00
hazby2002
38783b8907
Fix num_fields to support c-style arrays.
2023-12-29 17:05:16 +08:00
Patrick Urbanke
07942bb64d
Added more tests and more includes
2023-12-28 21:00:57 +01:00