fidl::VectorView
Summary
Constructors and Destructors |
|
|---|---|
VectorView()
|
|
VectorView(AnyArena & allocator, size_t size)
|
|
VectorView(AnyArena & allocator, size_t initial_size, size_t capacity)
|
|
VectorView(std::nullptr_t data, size_t size)
|
|
VectorView(AnyArena & arena, InputIterator first, InputIterator last)
|
|
VectorView(AnyArena & arena, cpp20::span< const T > span)
|
|
VectorView(AnyArena & arena, const std::vector< std::remove_cv_t< T >> & vector)
|
|
VectorView(const VectorView &)
|
|
VectorView(const VectorView< std::remove_cv_t< T >> & other)
|
Public types |
|
|---|---|
elem_type
|
usingT
|
value_type
|
usingT
|
Public functions |
|
|---|---|
Allocate(AnyArena & arena, size_t size)
|
void
|
at(size_t offset) const
|
T &
|
begin() const
|
constexpr T *
|
cbegin() const
|
constexpr const T *
|
cend() const
|
constexpr const T *
|
count() const
|
constexpr size_t
|
data() const
|
constexpr T *
|
empty() const
|
constexpr bool
|
end() const
|
constexpr T *
|
get() const
|
constexpr cpp20::span< T >
|
is_null() const
|
bool
|
operator=(const VectorView &)=default
|
constexpr VectorView &
|
operator=(const VectorView< std::remove_cv_t< T >> & other) noexcept
|
constexpr VectorView &
|
operator[](size_t offset) const
|
T &
|
set_count(size_t size)
|
void
|
set_size(size_t size)
|
constexpr void
|
size() const
|
constexpr size_t
|
Public static functions |
|
|---|---|
FromExternal(std::vector< std::remove_cv_t< T >> & from)
|
constexpr VectorView< T >
|
FromExternal(std::array< T, size > & from)
|
constexpr VectorView< T >
|
FromExternal(T(&) data[size])
|
constexpr VectorView< T >
|
FromExternal(T *data, size_t size)
|
VectorView< T > constexpr
|
Protected functions |
|
|---|---|
VectorView(std::vector< std::remove_cv_t< T >> & from)
|
constexpr
|
VectorView(T *data, size_t size)
|
constexpr
|
Public types
elem_type
T elem_type
value_type
T value_type
Public functions
Allocate
void Allocate( AnyArena & arena, size_t size )
VectorView
constexpr VectorView()=default
VectorView
VectorView( AnyArena & allocator, size_t size )
VectorView
VectorView( AnyArena & allocator, size_t initial_size, size_t capacity )
VectorView
constexpr VectorView( std::nullptr_t data, size_t size )
VectorView
VectorView( AnyArena & arena, InputIterator first, InputIterator last )
VectorView
VectorView( AnyArena & arena, cpp20::span< const T > span )
VectorView
VectorView( AnyArena & arena, const std::vector< std::remove_cv_t< T >> & vector )
VectorView
constexpr VectorView( const VectorView & )=default
VectorView
constexpr VectorView( const VectorView< std::remove_cv_t< T >> & other ) noexcept
at
T & at( size_t offset ) const
begin
constexpr T * begin() const
cbegin
constexpr const T * cbegin() const
cend
constexpr const T * cend() const
count
constexpr size_t count() const
data
constexpr T * data() const
empty
constexpr bool empty() const
end
constexpr T * end() const
get
constexpr cpp20::span< T > get() const
is_null
bool is_null() const
operator=
constexpr VectorView & operator=( const VectorView & )=default
operator=
constexpr VectorView & operator=( const VectorView< std::remove_cv_t< T >> & other ) noexcept
operator[]
T & operator[]( size_t offset ) const
set_count
void set_count( size_t size )
set_size
constexpr void set_size( size_t size )
size
constexpr size_t size() const
Public static functions
FromExternal
constexpr VectorView< T > FromExternal( std::vector< std::remove_cv_t< T >> & from )
FromExternal
constexpr VectorView< T > FromExternal( std::array< T, size > & from )
FromExternal
constexpr VectorView< T > FromExternal( T(&) data[size] )
FromExternal
VectorView< T > constexpr FromExternal( T *data, size_t size )
Protected functions
VectorView
constexpr VectorView( std::vector< std::remove_cv_t< T >> & from )
VectorView
constexpr VectorView( T *data, size_t size )