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

#include <parse_example_json.h>

Public Member Functions

 Context ()
 
void init (const label_parser &lbl_parser, hash_func_t hash_func, uint64_t hash_seed, uint64_t parse_mask, bool chain_hash, VW::label_parser_reuse_mem *reuse_mem, const VW::named_labels *ldict, VW::io::logger *logger)
 
std::stringstream & error ()
 
void SetStartStateToDecisionService (DecisionServiceInteraction *data)
 
void PushNamespace (const char *ns, BaseState< audit > *return_state)
 
BaseState< audit > * PopNamespace ()
 
Namespace< audit > & CurrentNamespace ()
 
bool TransitionState (BaseState< audit > *next_state)
 

Public Attributes

label_parser _label_parser
 
hash_func_t _hash_func
 
uint64_t _hash_seed
 
uint64_t _parse_mask
 
bool _chain_hash
 
VW::label_parser_reuse_mem_reuse_mem
 
const VW::named_labels_ldict
 
VW::io::logger_logger
 
const char * key
 
rapidjson::SizeType key_length
 
BaseState< audit > * current_state
 
BaseState< audit > * previous_state
 
std::vector< Namespace< audit > > namespace_path
 
std::vector< BaseState< audit > * > return_path
 
std::unordered_map< uint64_t, example * > * dedup_examples = nullptr
 
v_array< example * > * examples
 
exampleex
 
rapidjson::InsituStringStream * stream
 
const char * stream_end
 
VW::example_factory_t example_factory
 
void * example_factory_context
 
DecisionServiceInteractiondecision_service_data = nullptr
 
DefaultState< audit > default_state
 
LabelState< audit > label_state
 
LabelObjectState< audit > label_object_state
 
LabelSinglePropertyState< audit > label_single_property_state
 
LabelIndexState< audit > label_index_state
 
TextState< audit > text_state
 
TagState< audit > tag_state
 
MultiState< audit > multi_state
 
IgnoreState< audit > ignore_state
 
ArrayState< audit > array_state
 
SlotsState< audit > slots_state
 
ArrayToPdfState< audit > array_pdf_state
 
DecisionServiceState< audit > decision_service_state
 
ArrayToVectorState< audit, float > array_float_state
 
ArrayToVectorState< audit, unsigned > array_uint_state
 
StringToStringState< audit > string_state
 
FloatToFloatState< audit, float_aggregation::setfloat_state
 
FloatToFloatState_OriginalLabelCostHack< audit > original_label_cost_state
 
UIntToUIntState< audit > uint_state
 
UIntDedupState< audit > uint_dedup_state
 
BoolToBoolState< audit > bool_state
 
SlotOutcomeList< audit > slot_outcome_list_state
 
BaseState< audit > * root_state
 

Constructor & Destructor Documentation

◆ Context()

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

Member Function Documentation

◆ CurrentNamespace()

template<bool audit>
Namespace<audit>& Context< audit >::CurrentNamespace ( )
inline

◆ error()

template<bool audit>
std::stringstream& Context< audit >::error ( )
inline

◆ init()

template<bool audit>
void Context< audit >::init ( const label_parser lbl_parser,
hash_func_t  hash_func,
uint64_t  hash_seed,
uint64_t  parse_mask,
bool  chain_hash,
VW::label_parser_reuse_mem reuse_mem,
const VW::named_labels ldict,
VW::io::logger logger 
)
inline

◆ PopNamespace()

template<bool audit>
BaseState<audit>* Context< audit >::PopNamespace ( )
inline

◆ PushNamespace()

template<bool audit>
void Context< audit >::PushNamespace ( const char *  ns,
BaseState< audit > *  return_state 
)
inline

◆ SetStartStateToDecisionService()

template<bool audit>
void Context< audit >::SetStartStateToDecisionService ( DecisionServiceInteraction data)
inline

◆ TransitionState()

template<bool audit>
bool Context< audit >::TransitionState ( BaseState< audit > *  next_state)
inline

Member Data Documentation

◆ _chain_hash

template<bool audit>
bool Context< audit >::_chain_hash

◆ _hash_func

template<bool audit>
hash_func_t Context< audit >::_hash_func

◆ _hash_seed

template<bool audit>
uint64_t Context< audit >::_hash_seed

