Struct Parameter for wrapping up parameters to custom OpenCL operation strings. Supports string type, C-style string type and all basic types of parameters.
在文件 mathematics/linalg/internal/implementation/operations/Parameter.h 第 51 行定义.
Public 成员函数 | |
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 属性 | |
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. |
在文件 mathematics/linalg/internal/implementation/operations/Parameter.h 第 59 行定义.
operator std::string | ( | ) | const |
Cast opetator to std::string
在文件 mathematics/linalg/internal/implementation/operations/Parameter.h 第 106 行定义.
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. |
在文件 mathematics/linalg/internal/implementation/operations/Parameter.h 第 71 行定义.
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. |
在文件 mathematics/linalg/internal/implementation/operations/Parameter.h 第 84 行定义.
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. |
在文件 mathematics/linalg/internal/implementation/operations/Parameter.h 第 97 行定义.
std::string m_name |
The name of the parameter
在文件 mathematics/linalg/internal/implementation/operations/Parameter.h 第 118 行定义.
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
在文件 mathematics/linalg/internal/implementation/operations/Parameter.h 第 115 行定义.