MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Reflect::Tool::SignatureCollector Class Reference

Reads the public constructors of each registered class from the scanned translation unit. More...

#include <SignatureCollector.hpp>

Inheritance diagram for MayaFlux::Reflect::Tool::SignatureCollector:
Collaboration diagram for MayaFlux::Reflect::Tool::SignatureCollector:

Public Member Functions

void attach (clang::ast_matchers::MatchFinder &finder)
 Registers the matcher for class definitions on finder.
std::vector< SignatureClass > classes () const
 The registered classes that were found, in registry order.
const std::vector< std::string > & errors () const noexcept
std::vector< std::string > missing () const
 Registered classes the scan never reached a definition of.
void run (const clang::ast_matchers::MatchFinder::MatchResult &result) override
 SignatureCollector (std::vector< SignatureEntry > entries, std::filesystem::path source_root)

Private Attributes

std::vector< SignatureEntry > m_entries
std::vector< std::string > m_errors
std::set< std::string > m_excluded
std::vector< std::optional< SignatureClass > > m_found
std::unordered_set< std::string > m_simple_names
std::filesystem::path m_source_root

Detailed Description

Reads the public constructors of each registered class from the scanned translation unit.

Attach it to a MatchFinder, run the finder, then read classes(), missing() and errors(). Parameter types are spelled fully qualified, so the generated methods compile in any scope. Default arguments are kept as written, with the class's nested type names qualified.

Definition at line 42 of file SignatureCollector.hpp.


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