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

#include <parse_example_json.h>

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

Public Member Functions

 FloatToFloatState ()
 
BaseState< audit > * Float (Context< audit > &, float f) 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 > * 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)
 

Public Attributes

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

Detailed Description

template<bool audit>
class FloatToFloatState< audit >

Definition at line 956 of file parse_example_json.h.

Constructor & Destructor Documentation

◆ FloatToFloatState()

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

Definition at line 959 of file parse_example_json.h.

959 : BaseState<audit>("FloatToFloatState") {}

Member Function Documentation

◆ Float()

template<bool audit>
BaseState<audit>* FloatToFloatState< audit >::Float ( Context< audit > &  ,
float  f 
)
inlineoverridevirtual

Reimplemented from BaseState< audit >.

Definition at line 964 of file parse_example_json.h.

References f.

965  {
966  *output_float = f;
967  return return_state;
968  }
BaseState< audit > * return_state
float f
Definition: cache.cc:40

◆ Null()

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

Reimplemented from BaseState< audit >.

Definition at line 970 of file parse_example_json.h.

971  {
972  *output_float = 0.f;
973  return return_state;
974  }
BaseState< audit > * return_state

Member Data Documentation

◆ output_float

template<bool audit>
float* FloatToFloatState< audit >::output_float

Definition at line 961 of file parse_example_json.h.

◆ return_state

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

Definition at line 962 of file parse_example_json.h.


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