mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | List of all members
mf::frame_format Class Reference

Format information of type-erased frame of ndarray_view_generic. More...

#include <frame_format.h>

Public Member Functions

 frame_format (const frame_format &)=default
 
frame_formatoperator= (const frame_format &)=default
 
template<typename Elem >
bool is_type () const noexcept
 
std::type_index elem_type_index () const noexcept
 
std::size_t elem_size () const noexcept
 
std::size_t elem_alignment () const noexcept
 
std::size_t stride () const noexcept
 
std::size_t padding () const noexcept
 

Static Public Member Functions

static frame_format null ()
 
template<typename Elem >
static frame_format default_format (std::size_t stride=sizeof(Elem))
 

Detailed Description

Format information of type-erased frame of ndarray_view_generic.

Stores element type of anterior ndarray_view (std::type_info, sizeof and alignof), and the actual alignment of elements in the frame.

Constructor & Destructor Documentation

mf::frame_format::frame_format ( const frame_format )
default

Member Function Documentation

template<typename Elem >
static frame_format mf::frame_format::default_format ( std::size_t  stride = sizeof(Elem))
inlinestatic
std::size_t mf::frame_format::elem_alignment ( ) const
inlinenoexcept
std::size_t mf::frame_format::elem_size ( ) const
inlinenoexcept
std::type_index mf::frame_format::elem_type_index ( ) const
inlinenoexcept
template<typename Elem >
bool mf::frame_format::is_type ( ) const
inlinenoexcept
static frame_format mf::frame_format::null ( )
inlinestatic
frame_format& mf::frame_format::operator= ( const frame_format )
default
std::size_t mf::frame_format::padding ( ) const
inlinenoexcept
std::size_t mf::frame_format::stride ( ) const
inlinenoexcept

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