iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::bb::StaticString< N >::UncheckedConstAccessor Class Reference

#include <static_string.hpp>

Public Member Functions

 ~UncheckedConstAccessor ()=default
 UncheckedConstAccessor (UncheckedConstAccessor const &)=delete
 UncheckedConstAccessor (UncheckedConstAccessor &&)=default
auto operator= (UncheckedConstAccessor const &) -> UncheckedConstAccessor &=delete
auto operator= (UncheckedConstAccessor &&) -> UncheckedConstAccessor &=delete
constexpr auto operator[] (SizeType index) const -> ConstReference
constexpr auto begin () const noexcept -> ConstIterator
constexpr auto end () const noexcept -> ConstIterator
constexpr auto data () const noexcept -> ConstPointer
constexpr auto c_str () const noexcept -> char const *

Friends

class StaticString

Detailed Description

template<uint64_t N>
class iox2::bb::StaticString< N >::UncheckedConstAccessor

The unchecked API provided by this class allows for uncontrolled memory access. Users of this class must ensure that all memory accesses stay within bounds of the accessed string memory.

Definition at line 101 of file static_string.hpp.

Constructor & Destructor Documentation

◆ ~UncheckedConstAccessor()

template<uint64_t N>
iox2::bb::StaticString< N >::UncheckedConstAccessor::~UncheckedConstAccessor ( )
default

◆ UncheckedConstAccessor() [1/2]

template<uint64_t N>
iox2::bb::StaticString< N >::UncheckedConstAccessor::UncheckedConstAccessor ( UncheckedConstAccessor const & )
delete

◆ UncheckedConstAccessor() [2/2]

template<uint64_t N>
iox2::bb::StaticString< N >::UncheckedConstAccessor::UncheckedConstAccessor ( UncheckedConstAccessor && )
default

Member Function Documentation

◆ begin()

template<uint64_t N>
auto iox2::bb::StaticString< N >::UncheckedConstAccessor::begin ( ) const->ConstIterator
inlineconstexprnoexcept

Definition at line 123 of file static_string.hpp.

◆ c_str()

template<uint64_t N>
auto iox2::bb::StaticString< N >::UncheckedConstAccessor::c_str ( ) const->charconst *
inlineconstexprnoexcept

Definition at line 135 of file static_string.hpp.

References data().

◆ data()

template<uint64_t N>
auto iox2::bb::StaticString< N >::UncheckedConstAccessor::data ( ) const->ConstPointer
inlineconstexprnoexcept

Definition at line 131 of file static_string.hpp.

Referenced by c_str().

◆ end()

template<uint64_t N>
auto iox2::bb::StaticString< N >::UncheckedConstAccessor::end ( ) const->ConstIterator
inlineconstexprnoexcept

Definition at line 127 of file static_string.hpp.

◆ operator=() [1/2]

template<uint64_t N>
auto iox2::bb::StaticString< N >::UncheckedConstAccessor::operator= ( UncheckedConstAccessor && ) ->UncheckedConstAccessor &=delete
delete

◆ operator=() [2/2]

template<uint64_t N>
auto iox2::bb::StaticString< N >::UncheckedConstAccessor::operator= ( UncheckedConstAccessor const & ) ->UncheckedConstAccessor &=delete
delete

◆ operator[]()

template<uint64_t N>
auto iox2::bb::StaticString< N >::UncheckedConstAccessor::operator[] ( SizeType index) const->ConstReference
inlineconstexpr

Definition at line 119 of file static_string.hpp.

◆ StaticString

template<uint64_t N>
friend class StaticString
friend

Definition at line 102 of file static_string.hpp.

References StaticString.

Referenced by StaticString.


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