![]() |
helics
2.8.1
|
#include <core-data.hpp>
Public Member Functions | |
| data_block ()=default | |
| ~data_block ()=default | |
| data_block (size_t blockSize) | |
| data_block (size_t blockSize, char init) | |
| data_block (const data_block &db)=default | |
| data_block (data_block &&db)=default | |
| data_block (const char *s) | |
| data_block (const std::string &str) | |
| data_block (std::string &&str) noexcept | |
| data_block (const char *s, size_t len) | |
| data_block (const std::vector< char > &vdata) | |
| template<class X > | |
| data_block (const std::vector< X > &vdata) | |
| data_block & | operator= (const data_block &db)=default |
| data_block & | operator= (data_block &&db)=default |
| data_block & | operator= (std::string str) |
| data_block & | operator= (const char *s) |
| data_block & | assign (const char *s, size_t len) |
| void | swap (data_block &db2) noexcept |
| void | append (const char *s, size_t len) |
| void | append (const std::string &str) |
| bool | operator== (const data_block &db) const |
| bool | operator== (const std::string &str) const |
| bool | operator< (const data_block &db) const |
| bool | operator> (const data_block &db) const |
| char * | data () |
| const char * | data () const |
| bool | empty () const noexcept |
| size_t | size () const |
| void | resize (size_t newSize) |
| void | resize (size_t newSize, char T) |
| void | reserve (size_t space) |
| const std::string & | to_string () const |
| char & | operator[] (int index) |
| char | operator[] (int index) const |
| auto | begin () |
| auto | end () |
| auto | cbegin () const |
| auto | cend () const |
| void | push_back (char newchar) |
Friends | |
| class | data_view |
| let data view access the string directly | |
| class | ActionMessage |
| let action Message access the string directly | |
basic data object for use in the user API layer
An adapter over a string, many objects will be strings actually so this is just a wrapper for that common use case, and many other objects are small, so the small string optimization takes advantage of that
|
default |
default constructor
|
default |
default destructor
|
inlineexplicit |
size allocation constructor
|
inline |
size and data
|
default |
copy constructor
|
default |
move constructor
|
inline |
construct from char *
|
inline |
construct from string
|
inlinenoexcept |
move from string
|
inline |
char * and length
|
inline |
construct from a vector object
|
inline |
construct from an arbitrary vector
|
inline |
append the existing data with a additional data
|
inline |
append the existing data with a string
|
inline |
|
inline |
non const iterator
|
inline |
const iterator
|
inline |
const iterator end
|
inline |
return a pointer to the data
|
inline |
if the object is const return a const pointer
|
inlinenoexcept |
check if the block is empty
Referenced by helics::Message::isValid().
|
inline |
non const iterator end
|
inline |
less then operator to order the data_blocks if need be
|
inline |
assign the data block from a const char *
References assign().
|
default |
copy assignment operator
|
default |
move assignment operator
|
inline |
assign from a string
|
inline |
equality operator with another data block
|
inline |
equality operator with a string
|
inline |
less then operator to order the data_blocks if need be
|
inline |
bracket operator to get a character value
|
inline |
bracket operator to get a character value
|
inline |
add a character to the data
|
inline |
reserve space in a data_block
|
inline |
resize the data storage
Referenced by helics::Message::clear().
|
inline |
resize the data storage
|
inline |
get the size of the data block
|
inlinenoexcept |
swap function
Referenced by helics::Message::swap().
|
inline |
get a string reference
Referenced by helics::Message::to_string().
1.8.17