Public Member Functions | Protected Attributes

CVwNativeCacheWriter Class Reference


Detailed Description

Class CVwNativeCacheWriter writes a cache exactly as that which would be produced by VW's default cache format.

Definition at line 26 of file VwNativeCacheWriter.h.

Inheritance diagram for CVwNativeCacheWriter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CVwNativeCacheWriter ()
 CVwNativeCacheWriter (char *fname, CVwEnvironment *env_to_use)
virtual ~CVwNativeCacheWriter ()
virtual void set_file (int32_t f)
virtual void cache_example (VwExample *&ex)
virtual const char * get_name () const

Protected Attributes

CIOBuffer buf
 IOBuffer used for writing.

Constructor & Destructor Documentation

Default constructor

Definition at line 20 of file VwNativeCacheWriter.cpp.

CVwNativeCacheWriter ( char *  fname,
CVwEnvironment env_to_use 
)

Constructor, opens a file whose name is specified

Parameters:
fname file name
env_to_use Environment to use

Definition at line 26 of file VwNativeCacheWriter.cpp.

~CVwNativeCacheWriter (  )  [virtual]

Destructor

Definition at line 35 of file VwNativeCacheWriter.cpp.


Member Function Documentation

void cache_example ( VwExample *&  ex  )  [virtual]

Cache one example

Parameters:
ex example to write to cache

Implements CVwCacheWriter.

Definition at line 166 of file VwNativeCacheWriter.cpp.

virtual const char* get_name ( void   )  const [virtual]

Return the name of the object.

Returns:
VwNativeCacheWriter

Implements CSGObject.

Definition at line 66 of file VwNativeCacheWriter.h.

void set_file ( int32_t  f  )  [virtual]

Set the file descriptor to use

Parameters:
f descriptor of cache file

Reimplemented from CVwCacheWriter.

Definition at line 41 of file VwNativeCacheWriter.cpp.


Member Data Documentation

CIOBuffer buf [protected]

IOBuffer used for writing.

Definition at line 146 of file VwNativeCacheWriter.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation