Loading...
Searching...
No Matches
Public Types |
Public Member Functions |
Protected Member Functions |
Private Attributes |
List of all members
buffer< T > Class Template Referenceabstract
Inheritance diagram for buffer< T >:
![]()
Detailed Descriptiontemplate<typename T> class internal::buffer< T > A contiguous memory buffer with an optional growing ability. Member Typedef Documentation◆ const_reference
template<typename T >
◆ value_type
template<typename T >
Constructor & Destructor Documentation◆ buffer() [1/3]◆ buffer() [2/3]
template<typename T >
◆ buffer() [3/3]◆ ~buffer()
template<typename T >
Member Function Documentation◆ append()
template<typename T >
template<typename U >
Appends data to the end of the buffer. Definition at line 527 of file format.h. References internal::make_checked(), internal::reserve(), and internal::to_unsigned(). Referenced by test_stream< Char >::operator<<(), internal::reset_color(), and internal::vformat_to(). ◆ begin()
template<typename T >
Definition at line 603 of file core.h. References buffer< T >::ptr_. Referenced by formatter< std::tm, Char >::format(). ◆ capacity()
template<typename T >
Returns the capacity of this buffer. Definition at line 610 of file core.h. References buffer< T >::capacity_. Referenced by basic_memory_buffer< T, SIZE, Allocator >::deallocate(), formatter< std::tm, Char >::format(), basic_memory_buffer< T, SIZE, Allocator >::move(), internal::snprintf_float(), and bigint::~bigint(). ◆ clear()
template<typename T >
◆ data() [1/2]
template<typename T >
Returns a pointer to the buffer data. Definition at line 616 of file core.h. References buffer< T >::ptr_. ◆ data() [2/2]
template<typename T >
Returns a pointer to the buffer data. Definition at line 613 of file core.h. References buffer< T >::ptr_. Referenced by bigint::assign(), basic_memory_buffer< T, SIZE, Allocator >::deallocate(), bigint::divmod_assign(), internal::fallback_format(), formatter< std::chrono::duration< Rep, Period >, Char >::format(), fallback_formatter< T, Char, enable_if_t< is_streamable< T, Char >::value > >::format(), internal::format_float(), basic_memory_buffer< T, SIZE, Allocator >::move(), internal::report_error(), internal::snprintf_float(), to_string(), vfprintf(), vprint(), vprint(), vprint(), and internal::write(). ◆ end()
template<typename T >
Definition at line 604 of file core.h. References buffer< T >::ptr_, and buffer< T >::size_. Referenced by formatter< std::tm, Char >::format(). ◆ grow()
template<typename T >
Increases the buffer capacity to hold at least capacity elements. Implemented in container_buffer< Container >, basic_memory_buffer< T, SIZE, Allocator >, basic_memory_buffer< bigit, bigits_capacity >, and basic_memory_buffer< Char >. Referenced by buffer< T >::reserve(). ◆ operator=()
template<typename T >
◆ operator[]() [1/2]
template<typename T >
Definition at line 642 of file core.h. References internal::index, and buffer< T >::ptr_. ◆ operator[]() [2/2]
template<typename T >
Definition at line 643 of file core.h. References internal::index, and buffer< T >::ptr_. ◆ push_back()
template<typename T >
Definition at line 634 of file core.h. References buffer< T >::ptr_, buffer< T >::reserve(), and buffer< T >::size_. Referenced by internal::format_float(), bigint::multiply(), bigint::multiply(), bigint::operator<<=(), formatbuf< Char >::overflow(), vprint(), and vprint(). ◆ reserve()
template<typename T >
Reserves space to store at least capacity elements. Definition at line 630 of file core.h. References buffer< T >::capacity_, and buffer< T >::grow(). Referenced by formatter< std::tm, Char >::format(), buffer< T >::push_back(), buffer< T >::resize(), and internal::snprintf_float(). ◆ resize()
template<typename T >
Resizes the buffer. If T is a POD type new elements may not be initialized. Definition at line 621 of file core.h. References buffer< T >::reserve(), and buffer< T >::size_. Referenced by bigint::assign(), bigint::assign(), bigint::divmod_assign(), internal::fallback_format(), formatter< std::tm, Char >::format(), internal::format_float(), format_system_error(), internal::format_value(), basic_memory_buffer< T, SIZE, Allocator >::move(), bigint::remove_leading_zeros(), internal::snprintf_float(), and bigint::square(). ◆ set()
template<typename T >
Sets the buffer data and capacity. Definition at line 587 of file core.h. References buffer< T >::capacity_, and buffer< T >::ptr_. Referenced by basic_memory_buffer< T, SIZE, Allocator >::basic_memory_buffer(), and basic_memory_buffer< T, SIZE, Allocator >::move(). ◆ size()
template<typename T >
Returns the size of this buffer. Definition at line 607 of file core.h. References buffer< T >::size_. Referenced by bigint::assign(), bigint::divmod_assign(), formatter< std::chrono::duration< Rep, Period >, Char >::format(), formatter< internal::bigint >::format(), formatter< std::tm, Char >::format(), fallback_formatter< T, Char, enable_if_t< is_streamable< T, Char >::value > >::format(), format_system_error(), internal::format_value(), basic_memory_buffer< T, SIZE, Allocator >::move(), bigint::multiply(), bigint::multiply(), bigint::num_bigits(), bigint::operator<<=(), bigint::remove_leading_zeros(), internal::report_error(), internal::snprintf_float(), bigint::square(), bigint::subtract_aligned(), to_string(), vfprintf(), vfprintf(), vprint(), and internal::write(). Member Data Documentation◆ capacity_
template<typename T >
Definition at line 575 of file core.h. Referenced by buffer< T >::capacity(), buffer< T >::reserve(), and buffer< T >::set(). ◆ ptr_
template<typename T >
Definition at line 573 of file core.h. Referenced by buffer< T >::begin(), buffer< T >::data(), buffer< T >::data(), buffer< T >::end(), buffer< T >::operator[](), buffer< T >::operator[](), buffer< T >::push_back(), and buffer< T >::set(). ◆ size_
template<typename T >
Definition at line 574 of file core.h. Referenced by buffer< T >::clear(), buffer< T >::end(), buffer< T >::push_back(), buffer< T >::resize(), and buffer< T >::size().
|