|
Reflection for RapidJSON 0.0.17
Reflection for serializing/deserializing with RapidJSON
|
The Visitor class is used to traverse the elements of a translation unit. More...
#include <visitor.h>
Public Member Functions | |
| Visitor (CodeFactory &factory) | |
| Constructs a new Visitor. | |
| bool | VisitDecl (clang::Decl *decl) |
| Adds any kind of declaration to the factory. | |
| bool | VisitFunctionDecl (clang::FunctionDecl *func) |
| Visits function declarations. | |
| bool | VisitStmt (clang::Stmt *st) |
| Visits statements. | |
| bool | VisitNamespaceDecl (clang::NamespaceDecl *decl) |
| Visits namespace declarations. | |
| bool | VisitCXXRecordDecl (clang::CXXRecordDecl *decl) |
| Visits classes and class templates. | |
The Visitor class is used to traverse the elements of a translation unit.
For this purpose, it is instantiated by the Consumer class.
|
explicit |
Constructs a new Visitor.
Definition at line 17 of file visitor.cpp.
| bool ReflectiveRapidJSON::Visitor::VisitCXXRecordDecl | ( | clang::CXXRecordDecl * | decl | ) |
| bool ReflectiveRapidJSON::Visitor::VisitDecl | ( | clang::Decl * | decl | ) |
Adds any kind of declaration to the factory.
Definition at line 25 of file visitor.cpp.
| bool ReflectiveRapidJSON::Visitor::VisitFunctionDecl | ( | clang::FunctionDecl * | func | ) |
Visits function declarations.
Currently not used.
Definition at line 35 of file visitor.cpp.
| bool ReflectiveRapidJSON::Visitor::VisitNamespaceDecl | ( | clang::NamespaceDecl * | decl | ) |
| bool ReflectiveRapidJSON::Visitor::VisitStmt | ( | clang::Stmt * | st | ) |