Calculate the cartesian product of two input vectors.
More...
#include <value.hpp>
|
| CartProduct (Value< std::vector< FST >> *val1, Value< std::vector< SND >> *val2, const std::string alias="") |
|
| DerivedValue (const std::string &name, const std::string &alias="") |
|
void | log () |
|
std::vector< std::tuple< FST, SND > > & | get_value () |
| Calculate, if necessary, and return the value held by this object.
|
|
| Value (const std::string &name, const std::string &alias="") |
|
void | enable_logging (const std::function< std::string(std::vector< std::tuple< FST, SND > >)> &value_to_string=[](std::vector< std::tuple< FST, SND > >){return "";}) |
|
void | disable_logging () |
|
|
static std::string | fmt_name (Value< std::vector< FST >> *val1, Value< std::vector< SND >> *val2) |
|
|
static std::string | calc_name (Value< std::vector< FST >> *val1, Value< std::vector< SND >> *val2) |
|
|
Value< std::vector< FST > > * | val1 |
|
Value< std::vector< SND > > * | val2 |
|
|
std::vector< std::tuple< FST, SND > > | value |
|
std::function< std::string(std::vector< std::tuple< FST, SND > >)> | value_to_string |
|
template<typename FST, typename SND>
class fv::CartProduct< FST, SND >
Calculate the cartesian product of two input vectors.
◆ update_value()
template<typename FST, typename SND>
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< std::vector< std::tuple< FST, SND > > >.
The documentation for this class was generated from the following file: