dsplib 1.1.0
C++ DSP library for MATLAB-like coding
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
dsplib::mut_span_t< T > Class Template Reference
Inheritance diagram for dsplib::mut_span_t< T >:
Inheritance graph
[legend]
Collaboration diagram for dsplib::mut_span_t< T >:
Collaboration graph
[legend]

Public Types

using iterator = T *
 
using const_iterator = const T *
 
- Public Types inherited from dsplib::mut_slice_t< T >
using iterator = SliceIterator< T >
 
using const_iterator = SliceIterator< const T >
 

Public Member Functions

 mut_span_t (T *data, int size)
 
 mut_span_t (const mut_span_t &v)
 
template<typename U = T, std::enable_if_t< support_type_for_array< U >(), bool > = true>
 mut_span_t (base_array< T > &v)
 
 mut_span_t (std::vector< T > &v)
 
T * data () noexcept
 
const T * data () const noexcept
 
int size () const noexcept
 
T & operator[] (size_t i) noexcept
 
mut_span_toperator= (const mut_span_t &rhs)
 
template<typename T2 , std::enable_if_t< std::is_convertible_v< T2, T >, bool > = true, std::enable_if_t< is_scalar_v< T2 >, bool > = true>
mut_span_toperator= (const mut_span_t< T2 > &rhs)
 
mut_span_toperator= (const span_t< T > &rhs)
 
template<typename T2 , std::enable_if_t< std::is_convertible_v< T2, T >, bool > = true, std::enable_if_t< is_scalar_v< T2 >, bool > = true>
mut_span_toperator= (const span_t< T2 > &rhs)
 
template<typename T2 , std::enable_if_t< support_type_for_array< T2 >(), bool > = true>
mut_span_toperator= (const base_array< T2 > &rhs)
 
mut_span_toperator= (const T &rhs)
 
template<typename T2 , std::enable_if_t< std::is_convertible_v< T2, T >, bool > = true, std::enable_if_t< is_scalar_v< T2 >, bool > = true>
mut_span_toperator= (const T2 &rhs)
 
mut_span_toperator= (const slice_t< T > &rhs)
 
mut_span_toperator= (const mut_slice_t< T > &rhs)
 
mut_span_toperator= (const std::initializer_list< T > &rhs)
 
iterator begin () noexcept
 
iterator end () noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
void assign (span_t< T > rhs)
 
template<typename T2 , std::enable_if_t< std::is_convertible_v< T2, T >, bool > = true>
void assign (span_t< T2 > rhs)
 
mut_span_t slice (int i1, int i2) const
 
template<typename U = T, class T2 , std::enable_if_t< is_scalar_v< U >, bool > = true>
mut_span_toperator+= (const T2 &rhs) noexcept(is_scalar_v< T2 >)
 
template<typename U = T, class T2 , std::enable_if_t< is_scalar_v< U >, bool > = true>
mut_span_toperator-= (const T2 &rhs) noexcept(is_scalar_v< T2 >)
 
template<typename U = T, class T2 , std::enable_if_t< is_scalar_v< U >, bool > = true>
mut_span_toperator*= (const T2 &rhs) noexcept(is_scalar_v< T2 >)
 
template<typename U = T, class T2 , std::enable_if_t< is_scalar_v< U >, bool > = true>
mut_span_toperator/= (const T2 &rhs) noexcept(is_scalar_v< T2 >)
 
template<class T2 >
auto operator+ (const T2 &rhs) const
 
template<class T2 >
auto operator- (const T2 &rhs) const
 
template<class T2 >
auto operator* (const T2 &rhs) const
 
template<class T2 >
auto operator/ (const T2 &rhs) const
 
- Public Member Functions inherited from dsplib::mut_slice_t< T >
 mut_slice_t (const mut_slice_t &rhs)
 
int size () const noexcept
 
bool empty () const noexcept
 
int stride () const noexcept
 
mut_slice_toperator= (const slice_t< T > &rhs)
 
mut_slice_toperator= (const mut_slice_t< T > &rhs)
 
mut_slice_toperator= (const base_array< T > &rhs)
 
mut_slice_toperator= (const T &value)
 
mut_slice_toperator= (const std::initializer_list< T > &rhs)
 
iterator begin () noexcept
 
iterator end () noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
base_array< T > operator* () const noexcept
 
base_array< T > copy () const noexcept
 
void assign (slice_t< T > rhs)
 

Friends

class span_t< T >
 

Additional Inherited Members

- Static Public Member Functions inherited from dsplib::mut_slice_t< T >
static mut_slice_t make_slice (T *data, int size, int i1, int i2, int step)
 
- Protected Member Functions inherited from dsplib::mut_slice_t< T >
 mut_slice_t (T *data, int stride, int count)
 
bool is_same_memory (slice_t< T > rhs) noexcept
 
- Protected Attributes inherited from dsplib::mut_slice_t< T >
T * data_ {nullptr}
 
int stride_ {0}
 
int count_ {0}
 

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