#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 |
const char_type * | release () &&noexcept |
std::size_t | size () const noexcept |
~buffer () noexcept | |
Static Public Member Functions | |
static buffer | adopt (const char_type *data, std::size_t size, MemoryResource *resource=_detail::get_memory_resource< MemoryResource >()) |
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 95 of file buffer.hpp.
using lexy::buffer< Encoding, MemoryResource >::char_type = typename encoding::char_type |
Definition at line 103 of file buffer.hpp.
using lexy::buffer< Encoding, MemoryResource >::encoding = Encoding |
Definition at line 102 of file buffer.hpp.
|
inlineconstexprnoexcept |
Definition at line 148 of file buffer.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 150 of file buffer.hpp.
|
inlineexplicit |
Definition at line 154 of file buffer.hpp.
|
inlineexplicit |
Definition at line 162 of file buffer.hpp.
|
inlineexplicit |
Definition at line 168 of file buffer.hpp.
|
inlineexplicit |
Definition at line 175 of file buffer.hpp.
|
inlineexplicit |
Definition at line 184 of file buffer.hpp.
|
inline |
Definition at line 189 of file buffer.hpp.
|
inline |
Definition at line 190 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 194 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 201 of file buffer.hpp.
|
inlinestatic |
Definition at line 137 of file buffer.hpp.
|
inlineprivate |
Definition at line 274 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 246 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 223 of file buffer.hpp.
|
inline |
Definition at line 214 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 265 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 256 of file buffer.hpp.
|
inlinenoexcept |
Definition at line 251 of file buffer.hpp.
|
private |
Definition at line 295 of file buffer.hpp.
|
staticconstexprprivate |
Definition at line 99 of file buffer.hpp.
|
private |
Definition at line 294 of file buffer.hpp.
|
private |
Definition at line 296 of file buffer.hpp.