|
rapidyaml
0.12.0
parse and emit YAML, and do it fast
|
a string collection used by the event handler. More...
#include <string.hpp>
Public Types | |
| enum | : id_type { sso_size = RYML_STRING_LIST_SSO_SIZE } |
Public Member Functions | |
| string_vector () | |
| ~string_vector () noexcept | |
| string_vector (string_vector const &that) RYML_NOEXCEPT | |
| string_vector (string_vector &&that) noexcept | |
| string_vector & | operator= (string_vector const &that) RYML_NOEXCEPT |
| string_vector & | operator= (string_vector &&that) noexcept |
| void | _free () |
| id_type | size () const noexcept |
| id_type | capacity () const noexcept |
| void | clear () |
| void | resize (id_type sz) |
| void | reserve (id_type sz) |
| string & | emplace_back () |
| string & | operator[] (id_type i) |
| string const & | operator[] (id_type i) const |
Public Attributes | |
| union { | |
| string m_buf [sso_size] | |
| char m_buf_bytes [sso_size *sizeof(string)] | |
| }; | |
| string * | m_arr |
| id_type | m_size |
| id_type | m_capacity |
a string collection used by the event handler.
using this instead of std::vector spares the dependency on the standard library.
Definition at line 268 of file string.hpp.
| anonymous enum : id_type |
| Enumerator | |
|---|---|
| sso_size | |
Definition at line 270 of file string.hpp.
|
inline |
Definition at line 281 of file string.hpp.
|
inlinenoexcept |
Definition at line 286 of file string.hpp.
References _free().
|
inline |
Definition at line 291 of file string.hpp.
|
inlinenoexcept |
Definition at line 299 of file string.hpp.
|
inline |
|
inlinenoexcept |
Definition at line 318 of file string.hpp.
|
inline |
Definition at line 329 of file string.hpp.
References c4::yml::get_callbacks(), m_arr, m_buf, m_capacity, m_size, and sso_size.
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
Definition at line 354 of file string.hpp.
|
inline |
Definition at line 370 of file string.hpp.
References c4::yml::get_callbacks(), m_arr, m_buf, m_capacity, m_size, c4::yml::extra::string::sso_size, and sso_size.
|
inline |
Definition at line 272 of file string.hpp.
Definition at line 273 of file string.hpp.
| union { ... } |
| string* c4::yml::extra::string_vector::m_arr |
Definition at line 275 of file string.hpp.
| id_type c4::yml::extra::string_vector::m_size |
Definition at line 276 of file string.hpp.
| id_type c4::yml::extra::string_vector::m_capacity |
Definition at line 277 of file string.hpp.