#include <simple_string_storage.hpp>
template<typename E, class TAllocator>
class std::simple_string_storage< E, TAllocator >
◆ allocator_type
template<typename E, class TAllocator>
◆ const_iterator
template<typename E, class TAllocator>
◆ size_type
template<typename E, class TAllocator>
◆ value_type
template<typename E, class TAllocator>
◆ simple_string_storage() [1/5]
template<typename E, class TAllocator>
50 : m_length(0), m_allocator(allocator)
52 m_data = construct_string(0, m_capacity);
◆ simple_string_storage() [2/5]
template<typename E, class TAllocator>
55 : m_allocator(allocator)
57 const int len = strlen(
str);
58 m_data = construct_string(len, m_capacity);
static void MemCpy(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:39
std::string str(T begin, T end)
Definition: utils.hpp:39
E value_type
Definition: simple_string_storage.hpp:43
◆ simple_string_storage() [3/5]
template<typename E, class TAllocator>
64 : m_allocator(allocator)
66 m_data = construct_string(len, m_capacity);
static void MemCpy(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:39
std::string str(T begin, T end)
Definition: utils.hpp:39
E value_type
Definition: simple_string_storage.hpp:43
◆ simple_string_storage() [4/5]
template<typename E, class TAllocator>
72 : m_allocator(allocator)
74 m_data = construct_string(len, m_capacity);
◆ simple_string_storage() [5/5]
template<typename E, class TAllocator>
79 : m_data(0), m_capacity(0), m_length(0), m_allocator(allocator)
81 assign(rhs.c_str(), rhs.length());
void assign(const value_type *str, size_type len)
Definition: simple_string_storage.hpp:97
◆ ~simple_string_storage()
template<typename E, class TAllocator>
◆ append()
template<typename E, class TAllocator>
131 if (m_capacity <= newLen + 1)
134 value_type* newData = construct_string(newLen, newCapacity);
138 m_capacity = newCapacity;
int size_type
Definition: simple_string_storage.hpp:44
bool invariant() const
Definition: simple_string_storage.hpp:171
size_type length() const
Definition: simple_string_storage.hpp:151
static void MemCpy(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:39
std::string str(T begin, T end)
Definition: utils.hpp:39
E value_type
Definition: simple_string_storage.hpp:43
◆ assign()
template<typename E, class TAllocator>
100 if (m_capacity <= len + 1)
103 m_data = construct_string(len, m_capacity);
static void MemCpy(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:39
std::string str(T begin, T end)
Definition: utils.hpp:39
E value_type
Definition: simple_string_storage.hpp:43
◆ c_str()
template<typename E, class TAllocator>
◆ capacity()
template<typename E, class TAllocator>
156 {
return m_capacity; }
◆ clear()
template<typename E, class TAllocator>
161 m_data = construct_string(0, m_capacity);
◆ get_allocator()
template<typename E, class TAllocator>
165 {
return m_allocator; }
◆ get_data()
template<typename E, class TAllocator>
◆ invariant()
template<typename E, class TAllocator>
174 assert(m_length <= m_capacity);
176 assert(m_data[
length()] == 0);
size_type length() const
Definition: simple_string_storage.hpp:151
◆ length()
template<typename E, class TAllocator>
◆ make_unique()
template<typename E, class TAllocator>
◆ operator=()
template<typename E, class TAllocator>
90 if (m_data != rhs.c_str())
92 assign(rhs.c_str(), rhs.length());
void assign(const value_type *str, size_type len)
Definition: simple_string_storage.hpp:97
◆ resize()
template<typename E, class TAllocator>
113 if (m_capacity <= newLen + 1)
116 value_type* newData = construct_string(newLen, newCapacity);
120 m_capacity = newCapacity;
int size_type
Definition: simple_string_storage.hpp:44
bool invariant() const
Definition: simple_string_storage.hpp:171
size_type length() const
Definition: simple_string_storage.hpp:151
static void MemCpy(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:39
E value_type
Definition: simple_string_storage.hpp:43
◆ kGranularity
template<typename E, class TAllocator>
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: