Rosetta
|
#include <core.h>
Public Types | |
using | value_type = T |
using | const_reference = const T & |
Public Member Functions | |
buffer (const buffer &)=delete | |
void | operator= (const buffer &)=delete |
T * | begin () FMT_NOEXCEPT |
T * | end () FMT_NOEXCEPT |
const T * | begin () const FMT_NOEXCEPT |
const T * | end () const FMT_NOEXCEPT |
size_t | size () const FMT_NOEXCEPT |
size_t | capacity () const FMT_NOEXCEPT |
T * | data () FMT_NOEXCEPT |
const T * | data () const FMT_NOEXCEPT |
void | clear () |
void | try_resize (size_t count) |
void | try_reserve (size_t new_capacity) |
void | push_back (const T &value) |
template<typename U > | |
void | append (const U *begin, const U *end) |
template<typename I > | |
T & | operator[] (I index) |
template<typename I > | |
const T & | operator[] (I index) const |
Protected Member Functions | |
buffer (size_t sz) FMT_NOEXCEPT | |
buffer (T *p=nullptr, size_t sz=0, size_t cap=0) FMT_NOEXCEPT | |
~buffer ()=default | |
void | set (T *buf_data, size_t buf_capacity) FMT_NOEXCEPT |
virtual void | grow (size_t capacity)=0 |
Private Attributes | |
T * | ptr_ |
size_t | size_ |
size_t | capacity_ |
\rst A contiguous memory buffer with an optional growing ability. It is an internal class and shouldn't be used directly, only via ~fmtbasic_memory_buffer
. \endrst
using detail::buffer< T >::const_reference = const T& |
using detail::buffer< T >::value_type = T |
|
inlineprotected |
Referenced by job_manager.CommandRunner::dump(), and job_manager.CommandRunner::poll().
|
inlineprotected |
Referenced by job_manager.CommandRunner::dump(), and job_manager.CommandRunner::poll().
|
protecteddefault |
|
delete |
Referenced by job_manager.CommandRunner::dump(), and job_manager.CommandRunner::poll().
void detail::buffer< T >::append | ( | const U * | begin, |
const U * | end | ||
) |
Appends data to the end of the buffer.
References begin, detail::count(), end, detail::make_checked(), and detail::to_unsigned().
Referenced by detail::reset_color(), and detail::formatbuf< Char >::xsputn().
|
inline |
References detail::buffer< T >::ptr_.
|
inline |
|
inline |
Returns the capacity of this buffer.
References detail::buffer< T >::capacity_.
Referenced by basic_memory_buffer< T, SIZE, Allocator >::deallocate(), detail::iterator_buffer< std::back_insert_iterator< Container >, enable_if_t< is_contiguous< Container >::value, typename Container::value_type > >::grow(), basic_memory_buffer< T, SIZE, Allocator >::move(), and detail::bigint::~bigint().
|
inline |
Clears this buffer.
References detail::buffer< T >::size_.
Referenced by pyrosetta.bindings.pose.ResidueLabelAccessor::discard().
|
inline |
Returns a pointer to the buffer data.
References detail::buffer< T >::ptr_.
|
inline |
Returns a pointer to the buffer data.
References detail::buffer< T >::ptr_.
Referenced by detail::bigint::align(), detail::bigint::assign(), basic_memory_buffer< T, SIZE, Allocator >::deallocate(), detail::fallback_formatter< T, Char, enable_if_t< is_streamable< T, Char >::value > >::format(), basic_memory_buffer< T, SIZE, Allocator >::move(), detail::int_writer< OutputIt, Char, UInt >::on_num(), detail::report_error(), vfprintf(), and vprint().
|
inline |
References detail::buffer< T >::ptr_, and detail::buffer< T >::size_.
|
inline |
|
protectedpure virtual |
Increases the buffer capacity to hold at least capacity elements.
Implemented in detail::counting_buffer< T >, detail::iterator_buffer< T *, T >, detail::iterator_buffer< OutputIt, T, Traits >, basic_memory_buffer< T, SIZE, Allocator >, basic_memory_buffer< bigit, bigits_capacity >, basic_memory_buffer< Char >, basic_memory_buffer< wchar_t >, and detail::iterator_buffer< std::back_insert_iterator< Container >, enable_if_t< is_contiguous< Container >::value, typename Container::value_type > >.
Referenced by detail::buffer< T >::try_reserve().
|
delete |
References detail::buffer< T >::ptr_.
|
inline |
References detail::buffer< T >::ptr_.
|
inline |
|
inlineprotected |
Sets the buffer data and capacity.
References detail::buffer< T >::capacity_, and detail::buffer< T >::ptr_.
Referenced by basic_memory_buffer< T, SIZE, Allocator >::basic_memory_buffer(), detail::iterator_buffer< std::back_insert_iterator< Container >, enable_if_t< is_contiguous< Container >::value, typename Container::value_type > >::grow(), and basic_memory_buffer< T, SIZE, Allocator >::move().
|
inline |
Returns the size of this buffer.
References detail::buffer< T >::size_.
Referenced by detail::bigint::align(), detail::bigint::assign(), detail::iterator_buffer< OutputIt, T, Traits >::count(), detail::bigint::divmod_assign(), detail::fallback_formatter< T, Char, enable_if_t< is_streamable< T, Char >::value > >::format(), detail::iterator_buffer< OutputIt, T, Traits >::grow(), basic_memory_buffer< T, SIZE, Allocator >::move(), detail::bigint::multiply(), detail::bigint::num_bigits(), detail::bigint::operator<<=(), detail::bigint::remove_leading_zeros(), detail::report_error(), detail::utf8_to_utf16::size(), detail::bigint::square(), detail::bigint::subtract_aligned(), vfprintf(), and vprint().
|
inline |
|
inline |
|
private |
|
private |
|
private |