HighFive 2.10.1
HighFive - Header-only C++ HDF5 interface
|
A structure representing a set of fixed-length strings. More...
#include <H5DataType.hpp>
Public Types | |
using | iterator = typename vector_t::iterator |
using | const_iterator = typename vector_t::const_iterator |
using | reverse_iterator = typename vector_t::reverse_iterator |
using | const_reverse_iterator = typename vector_t::const_reverse_iterator |
using | value_type = typename vector_t::value_type |
Public Member Functions | |
FixedLenStringArray ()=default | |
FixedLenStringArray (const char array[][N], std::size_t n_strings) | |
Create a FixedStringArray from a raw contiguous buffer. | |
FixedLenStringArray (const std::vector< std::string > &vec) | |
Create a FixedStringArray from a sequence of strings. | |
FixedLenStringArray (const std::string *iter_begin, const std::string *iter_end) | |
FixedLenStringArray (const std::initializer_list< std::string > &) | |
void | push_back (const std::string &) |
Append an std::string to the buffer structure. | |
void | push_back (const std::array< char, N > &) |
std::string | getString (std::size_t index) const |
Retrieve a string from the structure as std::string. | |
const char * | operator[] (std::size_t i) const noexcept |
const char * | at (std::size_t i) const |
bool | empty () const noexcept |
std::size_t | size () const noexcept |
void | resize (std::size_t n) |
const char * | front () const |
const char * | back () const |
char * | data () noexcept |
const char * | data () const noexcept |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | begin () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | end () const noexcept |
const_iterator | cend () const noexcept |
reverse_iterator | rbegin () noexcept |
reverse_iterator | rend () noexcept |
const_reverse_iterator | rbegin () const noexcept |
const_reverse_iterator | rend () const noexcept |
A structure representing a set of fixed-length strings.
Although fixed-len arrays can be created 'raw' without the need for this structure, to retrieve results efficiently it must be used.
N | Size of the string in bytes, including the null character. Note, that all string must be null-terminated. |
using HighFive::deprecated::FixedLenStringArray< N >::const_iterator = typename vector_t::const_iterator |
using HighFive::deprecated::FixedLenStringArray< N >::const_reverse_iterator = typename vector_t::const_reverse_iterator |
using HighFive::deprecated::FixedLenStringArray< N >::iterator = typename vector_t::iterator |
using HighFive::deprecated::FixedLenStringArray< N >::reverse_iterator = typename vector_t::reverse_iterator |
using HighFive::deprecated::FixedLenStringArray< N >::value_type = typename vector_t::value_type |
|
default |
|
inline |
Create a FixedStringArray from a raw contiguous buffer.
The argument n_strings
specifies the number of strings.
|
inlineexplicit |
Create a FixedStringArray from a sequence of strings.
Such conversion involves a copy, original vector is not modified
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
Retrieve a string from the structure as std::string.
|
inlinenoexcept |
|
inline |
|
inline |
Append an std::string to the buffer structure.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |