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::span_t< T > Class Template Reference
Inheritance diagram for dsplib::span_t< T >:
Inheritance graph
[legend]
Collaboration diagram for dsplib::span_t< T >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 span_t (const T *data, int size)
 
 span_t (const mut_span_t< T > &v)
 
template<typename U = T, std::enable_if_t< support_type_for_array< U >(), bool > = true>
 span_t (const base_array< T > &v)
 
 span_t (const std::vector< T > &v)
 
const T * data () const noexcept
 
int size () const noexcept
 
const T & operator[] (size_t i) const noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
span_t slice (int i1, int i2) 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
 
template<class T2 >
auto operator/ (const T2 &rhs) const
 
- Public Member Functions inherited from dsplib::slice_t< T >
 slice_t (const slice_t &rhs)
 
 slice_t (const mut_slice_t< T > &rhs)
 
int size () const noexcept
 
bool empty () const noexcept
 
int stride () const noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
base_array< T > operator* () const noexcept
 
base_array< T > copy () const noexcept
 

Friends

class mut_span_t< T >
 

Additional Inherited Members

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

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