Vowpal Wabbit
Public Types | Public Member Functions | Public Attributes | List of all members
v_array< T > Struct Template Reference

#include <v_array.h>

Public Types

using iterator = T *
 

Public Member Functions

T *& begin ()
 
T *& end ()
 
const T * begin () const
 
const T * end () const
 
T * cbegin () const
 
T * cend () const
 
last () const
 
pop ()
 
bool empty () const
 
void decr ()
 
void incr ()
 
T & operator[] (size_t i) const
 
size_t size () const
 
void resize (size_t length)
 
void clear ()
 
void delete_v ()
 
void push_back (const T &new_ele)
 
void push_back_unchecked (const T &new_ele)
 
template<class... Args>
void emplace_back (Args &&...args)
 
size_t find_sorted (const T &ele) const
 
size_t unique_add_sorted (const T &new_ele)
 
bool contain_sorted (const T &ele, size_t &index)
 

Public Attributes

T * _begin
 
T * _end
 
T * end_array
 
size_t erase_count
 

Member Typedef Documentation

template<class T>
using v_array< T >::iterator = T*

Member Function Documentation

template<class T>
T*& v_array< T >::begin ( )
inline
template<class T>
const T* v_array< T >::begin ( ) const
inline
template<class T>
T* v_array< T >::cbegin ( ) const
inline
template<class T>
T* v_array< T >::cend ( ) const
inline
template<class T>
void v_array< T >::clear ( )
inline
template<class T>
bool v_array< T >::contain_sorted ( const T &  ele,
size_t &  index 
)
inline
template<class T>
void v_array< T >::decr ( )
inline
template<class T>
void v_array< T >::delete_v ( )
inline
template<class T>
template<class... Args>
void v_array< T >::emplace_back ( Args &&...  args)
inline
template<class T>
bool v_array< T >::empty ( ) const
inline
template<class T>
T*& v_array< T >::end ( )
inline
template<class T>
const T* v_array< T >::end ( ) const
inline
template<class T>
size_t v_array< T >::find_sorted ( const T &  ele) const
inline
template<class T>
void v_array< T >::incr ( )
inline
template<class T>
T v_array< T >::last ( ) const
inline
template<class T>
T& v_array< T >::operator[] ( size_t  i) const
inline
template<class T>
T v_array< T >::pop ( )
inline
template<class T>
void v_array< T >::push_back ( const T &  new_ele)
inline
template<class T>
void v_array< T >::push_back_unchecked ( const T &  new_ele)
inline
template<class T>
void v_array< T >::resize ( size_t  length)
inline
template<class T>
size_t v_array< T >::size ( ) const
inline
template<class T>
size_t v_array< T >::unique_add_sorted ( const T &  new_ele)
inline

Member Data Documentation

template<class T>
T* v_array< T >::_begin
template<class T>
T* v_array< T >::_end
template<class T>
T* v_array< T >::end_array
template<class T>
size_t v_array< T >::erase_count

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