10 #ifndef __STREAMING_ASCIIFILE_H__
11 #define __STREAMING_ASCIIFILE_H__
22 template <
class ST>
struct SGSparseVectorEntry;
23 template <
class T>
class DynArray;
58 #ifndef SWIG // SWIG should skip this
68 return (atoi(str)!=0);
71 #define GET_VECTOR_DECL(sg_type) \
72 virtual void get_vector \
73 (sg_type*& vector, int32_t& len); \
75 virtual void get_vector_and_label \
76 (sg_type*& vector, int32_t& len, float64_t& label); \
78 virtual void get_string \
79 (sg_type*& vector, int32_t& len); \
81 virtual void get_string_and_label \
82 (sg_type*& vector, int32_t& len, float64_t& label); \
84 virtual void get_sparse_vector \
85 (SGSparseVectorEntry<sg_type>*& vector, int32_t& len); \
87 virtual void get_sparse_vector_and_label \
88 (SGSparseVectorEntry<sg_type>*& vector, int32_t& len, float64_t& label);
103 #undef GET_VECTOR_DECL
105 #endif // #ifndef SWIG // SWIG should skip this
110 return "StreamingAsciiFile";
121 template <
class T>
void append_item(
DynArray<T>* items,
char* ptr_data,
char* ptr_item);
141 #endif //__STREAMING_ASCIIFILE_H__
Class StreamingAsciiFile to read vector-by-vector from ASCII files.
void set_delimiter(char delimiter)
virtual ~CStreamingAsciiFile()
Class v_array taken directly from JL's implementation.
struct Substring, specified by start position and end position.
A Streaming File access class.
Template Dynamic array class that creates an array that can be used like a list or an array...
all of classes and functions are contained in the shogun namespace
virtual const char * get_name() const
#define GET_VECTOR_DECL(sg_type)
bool str_to_bool(char *str)