mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-29 22:36:19 +08:00
Deployed 2e2b89f with MkDocs version: 1.6.1
This commit is contained in:
+5
-10
@@ -1108,14 +1108,11 @@
|
||||
|
||||
<h1 id="documentation">Documentation<a class="headerlink" href="#documentation" title="Permanent link">¶</a></h1>
|
||||
<h2 id="the-basics">The basics<a class="headerlink" href="#the-basics" title="Permanent link">¶</a></h2>
|
||||
<!-- [Structs](concepts/structs.md) - Recaps the motivating example in the README. A struct is the equivalent of an AND statement or a product type in type theory. -->
|
||||
|
||||
<p><a href="../concepts/structs/">Structs</a> - Recaps the motivating example in the README. A struct is the equivalent of an AND statement or a product type in type theory.</p>
|
||||
<p><a href="../optional_fields/">Optional fields</a> - For defining fields in your serialized format that might be absent in some cases.</p>
|
||||
<p><a href="../flatten_structs/">Struct flattening</a> - For making struct A "inherit" the fields of struct B.</p>
|
||||
<!-- [Processors](concepts/processors.md) - For modifying the structs before serialization and deserialization. For instance, processors can be used to transform all field names from `snake_case` to `camelCase`. -->
|
||||
|
||||
<!-- [The rfl::Field-syntax](concepts/field_syntax.md) - Describes an alternative syntax which requires slightly more effort, but allows for some powerful functionalities. -->
|
||||
|
||||
<p><a href="../concepts/processors/">Processors</a> - For modifying the structs before serialization and deserialization. For instance, processors can be used to transform all field names from <code>snake_case</code> to <code>camelCase</code>.</p>
|
||||
<p><a href="../concepts/field_syntax/">The rfl::Field-syntax</a> - Describes an alternative syntax which requires slightly more effort, but allows for some powerful functionalities.</p>
|
||||
<p><a href="../literals/">String literals</a> - For representing strings that can only assume a limited number of enumerated values.</p>
|
||||
<p><a href="../enums/">Enums</a> - Describes how reflect-cpp handles C++ enums.</p>
|
||||
<p><a href="../variants_and_tagged_unions/">std::variant and rfl::TaggedUnion</a> - For structs that can be one of several formats. This is the equivalent of an OR statement or a sum type in type theory.</p>
|
||||
@@ -1138,8 +1135,7 @@
|
||||
<p><a href="../generic/">rfl::Generic</a> - A catch-all type that can represent (almost) anything.</p>
|
||||
<p><a href="../extra_fields/">rfl::ExtraFields</a> - For adding extra fields to your structs, the names of which are unknown at compile time.</p>
|
||||
<h2 id="custom-classes">Custom classes<a class="headerlink" href="#custom-classes" title="Permanent link">¶</a></h2>
|
||||
<!-- [Custom classes](concepts/custom_classes.md) - For custom classes with private fields. -->
|
||||
|
||||
<p><a href="../concepts/custom_classes/">Custom classes</a> - For custom classes with private fields.</p>
|
||||
<p><a href="../custom_parser/">Custom parsers for your classes</a> - For custom classes with private fields that you want to leave absolutely untouched.</p>
|
||||
<h2 id="useful-helper-functions-and-classes">Useful helper functions and classes<a class="headerlink" href="#useful-helper-functions-and-classes" title="Permanent link">¶</a></h2>
|
||||
<p><a href="../replace/">rfl::replace</a> - For replacing one or several fields in a struct.</p>
|
||||
@@ -1166,8 +1162,7 @@
|
||||
[YAML](yaml.md) -->
|
||||
|
||||
<h2 id="advanced-topics">Advanced topics<a class="headerlink" href="#advanced-topics" title="Permanent link">¶</a></h2>
|
||||
<!-- [Supporting your own format](supported_formats/supporting_your_own_format.md) - For supporting your own serialization and deserialization formats. -->
|
||||
|
||||
<p><a href="../supported_formats/supporting_your_own_format/">Supporting your own format</a> - For supporting your own serialization and deserialization formats.</p>
|
||||
<p><a href="../backwards_compatability/">Maintaining backwards compatability</a> - Instructions on how to ensure that your API is backwards-compatible with older versions.</p>
|
||||
<p><a href="../benchmarks/">Benchmarks</a> - Extensive benchmarks of popular libraries for serialization, deserialization.</p>
|
||||
<p><br></p>
|
||||
|
||||
+8
-7
@@ -1114,15 +1114,16 @@
|
||||
<p><br></p>
|
||||
<p><strong>reflect-cpp</strong> is a C++-20 library for <strong>fast serialization, deserialization and validation</strong> using reflection, similar to <a href="https://github.com/pydantic/pydantic">pydantic</a> in Python, <a href="https://github.com/serde-rs">serde</a> in Rust, <a href="https://github.com/golang/go/tree/master/src/encoding">encoding</a> in Go or <a href="https://github.com/haskell/aeson/tree/master">aeson</a> in Haskell.</p>
|
||||
<p>reflect-cpp fills an important gap in C++ development. It minimizes boilerplate code and enhances code safety for seamless and efficient data exchange across system components.</p>
|
||||
<h3> Key Features of reflect-cpp:</h3>
|
||||
<h3>Design principles for reflect-cpp include:</h3>
|
||||
|
||||
<ul>
|
||||
<li><a href="https://github.com/getml/reflect-cpp?tab=readme-ov-file#support-for-containers"><strong>Standard Library Integration:</strong></a> Works seamlessly with C++ standard containers.</li>
|
||||
<li><a href="https://rfl.getml.com"><strong>C++ Idiomatic:</strong></a> Adheres closely to C++ idioms for an intuitive experience.</li>
|
||||
<li><a href="supported_formats/json/"><strong>Built-in JSON Support:</strong></a> Ready-to-use JSON serialization and deserialization.</li>
|
||||
<li><a href="install/"><strong>Simple Installation:</strong></a> Quick setup with minimal configuration.</li>
|
||||
<li><a href="concepts/structs/"><strong>Easily Extensible:</strong></a> Supports <a href="supported_formats/supporting_your_own_format/">custom serialization formats</a> and <a href="concepts/custom_classes/">custom classes</a>.</li>
|
||||
<li><a href="benchmarks/"><strong>Benchmarks:</strong></a> Up to 10x faster than other libraries, such as RapidJSON and nlohmann/json.</li>
|
||||
<li>Close integration with <a href="https://github.com/getml/reflect-cpp?tab=readme-ov-file#support-for-containers">containers</a> from the C++ standard library</li>
|
||||
<li>Close adherence to C++ idioms</li>
|
||||
<li>Out-of-the-box support for <a href="https://rfl.getml.com/supported_formats/json">JSON</a></li>
|
||||
<li>Simple <a href="https://rfl.getml.com/install">installation</a></li>
|
||||
<li>Simple extendability to <a href="https://rfl.getml.com/supported_formats/supporting_your_own_format">other serialization formats</a></li>
|
||||
<li>Simple extendability to <a href="https://rfl.getml.com/concepts/custom_classes">custom classes</a></li>
|
||||
<li>Being one of the fastest serialization libraries in existence, as demonstrated by our <a href="https://getml.com/benchmarks">benchmarks</a></li>
|
||||
</ul>
|
||||
<h2 id="reflect-cpp-in-a-nutshell">reflect-cpp in a nutshell<a class="headerlink" href="#reflect-cpp-in-a-nutshell" title="Permanent link">¶</a></h2>
|
||||
<h3> Why do we need this?</h3>
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user