16 #ifndef _VW_NATIVECACHE_WRITE_H__
17 #define _VW_NATIVECACHE_WRITE_H__
66 virtual const char*
get_name()
const {
return "VwNativeCacheWriter"; }
88 char* run_len_encode(
char *p,
vw_size_t i);
97 inline uint32_t ZigZagEncode(int32_t n)
99 uint32_t ret = (n << 1) ^ (n >> 31);
112 char* bufcache_label(VwLabel* ld,
char* c);
119 void cache_label(VwLabel* ld);
126 void cache_tag(v_array<char> tag);
133 void output_byte(
unsigned char s);
142 void output_features(
unsigned char index, VwFeature* begin, VwFeature* end);
158 #endif // _VW_NATIVECACHE_WRITE_H__
uint32_t vw_size_t
vw_size_t typedef to work across platforms
CVwCacheWriter is the base class for all VW cache creating classes.
Class CVwEnvironment is the environment used by VW.
virtual void set_file(int32_t f)
CIOBuffer buf
IOBuffer used for writing.
all of classes and functions are contained in the shogun namespace
virtual ~CVwNativeCacheWriter()
virtual const char * get_name() const
Class CVwNativeCacheWriter writes a cache exactly as that which would be produced by VW's default cac...
virtual void cache_example(VwExample *&ex)