SHOGUN
4.2.0
|
Struct Parameter for wrapping up parameters to custom OpenCL operation strings. Supports string type, C-style string type and all basic types of parameters.
Definition at line 51 of file mathematics/linalg/internal/implementation/operations/Parameter.h.
Public Member Functions | |
Parameter (const char *name) | |
template<typename T > | |
Parameter & | operator= (const T &value) |
Parameter & | operator= (const char *value) |
Parameter & | operator= (std::string value) |
operator std::string () const | |
Public Attributes | |
std::function< std::string()> | to_string |
std::string | m_name |
Parameter | ( | const char * | name | ) |
Constructor that initlializes the name of the parameter.
name | The name of the parameter. |
Definition at line 59 of file mathematics/linalg/internal/implementation/operations/Parameter.h.
operator std::string | ( | ) | const |
Cast opetator to std::string
Definition at line 106 of file mathematics/linalg/internal/implementation/operations/Parameter.h.
Parameter& operator= | ( | const T & | value | ) |
Template overloaded assignment operator for basic-types that initializes an internal to_string method which is invoked when the parameter is casted to std::string.
value | The value of the parameter. |
Definition at line 71 of file mathematics/linalg/internal/implementation/operations/Parameter.h.
Parameter& operator= | ( | const char * | value | ) |
Overloaded assignment operator for C-style string-types that initializes an internal to_string method which is invoked when the parameter is casted to std::string.
value | The value of the parameter. |
Definition at line 84 of file mathematics/linalg/internal/implementation/operations/Parameter.h.
Parameter& operator= | ( | std::string | value | ) |
Overloaded assignment operator for std::string that initializes an internal to_string method which is invoked when the parameter is casted to std::string.
value | The value of the parameter. |
Definition at line 97 of file mathematics/linalg/internal/implementation/operations/Parameter.h.
std::string m_name |
The name of the parameter
Definition at line 118 of file mathematics/linalg/internal/implementation/operations/Parameter.h.
std::function<std::string()> to_string |
The method to_string which is initialized by the assignment operators based on the parameter value types. This method is invoked by the cast operator to std::string
Definition at line 115 of file mathematics/linalg/internal/implementation/operations/Parameter.h.