Reflection for RapidJSON 0.0.17
Reflection for serializing/deserializing with RapidJSON
Loading...
Searching...
No Matches
BinaryGeneratorTests Class Reference

The BinaryGeneratorTests class tests the binary generator. More...

Inheritance diagram for BinaryGeneratorTests:
[legend]
Collaboration diagram for BinaryGeneratorTests:
[legend]

Public Member Functions

 BinaryGeneratorTests ()
void testSerializationAndDeserialization ()
 Tests serializing some objects and deserialize them back.
void testPointerHandling ()
 Tests handling of std::unique_ptr and std::shared_ptr.

Detailed Description

The BinaryGeneratorTests class tests the binary generator.

Definition at line 28 of file binarygenerator.cpp.

Constructor & Destructor Documentation

◆ BinaryGeneratorTests()

BinaryGeneratorTests::BinaryGeneratorTests ( )

Definition at line 42 of file binarygenerator.cpp.

Member Function Documentation

◆ testPointerHandling()

void BinaryGeneratorTests::testPointerHandling ( )

Tests handling of std::unique_ptr and std::shared_ptr.

In particular, the same object referred by 2 related std::shared_ptr instances

  • should be serialized only once
  • and result in 2 related std::shared_ptr instances again after deserialization.

Definition at line 77 of file binarygenerator.cpp.

◆ testSerializationAndDeserialization()

void BinaryGeneratorTests::testSerializationAndDeserialization ( )

Tests serializing some objects and deserialize them back.

Definition at line 49 of file binarygenerator.cpp.


The documentation for this class was generated from the following file: