|
Reflection for RapidJSON 0.0.17
Reflection for serializing/deserializing with RapidJSON
|
The SerializationCodeGenerator class is the common base for (de)serialization related code generation. More...
#include <serializationcodegenerator.h>
Classes | |
| struct | RelevantClass |
Public Types | |
| enum class | IsRelevant { Yes , No , Maybe } |
Public Member Functions | |
| SerializationCodeGenerator (CodeFactory &factory) | |
| void | addDeclaration (clang::Decl *decl) override |
| Adds all class declarations (to the internal member variable m_records). | |
| Public Member Functions inherited from ReflectiveRapidJSON::CodeGenerator | |
| CodeGenerator (CodeFactory &factory) | |
| virtual | ~CodeGenerator () |
| virtual void | generate (std::ostream &os) const =0 |
| Generates code based on the previously added declarations. The code is written to os. | |
Protected Member Functions | |
| virtual void | computeRelevantClass (RelevantClass &possiblyRelevantClass) const |
| std::vector< RelevantClass > | findRelevantClasses () const |
| Protected Member Functions inherited from ReflectiveRapidJSON::CodeGenerator | |
| CodeFactory & | factory () const |
| void | lazyInitializeSourceManager () const |
| Lazy initializes the source manager. | |
| bool | isOnlyIncluded (const clang::Decl *declaration) const |
| Returns whether the specified declaration is only included and not part of the actual file. | |
Static Protected Member Functions | |
| static std::vector< const RelevantClass * > | findRelevantBaseClasses (const RelevantClass &relevantClass, const std::vector< RelevantClass > &relevantBases) |
| Static Protected Member Functions inherited from ReflectiveRapidJSON::CodeGenerator | |
| static clang::CXXBaseSpecifier * | inheritsFromInstantiationOf (clang::CXXRecordDecl *record, const char *templateClass) |
| Returns whether the specified record inherits from an instantiation of the specified templateClass. | |
Protected Attributes | |
| const char * | m_qualifiedNameOfRecords |
| const char * | m_qualifiedNameOfAdaptionRecords |
The SerializationCodeGenerator class is the common base for (de)serialization related code generation.
Definition at line 18 of file serializationcodegenerator.h.
|
strong |
| Enumerator | |
|---|---|
| Yes | |
| No | |
| Maybe | |
Definition at line 20 of file serializationcodegenerator.h.
|
inline |
Definition at line 55 of file serializationcodegenerator.h.
|
overridevirtual |
Adds all class declarations (to the internal member variable m_records).
Reimplemented from ReflectiveRapidJSON::CodeGenerator.
Definition at line 29 of file serializationcodegenerator.cpp.
|
protectedvirtual |
Reimplemented in ReflectiveRapidJSON::BinarySerializationCodeGenerator, and ReflectiveRapidJSON::JsonSerializationCodeGenerator.
Definition at line 71 of file serializationcodegenerator.cpp.
|
staticprotected |
Definition at line 124 of file serializationcodegenerator.cpp.
|
protected |
Definition at line 111 of file serializationcodegenerator.cpp.
|
protected |
Definition at line 42 of file serializationcodegenerator.h.
|
protected |
Definition at line 41 of file serializationcodegenerator.h.