17 using namespace shogun;
40 attr_name= a.attr_name;
52 a.attr_name=strdup(attr_name);
82 for (int32_t i=0; i<n; i++)
84 if (!strcmp(
features[n].attr_name, attr_name))
94 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()
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