~ubuntu-branches/ubuntu/vivid/vowpal-wabbit/vivid

« back to all changes in this revision

Viewing changes to simple_label.h

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-08-27 20:52:23 UTC
  • mfrom: (1.2.1) (7.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130827205223-q005ps71tqinh25v
Tags: 7.3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef SL_H
2
 
#define SL_H
3
 
 
4
 
#include "io.h"
5
 
#include "parse_primitives.h"
6
 
#include "parser.h"
7
 
 
8
 
char* bufread_simple_label(label_data* ld, char* c);
9
 
char* bufcache_simple_label(label_data* ld, char* c);
10
 
 
11
 
size_t read_cached_simple_label(void* v, io_buf& cache);
12
 
void cache_simple_label(void* v, io_buf& cache);
13
 
void default_simple_label(void* v);
14
 
void parse_simple_label(void* v, v_array<substring>& words);
15
 
void delete_simple_label(void* v);
16
 
float get_weight(void* v);
17
 
float get_initial(void* v);
18
 
const label_parser simple_label = {default_simple_label, parse_simple_label, 
19
 
                                   cache_simple_label, read_cached_simple_label, 
20
 
                                   delete_simple_label, get_weight, get_initial, 
21
 
                                   sizeof(label_data)};
22
 
 
23
 
#endif