Vowpal Wabbit
Public Member Functions | List of all members
TagState< audit > Struct Template Reference

#include <parse_example_json.h>

Inheritance diagram for TagState< audit >:
BaseState< audit >

Public Member Functions

 TagState ()
 
BaseState< audit > * String (Context< audit > &ctx, const char *str, SizeType length, bool)
 
- Public Member Functions inherited from BaseState< audit >
 BaseState (const char *pname)
 
virtual BaseState< audit > * Null (Context< audit > &ctx)
 
virtual BaseState< audit > * Bool (Context< audit > &ctx, bool b)
 
virtual BaseState< audit > * Float (Context< audit > &ctx, float v)
 
virtual BaseState< audit > * Uint (Context< audit > &ctx, unsigned v)
 
virtual BaseState< audit > * String (Context< audit > &ctx, const char *str, rapidjson::SizeType len, bool)
 
virtual BaseState< audit > * StartObject (Context< audit > &ctx)
 
virtual BaseState< audit > * Key (Context< audit > &ctx, const char *str, rapidjson::SizeType len, bool)
 
virtual BaseState< audit > * EndObject (Context< audit > &ctx, rapidjson::SizeType)
 
virtual BaseState< audit > * StartArray (Context< audit > &ctx)
 
virtual BaseState< audit > * EndArray (Context< audit > &ctx, rapidjson::SizeType)
 

Additional Inherited Members

- Public Attributes inherited from BaseState< audit >
const char * name
 

Detailed Description

template<bool audit>
struct TagState< audit >

Definition at line 415 of file parse_example_json.h.

Constructor & Destructor Documentation

◆ TagState()

template<bool audit>
TagState< audit >::TagState ( )
inline

Definition at line 418 of file parse_example_json.h.

Member Function Documentation

◆ String()

template<bool audit>
BaseState<audit>* TagState< audit >::String ( Context< audit > &  ctx,
const char *  str,
SizeType  length,
bool   
)
inline

Definition at line 420 of file parse_example_json.h.

References Context< audit >::ex, Context< audit >::previous_state, push_many(), and example::tag.

421  {
422  push_many(ctx.ex->tag, str, length);
423 
424  return ctx.previous_state;
425  }
v_array< char > tag
Definition: example.h:63
example * ex
void push_many(v_array< T > &v, const T *_begin, size_t num)
Definition: v_array.h:207
BaseState< audit > * previous_state

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