Reflection for RapidJSON 0.0.17
Reflection for serializing/deserializing with RapidJSON
Loading...
Searching...
No Matches
ReflectiveRapidJSON::Consumer Class Reference

The Consumer class is passed to FrontendAction for handling occurrences of different elements of the file. More...

#include <consumer.h>

Inheritance diagram for ReflectiveRapidJSON::Consumer:
[legend]
Collaboration diagram for ReflectiveRapidJSON::Consumer:
[legend]

Public Member Functions

 Consumer (CodeFactory &factory, clang::CompilerInstance &compilerInstance)
bool HandleTopLevelDecl (clang::DeclGroupRef groupRefDecl) override
void HandleTranslationUnit (clang::ASTContext &context) override
bool shouldParseDecl (clang::Decl *declaration)

Detailed Description

The Consumer class is passed to FrontendAction for handling occurrences of different elements of the file.

These elements consist of top-level declarations, namespace definitions and most importantly the whole translation unit. If the translations unit has occurred, that means nested elements (eg. classes) have been read completely. In this case, the Consumer class will trigger traversing the translation unit using a Visitor instance.

Definition at line 24 of file consumer.h.

Constructor & Destructor Documentation

◆ Consumer()

ReflectiveRapidJSON::Consumer::Consumer ( CodeFactory & factory,
clang::CompilerInstance & compilerInstance )
inline

Definition at line 41 of file consumer.h.

Member Function Documentation

◆ HandleTopLevelDecl()

bool ReflectiveRapidJSON::Consumer::HandleTopLevelDecl ( clang::DeclGroupRef groupRefDecl)
override

Definition at line 21 of file consumer.cpp.

◆ HandleTranslationUnit()

void ReflectiveRapidJSON::Consumer::HandleTranslationUnit ( clang::ASTContext & context)
override

Definition at line 33 of file consumer.cpp.

◆ shouldParseDecl()

bool ReflectiveRapidJSON::Consumer::shouldParseDecl ( clang::Decl * declaration)

Definition at line 15 of file consumer.cpp.


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