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.h51 行定义.

Public 成员函数

 Parameter (const char *name)
 
template<typename T >
Parameteroperator= (const T &value)
 
Parameteroperator= (const char *value)
 
Parameteroperator= (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.h59 行定义.

成员函数说明

operator std::string ( ) const

Cast opetator to std::string

在文件 mathematics/linalg/internal/implementation/operations/Parameter.h106 行定义.

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.h71 行定义.

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.h84 行定义.

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.h97 行定义.

类成员变量说明

std::string m_name

The name of the parameter

在文件 mathematics/linalg/internal/implementation/operations/Parameter.h118 行定义.

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.h115 行定义.


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

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