Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
Search::action_repr Struct Reference

Public Member Functions

 action_repr (action _a, features *_repr)
 
 action_repr (action _a)
 

Public Attributes

action a
 
featuresrepr
 

Detailed Description

Definition at line 103 of file search.cc.

Constructor & Destructor Documentation

◆ action_repr() [1/2]

Search::action_repr::action_repr ( action  _a,
features _repr 
)
inline

Definition at line 107 of file search.cc.

References features::deep_copy_from().

107  : a(_a)
108  {
109  if (_repr != nullptr)
110  {
111  repr = new features();
112  repr->deep_copy_from(*_repr);
113  }
114  else
115  repr = nullptr;
116  }
void deep_copy_from(const features &src)
the core definition of a set of features.
features * repr
Definition: search.cc:106

◆ action_repr() [2/2]

Search::action_repr::action_repr ( action  _a)
inline

Definition at line 117 of file search.cc.

117 : a(_a), repr(nullptr) {}
features * repr
Definition: search.cc:106

Member Data Documentation

◆ a

action Search::action_repr::a

◆ repr

features* Search::action_repr::repr

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