Rivet  3.1.2
Macros
Analysis macros

Macros

#define DECLARE_RIVET_PLUGIN(clsname)   ::Rivet::AnalysisBuilder<clsname> plugin_ ## clsname
 
#define DECLARE_ALIASED_RIVET_PLUGIN(clsname, alias)   DECLARE_RIVET_PLUGIN(clsname)( #alias )
 
#define DEFAULT_RIVET_ANALYSIS_CONSTRUCTOR(clsname)   clsname() : Analysis(# clsname) {}
 
#define DEFAULT_RIVET_ANALYSIS_CTOR(clsname)   DEFAULT_RIVET_ANALYSIS_CONSTRUCTOR(clsname)
 

Detailed Description

Macro Definition Documentation

◆ DECLARE_ALIASED_RIVET_PLUGIN

#define DECLARE_ALIASED_RIVET_PLUGIN (   clsname,
  alias 
)    DECLARE_RIVET_PLUGIN(clsname)( #alias )

Preprocessor define to prettify the global-object plugin hook mechanism, with an extra alias name for this analysis.

◆ DECLARE_RIVET_PLUGIN

#define DECLARE_RIVET_PLUGIN (   clsname)    ::Rivet::AnalysisBuilder<clsname> plugin_ ## clsname

Preprocessor define to prettify the global-object plugin hook mechanism.

◆ DEFAULT_RIVET_ANALYSIS_CONSTRUCTOR

#define DEFAULT_RIVET_ANALYSIS_CONSTRUCTOR (   clsname)    clsname() : Analysis(# clsname) {}

Preprocessor define to prettify the manky constructor with name string argument

◆ DEFAULT_RIVET_ANALYSIS_CTOR

#define DEFAULT_RIVET_ANALYSIS_CTOR (   clsname)    DEFAULT_RIVET_ANALYSIS_CONSTRUCTOR(clsname)

Slight abbreviation for DEFAULT_RIVET_ANALYSIS_CONSTRUCTOR