◆ _label_parser

template<bool audit>
label_parser Context< audit >::_label_parser

◆ _ldict

template<bool audit>
const VW::named_labels* Context< audit >::_ldict

◆ _logger

template<bool audit>
VW::io::logger* Context< audit >::_logger

◆ _parse_mask

template<bool audit>
uint64_t Context< audit >::_parse_mask

◆ _reuse_mem

template<bool audit>
VW::label_parser_reuse_mem* Context< audit >::_reuse_mem

◆ array_float_state

template<bool audit>
ArrayToVectorState<audit, float> Context< audit >::array_float_state

◆ array_pdf_state

template<bool audit>
ArrayToPdfState<audit> Context< audit >::array_pdf_state

◆ array_state

template<bool audit>
ArrayState<audit> Context< audit >::array_state

◆ array_uint_state

template<bool audit>
ArrayToVectorState<audit, unsigned> Context< audit >::array_uint_state

◆ bool_state

template<bool audit>
BoolToBoolState<audit> Context< audit >::bool_state

◆ current_state

template<bool audit>
BaseState<audit>* Context< audit >::current_state

◆ decision_service_data

template<bool audit>
DecisionServiceInteraction* Context< audit >::decision_service_data = nullptr

◆ decision_service_state

template<bool audit>
DecisionServiceState<audit> Context< audit >::decision_service_state

◆ dedup_examples

template<bool audit>
std::unordered_map<uint64_t, example*>* Context< audit >::dedup_examples = nullptr

◆ default_state

template<bool audit>
DefaultState<audit> Context< audit >::default_state

◆ ex

template<bool audit>
example* Context< audit >::ex

◆ example_factory

template<bool audit>
VW::example_factory_t Context< audit >::example_factory

◆ example_factory_context

template<bool audit>
void* Context< audit >::example_factory_context

◆ examples

template<bool audit>
v_array<example*>* Context< audit >::examples

◆ float_state

template<bool audit>
FloatToFloatState<audit, float_aggregation::set> Context< audit >::float_state

◆ ignore_state

template<bool audit>
IgnoreState<audit> Context< audit >::ignore_state

◆ key

template<bool audit>
const char* Context< audit >::key

◆ key_length

template<bool audit>
rapidjson::SizeType Context< audit >::key_length

◆ label_index_state

template<bool audit>
LabelIndexState<audit> Context< audit >::label_index_state

◆ label_object_state

template<bool audit>
LabelObjectState<audit> Context< audit >::label_object_state

◆ label_single_property_state

template<bool audit>
LabelSinglePropertyState<audit> Context< audit >::label_single_property_state

◆ label_state

template<bool audit>
LabelState<audit> Context< audit >::label_state

◆ multi_state

template<bool audit>
MultiState<audit> Context< audit >::multi_state

◆ namespace_path

template<bool audit>
std::vector<Namespace<audit> > Context< audit >::namespace_path

◆ original_label_cost_state

template<bool audit>
FloatToFloatState_OriginalLabelCostHack<audit> Context< audit >::original_label_cost_state

◆ previous_state

template<bool audit>
BaseState<audit>* Context< audit >::previous_state

◆ return_path

template<bool audit>
std::vector<BaseState<audit>*> Context< audit >::return_path

◆ root_state

template<bool audit>
BaseState<audit>* Context< audit >::root_state

◆ slot_outcome_list_state

template<bool audit>
SlotOutcomeList<audit> Context< audit >::slot_outcome_list_state

◆ slots_state

template<bool audit>
SlotsState<audit> Context< audit >::slots_state

◆ stream

template<bool audit>
rapidjson::InsituStringStream* Context< audit >::stream

◆ stream_end

template<bool audit>
const char* Context< audit >::stream_end

◆ string_state

template<bool audit>
StringToStringState<audit> Context< audit >::string_state

◆ tag_state

template<bool audit>
TagState<audit> Context< audit >::tag_state

◆ text_state

template<bool audit>
TextState<audit> Context< audit >::text_state

◆ uint_dedup_state

template<bool audit>
UIntDedupState<audit> Context< audit >::uint_dedup_state

◆ uint_state

template<bool audit>
UIntToUIntState<audit> Context< audit >::uint_state

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