quill
Public Member Functions | Public Attributes | List of all members
detail::container_buffer< Container > Class Template Reference
Inheritance diagram for detail::container_buffer< Container >:
Inheritance graph
[legend]
Collaboration diagram for detail::container_buffer< Container >:
Collaboration graph
[legend]

Public Member Functions

 container_buffer (Container &c)
 
- Public Member Functions inherited from detail::buffer< Container::value_type >
 buffer (const buffer &)=delete
 
void operator= (const buffer &)=delete
 
auto begin () noexcept -> Container::value_type *
 
auto begin () const noexcept -> const Container::value_type *
 
auto end () noexcept -> Container::value_type *
 
auto end () const noexcept -> const Container::value_type *
 
constexpr auto size () const noexcept -> size_t
 Returns the size of this buffer.
 
constexpr auto capacity () const noexcept -> size_t
 Returns the capacity of this buffer.
 
FMTQUILL_CONSTEXPR auto data () noexcept -> Container::value_type *
 Returns a pointer to the buffer data (not null-terminated).
 
FMTQUILL_CONSTEXPR auto data () const noexcept -> const Container::value_type *
 
FMTQUILL_CONSTEXPR void clear ()
 Clears this buffer.
 
FMTQUILL_CONSTEXPR void try_resize (size_t count)
 
FMTQUILL_CONSTEXPR void try_reserve (size_t new_capacity)
 
FMTQUILL_CONSTEXPR void push_back (const Container::value_type &value)
 
FMTQUILL_CONSTEXPR20 void append (const U *begin, const U *end)
 Appends data to the end of the buffer.
 
FMTQUILL_CONSTEXPR auto operator[] (Idx index) -> Container::value_type &
 
FMTQUILL_CONSTEXPR auto operator[] (Idx index) const -> const Container::value_type &
 

Public Attributes

Container & container
 

Additional Inherited Members

- Public Types inherited from detail::buffer< Container::value_type >
using value_type = Container::value_type
 
using const_reference = const Container::value_type &
 
- Protected Types inherited from detail::buffer< Container::value_type >
using grow_fun = void(*)(buffer &buf, size_t capacity)
 
- Protected Member Functions inherited from detail::buffer< Container::value_type >
FMTQUILL_CONSTEXPR buffer (grow_fun grow, size_t sz) noexcept
 
constexpr buffer (grow_fun grow, Container::value_type *p=nullptr, size_t sz=0, size_t cap=0) noexcept
 
 buffer (buffer &&)=default
 
FMTQUILL_CONSTEXPR void set (Container::value_type *buf_data, size_t buf_capacity) noexcept
 Sets the buffer data and capacity.
 
- Protected Attributes inherited from detail::buffer< Container::value_type >
Container::value_type * ptr_
 
size_t size_
 
size_t capacity_
 
grow_fun grow_
 

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