Datatypes that shogun supports.
Definition at line 501 of file DataType.h.
Public Member Functions | |
| 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 | operator== (const TSGDataType &a) |
| bool | operator!= (const TSGDataType &a) |
| void | to_string (char *dest, size_t n) const |
| size_t | sizeof_stype (void) const |
| size_t | sizeof_ptype (void) const |
| size_t | get_size () |
| index_t | get_num_elements () |
Static Public Member Functions | |
| 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 Attributes | |
| EContainerType | m_ctype |
| EStructType | m_stype |
| EPrimitiveType | m_ptype |
| index_t * | m_length_y |
| index_t * | m_length_x |
| TSGDataType | ( | EContainerType | ctype, | |
| EStructType | stype, | |||
| EPrimitiveType | ptype | |||
| ) | [explicit] |
| TSGDataType | ( | EContainerType | ctype, | |
| EStructType | stype, | |||
| EPrimitiveType | ptype, | |||
| index_t * | length | |||
| ) | [explicit] |
| TSGDataType | ( | EContainerType | ctype, | |
| EStructType | stype, | |||
| EPrimitiveType | ptype, | |||
| index_t * | length_y, | |||
| index_t * | length_x | |||
| ) | [explicit] |
constructor
| ctype | ||
| stype | ||
| ptype | ||
| length_y | ||
| length_x |
Definition at line 32 of file DataType.cpp.
| index_t get_num_elements | ( | ) |
get num of elements
Definition at line 311 of file DataType.cpp.
| size_t get_size | ( | ) |
| size_t offset_sparseentry | ( | EPrimitiveType | ptype | ) | [static] |
| bool operator!= | ( | const TSGDataType & | a | ) |
| bool operator== | ( | const TSGDataType & | a | ) |
equality
Definition at line 41 of file DataType.cpp.
| void ptype_to_string | ( | char * | dest, | |
| EPrimitiveType | ptype, | |||
| size_t | n | |||
| ) | [static] |
| size_t sizeof_ptype | ( | void | ) | const |
size of ptype
Definition at line 129 of file DataType.cpp.
| size_t sizeof_sparseentry | ( | EPrimitiveType | ptype | ) | [static] |
| size_t sizeof_stype | ( | void | ) | const |
size of stype
Definition at line 83 of file DataType.cpp.
| bool string_to_ptype | ( | EPrimitiveType * | ptype, | |
| const char * | str | |||
| ) | [static] |
| void stype_to_string | ( | char * | dest, | |
| EStructType | stype, | |||
| EPrimitiveType | ptype, | |||
| size_t | n | |||
| ) | [static] |
| void to_string | ( | char * | dest, | |
| size_t | n | |||
| ) | const |
| EContainerType m_ctype |
container type
Definition at line 504 of file DataType.h.
length x
Definition at line 513 of file DataType.h.
length y
Definition at line 511 of file DataType.h.
| EPrimitiveType m_ptype |
primitive type
Definition at line 508 of file DataType.h.
| EStructType m_stype |
struct type
Definition at line 506 of file DataType.h.