![]() |
MAiNGO
|
Struct for making work with the EvaluationContainer easier for the user and also to ensure backward compatibility. More...
#include <evaluationContainer.h>
Public Member Functions | |
ModelFunction ()=default | |
~ModelFunction ()=default | |
ModelFunction (const ModelFunction &)=default | |
ModelFunction (ModelFunction &&)=default | |
ModelFunction & | operator= (const ModelFunction &)=default |
ModelFunction & | operator= (ModelFunction &&)=default |
ModelFunction (const mc::FFVar var) | |
Constructor with FFVar value only. More... | |
ModelFunction (const mc::FFVar var, const std::string &str) | |
Constructor with FFVar value and a name. More... | |
ModelFunction (const std::vector< mc::FFVar > &vars) | |
Constructor with vector of FFVar. More... | |
void | clear () |
Function deleting everything in the model function. More... | |
void | push_back (const mc::FFVar var) |
Function for inserting a FFVar value at the end of the value vector. More... | |
void | push_back (const mc::FFVar var, const std::string &str) |
Function for inserting a FFVar and a name at the end of the vectors. More... | |
void | push_back (const std::vector< mc::FFVar > &vars) |
Function for inserting a vector of FFVar at the end of the value vector. More... | |
void | push_back (const std::vector< mc::FFVar > &vars, const std::string &baseName) |
Function for inserting a vector of FFVar at the end of the value vector with names. More... | |
size_t | size () const |
Function returning the size of the value vector. Note that value and name vectors have the same size at any time. More... | |
void | resize (const size_t size) |
Function for resizing of the underlying vectors. More... | |
void | set_value (const mc::FFVar var, const unsigned i) |
Function for seting FFVar value at a given index. More... | |
void | set_name (const std::string str, const unsigned i) |
Function for seting name value at a given index. More... | |
ModelFunction & | operator= (const mc::FFVar var) |
= operator for backward compatibility More... | |
mc::FFVar & | operator[] (const unsigned int i) |
[] operator for easier access to value vector More... | |
mc::FFVar & | at (const unsigned int i) |
Function for accessing elements. More... | |
bool | operator== (const ModelFunction &other) const |
Equality comparison operator. More... | |
Public Attributes | |
std::vector< std::string > | name |
std::vector< mc::FFVar > | value |
Struct for making work with the EvaluationContainer easier for the user and also to ensure backward compatibility.
|
default |
|
default |
|
default |
|
default |
|
inline |
Constructor with FFVar value only.
|
inline |
Constructor with FFVar value and a name.
|
inline |
Constructor with vector of FFVar.
|
inline |
Function for accessing elements.
|
inline |
Function deleting everything in the model function.
|
default |
|
default |
|
inline |
= operator for backward compatibility
|
inline |
Equality comparison operator.
|
inline |
[] operator for easier access to value vector
|
inline |
Function for inserting a FFVar value at the end of the value vector.
|
inline |
Function for inserting a FFVar and a name at the end of the vectors.
|
inline |
Function for inserting a vector of FFVar at the end of the value vector.
|
inline |
Function for inserting a vector of FFVar at the end of the value vector with names.
|
inline |
Function for resizing of the underlying vectors.
|
inline |
Function for seting name value at a given index.
|
inline |
Function for seting FFVar value at a given index.
|
inline |
Function returning the size of the value vector. Note that value and name vectors have the same size at any time.
std::vector<std::string> maingo::ModelFunction::name |
vector holding possible function names
std::vector<mc::FFVar> maingo::ModelFunction::value |
vector holding the actual propagated FFVar values