Vowpal Wabbit
Public Types | Public Member Functions | List of all members
VW::namespaced_features Struct Reference

#include <namespaced_feature_store.h>

Public Types

using iterator = iterator_t< features, namespace_index, uint64_t >
 
using const_iterator = iterator_t< const features, const namespace_index, const uint64_t >
 
using indexed_iterator = indexed_iterator_t< size_t, features, namespace_index, uint64_t >
 
using const_indexed_iterator = indexed_iterator_t< const size_t, const features, const namespace_index, const uint64_t >
 

Public Member Functions

 namespaced_features ()=default
 
 ~namespaced_features ()=default
 
 namespaced_features (const namespaced_features &)=default
 
namespaced_featuresoperator= (const namespaced_features &)=default
 
 namespaced_features (namespaced_features &&other)=default
 
namespaced_featuresoperator= (namespaced_features &&other)=default
 
size_t size () const
 
bool empty () const
 
featuresget_feature_group (uint64_t hash)
 
const featuresget_feature_group (uint64_t hash) const
 
const std::set< namespace_index > & get_indices () const
 
namespace_index get_index_for_hash (uint64_t hash) const
 
std::pair< indexed_iterator, indexed_iteratorget_namespace_index_groups (namespace_index ns_index)
 
std::pair< const_indexed_iterator, const_indexed_iteratorget_namespace_index_groups (namespace_index ns_index) const
 
template<typename FeaturesT >
featuresmerge_feature_group (FeaturesT &&ftrs, uint64_t hash, namespace_index ns_index)
 
featuresget_or_create_feature_group (uint64_t hash, namespace_index ns_index)
 
const featuresoperator[] (uint64_t hash) const
 
featuresoperator[] (uint64_t hash)
 
void remove_feature_group (uint64_t hash)
 
void clear ()
 
VW::chained_proxy_iterator< indexed_iterator, features::audit_iteratornamespace_index_begin_proxy (namespace_index ns_index)
 
VW::chained_proxy_iterator< indexed_iterator, features::audit_iteratornamespace_index_end_proxy (namespace_index ns_index)
 
VW::chained_proxy_iterator< const_indexed_iterator, features::const_audit_iteratornamespace_index_begin_proxy (namespace_index ns_index) const
 
VW::chained_proxy_iterator< const_indexed_iterator, features::const_audit_iteratornamespace_index_end_proxy (namespace_index ns_index) const
 
VW::chained_proxy_iterator< const_indexed_iterator, features::const_audit_iteratornamespace_index_cbegin_proxy (namespace_index ns_index) const
 
VW::chained_proxy_iterator< const_indexed_iterator, features::const_audit_iteratornamespace_index_cend_proxy (namespace_index ns_index) const
 
generic_range< indexed_iteratornamespace_index_range (namespace_index ns_index)
 
generic_range< const_indexed_iteratornamespace_index_range (namespace_index ns_index) const
 
indexed_iterator namespace_index_begin (namespace_index ns_index)
 
indexed_iterator namespace_index_end (namespace_index ns_index)
 
const_indexed_iterator namespace_index_begin (namespace_index ns_index) const
 
const_indexed_iterator namespace_index_end (namespace_index ns_index) const
 
const_indexed_iterator namespace_index_cbegin (namespace_index ns_index) const
 
const_indexed_iterator namespace_index_cend (namespace_index ns_index) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 

Detailed Description

namespace_index - 1 byte namespace identifier. Either the first character of the namespace or a reserved namespace identifier namespace_hash - 8 byte hash

Member Typedef Documentation

Constructor & Destructor Documentation

VW::namespaced_features::namespaced_features ( )
default
VW::namespaced_features::~namespaced_features ( )
default
VW::namespaced_features::namespaced_features ( const namespaced_features )
default
VW::namespaced_features::namespaced_features ( namespaced_features &&  other)
default

Member Function Documentation

iterator VW::namespaced_features::begin ( )
const_iterator VW::namespaced_features::begin ( ) const
const_iterator VW::namespaced_features::cbegin ( ) const
const_iterator VW::namespaced_features::cend ( ) const
void VW::namespaced_features::clear ( )
bool VW::namespaced_features::empty ( ) const
inline
iterator VW::namespaced_features::end ( )
const_iterator VW::namespaced_features::end ( ) const
features* VW::namespaced_features::get_feature_group ( uint64_t  hash)
const features* VW::namespaced_features::get_feature_group ( uint64_t  hash) const
namespace_index VW::namespaced_features::get_index_for_hash ( uint64_t  hash) const
const std::set<namespace_index>& VW::namespaced_features::get_indices ( ) const
std::pair<indexed_iterator, indexed_iterator> VW::namespaced_features::get_namespace_index_groups ( namespace_index  ns_index)
std::pair<const_indexed_iterator, const_indexed_iterator> VW::namespaced_features::get_namespace_index_groups ( namespace_index  ns_index) const
features& VW::namespaced_features::get_or_create_feature_group ( uint64_t  hash,
namespace_index  ns_index 
)
template<typename FeaturesT >
features & VW::namespaced_features::merge_feature_group ( FeaturesT &&  ftrs,
uint64_t  hash,
namespace_index  ns_index 
)
indexed_iterator VW::namespaced_features::namespace_index_begin ( namespace_index  ns_index)
const_indexed_iterator VW::namespaced_features::namespace_index_begin ( namespace_index  ns_index) const
VW::chained_proxy_iterator<indexed_iterator, features::audit_iterator> VW::namespaced_features::namespace_index_begin_proxy ( namespace_index  ns_index)
VW::chained_proxy_iterator<const_indexed_iterator, features::const_audit_iterator> VW::namespaced_features::namespace_index_begin_proxy ( namespace_index  ns_index) const
const_indexed_iterator VW::namespaced_features::namespace_index_cbegin ( namespace_index  ns_index) const
VW::chained_proxy_iterator<const_indexed_iterator, features::const_audit_iterator> VW::namespaced_features::namespace_index_cbegin_proxy ( namespace_index  ns_index) const
const_indexed_iterator VW::namespaced_features::namespace_index_cend ( namespace_index  ns_index) const
VW::chained_proxy_iterator<const_indexed_iterator, features::const_audit_iterator> VW::namespaced_features::namespace_index_cend_proxy ( namespace_index  ns_index) const
indexed_iterator VW::namespaced_features::namespace_index_end ( namespace_index  ns_index)
const_indexed_iterator VW::namespaced_features::namespace_index_end ( namespace_index  ns_index) const
VW::chained_proxy_iterator<indexed_iterator, features::audit_iterator> VW::namespaced_features::namespace_index_end_proxy ( namespace_index  ns_index)
VW::chained_proxy_iterator<const_indexed_iterator, features::const_audit_iterator> VW::namespaced_features::namespace_index_end_proxy ( namespace_index  ns_index) const
generic_range<indexed_iterator> VW::namespaced_features::namespace_index_range ( namespace_index  ns_index)
generic_range<const_indexed_iterator> VW::namespaced_features::namespace_index_range ( namespace_index  ns_index) const
namespaced_features& VW::namespaced_features::operator= ( const namespaced_features )
default
namespaced_features& VW::namespaced_features::operator= ( namespaced_features &&  other)
default
const features& VW::namespaced_features::operator[] ( uint64_t  hash) const
features& VW::namespaced_features::operator[] ( uint64_t  hash)
void VW::namespaced_features::remove_feature_group ( uint64_t  hash)
size_t VW::namespaced_features::size ( ) const
inline

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