mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mf::ndarray_timed_view_generic< Dim > Class Template Reference

Generic ndarray_timed_view where lower dimension(s) are type-erased. More...

#include <ndarray_timed_view_generic.h>

Inheritance diagram for mf::ndarray_timed_view_generic< Dim >:
mf::ndarray_timed_view< Dim+1, byte > mf::ndarray_view< Dim, byte >

Public Types

using shape_type = typename base::shape_type
 
using strides_type = typename base::strides_type
 
- Public Types inherited from mf::ndarray_view< Dim, byte >
using value_type = byte
 
using pointer = byte *
 
using reference = byte &
 
using index_type = std::ptrdiff_t
 
using coordinates_type = ndptrdiff< Dim >
 
using shape_type = ndsize< Dim >
 
using strides_type = ndptrdiff< Dim >
 
using span_type = ndspan< Dim >
 
using iterator = ndarray_iterator< ndarray_view >
 
using fcall_result = detail::ndarray_view_fcall< Dim, byte, 1 >
 

Public Member Functions

 ndarray_timed_view_generic ()
 
 ndarray_timed_view_generic (const base &vw, const frame_format &format)
 
 ndarray_timed_view_generic (time_unit start_time, const frame_format &format)
 
 ndarray_timed_view_generic (const ndarray_view_generic< Dim > &gen_vw, time_unit start_time)
 
 operator ndarray_view_generic< Dim > () const noexcept
 
const frame_formatformat () const noexcept
 
decltype(auto) slice (std::ptrdiff_t c, std::ptrdiff_t dimension) const
 
decltype(auto) operator[] (std::ptrdiff_t c) const
 
decltype(auto) operator() (std::ptrdiff_t start, std::ptrdiff_t end, std::ptrdiff_t step=1) const
 
decltype(auto) operator() (std::ptrdiff_t c) const
 
decltype(auto) operator() () const
 
- Public Member Functions inherited from mf::ndarray_timed_view< Dim+1, byte >
 ndarray_timed_view ()
 Create null timed view. More...
 
 ndarray_timed_view (const base &vw, time_unit start_time)
 Create timed view where time index start_time is associated with frame vw[0]. More...
 
time_unit start_time () const
 
time_unit end_time () const
 
time_unit duration () const
 
std::ptrdiff_t time_index (time_unit t) const
 
time_unit time_at (std::ptrdiff_t i) const
 
decltype(auto) at_time (time_unit t) const
 
decltype(auto) at_time (time_unit t)
 
time_span span () const
 
void reset (const ndarray_timed_view &vw)
 
- Public Member Functions inherited from mf::ndarray_view< Dim, byte >
bool has_default_strides (std::size_t minimal_dimension=0) const noexcept
 Check if view has default strides. More...
 
std::size_t default_strides_padding (std::size_t minimal_dimension=0) const
 Returns padding of the view which has default strides. More...
 
 ndarray_view ()
 Create null view. More...
 
 ndarray_view (pointer start, const shape_type &, const strides_type &)
 Create view with explicitly specified start, shape and strides. More...
 
 ndarray_view (pointer start, const shape_type &shape)
 Create view with explicitly specified start and shape, with default strides (without padding). More...
 
 ndarray_view (const ndarray_view< Dim, std::remove_const_t< byte >> &arr)
 Copy-construct view. More...
 
bool is_null () const noexcept
 
 operator bool () const noexcept
 
void reset (const ndarray_view &other) noexcept
 
void reset () noexcept
 
void reset (pointer start, const shape_type &shape, const strides_type &strides)
 
void reset (pointer start, const shape_type &shape)
 
const ndarray_viewoperator= (Arg &&arg) const
 
const ndarray_viewoperator= (const ndarray_view &other) const
 
coordinates_type index_to_coordinates (const index_type &) const
 
index_type coordinates_to_index (const coordinates_type &) const
 
pointer coordinates_to_pointer (const coordinates_type &) const
 
ndarray_view section (const coordinates_type &start, const coordinates_type &end, const strides_type &steps=strides_type(1)) const
 Cuboid section of view, with interval in each axis. More...
 
ndarray_view section (const span_type &span, const strides_type &steps=strides_type(1)) const
 Cuboid section of view, defined using ndspan object. More...
 
ndarray_view< Dim-1, byteslice (std::ptrdiff_t c, std::ptrdiff_t dimension) const
 Create ndarray_view with one less dimension, by fixing coordinate of axis dimension to c. More...
 
decltype(auto) operator[] (std::ptrdiff_t c) const
 Subscript operator, creates slice on first dimension. More...
 
fcall_result operator() (std::ptrdiff_t start, std::ptrdiff_t end, std::ptrdiff_t step=1) const
 
fcall_result operator() (std::ptrdiff_t c) const
 
fcall_result operator() () const
 
reference at (const coordinates_type &) const
 
iterator begin () const
 
iterator end () const
 
void assign (const ndarray_view< Dim, T2 > &) const
 
void assign (const ndarray_view< Dim, const byte > &other) const
 
bool compare (const ndarray_view< Dim, T2 > &) const
 
bool compare (const ndarray_view< Dim, const byte > &other) const
 
bool operator== (Arg &&arg) const
 
bool operator!= (Arg &&arg) const
 
std::size_t size () const
 
pointer start () const noexcept
 
const shape_typeshape () const noexcept
 
const strides_typestrides () const noexcept
 
std::ptrdiff_t contiguous_length () const noexcept
 
span_type full_span () const noexcept
 
ndarray_view< New_dim, bytereshape (const ndsize< New_dim > &) const
 
ndarray_view< 1+Dim, byteadd_front_axis () const
 
ndarray_view swapaxis (std::size_t axis1, std::size_t axis2) const
 

Static Public Member Functions

static ndarray_timed_view_generic null ()
 
- Static Public Member Functions inherited from mf::ndarray_timed_view< Dim+1, byte >
static ndarray_timed_view null ()
 
- Static Public Member Functions inherited from mf::ndarray_view< Dim, byte >
static strides_type default_strides (const shape_type &, std::size_t padding=0)
 Default strides which correspond to row-major order for specified shape. More...
 
static ndarray_view null ()
 

Additional Inherited Members

- Static Public Attributes inherited from mf::ndarray_view< Dim, byte >
static constexpr std::size_t dimension
 
- Protected Member Functions inherited from mf::ndarray_view< Dim, byte >
ndarray_view section_ (std::ptrdiff_t dim, std::ptrdiff_t start, std::ptrdiff_t end, std::ptrdiff_t step) const
 
std::ptrdiff_t fix_coordinate_ (std::ptrdiff_t c, std::ptrdiff_t dim) const
 
- Protected Attributes inherited from mf::ndarray_view< Dim, byte >
pointer start_
 
shape_type shape_
 
strides_type strides_
 
std::ptrdiff_t contiguous_length_
 

Detailed Description

template<std::size_t Dim>
class mf::ndarray_timed_view_generic< Dim >

Generic ndarray_timed_view where lower dimension(s) are type-erased.

Member Typedef Documentation

template<std::size_t Dim>
using mf::ndarray_timed_view_generic< Dim >::shape_type = typename base::shape_type
template<std::size_t Dim>
using mf::ndarray_timed_view_generic< Dim >::strides_type = typename base::strides_type

Constructor & Destructor Documentation

template<std::size_t Dim>
mf::ndarray_timed_view_generic< Dim >::ndarray_timed_view_generic ( )
inline
template<std::size_t Dim>
mf::ndarray_timed_view_generic< Dim >::ndarray_timed_view_generic ( const base vw,
const frame_format format 
)
inline
template<std::size_t Dim>
mf::ndarray_timed_view_generic< Dim >::ndarray_timed_view_generic ( time_unit  start_time,
const frame_format format 
)
inlineexplicit
template<std::size_t Dim>
mf::ndarray_timed_view_generic< Dim >::ndarray_timed_view_generic ( const ndarray_view_generic< Dim > &  gen_vw,
time_unit  start_time 
)
inline

Member Function Documentation

template<std::size_t Dim>
const frame_format& mf::ndarray_timed_view_generic< Dim >::format ( ) const
inlinenoexcept
template<std::size_t Dim>
static ndarray_timed_view_generic mf::ndarray_timed_view_generic< Dim >::null ( )
inlinestatic
template<std::size_t Dim>
mf::ndarray_timed_view_generic< Dim >::operator ndarray_view_generic< Dim > ( ) const
inlinenoexcept
template<std::size_t Dim>
decltype(auto) mf::ndarray_timed_view_generic< Dim >::operator() ( std::ptrdiff_t  start,
std::ptrdiff_t  end,
std::ptrdiff_t  step = 1 
) const
inline
template<std::size_t Dim>
decltype(auto) mf::ndarray_timed_view_generic< Dim >::operator() ( std::ptrdiff_t  c) const
inline
template<std::size_t Dim>
decltype(auto) mf::ndarray_timed_view_generic< Dim >::operator() ( ) const
inline
template<std::size_t Dim>
decltype(auto) mf::ndarray_timed_view_generic< Dim >::operator[] ( std::ptrdiff_t  c) const
inline
template<std::size_t Dim>
decltype(auto) mf::ndarray_timed_view_generic< Dim >::slice ( std::ptrdiff_t  c,
std::ptrdiff_t  dimension 
) const
inline

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