Commit Graph
92 Commits
Author SHA1 Message Date
Patrick Urbanke 4792d596ee Added compile-time checks disallowing pointers 2023-11-12 22:25:08 +01:00
Patrick Urbanke 992115c6a0 Added test_save_load for JSON 2023-11-12 20:51:00 +01:00
Patrick Urbanke 8d000e9db2 Added support for saving and loading 2023-11-12 20:41:15 +01:00
Patrick Urbanke 3ae75eb8a5 Added rfl::Variant 2023-11-12 16:46:46 +01:00
Patrick Urbanke a68622e57f Added tests for Ref, Box and custom constructors 2023-11-12 15:04:10 +01:00
Patrick Urbanke 629dd0c036 Added more tests 2023-11-12 00:08:56 +01:00
Patrick Urbanke 2a948e809a Using std::optional in the fields array; fixes the test and increases safety 2023-11-11 23:33:15 +01:00
Patrick Urbanke 5efa9df16e Added flexbuffers reader and writer as well as first test (but does not pass) 2023-11-11 23:16:49 +01:00
Patrick Urbanke c206699f64 Removed type names with leading underscore followed by capital letter; #9 2023-11-11 14:11:29 +01:00
Patrick Urbanke 5694c24727 Allow for additional optional fields in std::tuple 2023-11-08 21:59:18 +01:00
Patrick Urbanke 540af2d0cb Merge branch 'main' of github.com:getml/reflect-cpp 2023-11-08 21:32:44 +01:00
Patrick Urbanke 63a9de90b3 Added thread-safe memoization 2023-11-08 21:32:31 +01:00
Patrick Urbanke 6d098ae36c Fixed the validator so it can be supported as an anonymous field 2023-11-07 18:21:59 +01:00
Patrick Urbanke d75fc3d5b6 Added some standard methods to the validator 2023-11-06 23:44:30 +01:00
Patrick Urbanke 91cba55edb Added reading and writing for anonymous fields 2023-11-06 21:10:03 +01:00
Patrick Urbanke 57dad0df3f Began implementing support for anonymous structs 2023-11-05 20:09:29 +01:00
Patrick Urbanke 08806d1ebf Added qualifications to the comments regading Box and Ref 2023-11-05 13:16:51 +01:00
Patrick Urbanke 0b94bf5aeb Added std::hash and std::swap for Box and Ref 2023-11-05 13:01:21 +01:00
Patrick Urbanke 6bf95a3c20 Minor code beautifications 2023-11-05 12:10:18 +01:00
Patrick Urbanke f9a16641c9 Added support for parsing results 2023-11-05 11:38:33 +01:00
Patrick Urbanke 720c15762b Use auto for the template parameters 2023-11-03 22:10:18 +01:00
Patrick Urbanke 2f76dc5b94 Minor changes to the Validator 2023-11-03 21:22:04 +01:00
Patrick Urbanke fcaf2e8e23 Added size validation 2023-11-02 22:53:58 +01:00
Patrick Urbanke a2a6609466 Fixed typos 2023-11-02 22:53:46 +01:00
Patrick Urbanke 197d5f2bf8 Added regex pattern validators 2023-11-02 22:26:44 +01:00
Patrick Urbanke ba997272c7 Added OneOf 2023-11-02 20:02:34 +01:00
Patrick Urbanke 70b11650f8 Renamed to Minimum, Maximum, etc 2023-11-02 20:02:22 +01:00
Patrick Urbanke 815b9fc45d Added AnyOf and more comparisons 2023-11-01 22:28:38 +01:00
liuzicheng1987 070169f4b2 Merge pull request #11 from jimixxperez/feature/validator
Feature/validator
2023-11-01 21:15:24 +01:00
Patrick Urbanke 7fdef62b86 Fixed typo 2023-10-31 20:12:03 +01:00
Patrick Urbanke 92d2d92c74 Added the basic functionality for constrained numeric values 2023-10-31 20:11:54 +01:00
Patrick Urbanke 463fa175fc Parse Literal in terms of the ReflectionType 2023-10-31 18:34:29 +01:00
Patrick Urbanke 03210cdc73 Added more functionality to rfl::Ref 2023-10-31 18:18:23 +01:00
Patrick Urbanke a0d6aa1b05 Fixed typo 2023-10-30 17:50:44 +01:00
Patrick Urbanke d0a66a673d Better error message for unsupported types 2023-10-30 17:50:35 +01:00
Jeremy Perez 8aa303285e Merge branch 'main' into feature/validator 2023-10-27 13:07:49 +02:00
Jeremy Perez b9a4542ea0 adapted test. 2023-10-27 13:07:03 +02:00
Jeremy Perez a41f35ce84 adapted test. 2023-10-27 12:46:17 +02:00
Patrick Urbanke 8f7c84954c Added more functionality to Box 2023-10-25 22:05:12 +02:00
Patrick Urbanke 4d967ccde2 Added support custom constructors with results 2023-10-25 20:23:16 +02:00
Patrick Urbanke f48e0ff425 Greatly simplified constructible_with_n_fields 2023-10-24 21:30:24 +02:00
Patrick Urbanke 32bc4fd075 Added default constructors for Ref and Box 2023-10-22 18:29:37 +02:00
Patrick Urbanke fe1b2d141e Removed unnecessary indirection 2023-10-21 22:41:36 +02:00
Patrick Urbanke 4fb6243d6f Refined the concepts and added comments 2023-10-21 21:58:45 +02:00
Patrick Urbanke fa5c8fd998 Added concepts and constraints for the Parser 2023-10-21 18:24:44 +02:00
Patrick Urbanke ea3ce3632c Added support for better error messages 2023-10-21 14:19:32 +02:00
Jeremy Perez 15b12a34b3 redesign of validation via Annotation. 2023-10-20 15:07:43 +02:00
Patrick Urbanke 2d3d6340eb Use move semantics for std::shared_ptr and rfl::Box 2023-10-19 22:35:18 +02:00
Patrick Urbanke d6c4622b55 Move keys 2023-10-17 00:30:26 +02:00
Patrick Urbanke 278071f2c0 Replaced map with vector of key-value-pairs 2023-10-16 22:22:54 +02:00