Datatypes that shogun supports.
在文件 DataType.h 第 68 行定义.
Public 成员函数 | |
| TSGDataType (EContainerType ctype, EStructType stype, EPrimitiveType ptype) | |
| TSGDataType (EContainerType ctype, EStructType stype, EPrimitiveType ptype, index_t *length) | |
| TSGDataType (EContainerType ctype, EStructType stype, EPrimitiveType ptype, index_t *length_y, index_t *length_x) | |
| bool | equals (TSGDataType other) |
| bool | equals_without_length (TSGDataType other) |
| bool | operator== (const TSGDataType &a) |
| bool | operator!= (const TSGDataType &a) |
| void | to_string (char *dest, size_t n) const |
| size_t | sizeof_stype () const |
| size_t | sizeof_ptype () const |
| size_t | get_size () |
| int64_t | get_num_elements () |
静态 Public 成员函数 | |
| static size_t | sizeof_ptype (EPrimitiveType ptype) |
| static size_t | sizeof_stype (EStructType stype, EPrimitiveType ptype) |
| static size_t | sizeof_sparseentry (EPrimitiveType ptype) |
| static size_t | offset_sparseentry (EPrimitiveType ptype) |
| static void | stype_to_string (char *dest, EStructType stype, EPrimitiveType ptype, size_t n) |
| static void | ptype_to_string (char *dest, EPrimitiveType ptype, size_t n) |
| static bool | string_to_ptype (EPrimitiveType *ptype, const char *str) |
Public 属性 | |
| EContainerType | m_ctype |
| EStructType | m_stype |
| EPrimitiveType | m_ptype |
| index_t * | m_length_y |
| index_t * | m_length_x |
|
explicit |
|
explicit |
|
explicit |
| bool equals | ( | TSGDataType | other | ) |
Compares the content of the data types, including the length fields if non-NULL
在文件 DataType.cpp 第 95 行定义.
| bool equals_without_length | ( | TSGDataType | other | ) |
Compares the content of the data types, excluding the length fields
在文件 DataType.cpp 第 67 行定义.
| int64_t get_num_elements | ( | ) |
get num of elements
在文件 DataType.cpp 第 464 行定义.
| size_t get_size | ( | ) |
|
static |
| bool operator!= | ( | const TSGDataType & | a | ) |
| bool operator== | ( | const TSGDataType & | a | ) |
equality
在文件 DataType.cpp 第 45 行定义.
|
static |
| size_t sizeof_ptype | ( | ) | const |
size of ptype
在文件 DataType.cpp 第 183 行定义.
|
static |
get the size of the primitive type ptype
| ptype | the primitive type |
在文件 DataType.cpp 第 252 行定义.
|
static |
| size_t sizeof_stype | ( | ) | const |
size of stype
在文件 DataType.cpp 第 177 行定义.
|
static |
get the size of the structured type stype that internally uses the primitive type ptype as type
| stype | the structured type |
| ptype | the primitive type |
在文件 DataType.cpp 第 189 行定义.
|
static |
|
static |
| void to_string | ( | char * | dest, |
| size_t | n | ||
| ) | const |
| EContainerType m_ctype |
container type
在文件 DataType.h 第 71 行定义.
| index_t* m_length_x |
length x
在文件 DataType.h 第 80 行定义.
| index_t* m_length_y |
length y
在文件 DataType.h 第 78 行定义.
| EPrimitiveType m_ptype |
primitive type
在文件 DataType.h 第 75 行定义.
| EStructType m_stype |
struct type
在文件 DataType.h 第 73 行定义.