00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 2009 Soeren Sonnenburg 00008 * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 00011 #include <shogun/features/Features.h> 00012 #include <shogun/features/AttributeFeatures.h> 00013 00014 using namespace shogun; 00015 00016 CAttributeFeatures::CAttributeFeatures() 00017 : CFeatures(0) 00018 { 00019 } 00020 00021 CAttributeFeatures::~CAttributeFeatures() 00022 { 00023 int32_t n=features.get_num_elements(); 00024 for (int32_t i=0; i<n; i++) 00025 SG_UNREF_NO_NULL(features[i].attr_obj); 00026 }