WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
|
#include <core.h>
Public Types | |
typedef T | value_type |
typedef const T & | const_reference |
Public Member Functions | |
virtual | ~basic_buffer () |
T * | begin () FMT_NOEXCEPT |
T * | end () FMT_NOEXCEPT |
std::size_t | size () const FMT_NOEXCEPT |
std::size_t | capacity () const FMT_NOEXCEPT |
T * | data () FMT_NOEXCEPT |
const T * | data () const FMT_NOEXCEPT |
void | resize (std::size_t new_size) |
void | clear () |
void | reserve (std::size_t new_capacity) |
void | push_back (const T &value) |
template<typename U > | |
void | append (const U *begin, const U *end) |
T & | operator[] (std::size_t index) |
const T & | operator[] (std::size_t index) const |
Protected Member Functions | |
basic_buffer (std::size_t sz) FMT_NOEXCEPT | |
basic_buffer (T *p=FMT_NULL, std::size_t sz=0, std::size_t cap=0) FMT_NOEXCEPT | |
void | set (T *buf_data, std::size_t buf_capacity) FMT_NOEXCEPT |
virtual void | grow (std::size_t capacity)=0 |
A contiguous memory buffer with an optional growing ability.
typedef const T& internal::basic_buffer< T >::const_reference |
typedef T internal::basic_buffer< T >::value_type |
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
void internal::basic_buffer< T >::append | ( | const U * | begin, |
const U * | end | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
Increases the buffer capacity to hold at least capacity elements.
Implemented in basic_memory_buffer< T, SIZE, Allocator >, basic_memory_buffer< Char >, and internal::container_buffer< Container >.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |