SHOGUN  4.1.0
所有成员列表 | Public 成员函数 | Public 属性
Parameter结构体 参考

详细描述

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.

参数
nameThe 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.

参数
valueThe 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.

参数
valueThe 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.

参数
valueThe 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 行定义.


该结构体的文档由以下文件生成:

SHOGUN 机器学习工具包 - 项目文档