Defines

SimpleFeatures.cpp File Reference

Go to the source code of this file.

Defines

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

Define Documentation

#define GET_FEATURE_TYPE (   f_type,
  sg_type 
)
Value:
template<> EFeatureType CSimpleFeatures<sg_type>::get_feature_type() \
{                                                                           \
    return f_type;                                                          \
}

Definition at line 640 of file SimpleFeatures.cpp.

#define LOAD (   f_load,
  sg_type 
)
Value:
template<> void CSimpleFeatures<sg_type>::load(CFile* loader)       \
{                                                                           \
    SG_SET_LOCALE_C;                                                    \
    ASSERT(loader);                                                         \
    sg_type* matrix;                                                        \
    int32_t num_feat;                                                       \
    int32_t num_vec;                                                        \
    loader->f_load(matrix, num_feat, num_vec);                              \
    set_feature_matrix(matrix, num_feat, num_vec);                          \
    SG_RESET_LOCALE;                                                    \
}

Definition at line 959 of file SimpleFeatures.cpp.

#define SAVE (   f_write,
  sg_type 
)
Value:
template<> void CSimpleFeatures<sg_type>::save(CFile* writer)       \
{                                                                           \
    SG_SET_LOCALE_C;                                                    \
    ASSERT(writer);                                                         \
    writer->f_write(feature_matrix, num_features, num_vectors);             \
    SG_RESET_LOCALE;                                                    \
}

Definition at line 987 of file SimpleFeatures.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation