ROOT
Version v6.32
master
v6.36
v6.34
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
▼
roofit
►
batchcompute
►
doc
►
histfactory
▼
hs3
►
inc
▼
src
►
Domains.cxx
►
Domains.h
JSONFactories_HistFactory.cxx
►
JSONFactories_RooFitCore.cxx
►
JSONIO.cxx
►
JSONIOUtils.cxx
►
JSONIOUtils.h
►
RooJSONFactoryWSTool.cxx
►
static_execute.h
►
jsoninterface
►
multiprocess
►
RDataFrameHelpers
►
roofit
►
roofitcore
►
roofitmore
►
roofitZMQ
►
roostats
►
xroofit
►
sql
►
tmva
►
tree
►
tutorials
►
v6-32-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
static_execute.h
Go to the documentation of this file.
1
/*
2
* Project: RooFit
3
* Authors:
4
* Jonas Rembser, CERN, Dec 2021
5
*
6
* Copyright (c) 2022, CERN
7
*
8
* Redistribution and use in source and binary forms,
9
* with or without modification, are permitted according to the terms
10
* listed in LICENSE (http://roofit.sourceforge.net/license.txt)
11
*/
12
13
#ifndef static_execute_h
14
#define static_execute_h
15
16
// Execute code on library loading by running code in the constructor of a
17
// class that is a static class member of another class.
18
#define STATIC_EXECUTE(MY_FUNC) \
19
struct StaticExecutorWrapper { \
20
struct Executor { \
21
template <class Func> \
22
Executor(Func func) \
23
{ \
24
func(); \
25
} \
26
}; \
27
static Executor executor; \
28
}; \
29
\
30
StaticExecutorWrapper::Executor StaticExecutorWrapper::executor{MY_FUNC};
31
32
#endif
roofit
hs3
src
static_execute.h
ROOT v6-32 - Reference Guide Generated on Mon Apr 28 2025 05:42:10 (GVA Time) using Doxygen 1.10.0