Skip to content

Commit

Permalink
fix const mismatch in attribute features get_feature type/class size
Browse files Browse the repository at this point in the history
functions
  • Loading branch information
Soeren Sonnenburg committed Aug 8, 2012
1 parent 5ab7f26 commit cb99343
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shogun/features/AttributeFeatures.h
Expand Up @@ -104,31 +104,31 @@ class CAttributeFeatures : public CFeatures
*
* @return templated feature type
*/
virtual EFeatureType get_feature_type()=0;
virtual EFeatureType get_feature_type() const=0;

/** get feature class
*
* abstract base method
*
* @return feature class like STRING, SIMPLE, SPARSE...
*/
virtual EFeatureClass get_feature_class()=0;
virtual EFeatureClass get_feature_class() const=0;

/** get number of examples/vectors
*
* abstract base method
*
* @return number of examples/vectors
*/
virtual int32_t get_num_vectors() const=0 ;
virtual int32_t get_num_vectors() const=0;

/** get memory footprint of one feature
*
* abstract base method
*
* @return memory footprint of one feature
*/
virtual int32_t get_size()=0;
virtual int32_t get_size() const=0;

protected:
/** find the index of the attribute matching attribute name
Expand Down

0 comments on commit cb99343

Please sign in to comment.