Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
SelectiveBranchingMT::task_data Struct Reference

Public Member Functions

 task_data (size_t mb, size_t kb)
 
 ~task_data ()
 

Public Attributes

size_t max_branches
 
size_t kbest
 
v_array< branchbranches
 
v_array< std::pair< branch, std::string * > > final
 
path trajectory
 
float total_cost
 
size_t cur_branch
 
std::string * output_string
 
std::stringstream * kbest_out
 

Detailed Description

Definition at line 62 of file search_meta.cc.

Constructor & Destructor Documentation

◆ task_data()

SelectiveBranchingMT::task_data::task_data ( size_t  mb,
size_t  kb 
)
inline

Definition at line 72 of file search_meta.cc.

72  : max_branches(mb), kbest(kb)
73  {
74  branches = v_init<branch>();
75  final = v_init<std::pair<branch, std::string*> >();
76  trajectory = v_init<act_score>();
77  output_string = nullptr;
78  kbest_out = nullptr;
79  }
std::stringstream * kbest_out
Definition: search_meta.cc:71

◆ ~task_data()

SelectiveBranchingMT::task_data::~task_data ( )
inline

Definition at line 80 of file search_meta.cc.

References v_array< T >::delete_v().

81  {
83  final.delete_v();
85  delete output_string;
86  delete kbest_out;
87  }
void delete_v()
Definition: v_array.h:98
std::stringstream * kbest_out
Definition: search_meta.cc:71

Member Data Documentation

◆ branches

v_array<branch> SelectiveBranchingMT::task_data::branches

Definition at line 65 of file search_meta.cc.

Referenced by SelectiveBranchingMT::run().

◆ cur_branch

size_t SelectiveBranchingMT::task_data::cur_branch

Definition at line 69 of file search_meta.cc.

Referenced by SelectiveBranchingMT::run().

◆ final

v_array<std::pair<branch, std::string*> > SelectiveBranchingMT::task_data::final

Definition at line 66 of file search_meta.cc.

Referenced by SelectiveBranchingMT::run().

◆ kbest

size_t SelectiveBranchingMT::task_data::kbest

Definition at line 64 of file search_meta.cc.

Referenced by SelectiveBranchingMT::run().

◆ kbest_out

std::stringstream* SelectiveBranchingMT::task_data::kbest_out

Definition at line 71 of file search_meta.cc.

Referenced by SelectiveBranchingMT::run().

◆ max_branches

size_t SelectiveBranchingMT::task_data::max_branches

Definition at line 64 of file search_meta.cc.

Referenced by SelectiveBranchingMT::run().

◆ output_string

std::string* SelectiveBranchingMT::task_data::output_string

Definition at line 70 of file search_meta.cc.

Referenced by SelectiveBranchingMT::run().

◆ total_cost

float SelectiveBranchingMT::task_data::total_cost

Definition at line 68 of file search_meta.cc.

Referenced by SelectiveBranchingMT::run().

◆ trajectory

path SelectiveBranchingMT::task_data::trajectory

Definition at line 67 of file search_meta.cc.

Referenced by SelectiveBranchingMT::run().


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