#include <buffer.hpp>
Classes | |
class | builder |
Allows the creation of an uninitialized buffer that is then filled by the user. More... | |
Public Types | |
using | char_type = typename encoding::char_type |
using | encoding = Encoding |
Public Member Functions | |
constexpr | buffer () noexcept |
buffer (buffer &&other) noexcept | |
buffer (const buffer &other) | |
buffer (const buffer &other, MemoryResource *resource) | |
buffer (const char_type *begin, const char_type *end, MemoryResource *resource=_detail::get_memory_resource< MemoryResource >()) | |
buffer (const char_type *data, std::size_t size, MemoryResource *resource=_detail::get_memory_resource< MemoryResource >()) | |
template<typename CharT , typename = _detail::require_secondary_char_type<encoding, CharT>> | |
buffer (const CharT *begin, const CharT *end, MemoryResource *resource=_detail::get_memory_resource< MemoryResource >()) | |
template<typename CharT , typename = _detail::require_secondary_char_type<encoding, CharT>> | |
buffer (const CharT *data, std::size_t size, MemoryResource *resource=_detail::get_memory_resource< MemoryResource >()) | |
template<typename View , typename = decltype(LEXY_DECLVAL(View).data())> | |
buffer (const View &view, MemoryResource *resource=_detail::get_memory_resource< MemoryResource >()) | |
constexpr | buffer (MemoryResource *resource) noexcept |
const char_type * | data () const noexcept |
buffer & | operator= (buffer &&other) noexcept(std::is_empty_v< MemoryResource >) |
buffer & | operator= (const buffer &other) |
auto | reader () const &noexcept |
std::size_t | size () const noexcept |
~buffer () noexcept | |
Private Member Functions | |
char_type * | allocate (std::size_t size) const |
Private Attributes | |
char_type * | _data |
LEXY_EMPTY_MEMBER _detail::memory_resource_ptr< MemoryResource > | _resource |
std::size_t | _size |
Static Private Attributes | |
static constexpr auto | _has_sentinel = std::is_same_v<typename Encoding::char_type, typename Encoding::int_type> |
Stores the input that will be parsed. For encodings with spare code points, it can append an EOF sentinel. This allows branch-less detection of EOF.
Definition at line 81 of file buffer.hpp.
using lexy::buffer< Encoding, MemoryResource >::char_type = typename encoding::char_type |
Definition at line 88 of file buffer.hpp.
using lexy::buffer< Encoding, MemoryResource >::encoding = Encoding |
Definition at line 87 of file buffer.hpp.
|
inlineconstexprnoexcept |
Definition at line 122 of file buffer.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 124 of file buffer.hpp.
|
inlineexplicit |
Definition at line 128 of file buffer.hpp.
|
inlineexplicit |
Definition at line 136 of file buffer.hpp.
|
inlineexplicit |
Definition at line 142 of file buffer.hpp.
|
inlineexplicit |
Definition at line 149 of file buffer.hpp.
|
inlineexplicit |
Definition at line 158 of file buffer.hpp.
|
inline |
Definition at line 163 of file buffer.hpp.
|
inline |
Definition at line 164 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 168 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 175 of file buffer.hpp.
|
inlineprivate |
Definition at line 240 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 220 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 197 of file buffer.hpp.
|
inline |
Definition at line 188 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 231 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 225 of file buffer.hpp.
|
private |
Definition at line 261 of file buffer.hpp.
|
staticconstexprprivate |
Definition at line 84 of file buffer.hpp.
|
private |
Definition at line 260 of file buffer.hpp.
|
private |
Definition at line 262 of file buffer.hpp.