Zserio C++17 runtime library
0.5.0
Built for Zserio 2.17.0
|
#include <ArrayView.h>
Classes | |
class | ConstIterator |
Public Types | |
using | ValueType = std::remove_cv_t< T > |
using | Traits = ARRAY_TRAITS |
using | ConstReverseIterator = std::reverse_iterator< ConstIterator > |
using | OwnerType = detail::array_owner_type_t< Traits > |
Public Member Functions | |
template<typename OWNER_TYPE_ = OwnerType, std::enable_if_t< detail::is_dummy_array_owner_v< OWNER_TYPE_ >, int > = 0> | |
ArrayView (Span< T > data) | |
template<typename OWNER_TYPE_ = OwnerType, std::enable_if_t<!detail::is_dummy_array_owner_v< OWNER_TYPE_ >, int > = 0> | |
ArrayView (Span< T > data, const OwnerType &owner) | |
bool | operator== (const ArrayView &other) const |
bool | operator< (const ArrayView &other) const |
bool | operator!= (const ArrayView &other) const |
bool | operator> (const ArrayView &other) const |
bool | operator<= (const ArrayView &other) const |
bool | operator>= (const ArrayView &other) const |
size_t | size () const |
bool | empty () const |
decltype(auto) | at (size_t index) const |
decltype(auto) | operator[] (size_t index) const |
decltype(auto) | front () const |
decltype(auto) | back () const |
~ArrayView ()=default | |
ArrayView (const ArrayView &other)=default | |
ArrayView & | operator= (const ArrayView &other)=default |
ArrayView (ArrayView &&other)=default | |
ArrayView & | operator= (ArrayView &&other)=default |
Span< T > | zserioData () const |
ConstIterator | cbegin () const noexcept |
ConstIterator | begin () const noexcept |
ConstIterator | cend () const noexcept |
ConstIterator | end () const noexcept |
ConstReverseIterator | crbegin () const noexcept |
ConstReverseIterator | rbegin () const noexcept |
ConstReverseIterator | crend () const noexcept |
ConstReverseIterator | rend () const noexcept |
Definition at line 34 of file ArrayView.h.
using zserio::ArrayView< T, ARRAY_TRAITS >::ConstReverseIterator = std::reverse_iterator<ConstIterator> |
Definition at line 46 of file ArrayView.h.
using zserio::ArrayView< T, ARRAY_TRAITS >::OwnerType = detail::array_owner_type_t<Traits> |
Typedef for the array's owner type.
Owner type is needed for proper expressions evaluation. If no owner is needed for expressions evaluation, detail::DummyArrayOwner is used.
Definition at line 54 of file ArrayView.h.
using zserio::ArrayView< T, ARRAY_TRAITS >::Traits = ARRAY_TRAITS |
Typedef for the array traits.
Definition at line 41 of file ArrayView.h.
using zserio::ArrayView< T, ARRAY_TRAITS >::ValueType = std::remove_cv_t<T> |
Typedef for the value type.
Definition at line 38 of file ArrayView.h.
|
inlineexplicit |
Constructor from l-value raw array.
rawArray | Raw array. |
Definition at line 63 of file ArrayView.h.
|
inlineexplicit |
Constructor from l-value raw array.
rawArray | Raw array. |
owner | View to the array's owner. |
Definition at line 75 of file ArrayView.h.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
inline |
Returns element view at the given index.
index | Element index. |
Definition at line 235 of file ArrayView.h.
|
inline |
Returns element view for the last element in container.
Definition at line 273 of file ArrayView.h.
|
inlinenoexcept |
Returns an constant iterator to the beginning.
Definition at line 289 of file ArrayView.h.
|
inlinenoexcept |
Returns an constant iterator to the beginning.
Definition at line 284 of file ArrayView.h.
|
inlinenoexcept |
Returns and constant iterator to the end.
Definition at line 301 of file ArrayView.h.
|
inlinenoexcept |
Returns an constant reverse iterator to the beginning of the reversed array.
Definition at line 318 of file ArrayView.h.
|
inlinenoexcept |
Returns an constant reverse iterator to the end of the reversed array.
Definition at line 335 of file ArrayView.h.
|
inline |
Gets whether the array is empty.
Definition at line 224 of file ArrayView.h.
|
inlinenoexcept |
Returns and constant iterator to the end.
Definition at line 306 of file ArrayView.h.
|
inline |
Returns element view for the first element in container.
Definition at line 263 of file ArrayView.h.
|
inline |
Operator inequality.
other | ArrayView to compare. |
Definition at line 168 of file ArrayView.h.
|
inline |
Operator less than.
other | ArrayView to compare. |
Definition at line 140 of file ArrayView.h.
|
inline |
Operator less than or equal.
other | ArrayView to compare. |
Definition at line 192 of file ArrayView.h.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
inline |
Operator equality.
other | ArrayView to compare. |
Definition at line 113 of file ArrayView.h.
|
inline |
Operator greater than.
other | ArrayView to compare. |
Definition at line 180 of file ArrayView.h.
|
inline |
Operator greater than or equal.
other | ArrayView to compare. |
Definition at line 204 of file ArrayView.h.
|
inline |
Returns element view at the given index. Like STL vector's operator[] this is does not check the array size.
index | Element index. |
Definition at line 253 of file ArrayView.h.
|
inlinenoexcept |
Returns an constant reverse iterator to the beginning of the reversed array.
Definition at line 323 of file ArrayView.h.
|
inlinenoexcept |
Returns an constant reverse iterator to the end of the reversed array.
Definition at line 340 of file ArrayView.h.
|
inline |
|
inline |
Gets underlying raw data array.
Definition at line 100 of file ArrayView.h.