TTTT Analysis
0.1
|
Applies a function to a tuple of values and returns a value. More...
#include <value.hpp>
Public Member Functions | |
Apply (Function< Ret(ArgTypes...)> &fn, Value< std::tuple< ArgTypes... >> *arg, const std::string &alias) | |
Public Member Functions inherited from fv::DerivedValue< Ret > | |
DerivedValue (const std::string &name, const std::string &alias="") | |
void | log () |
Ret & | get_value () |
Calculate, if necessary, and return the value held by this object. | |
Public Member Functions inherited from fv::Value< Ret > | |
Value (const std::string &name, const std::string &alias="") | |
void | enable_logging (const std::function< std::string(Ret)> &value_to_string=[](Ret){return "";}) |
void | disable_logging () |
Static Public Member Functions | |
static std::string | fmt_name (Function< Ret(ArgTypes...)> &fn, Value< std::tuple< ArgTypes... >> *arg) |
Private Member Functions | |
void | update_value () |
Updates the internal value. More... | |
Private Attributes | |
Function< Ret(ArgTypes...)> & | fn |
Value< std::tuple< ArgTypes... > > * | arg |
Additional Inherited Members | |
Protected Attributes inherited from fv::DerivedValue< Ret > | |
Ret | value |
Protected Attributes inherited from fv::Value< Ret > | |
std::function< std::string(Ret)> | value_to_string |
Applies a function to a tuple of values and returns a value.
This will typically be called with a Tuple object as an argument.
|
inlineprivatevirtual |
Updates the internal value.
This function should be overridden by any child class to do the actual work of updating value based on whatever rules the class chooses. Normally, this consists of geting the values from some associated Value objects, doing some calculation on them, and storing the result in value.
Implements fv::DerivedValue< Ret >.
Definition at line 850 of file value.hpp.