![]() |
helics
2.8.1
|
#include <data_view.hpp>
Public Member Functions | |
data_view ()=default | |
~data_view ()=default | |
data_view (std::shared_ptr< const data_block > dt) | |
data_view (const data_block &dt) noexcept | |
data_view (const data_view &dt) noexcept=default | |
data_view (data_view &&dv) noexcept | |
data_view (const char *dt) noexcept | |
data_view (const char *dt, size_t len) noexcept | |
data_view (const std::string &str) noexcept | |
data_view (std::string &&str) | |
data_view (const std::vector< char > &dvec) noexcept | |
data_view (const stx::string_view &sview) noexcept | |
data_view & | operator= (const data_view &dv) noexcept=default |
data_view & | operator= (data_view &&dv) noexcept |
data_view & | operator= (std::shared_ptr< const data_block > dt) noexcept |
data_view & | operator= (const data_block &dt) noexcept |
data_view & | operator= (const stx::string_view &str) noexcept |
data_view & | operator= (const char *s) noexcept |
data_block | to_data_block () const |
void | swap (data_view &dv2) noexcept |
const char * | data () const noexcept |
size_t | size () const noexcept |
bool | empty () const noexcept |
std::string | string () const |
char | operator[] (int index) const |
auto | begin () |
auto | end () |
auto | cbegin () const |
auto | cend () const |
class containing a constant view of data block
|
default |
default constructor
|
default |
destructor
|
inline |
construct from a shared_ptr to a data_block
|
inlinenoexcept |
construct from a regular data_block
|
defaultnoexcept |
copy constructor
|
inlinenoexcept |
move constructor
|
inlinenoexcept |
construct from a string
|
inlinenoexcept |
construct from a char Pointer and length
|
inlinenoexcept |
construct from a string
|
inline |
construct from a rValue to a string
|
inlinenoexcept |
construct from a char vector
|
inlinenoexcept |
construct from a string_view
|
inline |
begin iterator
|
inline |
begin const iterator
|
inline |
end const iterator
|
inlinenoexcept |
get the data block
Referenced by helics::ValueConverter< X >::interpret(), helics::ValueConverter3< X >::interpret(), helics::ValueFederateManager::publish(), and helics::ValueFederateManager::setDefaultValue().
|
inlinenoexcept |
check if the view is empty
|
inline |
end iterator
|
inlinenoexcept |
assignment from a const char *
|
inlinenoexcept |
assignment from a data_block
assignment operator from another ata_view
|
inlinenoexcept |
assignment from a string_view
|
inlinenoexcept |
assignment from a data_block shared_ptr
|
inline |
random access operator
|
inlinenoexcept |
get the length
Referenced by helics::ValueConverter< X >::interpret(), helics::ValueFederateManager::publish(), and helics::ValueFederateManager::setDefaultValue().
|
inline |
return a string of the data
this actually does a copy to a new string
|
inlinenoexcept |
|
inline |
create a new data_block from the data