Vowpal Wabbit
|
#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) |
#define __INLINE inline |
#define NOMINMAX |
void calloc_reserve | ( | v_array< T > & | v, |
size_t | length | ||
) |
void copy_array | ( | v_array< T > & | dst, |
const v_array< T > & | src, | ||
T(*)(T &) | copy_item | ||
) |
std::ostream& operator<< | ( | std::ostream & | os, |
const v_array< T > & | v | ||
) |
std::ostream& operator<< | ( | std::ostream & | os, |
const v_array< std::pair< T, U > > & | v | ||
) |
void push_many | ( | v_array< T > & | v, |
const T * | src, | ||
size_t | num | ||
) |
|
inline |
bool v_array_contains | ( | v_array< T > & | A, |
T | x | ||
) |
|
inline |
|
inline |
const size_t erase_point = ~((1u << 10u) - 1u) |