16 #ifndef _VW_NATIVECACHE_READ_H__ 17 #define _VW_NATIVECACHE_READ_H__ 24 #ifndef DOXYGEN_SHOULD_SKIP_THIS 26 #define PACKED( class_to_pack ) class_to_pack __attribute__((__packed__)) 28 #define PACKED( class_to_pack ) __pragma( pack(push, 1) ) class_to_pack __pragma( pack(pop) ) 40 #endif // DOXYGEN_SHOULD_SKIP_THIS 100 virtual const char*
get_name()
const {
return "VwNativeCacheReader"; }
116 char* run_len_decode(
char *p,
vw_size_t& i);
125 inline int32_t ZigZagDecode(uint32_t n)
127 return (n >> 1) ^ -
static_cast<int32_t
>(n & 1);
138 char* bufread_label(
VwLabel*
const ld,
char* c);
171 #endif // _VW_NATIVECACHE_READ_H__
uint32_t vw_size_t
vw_size_t typedef to work across platforms
Class CVwNativeCacheReader reads from a cache exactly as that which has been produced by VW's default...
CIOBuffer buf
Buffer to read from.
Base class from which all cache readers for VW should be derived.
Class CVwEnvironment is the environment used by VW.
virtual void set_file(int32_t f)
Class VwLabel holds a label object used by VW.
void check_cache_metadata()
all of classes and functions are contained in the shogun namespace
virtual bool read_cached_example(VwExample *const ae)
virtual ~CVwNativeCacheReader()
virtual const char * get_name() const