38 attr_name= a.attr_name;
50 a.attr_name=get_strdup(attr_name);
80 for (int32_t i=0; i<n; i++)
82 if (!strcmp(
features[n].attr_name, attr_name))
92 for (int32_t i=0; i<n; i++)
CFeatures * get_attribute(char *attr_name)
int32_t find_attr_index(char *attr_name)
void get_attribute_by_index(int idx, const char *&attr_name, CFeatures *&attr_obj)
bool set_attribute(char *attr_name, CFeatures *attr_obj)
#define SG_UNREF_NO_NULL(x)
int32_t get_num_elements() const
virtual ~CAttributeFeatures()
bool set_element(T element, int32_t index)
int32_t get_num_attributes()
all of classes and functions are contained in the shogun namespace
DynArray< T_ATTRIBUTE > features
list of attributes (sorted)
The class Features is the base class of all feature objects.
bool del_attribute(char *attr_name)
T get_element_safe(int32_t index) const