Vowpal Wabbit
Public Member Functions | List of all members
example_initializer Struct Reference

#include <parser.h>

Public Member Functions

exampleoperator() (example *ex)
 

Detailed Description

Definition at line 33 of file parser.h.

Member Function Documentation

◆ operator()()

example * example_initializer::operator() ( example ex)

Definition at line 957 of file parser.cc.

References example_predict::feature_space, example::in_use, example_predict::indices, example::l, example::passthrough, and example::tag.

958 {
959  memset(&ex->l, 0, sizeof(polylabel));
960  ex->in_use = false;
961  ex->passthrough = nullptr;
962  ex->tag = v_init<char>();
963  ex->indices = v_init<namespace_index>();
964  memset(&ex->feature_space, 0, sizeof(ex->feature_space));
965  return ex;
966 }
v_array< char > tag
Definition: example.h:63
v_array< namespace_index > indices
std::array< features, NUM_NAMESPACES > feature_space
polylabel l
Definition: example.h:57
bool in_use
Definition: example.h:79
features * passthrough
Definition: example.h:74

The documentation for this struct was generated from the following files: