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) 2011 Shashwat Lal Das 00008 * Written (W) 2012 Heiko Strathmann 00009 * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society 00010 */ 00011 #include <shogun/features/streaming/StreamingFeatures.h> 00012 #include <shogun/features/streaming/StreamingDenseFeatures.h> 00013 #include <shogun/features/DenseFeatures.h> 00014 00015 using namespace shogun; 00016 00017 CStreamingFeatures::CStreamingFeatures() : CFeatures() 00018 { 00019 } 00020 00021 CStreamingFeatures::~CStreamingFeatures() 00022 { 00023 SG_DEBUG("entering CStreamingFeatures::~CStreamingFeatures()\n"); 00024 SG_UNREF(working_file); 00025 SG_DEBUG("leaving CStreamingFeatures::~CStreamingFeatures()\n"); 00026 } 00027 00028 void CStreamingFeatures::set_read_functions() 00029 { 00030 set_vector_reader(); 00031 set_vector_and_label_reader(); 00032 } 00033 00034 bool CStreamingFeatures::get_has_labels() 00035 { 00036 return has_labels; 00037 } 00038 00039 bool CStreamingFeatures::is_seekable() 00040 { 00041 return seekable; 00042 } 00043 00044 void CStreamingFeatures::reset_stream() 00045 { 00046 SG_NOTIMPLEMENTED; 00047 return; 00048 }