Most useful for combining weights. More...
#include <Var.h>
Public Types | |
typedef double( | VarFunc_t )(const T *sr) |
The type of the function part of a var. More... | |
Public Member Functions | |
_Var (const std::function< VarFunc_t > &fun) | |
std::function can wrap a real function, function object, or lambda More... | |
double | operator() (const T *sr) const |
Allows a variable to be called with double value = myVar(sr) syntax. More... | |
int | ID () const |
Vars with the same definition will have the same ID. More... | |
Static Public Member Functions | |
static int | MaxID () |
Protected Member Functions | |
_Var (const std::function< VarFunc_t > &fun, int id) | |
Protected Attributes | |
std::function< VarFunc_t > | fFunc |
int | fID |
Static Protected Attributes | |
static int | fgNextID = 0 |
The next ID that hasn't yet been assigned. More... | |
Friends | |
_Var< T > | operator* (const _Var< T > &a, const _Var< T > &b) |
_Var< T > | operator/ (const _Var< T > &a, const _Var< T > &b) |
_Var< T > | operator+ (const _Var< T > &a, const _Var< T > &b) |
_Var< T > | operator- (const _Var< T > &a, const _Var< T > &b) |
Most useful for combining weights.
Template for Var and SpillVar.
typedef double( ana::_Var< T >::VarFunc_t)(const T *sr) |
|
inlineprotected |
|
inline |
|
static |
|
inline |
Allows a variable to be called with double value = myVar(sr) syntax.
|
staticprotected |