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

Classes

struct  v_array< T >
 

Macros

#define NOMINMAX
 
#define __INLINE   inline
 

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)(T &))
 
template<class T >
void push_many (v_array< T > &v, const T *src, size_t num)
 
template<class T >
void calloc_reserve (v_array< T > &v, size_t length)
 
template<class T >
v_array< T > pop (v_array< v_array< T > > &stack)
 
template<class T >
bool v_array_contains (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)
 
v_string string2v_string (const std::string &s)
 
std::string v_string2string (const v_string &v_s)
 

Variables

const size_t erase_point = ~((1u << 10u) - 1u)
 

Macro Definition Documentation

#define __INLINE   inline
#define NOMINMAX

Typedef Documentation

typedef v_array<unsigned char> v_string

Function Documentation

template<class T >
void calloc_reserve ( v_array< T > &  v,
size_t  length 
)
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(*)(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 >
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_string string2v_string ( const std::string &  s)
inline
template<class T >
bool v_array_contains ( v_array< T > &  A,
x 
)
template<class T >
v_array<T> v_init ( )
inline
std::string v_string2string ( const v_string v_s)
inline

Variable Documentation

const size_t erase_point = ~((1u << 10u) - 1u)