AmpGen 2.1
Loading...
Searching...
No Matches
ArgumentPack.h File Reference
#include "AmpGen/MetaUtils.h"
#include <iostream>
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  AmpGen::IArgument
 Virtual base class for arguments Named arguments to functions (python-style) are given a virtual base class such that they can be stored into an argument pack. More...
 
class  AmpGen::Argument< TYPE >
 Structure to pass "named" parameters to functions. More...
 
class  AmpGen::ArgumentPack
 Container for a set of arguments Contains a set of arguments packed from a variadic constructor, that can then be unpacked in the call site of the function where the named arguments are required, as per the description in Argument. More...
 

Namespaces

namespace  AmpGen
 

Macros

#define DECLARE_ARGUMENT(X, Y)
 

Macro Definition Documentation

◆ DECLARE_ARGUMENT

#define DECLARE_ARGUMENT ( X,
Y )
Value:
struct X : public AmpGen::Argument<Y> { \
template<class Z> \
explicit X(Z val = Z()) : AmpGen::Argument<Y>(val){} \
X() : AmpGen::Argument<Y>(){} \
}
const Expression Z
Structure to pass "named" parameters to functions.
Argument()=default

Definition at line 12 of file ArgumentPack.h.