Vowpal Wabbit
Classes | Macros | Typedefs | Functions | Variables
v_array.h File Reference
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <ostream>
#include <string>
#include <utility>
#include "future_compat.h"
#include "vw_exception.h"
#include "memory.h"

Classes

struct  v_array< T, Enable >
 
struct  v_array< T, typename std::enable_if< std::is_trivially_copyable< T >::value >::type >
 

Macros

#define NOMINMAX
 

Typedefs

typedef v_array< unsigned char > v_string
 

Functions

template<class T >
v_array< T > v_init ()
 
template<class T >
void copy_array (v_array< T > &dst, const v_array< T > &src)
 
template<class T >
void copy_array_no_memcpy (v_array< T > &dst, const v_array< T > &src)
 
template<class T >
void copy_array (v_array< T > &dst, const v_array< T > &src, T(*copy_item)(const T &))
 
template<class T >
void push_many (v_array< T > &v, const T *src, size_t num)
 
template<class T >
 VW_DEPRECATED ("calloc_reserve is no longer supported. You should use appropriate constructors instead. This will be removed in ""VW 9.0.") void calloc_reserve(v_array< T > &v
 
reserve (length)
 
template<class T >
bool v_array_contains (const v_array< T > &A, T x)
 
template<class T >
std::ostream & operator<< (std::ostream &os, const v_array< T > &v)
 
template<class T , class U >
std::ostream & operator<< (std::ostream &os, const v_array< std::pair< T, U > > &v)
 
template<class T >
VW_WARNING_STATE_PUSH VW_WARNING_DISABLE_DEPRECATED_USAGE v_array< T > pop (v_array< v_array< T > > &stack)
 
v_string string2v_string (const std::string &s)
 
std::string v_string2string (const v_string &v_s)
 

Variables

size_t length
 

Macro Definition Documentation

#define NOMINMAX

Typedef Documentation

typedef v_array<unsigned char> v_string

Function Documentation

template<class T >
void copy_array ( v_array< T > &  dst,
const v_array< T > &  src 
)
template<class T >
void copy_array ( v_array< T > &  dst,
const v_array< T > &  src,
T(*)(const T &)  copy_item 
)
template<class T >
void copy_array_no_memcpy ( v_array< T > &  dst,
const v_array< T > &  src 
)
template<class T >
std::ostream& operator<< ( std::ostream &  os,
const v_array< T > &  v 
)
template<class T , class U >
std::ostream& operator<< ( std::ostream &  os,
const v_array< std::pair< T, U > > &  v 
)
template<class T >
VW_WARNING_STATE_PUSH VW_WARNING_DISABLE_DEPRECATED_USAGE v_array<T> pop ( v_array< v_array< T > > &  stack)
template<class T >
void push_many ( v_array< T > &  v,
const T *  src,
size_t  num 
)
v reserve ( length  )
v_string string2v_string ( const std::string &  s)
inline
template<class T >
bool v_array_contains ( const v_array< T > &  A,
x 
)
template<class T >
v_array<T> v_init ( )
inline
std::string v_string2string ( const v_string v_s)
inline
template<class T >
VW_DEPRECATED ( "calloc_reserve is no longer supported. You should use appropriate constructors instead. This will be removed in ""VW 9.0."  )

Variable Documentation

size_t length
Initial value:
{
v.clear()