helics
3.5.2
|
#include <data_view.hpp>
Public Member Functions | |
data_view ()=default | |
~data_view ()=default | |
data_view (std::shared_ptr< const SmallBuffer > dt) | |
data_view (const SmallBuffer &dt) noexcept | |
data_view (const data_view &dt) noexcept=default | |
data_view (data_view &&dv) noexcept | |
template<typename U , typename T = std::enable_if_t<std::is_constructible_v<std::string_view, U>>> | |
data_view (U &&u) noexcept | |
data_view (const char *dt, size_t len) noexcept | |
data_view (SmallBuffer &&sb) | |
data_view (const std::vector< char > &dvec) noexcept | |
data_view (const std::vector< double > &dvec) noexcept | |
data_view & | operator= (const data_view &dv) noexcept=default |
data_view & | operator= (data_view &&dv) noexcept |
data_view & | operator= (std::shared_ptr< const SmallBuffer > dt) noexcept |
data_view & | operator= (const SmallBuffer &dt) noexcept |
data_view & | operator= (const std::string_view &str) noexcept |
data_view & | operator= (const char *s) noexcept |
SmallBuffer | to_buffer () const |
void | swap (data_view &dv2) noexcept |
const char * | data () const noexcept |
const std::byte * | bytes () const noexcept |
size_t | size () const noexcept |
bool | empty () const noexcept |
std::string | string () const |
std::string_view | string_view () 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 char Pointer and length
|
inline |
construct from a rValue to a string
|
inlinenoexcept |
construct from a char vector
|
inline |
begin iterator
|
inlinenoexcept |
get the data as a std::byte array
Referenced by helics::ValueConverter< X >::interpret().
|
inline |
begin const iterator
|
inline |
end const iterator
|
inlinenoexcept |
get the data block
Referenced by helics::ValueFederateManager::publish(), helics::Endpoint::send(), helics::Endpoint::sendAt(), helics::Endpoint::sendTo(), helics::Endpoint::sendToAt(), and helics::ValueFederateManager::setDefaultValue().
|
inlinenoexcept |
check if the view is empty
|
inline |
end iterator
|
inlinenoexcept |
assignment from a const char *
assignment operator from another ata_view
|
inlinenoexcept |
assignment from a data_block
|
inlinenoexcept |
assignment from a string_view
|
inlinenoexcept |
assignment from a data_block shared_ptr
|
inline |
random access operator
|
inlinenoexcept |
|
inline |
return a string of the data
this actually does a copy to a new string
|
inline |
get a string_view object
Referenced by helicsInputGetDataBuffer().
|
inlinenoexcept |
|
inline |
create a new data_block from the data