TRIQS/nda 1.3.0
Multi-dimensional array library for C++
|
#include <nda/clef/function.hpp>
Helper struct to simplify calls to nda::clef::eval.
It stores the object (usually a lazy expression) which we want to evaluate and takes integer labels of placeholders as template arguments.
See nda::clef::make_function for an example.
T | Type of the object. |
Is | Integer labels of the placeholders in the expression. |
Definition at line 52 of file function.hpp.
Public Member Functions | |
template<typename... Args> | |
__inline__ decltype(auto) | operator() (Args &&...args) const |
Function call operator. | |
Public Attributes | |
T | obj |
Object to be evaluated. | |
|
inline |
Function call operator.
The arguments together with the integer labels (template parameters of the class) are used to construct nda::clef::pair objects. The stored object and the pairs are then passed to the nda::clef::eval function to perform the evaluation.
Args | Types of the function call arguments. |
args | Function call arguments. |
Definition at line 68 of file function.hpp.