Public Member Functions | Static Public Member Functions | Public Attributes

TSGDataType Struct Reference


Detailed Description

Definition at line 64 of file DataType.h.

List of all members.

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

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 *result, const char *str)

Public Attributes

EContainerType m_ctype
EStructType m_stype
EPrimitiveType m_ptype
index_tm_length_y
index_tm_length_x

Constructor & Destructor Documentation

TSGDataType ( EContainerType  ctype,
EStructType  stype,
EPrimitiveType  ptype 
) [explicit]

Definition at line 18 of file DataType.cpp.

TSGDataType ( EContainerType  ctype,
EStructType  stype,
EPrimitiveType  ptype,
index_t length 
) [explicit]

Definition at line 25 of file DataType.cpp.

TSGDataType ( EContainerType  ctype,
EStructType  stype,
EPrimitiveType  ptype,
index_t length_y,
index_t length_x 
) [explicit]

Definition at line 32 of file DataType.cpp.


Member Function Documentation

size_t offset_sparseentry ( EPrimitiveType  ptype  )  [static]

Definition at line 170 of file DataType.cpp.

bool operator!= ( const TSGDataType a  ) 

Definition at line 80 of file DataType.h.

bool operator== ( const TSGDataType a  ) 

Definition at line 41 of file DataType.cpp.

void ptype_to_string ( char *  dest,
EPrimitiveType  ptype,
size_t  n 
) [static]

Definition at line 217 of file DataType.cpp.

size_t sizeof_ptype ( void   )  const

Definition at line 122 of file DataType.cpp.

size_t sizeof_sparseentry ( EPrimitiveType  ptype  )  [static]

Definition at line 145 of file DataType.cpp.

size_t sizeof_stype ( void   )  const

Definition at line 76 of file DataType.cpp.

bool string_to_ptype ( EPrimitiveType result,
const char *  str 
) [static]

Definition at line 241 of file DataType.cpp.

void stype_to_string ( char *  dest,
EStructType  stype,
EPrimitiveType  ptype,
size_t  n 
) [static]

Definition at line 195 of file DataType.cpp.

void to_string ( char *  dest,
size_t  n 
) const

Definition at line 55 of file DataType.cpp.


Member Data Documentation

Definition at line 66 of file DataType.h.

Definition at line 69 of file DataType.h.

Definition at line 69 of file DataType.h.

Definition at line 68 of file DataType.h.

Definition at line 67 of file DataType.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation