Vowpal Wabbit
Public Types | Public Member Functions | Public Attributes | List of all members
features Struct Reference

the core definition of a set of features. More...

#include <feature_group.h>

Public Types

using iterator = features_iterator< feature_value, feature_index >
 
using const_iterator = features_iterator< const feature_value, const feature_index >
 
using audit_iterator = audit_features_iterator< feature_value, feature_index, audit_strings >
 
using const_audit_iterator = audit_features_iterator< const feature_value, const feature_index, const audit_strings >
 

Public Member Functions

 features ()=default
 
 ~features ()=default
 
 features (const features &)=default
 
featuresoperator= (const features &)=default
 
 features (features &&other)=default
 
featuresoperator= (features &&other)=default
 
size_t size () const
 
bool empty () const
 
bool nonempty () const
 
void free_space_names (size_t i)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
VW::generic_range< audit_iteratoraudit_range ()
 
VW::generic_range< const_audit_iteratoraudit_range () const
 
audit_iterator audit_begin ()
 
const_audit_iterator audit_begin () const
 
audit_iterator audit_end ()
 
const_audit_iterator audit_end () const
 
const_audit_iterator audit_cbegin () const
 
const_audit_iterator audit_cend () const
 
void clear ()
 
void truncate_to (const audit_iterator &pos)
 
void truncate_to (const iterator &pos)
 
void truncate_to (size_t i)
 
void concat (const features &other)
 
void push_back (feature_value v, feature_index i)
 
bool sort (uint64_t parse_mask)
 
void deep_copy_from (const features &src)
 

Public Attributes

v_array< feature_valuevalues
 
v_array< feature_indexindicies
 
std::vector< audit_stringsspace_names
 
float sum_feat_sq = 0.f
 

Detailed Description

the core definition of a set of features.

Member Typedef Documentation

Constructor & Destructor Documentation

features::features ( )
default
features::~features ( )
default
features::features ( const features )
default
features::features ( features &&  other)
default

Member Function Documentation

audit_iterator features::audit_begin ( )
inline
const_audit_iterator features::audit_begin ( ) const
inline
const_audit_iterator features::audit_cbegin ( ) const
inline
const_audit_iterator features::audit_cend ( ) const
inline
audit_iterator features::audit_end ( )
inline
const_audit_iterator features::audit_end ( ) const
inline
VW::generic_range<audit_iterator> features::audit_range ( )
inline
VW::generic_range<const_audit_iterator> features::audit_range ( ) const
inline
iterator features::begin ( )
inline
const_iterator features::begin ( ) const
inline
const_iterator features::cbegin ( ) const
inline
const_iterator features::cend ( ) const
inline
void features::clear ( )
void features::concat ( const features other)
void features::deep_copy_from ( const features src)
bool features::empty ( ) const
inline
iterator features::end ( )
inline
const_iterator features::end ( ) const
inline
void features::free_space_names ( size_t  i)
bool features::nonempty ( ) const
inline
features& features::operator= ( const features )
default
features& features::operator= ( features &&  other)
default
void features::push_back ( feature_value  v,
feature_index  i 
)
size_t features::size ( ) const
inline
bool features::sort ( uint64_t  parse_mask)
void features::truncate_to ( const audit_iterator pos)
void features::truncate_to ( const iterator pos)
void features::truncate_to ( size_t  i)

Member Data Documentation

v_array<feature_index> features::indicies
std::vector<audit_strings> features::space_names
float features::sum_feat_sq = 0.f
v_array<feature_value> features::values

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