proxygen
|
#include <BitVectorCoding.h>
Classes | |
struct | Layout |
Public Types | |
typedef BitVectorCompressedList | CompressedList |
typedef MutableBitVectorCompressedList | MutableCompressedList |
typedef Value | ValueType |
typedef SkipValue | SkipValueType |
Public Member Functions | |
BitVectorEncoder (const MutableCompressedList &result) | |
BitVectorEncoder (size_t size, ValueType upperBound) | |
void | add (ValueType value) |
const MutableCompressedList & | finish () const |
Static Public Member Functions | |
template<class RandomAccessIterator > | |
static MutableCompressedList | encode (RandomAccessIterator begin, RandomAccessIterator end) |
Static Public Attributes | |
static constexpr size_t | skipQuantum = kSkipQuantum |
static constexpr size_t | forwardQuantum = kForwardQuantum |
Private Attributes | |
uint8_t *const | bits_ = nullptr |
uint8_t *const | skipPointers_ = nullptr |
uint8_t *const | forwardPointers_ = nullptr |
ValueType | lastValue_ = -1 |
size_t | size_ = 0 |
size_t | skipPointersSize_ = 0 |
MutableCompressedList | result_ |
Definition at line 79 of file BitVectorCoding.h.
typedef BitVectorCompressedList folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::CompressedList |
Definition at line 82 of file BitVectorCoding.h.
typedef MutableBitVectorCompressedList folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::MutableCompressedList |
Definition at line 85 of file BitVectorCoding.h.
typedef SkipValue folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::SkipValueType |
Definition at line 88 of file BitVectorCoding.h.
typedef Value folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::ValueType |
Definition at line 87 of file BitVectorCoding.h.
|
inlineexplicit |
Definition at line 108 of file BitVectorCoding.h.
References folly::compression::BitVectorCompressedListBase< Pointer >::data, folly::Range< Iter >::data(), and folly::Range< Iter >::size().
|
inline |
Definition at line 116 of file BitVectorCoding.h.
|
inline |
Definition at line 120 of file BitVectorCoding.h.
References max, cpp.gmock_class::set, uint64_t, and folly::value().
Referenced by folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::encode().
|
inlinestatic |
Definition at line 95 of file BitVectorCoding.h.
References folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::add(), folly::test::begin(), folly::test::end(), and folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::finish().
Referenced by BENCHMARK().
|
inline |
Definition at line 152 of file BitVectorCoding.h.
Referenced by folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::encode().
|
private |
Definition at line 160 of file BitVectorCoding.h.
|
private |
Definition at line 162 of file BitVectorCoding.h.
|
static |
Definition at line 92 of file BitVectorCoding.h.
|
private |
Definition at line 164 of file BitVectorCoding.h.
|
private |
Definition at line 168 of file BitVectorCoding.h.
|
private |
Definition at line 165 of file BitVectorCoding.h.
|
private |
Definition at line 161 of file BitVectorCoding.h.
|
private |
Definition at line 166 of file BitVectorCoding.h.
|
static |
Definition at line 91 of file BitVectorCoding.h.