GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::BitBufferBase< Allocator > Class Template Reference

#include <GREM/core/data/BitBuffer.hpp>

Classes

class  reference
struct  pointer
struct  const_pointer

Public Types

using value_type = bool
using allocator_type = Allocator
using size_type = typename std::allocator_traits<IntegerAllocator>::size_type
using difference_type = typename std::allocator_traits<IntegerAllocator>::difference_type
using const_reference = bool
using iterator = Iterator<false>
using const_iterator = Iterator<true>
using reverse_iterator = std::reverse_iterator<iterator>
using const_reverse_iterator = std::reverse_iterator<const_iterator>

Public Member Functions

constexpr BitBufferBase () noexcept=default
constexpr BitBufferBase (const Allocator &allocator) noexcept
constexpr BitBufferBase (size_type count, bool value, const Allocator &allocator=Allocator())
constexpr BitBufferBase (size_type count, const Allocator &allocator=Allocator())
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
constexpr BitBufferBase (InputIterator first, Sentinel last, const Allocator &allocator=Allocator())
constexpr BitBufferBase (std::initializer_list< bool > ilist, const Allocator &allocator=Allocator())
constexpr ~BitBufferBase ()
constexpr BitBufferBase (const BitBufferBase &other)
constexpr BitBufferBase (const BitBufferBase &other, const Allocator &allocator)
constexpr BitBufferBase (BitBufferBase &&other) noexcept
constexpr BitBufferBase (BitBufferBase &&other, const Allocator &allocator) noexcept
constexpr BitBufferBase & operator= (const BitBufferBase &other)
constexpr BitBufferBase & operator= (BitBufferBase &&other) noexcept(std::allocator_traits< Allocator >::propagate_on_container_move_assignment::value||//NOLINT(cppcoreguidelines-noexcept-move-operations, performance-noexcept-move-constructor) std::allocator_traits< Allocator >::is_always_equal::value)
constexpr BitBufferBase & operator= (std::initializer_list< bool > ilist) noexcept
constexpr void assign (size_type count, bool value)
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
constexpr void assign (InputIterator first, Sentinel last)
constexpr void assign (std::initializer_list< bool > ilist)
template<typename R>
constexpr void assign_range (R &&r)
allocator_type get_allocator () const noexcept
constexpr reference at (size_type pos)
constexpr const_reference at (size_type pos) const
constexpr reference operator[] (size_type pos)
constexpr const_reference operator[] (size_type pos) const
constexpr reference front ()
constexpr const_reference front () const
constexpr reference back ()
constexpr const_reference back () const
constexpr iterator begin () noexcept
constexpr const_iterator begin () const noexcept
constexpr const_iterator cbegin () const noexcept
constexpr iterator end () noexcept
constexpr const_iterator end () const noexcept
constexpr const_iterator cend () const noexcept
constexpr reverse_iterator rbegin () noexcept
constexpr const_reverse_iterator rbegin () const noexcept
constexpr const_reverse_iterator crbegin () const noexcept
constexpr reverse_iterator rend () noexcept
constexpr const_reverse_iterator rend () const noexcept
constexpr const_reverse_iterator crend () const noexcept
constexpr bool empty () const noexcept
constexpr size_type size () const noexcept
constexpr size_type max_size () const noexcept
constexpr void reserve (size_type newCapacity)
constexpr size_type capacity () const noexcept
constexpr void shrink_to_fit ()
constexpr void clear () noexcept
constexpr iterator insert (const_iterator pos, bool value)
constexpr iterator insert (const_iterator pos, size_type count, bool value)
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
constexpr iterator insert (const_iterator pos, InputIterator first, Sentinel last)
constexpr iterator insert (const_iterator pos, std::initializer_list< bool > ilist)
template<typename R>
constexpr iterator insert_range (const_iterator pos, R &&r)
template<typename R>
constexpr void append_range (R &&r)
template<typename... Args>
constexpr iterator emplace (const_iterator pos, Args &&... args)
constexpr iterator erase (const_iterator pos)
constexpr iterator erase (const_iterator first, const_iterator last)
constexpr void push_back (bool value)
template<typename... Args>
constexpr reference emplace_back (Args &&... args)
constexpr void pop_back ()
constexpr void resize (size_type count)
constexpr void resize (size_type count, bool value)
constexpr void swap (BitBufferBase &other) noexcept(std::allocator_traits< Allocator >::propagate_on_container_swap::value||//NOLINT(cppcoreguidelines-noexcept-swap, performance-noexcept-swap) std::allocator_traits< Allocator >::is_always_equal::value)
bool operator== (const BitBufferBase &other) const
bool operator< (const BitBufferBase &other) const
bool operator<= (const BitBufferBase &other) const
bool operator> (const BitBufferBase &other) const
bool operator>= (const BitBufferBase &other) const

Friends

constexpr void swap (BitBufferBase &a, BitBufferBase &b) noexcept
size_type erase (BitBufferBase &c, bool value)
template<typename Predicate>
size_type erase_if (BitBufferBase &c, Predicate predicate)

Member Typedef Documentation

◆ value_type

template<typename Allocator = std::allocator<bool>>
using grem::BitBufferBase< Allocator >::value_type = bool

◆ allocator_type

template<typename Allocator = std::allocator<bool>>
using grem::BitBufferBase< Allocator >::allocator_type = Allocator

◆ size_type

template<typename Allocator = std::allocator<bool>>
using grem::BitBufferBase< Allocator >::size_type = typename std::allocator_traits<IntegerAllocator>::size_type

◆ difference_type

template<typename Allocator = std::allocator<bool>>
using grem::BitBufferBase< Allocator >::difference_type = typename std::allocator_traits<IntegerAllocator>::difference_type

◆ const_reference

template<typename Allocator = std::allocator<bool>>
using grem::BitBufferBase< Allocator >::const_reference = bool

◆ iterator

template<typename Allocator = std::allocator<bool>>
using grem::BitBufferBase< Allocator >::iterator = Iterator<false>

◆ const_iterator

template<typename Allocator = std::allocator<bool>>
using grem::BitBufferBase< Allocator >::const_iterator = Iterator<true>

◆ reverse_iterator

template<typename Allocator = std::allocator<bool>>
using grem::BitBufferBase< Allocator >::reverse_iterator = std::reverse_iterator<iterator>

◆ const_reverse_iterator

template<typename Allocator = std::allocator<bool>>
using grem::BitBufferBase< Allocator >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Constructor & Destructor Documentation

◆ BitBufferBase() [1/10]

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::BitBufferBase ( )
constexprdefaultnoexcept

◆ BitBufferBase() [2/10]

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::BitBufferBase ( const Allocator & allocator)
inlineexplicitconstexprnoexcept

◆ BitBufferBase() [3/10]

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::BitBufferBase ( size_type count,
bool value,
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ BitBufferBase() [4/10]

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::BitBufferBase ( size_type count,
const Allocator & allocator = Allocator() )
inlineexplicitconstexpr

◆ BitBufferBase() [5/10]

template<typename Allocator = std::allocator<bool>>
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
grem::BitBufferBase< Allocator >::BitBufferBase ( InputIterator first,
Sentinel last,
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ BitBufferBase() [6/10]

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::BitBufferBase ( std::initializer_list< bool > ilist,
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ ~BitBufferBase()

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::~BitBufferBase ( )
inlineconstexpr

◆ BitBufferBase() [7/10]

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::BitBufferBase ( const BitBufferBase< Allocator > & other)
inlineconstexpr

◆ BitBufferBase() [8/10]

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::BitBufferBase ( const BitBufferBase< Allocator > & other,
const Allocator & allocator )
inlineconstexpr

◆ BitBufferBase() [9/10]

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::BitBufferBase ( BitBufferBase< Allocator > && other)
inlineconstexprnoexcept

◆ BitBufferBase() [10/10]

template<typename Allocator = std::allocator<bool>>
grem::BitBufferBase< Allocator >::BitBufferBase ( BitBufferBase< Allocator > && other,
const Allocator & allocator )
inlineconstexprnoexcept

Member Function Documentation

◆ operator=() [1/3]

template<typename Allocator = std::allocator<bool>>
BitBufferBase & grem::BitBufferBase< Allocator >::operator= ( const BitBufferBase< Allocator > & other)
inlineconstexpr

◆ operator=() [2/3]

template<typename Allocator = std::allocator<bool>>
BitBufferBase & grem::BitBufferBase< Allocator >::operator= ( BitBufferBase< Allocator > && other)
inlineconstexprnoexcept

◆ operator=() [3/3]

template<typename Allocator = std::allocator<bool>>
BitBufferBase & grem::BitBufferBase< Allocator >::operator= ( std::initializer_list< bool > ilist)
inlineconstexprnoexcept

◆ assign() [1/3]

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::assign ( size_type count,
bool value )
inlineconstexpr

◆ assign() [2/3]

template<typename Allocator = std::allocator<bool>>
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
void grem::BitBufferBase< Allocator >::assign ( InputIterator first,
Sentinel last )
inlineconstexpr

◆ assign() [3/3]

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::assign ( std::initializer_list< bool > ilist)
inlineconstexpr

◆ assign_range()

template<typename Allocator = std::allocator<bool>>
template<typename R>
void grem::BitBufferBase< Allocator >::assign_range ( R && r)
inlineconstexpr

◆ get_allocator()

template<typename Allocator = std::allocator<bool>>
allocator_type grem::BitBufferBase< Allocator >::get_allocator ( ) const
inlinenodiscardnoexcept

◆ at() [1/2]

template<typename Allocator = std::allocator<bool>>
reference grem::BitBufferBase< Allocator >::at ( size_type pos)
inlinenodiscardconstexpr

◆ at() [2/2]

template<typename Allocator = std::allocator<bool>>
const_reference grem::BitBufferBase< Allocator >::at ( size_type pos) const
inlinenodiscardconstexpr

◆ operator[]() [1/2]

template<typename Allocator = std::allocator<bool>>
reference grem::BitBufferBase< Allocator >::operator[] ( size_type pos)
inlinenodiscardconstexpr

◆ operator[]() [2/2]

template<typename Allocator = std::allocator<bool>>
const_reference grem::BitBufferBase< Allocator >::operator[] ( size_type pos) const
inlinenodiscardconstexpr

◆ front() [1/2]

template<typename Allocator = std::allocator<bool>>
reference grem::BitBufferBase< Allocator >::front ( )
inlinenodiscardconstexpr

◆ front() [2/2]

template<typename Allocator = std::allocator<bool>>
const_reference grem::BitBufferBase< Allocator >::front ( ) const
inlinenodiscardconstexpr

◆ back() [1/2]

template<typename Allocator = std::allocator<bool>>
reference grem::BitBufferBase< Allocator >::back ( )
inlinenodiscardconstexpr

◆ back() [2/2]

template<typename Allocator = std::allocator<bool>>
const_reference grem::BitBufferBase< Allocator >::back ( ) const
inlinenodiscardconstexpr

◆ begin() [1/2]

template<typename Allocator = std::allocator<bool>>
iterator grem::BitBufferBase< Allocator >::begin ( )
inlinenodiscardconstexprnoexcept

◆ begin() [2/2]

template<typename Allocator = std::allocator<bool>>
const_iterator grem::BitBufferBase< Allocator >::begin ( ) const
inlinenodiscardconstexprnoexcept

◆ cbegin()

template<typename Allocator = std::allocator<bool>>
const_iterator grem::BitBufferBase< Allocator >::cbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ end() [1/2]

template<typename Allocator = std::allocator<bool>>
iterator grem::BitBufferBase< Allocator >::end ( )
inlinenodiscardconstexprnoexcept

◆ end() [2/2]

template<typename Allocator = std::allocator<bool>>
const_iterator grem::BitBufferBase< Allocator >::end ( ) const
inlinenodiscardconstexprnoexcept

◆ cend()

template<typename Allocator = std::allocator<bool>>
const_iterator grem::BitBufferBase< Allocator >::cend ( ) const
inlinenodiscardconstexprnoexcept

◆ rbegin() [1/2]

template<typename Allocator = std::allocator<bool>>
reverse_iterator grem::BitBufferBase< Allocator >::rbegin ( )
inlinenodiscardconstexprnoexcept

◆ rbegin() [2/2]

template<typename Allocator = std::allocator<bool>>
const_reverse_iterator grem::BitBufferBase< Allocator >::rbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ crbegin()

template<typename Allocator = std::allocator<bool>>
const_reverse_iterator grem::BitBufferBase< Allocator >::crbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ rend() [1/2]

template<typename Allocator = std::allocator<bool>>
reverse_iterator grem::BitBufferBase< Allocator >::rend ( )
inlinenodiscardconstexprnoexcept

◆ rend() [2/2]

template<typename Allocator = std::allocator<bool>>
const_reverse_iterator grem::BitBufferBase< Allocator >::rend ( ) const
inlinenodiscardconstexprnoexcept

◆ crend()

template<typename Allocator = std::allocator<bool>>
const_reverse_iterator grem::BitBufferBase< Allocator >::crend ( ) const
inlinenodiscardconstexprnoexcept

◆ empty()

template<typename Allocator = std::allocator<bool>>
bool grem::BitBufferBase< Allocator >::empty ( ) const
inlinenodiscardconstexprnoexcept

◆ size()

template<typename Allocator = std::allocator<bool>>
size_type grem::BitBufferBase< Allocator >::size ( ) const
inlinenodiscardconstexprnoexcept

◆ max_size()

template<typename Allocator = std::allocator<bool>>
size_type grem::BitBufferBase< Allocator >::max_size ( ) const
inlinenodiscardconstexprnoexcept

◆ reserve()

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::reserve ( size_type newCapacity)
inlineconstexpr

◆ capacity()

template<typename Allocator = std::allocator<bool>>
size_type grem::BitBufferBase< Allocator >::capacity ( ) const
inlinenodiscardconstexprnoexcept

◆ shrink_to_fit()

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::shrink_to_fit ( )
inlineconstexpr

◆ clear()

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::clear ( )
inlineconstexprnoexcept

◆ insert() [1/4]

template<typename Allocator = std::allocator<bool>>
iterator grem::BitBufferBase< Allocator >::insert ( const_iterator pos,
bool value )
inlineconstexpr

◆ insert() [2/4]

template<typename Allocator = std::allocator<bool>>
iterator grem::BitBufferBase< Allocator >::insert ( const_iterator pos,
size_type count,
bool value )
inlineconstexpr

◆ insert() [3/4]

template<typename Allocator = std::allocator<bool>>
template<std::input_iterator InputIterator, std::sentinel_for< InputIterator > Sentinel>
iterator grem::BitBufferBase< Allocator >::insert ( const_iterator pos,
InputIterator first,
Sentinel last )
inlineconstexpr

◆ insert() [4/4]

template<typename Allocator = std::allocator<bool>>
iterator grem::BitBufferBase< Allocator >::insert ( const_iterator pos,
std::initializer_list< bool > ilist )
inlineconstexpr

◆ insert_range()

template<typename Allocator = std::allocator<bool>>
template<typename R>
iterator grem::BitBufferBase< Allocator >::insert_range ( const_iterator pos,
R && r )
inlineconstexpr

◆ append_range()

template<typename Allocator = std::allocator<bool>>
template<typename R>
void grem::BitBufferBase< Allocator >::append_range ( R && r)
inlineconstexpr

◆ emplace()

template<typename Allocator = std::allocator<bool>>
template<typename... Args>
iterator grem::BitBufferBase< Allocator >::emplace ( const_iterator pos,
Args &&... args )
inlineconstexpr

◆ erase() [1/2]

template<typename Allocator = std::allocator<bool>>
iterator grem::BitBufferBase< Allocator >::erase ( const_iterator pos)
inlineconstexpr

◆ erase() [2/2]

template<typename Allocator = std::allocator<bool>>
iterator grem::BitBufferBase< Allocator >::erase ( const_iterator first,
const_iterator last )
inlineconstexpr

◆ push_back()

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::push_back ( bool value)
inlineconstexpr

◆ emplace_back()

template<typename Allocator = std::allocator<bool>>
template<typename... Args>
reference grem::BitBufferBase< Allocator >::emplace_back ( Args &&... args)
inlineconstexpr

◆ pop_back()

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::pop_back ( )
inlineconstexpr

◆ resize() [1/2]

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::resize ( size_type count)
inlineconstexpr

◆ resize() [2/2]

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::resize ( size_type count,
bool value )
inlineconstexpr

◆ swap()

template<typename Allocator = std::allocator<bool>>
void grem::BitBufferBase< Allocator >::swap ( BitBufferBase< Allocator > & other)
inlineconstexprnoexcept

◆ operator==()

template<typename Allocator = std::allocator<bool>>
bool grem::BitBufferBase< Allocator >::operator== ( const BitBufferBase< Allocator > & other) const
inlinenodiscard

◆ operator<()

template<typename Allocator = std::allocator<bool>>
bool grem::BitBufferBase< Allocator >::operator< ( const BitBufferBase< Allocator > & other) const
inlinenodiscard

◆ operator<=()

template<typename Allocator = std::allocator<bool>>
bool grem::BitBufferBase< Allocator >::operator<= ( const BitBufferBase< Allocator > & other) const
inlinenodiscard

◆ operator>()

template<typename Allocator = std::allocator<bool>>
bool grem::BitBufferBase< Allocator >::operator> ( const BitBufferBase< Allocator > & other) const
inlinenodiscard

◆ operator>=()

template<typename Allocator = std::allocator<bool>>
bool grem::BitBufferBase< Allocator >::operator>= ( const BitBufferBase< Allocator > & other) const
inlinenodiscard

◆ swap

template<typename Allocator = std::allocator<bool>>
void swap ( BitBufferBase< Allocator > & a,
BitBufferBase< Allocator > & b )
friend

◆ erase

template<typename Allocator = std::allocator<bool>>
size_type erase ( BitBufferBase< Allocator > & c,
bool value )
friend

◆ erase_if

template<typename Allocator = std::allocator<bool>>
template<typename Predicate>
size_type erase_if ( BitBufferBase< Allocator > & c,
Predicate predicate )
friend

The documentation for this class was generated from the following file: