|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
Sink that stores streamed chunks until a string is actually needed. More...
#include <StringSink.hpp>
Public Member Functions | |
| constexpr | StringSink (::mundy::tuple< Chunks... > input_chunks) |
| template<impl::SinkChunk T> | |
| constexpr auto | operator<< (T &&rhs) const |
| std::string | to_string () const |
| constexpr auto | to_string_literal () const |
Equality operators | |
| template<size_t OtherSize> | |
| constexpr bool | operator== (const char(&other)[OtherSize]) const |
| template<size_t OtherSize> | |
| bool | operator== (const char(&other)[OtherSize]) const |
| template<size_t OtherSize> | |
| constexpr bool | operator== (const StringLiteralSink< OtherSize > &other) const |
| template<size_t OtherSize> | |
| bool | operator== (const StringLiteralSink< OtherSize > &other) const |
| template<size_t OtherSize> | |
| constexpr bool | operator== (const StringLiteral< OtherSize > &other) const |
| template<size_t OtherSize> | |
| bool | operator== (const StringLiteral< OtherSize > &other) const |
| template<typename... OtherChunks> | |
| constexpr bool | operator== (const StringSink< OtherChunks... > &other) const |
| template<typename... OtherChunks> | |
| bool | operator== (const StringSink< OtherChunks... > &other) const |
| bool | operator== (const std::string &other) const |
Public Attributes | |
| ::mundy::tuple< Chunks... > | chunks |
Static Public Attributes | |
| static constexpr bool | is_compile_time = (is_our_string_literal_v<Chunks> && ...) |
StringSink is the chunked counterpart to StringLiteralSink. It stores each chunk by value and only joins them into a single std::string when to_string() or operator<< is used. If every stored chunk is a mundy::StringLiteral, it can also be collapsed to a StringLiteral at compile time.
|
inlineexplicitconstexpr |
|
constexpr |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
inline |
|
inline |
|
staticconstexpr |
| ::mundy::tuple<Chunks...> mundy::StringSink< Chunks >::chunks |