ludus::foundation::core::FixedArray¶
Ludus Wiki · API overview · Browse API
Class
Note
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
#include <ludus/foundation/containers/fixed_array.hpp>
template <typename ElementType, usize Count>
class ludus::foundation::core::FixedArray
Types¶
ValueType¶
using ludus::foundation::core::FixedArray< ElementType, Count >::ValueType = ElementType
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
SizeType¶
using ludus::foundation::core::FixedArray< ElementType, Count >::SizeType = usize
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
Iterator¶
using ludus::foundation::core::FixedArray< ElementType, Count >::Iterator = ElementType*
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
ConstIterator¶
using ludus::foundation::core::FixedArray< ElementType, Count >::ConstIterator = const ElementType*
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
Methods¶
FixedArray¶
ludus::foundation::core::FixedArray< ElementType, Count >::FixedArray() noexcept=default
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
FixedArray¶
ludus::foundation::core::FixedArray< ElementType, Count >::FixedArray(const FixedArray &other)
requires std::is_copy_constructible_v<ElementType>
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
FixedArray¶
ludus::foundation::core::FixedArray< ElementType, Count >::FixedArray(FixedArray &&other) noexcept
requires std::is_nothrow_move_constructible_v<ElementType>
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
operator=¶
FixedArray & ludus::foundation::core::FixedArray< ElementType, Count >::operator=(const FixedArray &other)
requires std::is_copy_constructible_v<ElementType> && std::is_copy_assignable_v<ElementType>
Related types: FixedArray
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
operator=¶
FixedArray & ludus::foundation::core::FixedArray< ElementType, Count >::operator=(FixedArray &&other) noexcept
requires std::is_nothrow_move_constructible_v<ElementType> && std::is_nothrow_move_assignable_v<ElementType>
Related types: FixedArray
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
~FixedArray¶
ludus::foundation::core::FixedArray< ElementType, Count >::~FixedArray()=default
requires std::is_trivially_destructible_v<ElementType>
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
~FixedArray¶
ludus::foundation::core::FixedArray< ElementType, Count >::~FixedArray()
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
GetSize¶
LUDUS_INLINE usize ludus::foundation::core::FixedArray< ElementType, Count >::GetSize() const noexcept
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
IsEmpty¶
LUDUS_INLINE bool ludus::foundation::core::FixedArray< ElementType, Count >::IsEmpty() const noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
IsFull¶
LUDUS_INLINE bool ludus::foundation::core::FixedArray< ElementType, Count >::IsFull() const noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
GetData¶
LUDUS_INLINE ElementType * ludus::foundation::core::FixedArray< ElementType, Count >::GetData() noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
GetData¶
LUDUS_INLINE const ElementType * ludus::foundation::core::FixedArray< ElementType, Count >::GetData() const noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
operator[]¶
LUDUS_INLINE ElementType & ludus::foundation::core::FixedArray< ElementType, Count >::operator[](usize index) noexcept
index. Precondition
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
operator[]¶
LUDUS_INLINE const ElementType & ludus::foundation::core::FixedArray< ElementType, Count >::operator[](usize index) const noexcept
index. Precondition
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
GetFirst¶
LUDUS_INLINE ElementType & ludus::foundation::core::FixedArray< ElementType, Count >::GetFirst() noexcept
Precondition
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
GetFirst¶
LUDUS_INLINE const ElementType & ludus::foundation::core::FixedArray< ElementType, Count >::GetFirst() const noexcept
Precondition
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
GetLast¶
LUDUS_INLINE ElementType & ludus::foundation::core::FixedArray< ElementType, Count >::GetLast() noexcept
Precondition
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
GetLast¶
LUDUS_INLINE const ElementType & ludus::foundation::core::FixedArray< ElementType, Count >::GetLast() const noexcept
Precondition
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
begin¶
LUDUS_INLINE Iterator ludus::foundation::core::FixedArray< ElementType, Count >::begin() noexcept
Related types: Iterator
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
begin¶
LUDUS_INLINE ConstIterator ludus::foundation::core::FixedArray< ElementType, Count >::begin() const noexcept
Related types: ConstIterator
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
cbegin¶
LUDUS_INLINE ConstIterator ludus::foundation::core::FixedArray< ElementType, Count >::cbegin() const noexcept
Related types: ConstIterator
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
end¶
LUDUS_INLINE Iterator ludus::foundation::core::FixedArray< ElementType, Count >::end() noexcept
Related types: Iterator
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
end¶
LUDUS_INLINE ConstIterator ludus::foundation::core::FixedArray< ElementType, Count >::end() const noexcept
Related types: ConstIterator
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
cend¶
LUDUS_INLINE ConstIterator ludus::foundation::core::FixedArray< ElementType, Count >::cend() const noexcept
Related types: ConstIterator
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
data¶
LUDUS_INLINE ElementType * ludus::foundation::core::FixedArray< ElementType, Count >::data() noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
data¶
LUDUS_INLINE const ElementType * ludus::foundation::core::FixedArray< ElementType, Count >::data() const noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
size¶
LUDUS_INLINE usize ludus::foundation::core::FixedArray< ElementType, Count >::size() const noexcept
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
TryAdd¶
bool ludus::foundation::core::FixedArray< ElementType, Count >::TryAdd(const ElementType &value)
value unless the array is full. value may refer to an element of this array. Returns
value are unchanged. Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
TryAdd¶
bool ludus::foundation::core::FixedArray< ElementType, Count >::TryAdd(ElementType &&value)
value unless the array is full. Returns
value is not moved from. Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
TryAddInPlace¶
template <typename... Args>
ElementType * ludus::foundation::core::FixedArray< ElementType, Count >::TryAddInPlace(Args &&... args)
args unless the array is full. args may refer to elements of this array. Returns
args untouched. Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
TryAddRange¶
bool ludus::foundation::core::FixedArray< ElementType, Count >::TryAddRange(std::span< const ElementType > items)
items, or none of them. Precondition
items does not overlap this array's storage (asserted). Returns
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
TryInsertAt¶
ElementType * ludus::foundation::core::FixedArray< ElementType, Count >::TryInsertAt(usize index, const ElementType &value)
value at index, shifting later elements, unless the array is full. Precondition
value may refer to an element of this array. Returns
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
TryInsertAt¶
ElementType * ludus::foundation::core::FixedArray< ElementType, Count >::TryInsertAt(usize index, ElementType &&value)
value into index, shifting later elements, unless the array is full. Precondition
Returns
value not moved from. Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
TryInsertAtInPlace¶
template <typename... Args>
ElementType * ludus::foundation::core::FixedArray< ElementType, Count >::TryInsertAtInPlace(usize index, Args &&... args)
args at index, shifting later elements. args may refer to elements of this array. Invalidates borrows at and after index. Precondition
Returns
args untouched. Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
RemoveLast¶
void ludus::foundation::core::FixedArray< ElementType, Count >::RemoveLast() noexcept
Precondition
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
RemoveAt¶
void ludus::foundation::core::FixedArray< ElementType, Count >::RemoveAt(usize index) noexcept
index; later elements shift left. O(n). index. Precondition
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
RemoveAtSwap¶
void ludus::foundation::core::FixedArray< ElementType, Count >::RemoveAtSwap(usize index) noexcept
index; order is not preserved. Precondition
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
Clear¶
void ludus::foundation::core::FixedArray< ElementType, Count >::Clear() noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
operator std::span\< ElementType >¶
ludus::foundation::core::FixedArray< ElementType, Count >::operator std::span< ElementType >() noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
operator std::span\< const ElementType >¶
ludus::foundation::core::FixedArray< ElementType, Count >::operator std::span< const ElementType >() const noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
AsSpan¶
std::span< ElementType > ludus::foundation::core::FixedArray< ElementType, Count >::AsSpan() noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
AsSpan¶
std::span< const ElementType > ludus::foundation::core::FixedArray< ElementType, Count >::AsSpan() const noexcept
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
Static methods¶
GetCapacity¶
static LUDUS_INLINE constexpr usize ludus::foundation::core::FixedArray< ElementType, Count >::GetCapacity() noexcept
Related types: usize
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp
Members¶
operator==¶
bool operator==(const FixedArray &left, const FixedArray &right)
Related types: FixedArray
Declared in modules/foundation/containers/include/ludus/foundation/containers/fixed_array.hpp