10 #ifndef __STREAMING_FILE_H__
11 #define __STREAMING_FILE_H__
21 template <
class ST>
struct SGSparseVectorEntry;
50 #ifndef SWIG // SWIG should skip this
80 virtual void get_vector(
bool*& vector, int32_t& len);
81 virtual void get_vector(uint8_t*& vector, int32_t& len);
82 virtual void get_vector(
char*& vector, int32_t& len);
83 virtual void get_vector(int32_t*& vector, int32_t& len);
86 virtual void get_vector(int16_t*& vector, int32_t& len);
87 virtual void get_vector(uint16_t*& vector, int32_t& len);
88 virtual void get_vector(int8_t*& vector, int32_t& len);
89 virtual void get_vector(uint32_t*& vector, int32_t& len);
90 virtual void get_vector(int64_t*& vector, int32_t& len);
91 virtual void get_vector(uint64_t*& vector, int32_t& len);
105 (
bool*& vector, int32_t& len,
float64_t& label);
107 (uint8_t*& vector, int32_t& len,
float64_t& label);
109 (
char*& vector, int32_t& len,
float64_t& label);
111 (int32_t*& vector, int32_t& len,
float64_t& label);
117 (int16_t*& vector, int32_t& len,
float64_t& label);
119 (uint16_t*& vector, int32_t& len,
float64_t& label);
121 (int8_t*& vector, int32_t& len,
float64_t& label);
123 (uint32_t*& vector, int32_t& len,
float64_t& label);
125 (int64_t*& vector, int32_t& len,
float64_t& label);
127 (uint64_t*& vector, int32_t& len,
float64_t& label);
141 virtual void get_string(
bool*& vector, int32_t& len);
142 virtual void get_string(uint8_t*& vector, int32_t& len);
143 virtual void get_string(
char*& vector, int32_t& len);
144 virtual void get_string(int32_t*& vector, int32_t& len);
147 virtual void get_string(int16_t*& vector, int32_t& len);
148 virtual void get_string(uint16_t*& vector, int32_t& len);
149 virtual void get_string(int8_t*& vector, int32_t& len);
150 virtual void get_string(uint32_t*& vector, int32_t& len);
151 virtual void get_string(int64_t*& vector, int32_t& len);
152 virtual void get_string(uint64_t*& vector, int32_t& len);
166 (
bool*& vector, int32_t& len,
float64_t& label);
168 (uint8_t*& vector, int32_t& len,
float64_t& label);
170 (
char*& vector, int32_t& len,
float64_t& label);
172 (int32_t*& vector, int32_t& len,
float64_t& label);
178 (int16_t*& vector, int32_t& len,
float64_t& label);
180 (uint16_t*& vector, int32_t& len,
float64_t& label);
182 (int8_t*& vector, int32_t& len,
float64_t& label);
184 (uint32_t*& vector, int32_t& len,
float64_t& label);
186 (int64_t*& vector, int32_t& len,
float64_t& label);
188 (uint64_t*& vector, int32_t& len,
float64_t& label);
284 #endif // #ifndef SWIG // SWIG should skip this
288 virtual const char*
get_name()
const {
return "StreamingFile"; }
301 #endif //__STREAMING_FILE_H__
virtual void reset_stream()
virtual void get_string(bool *&vector, int32_t &len)
virtual bool is_seekable()
virtual void get_vector(bool *&vector, int32_t &len)
virtual bool close_file()
A Streaming File access class.
virtual void get_string_and_label(bool *&vector, int32_t &len, float64_t &label)
virtual const char * get_name() const
char * filename
Name of the handled file.
Class SGObject is the base class of all shogun objects.
CIOBuffer * buf
Buffer to hold stuff in memory.
virtual void get_sparse_vector_and_label(SGSparseVectorEntry< bool > *&vector, int32_t &len, float64_t &label)
virtual void get_vector_and_label(bool *&vector, int32_t &len, float64_t &label)
all of classes and functions are contained in the shogun namespace
virtual void get_sparse_vector(SGSparseVectorEntry< bool > *&vector, int32_t &len)
template class SGSparseVectorEntry
virtual ~CStreamingFile()