Everett
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
everett::sample_view Struct Reference

#include <word_view.h>

Public Member Functions

 sample_view ()=default
 
template<class Sample >
 sample_view (std::span< Sample const > samples) noexcept
 
std::size_t size () const noexcept
 
bool empty () const noexcept
 
word_view words () const noexcept
 
std::span< std::byte const > bytes () const noexcept
 
sample_value operator[] (std::size_t index) const
 

Static Public Member Functions

static sample_view little_endian (std::span< std::byte const > bytes)
 

Private Member Functions

 sample_view (word_view words) noexcept
 

Private Attributes

word_view words_
 

Constructor & Destructor Documentation

◆ sample_view() [1/3]

everett::sample_view::sample_view ( )
default

◆ sample_view() [2/3]

template<class Sample >
everett::sample_view::sample_view ( std::span< Sample const >  samples)
inlineexplicitnoexcept

◆ sample_view() [3/3]

everett::sample_view::sample_view ( word_view  words)
inlineexplicitprivatenoexcept

Member Function Documentation

◆ bytes()

std::span< std::byte const > everett::sample_view::bytes ( ) const
inlinenoexcept

◆ empty()

bool everett::sample_view::empty ( ) const
inlinenoexcept

◆ little_endian()

static sample_view everett::sample_view::little_endian ( std::span< std::byte const >  bytes)
inlinestatic

◆ operator[]()

sample_value everett::sample_view::operator[] ( std::size_t  index) const
inline

◆ size()

std::size_t everett::sample_view::size ( ) const
inlinenoexcept

◆ words()

word_view everett::sample_view::words ( ) const
inlinenoexcept

Member Data Documentation

◆ words_

word_view everett::sample_view::words_
private

The documentation for this struct was generated from the following file: