|
FlatCityBuf C++ reader 0.8.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
|
Minimal C++17 stand-in for std::span: a non-owning view over contiguous memory. More...
#include <fcb/span.hpp>
Public Member Functions | |
| span () noexcept | |
| span (T *data, std::size_t size) noexcept | |
| template<typename U , typename = std::enable_if_t<std::is_same<const U, T>::value>> | |
| span (const std::vector< U > &v) noexcept | |
| Implicit view over a const vector, for span<const U>. | |
| span (std::vector< std::remove_const_t< T > > &v) noexcept | |
| Implicit view over a mutable vector. | |
| T * | data () const noexcept |
| std::size_t | size () const noexcept |
| bool | empty () const noexcept |
| T & | operator[] (std::size_t i) const noexcept |
| T * | begin () const noexcept |
| T * | end () const noexcept |
| span | subspan (std::size_t offset, std::size_t count) const noexcept |
Minimal C++17 stand-in for std::span: a non-owning view over contiguous memory.
The library targets C++17 because the GIS ecosystem consuming it still ships C++17 compilers, so std::span is not available.
|
inlinenoexcept |
Definition at line 15 of file span.hpp.
Referenced by fcb::span< T >::subspan().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 25 of file span.hpp.
Referenced by fcb::check_magic_bytes(), fcb::NodeItem::decode(), and fcb::decode_attributes().
|
inlinenoexcept |
Definition at line 27 of file span.hpp.
Referenced by fcb::decode_attributes().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 26 of file span.hpp.
Referenced by fcb::check_magic_bytes(), fcb::NodeItem::decode(), fcb::decode_attributes(), fcb::decode_boundaries(), fcb::decode_material_values(), fcb::decode_payload_entry(), fcb::decode_semantics_values(), and fcb::decode_texture_values().
|
inlinenoexcept |
Definition at line 33 of file span.hpp.
References fcb::span< T >::span(), and offset.