Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
StringToStringState< audit > Class Template Reference

#include <parse_example_json.h>

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

Public Member Functions

 StringToStringState ()
 
BaseState< audit > * String (Context< audit > &, const char *str, rapidjson::SizeType length, bool) override
 
BaseState< audit > * Null (Context< audit > &) override
 
- Public Member Functions inherited from BaseState< audit >
 BaseState (const char *pname)
 
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 > * 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)
 

Public Attributes

std::string * output_string
 
BaseState< audit > * return_state
 
- Public Attributes inherited from BaseState< audit >
const char * name
 

Detailed Description

template<bool audit>
class StringToStringState< audit >

Definition at line 937 of file parse_example_json.h.

Constructor & Destructor Documentation

◆ StringToStringState()

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

Definition at line 940 of file parse_example_json.h.

940 : BaseState<audit>("StringToStringState") {}

Member Function Documentation

◆ Null()

template<bool audit>
BaseState<audit>* StringToStringState< audit >::Null ( Context< audit > &  )
inlineoverridevirtual

Reimplemented from BaseState< audit >.

Definition at line 952 of file parse_example_json.h.

952 { return return_state; }
BaseState< audit > * return_state

◆ String()

template<bool audit>
BaseState<audit>* StringToStringState< audit >::String ( Context< audit > &  ,
const char *  str,
rapidjson::SizeType  length,
bool   
)
inlineoverridevirtual

Reimplemented from BaseState< audit >.

Definition at line 945 of file parse_example_json.h.

947  {
948  output_string->assign(str, str + length);
949  return return_state;
950  }
std::string * output_string
BaseState< audit > * return_state

Member Data Documentation

◆ output_string

template<bool audit>
std::string* StringToStringState< audit >::output_string

Definition at line 942 of file parse_example_json.h.

◆ return_state

template<bool audit>
BaseState<audit>* StringToStringState< audit >::return_state

Definition at line 943 of file parse_example_json.h.


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