SHOGUN
v3.2.0
|
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 working_file=NULL; 00020 } 00021 00022 CStreamingFeatures::~CStreamingFeatures() 00023 { 00024 SG_DEBUG("entering CStreamingFeatures::~CStreamingFeatures()\n") 00025 SG_UNREF(working_file); 00026 SG_DEBUG("leaving CStreamingFeatures::~CStreamingFeatures()\n") 00027 } 00028 00029 void CStreamingFeatures::set_read_functions() 00030 { 00031 set_vector_reader(); 00032 set_vector_and_label_reader(); 00033 } 00034 00035 bool CStreamingFeatures::get_has_labels() 00036 { 00037 return has_labels; 00038 } 00039 00040 bool CStreamingFeatures::is_seekable() 00041 { 00042 return seekable; 00043 } 00044 00045 void CStreamingFeatures::reset_stream() 00046 { 00047 SG_NOTIMPLEMENTED 00048 return; 00049 }