SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
Macros
StringFeatures.cpp File Reference

Go to the source code of this file.

Macros

#define LOAD(f_load, sg_type)
 
#define SAVE(f_write, sg_type)
 

Macro Definition Documentation

#define LOAD (   f_load,
  sg_type 
)
Value:
template<> void CStringFeatures<sg_type>::load(CFile* loader) \
{ \
SG_INFO("loading...\n") \
\
SGString<sg_type>* strs; \
int32_t num_str; \
int32_t max_len; \
loader->f_load(strs, num_str, max_len); \
set_features(strs, num_str, max_len); \
}
#define SG_INFO(...)
Definition: SGIO.h:118
#define SG_RESET_LOCALE
Definition: SGIO.h:86
#define SG_SET_LOCALE_C
Definition: SGIO.h:85

Definition at line 1921 of file StringFeatures.cpp.

#define SAVE (   f_write,
  sg_type 
)
Value:
template<> void CStringFeatures<sg_type>::save(CFile* writer) \
{ \
if (m_subset_stack->has_subsets()) \
SG_ERROR("save() is not possible on subset") \
ASSERT(writer) \
writer->f_write(features, num_vectors); \
}
#define SG_RESET_LOCALE
Definition: SGIO.h:86
#define SG_ERROR(...)
Definition: SGIO.h:129
#define SG_SET_LOCALE_C
Definition: SGIO.h:85
#define ASSERT(x)
Definition: SGIO.h:201

Definition at line 1950 of file StringFeatures.cpp.


SHOGUN Machine Learning Toolbox - Documentation