![]() |
Project
|
#include <SparseVector.h>
Public Types | |
using | source_type = source_T |
using | value_type = value_T |
using | bucket_type = std::vector< value_type > |
using | container_type = std::vector< bucket_type > |
using | size_type = size_t |
using | difference_type = std::ptrdiff_t |
using | reference = value_type & |
using | const_reference = const value_type & |
using | pointer = value_type * |
using | const_pointer = const value_type * |
using | iterator = SparseVectorIterator< this_type > |
using | const_iterator = SparseVectorIterator< const this_type > |
Public Member Functions | |
SparseVector (const_reference neutralElement={}) | |
SparseVector (const SparseVector &other) | |
SparseVector (SparseVector &&other)=default | |
SparseVector & | operator= (const SparseVector &other) |
SparseVector & | operator= (SparseVector &&other)=default |
~SparseVector ()=default | |
const_reference | operator[] (source_type sourceSymbol) const |
reference | operator[] (source_type sourceSymbol) |
const_reference | at (source_type sourceSymbol) const |
reference | at (source_type sourceSymbol) |
size_type | size () const noexcept |
bool | empty () const noexcept |
bucket_type * | data () noexcept |
const bucket_type * | data () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
iterator | begin () noexcept |
iterator | end () noexcept |
container_type | release () &&noexcept |
void | swap (SparseVector &a, SparseVector &b) |
Static Public Member Functions | |
static constexpr source_type | getOffset () noexcept |
static size_type | getBucketSize () noexcept |
static size_type | getNBuckets () noexcept |
static constexpr std::pair< uint32_t, uint32_t > | splitIndex (source_type sourceSymbol) noexcept |
static constexpr source_type | joinIndex (std::uint32_t lutID, std::uint32_t bucketID) noexcept |
Definition at line 37 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::bucket_type = std::vector<value_type> |
Definition at line 44 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::const_iterator = SparseVectorIterator<const this_type> |
Definition at line 53 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::const_pointer = const value_type* |
Definition at line 51 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::const_reference = const value_type& |
Definition at line 49 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::container_type = std::vector<bucket_type> |
Definition at line 45 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::difference_type = std::ptrdiff_t |
Definition at line 47 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::iterator = SparseVectorIterator<this_type> |
Definition at line 52 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::pointer = value_type* |
Definition at line 50 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::reference = value_type& |
Definition at line 48 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::size_type = size_t |
Definition at line 46 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::source_type = source_T |
Definition at line 42 of file SparseVector.h.
using o2::rans::internal::SparseVector< source_T, value_T >::value_type = value_T |
Definition at line 43 of file SparseVector.h.
|
inlineexplicit |
Definition at line 62 of file SparseVector.h.
|
inline |
Definition at line 67 of file SparseVector.h.
|
default |
|
default |
|
inline |
Definition at line 120 of file SparseVector.h.
|
inline |
Definition at line 109 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 136 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 140 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 132 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 134 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 130 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 128 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 124 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 138 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 142 of file SparseVector.h.
|
inlinestaticnoexcept |
Definition at line 146 of file SparseVector.h.
|
inlinestaticnoexcept |
Definition at line 148 of file SparseVector.h.
|
inlinestaticconstexprnoexcept |
Definition at line 126 of file SparseVector.h.
|
inlinestaticconstexprnoexcept |
Definition at line 166 of file SparseVector.h.
|
inline |
Definition at line 81 of file SparseVector.h.
|
default |
|
inline |
Definition at line 97 of file SparseVector.h.
|
inline |
Definition at line 91 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 144 of file SparseVector.h.
|
inlinenoexcept |
Definition at line 122 of file SparseVector.h.
|
inlinestaticconstexprnoexcept |
Definition at line 150 of file SparseVector.h.
|
inline |
Definition at line 174 of file SparseVector.h.