OmniSciDB
a5dc49c757
|
#include <VectorView.h>
Public Types | |
using | value_type = T |
using | size_type = std::size_t |
using | difference_type = std::ptrdiff_t |
using | reference = value_type & |
using | const_reference = value_type const & |
using | pointer = value_type * |
using | const_pointer = value_type const * |
using | iterator = pointer |
using | const_iterator = const_pointer |
Public Member Functions | |
VectorView ()=default | |
DEVICE | VectorView (T *data, size_type const size, size_type const capacity) |
DEVICE | VectorView (T *data, size_type const size) |
DEVICE T & | back () |
DEVICE T const & | back () const |
DEVICE T * | begin () const |
DEVICE size_type | capacity () const |
DEVICE T const * | cbegin () const |
DEVICE T const * | cend () const |
DEVICE void | clear () |
DEVICE T * | data () |
DEVICE T const * | data () const |
DEVICE bool | empty () const |
DEVICE T * | end () const |
DEVICE bool | full () const |
DEVICE T & | front () |
DEVICE T const & | front () const |
DEVICE T & | operator[] (size_type const i) |
DEVICE T const & | operator[] (size_type const i) const |
DEVICE void | push_back (T const &value) |
DEVICE void | resize (size_type const size) |
DEVICE void | set (T *data, size_type const size) |
DEVICE size_type | size () const |
Private Attributes | |
T * | data_ {nullptr} |
size_type | size_ {0} |
size_type | capacity_ {0} |
Manage externally allocated memory ranges with a vector-like interface.
Definition at line 34 of file VectorView.h.
using VectorView< T >::const_iterator = const_pointer |
Definition at line 44 of file VectorView.h.
using VectorView< T >::const_pointer = value_type const* |
Definition at line 42 of file VectorView.h.
using VectorView< T >::const_reference = value_type const& |
Definition at line 40 of file VectorView.h.
using VectorView< T >::difference_type = std::ptrdiff_t |
Definition at line 38 of file VectorView.h.
using VectorView< T >::iterator = pointer |
Definition at line 43 of file VectorView.h.
using VectorView< T >::pointer = value_type* |
Definition at line 41 of file VectorView.h.
using VectorView< T >::reference = value_type& |
Definition at line 39 of file VectorView.h.
using VectorView< T >::size_type = std::size_t |
Definition at line 37 of file VectorView.h.
using VectorView< T >::value_type = T |
Definition at line 36 of file VectorView.h.
|
default |
|
inline |
Definition at line 53 of file VectorView.h.
|
inline |
Definition at line 55 of file VectorView.h.
|
inline |
Definition at line 57 of file VectorView.h.
Referenced by quantile::detail::TDigest< RealType, IndexType >::quantile().
|
inline |
Definition at line 58 of file VectorView.h.
|
inline |
Definition at line 59 of file VectorView.h.
Referenced by quantile::detail::Centroids< RealType, IndexType >::appendAndSortCurrent(), quantile::detail::TDigest< RealType, IndexType >::quantile(), ResultSet::topPermutation(), and quantile::detail::Centroids< RealType, IndexType >::totalWeight().
|
inline |
Definition at line 60 of file VectorView.h.
Referenced by quantile::detail::Centroids< RealType, IndexType >::capacity().
|
inline |
Definition at line 61 of file VectorView.h.
|
inline |
Definition at line 62 of file VectorView.h.
|
inline |
Definition at line 63 of file VectorView.h.
Referenced by quantile::detail::Centroids< RealType, IndexType >::clear().
|
inline |
Definition at line 64 of file VectorView.h.
Referenced by VectorView< RealType >::set(), quantile::detail::TDigest< RealType, IndexType >::setBuffer(), and quantile::detail::TDigest< RealType, IndexType >::setCentroids().
|
inline |
Definition at line 65 of file VectorView.h.
|
inline |
Definition at line 66 of file VectorView.h.
|
inline |
Definition at line 67 of file VectorView.h.
Referenced by quantile::detail::TDigest< RealType, IndexType >::quantile(), ResultSet::topPermutation(), and quantile::detail::Centroids< RealType, IndexType >::totalWeight().
|
inline |
Definition at line 69 of file VectorView.h.
|
inline |
Definition at line 70 of file VectorView.h.
|
inline |
Definition at line 68 of file VectorView.h.
|
inline |
Definition at line 71 of file VectorView.h.
|
inline |
Definition at line 72 of file VectorView.h.
|
inline |
Definition at line 73 of file VectorView.h.
Referenced by ResultSet::initPermutationBuffer(), and quantile::detail::Centroids< RealType, IndexType >::push_back().
|
inline |
Definition at line 74 of file VectorView.h.
Referenced by VectorView< RealType >::set(), and ResultSet::topPermutation().
|
inline |
Definition at line 79 of file VectorView.h.
Referenced by quantile::detail::TDigest< RealType, IndexType >::mergeSorted().
|
inline |
Definition at line 83 of file VectorView.h.
Referenced by quantile::detail::Centroids< RealType, IndexType >::appendAndSortCurrent(), quantile::detail::operator<<(), VectorView< RealType >::resize(), quantile::detail::Centroids< RealType, IndexType >::size(), ResultSet::sort(), and ResultSet::topPermutation().
|
private |
Definition at line 49 of file VectorView.h.
Referenced by VectorView< RealType >::capacity(), VectorView< RealType >::full(), and VectorView< RealType >::resize().
|
private |
Definition at line 47 of file VectorView.h.
Referenced by VectorView< RealType >::back(), VectorView< RealType >::begin(), VectorView< RealType >::cbegin(), VectorView< RealType >::cend(), VectorView< RealType >::data(), VectorView< RealType >::end(), VectorView< RealType >::front(), VectorView< RealType >::operator[](), VectorView< RealType >::push_back(), and VectorView< RealType >::set().
|
private |
Definition at line 48 of file VectorView.h.
Referenced by VectorView< RealType >::back(), VectorView< RealType >::cend(), VectorView< RealType >::clear(), VectorView< RealType >::empty(), VectorView< RealType >::end(), VectorView< RealType >::full(), VectorView< RealType >::push_back(), VectorView< RealType >::resize(), and VectorView< RealType >::size().