CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
CNORXZ::MFormat< N > Class Template Reference

#include <index_format.h>

Public Types

typedef Arr< UPos, N > InputType
 

Public Member Functions

 SP_DEFAULT_MEMBERS (constexpr, MFormat)
 
constexpr MFormat (const Arr< UPos, N > &b)
 
template<class FormatT >
constexpr MFormat (const FormatT &f)
 
const Arr< UPos, N > & all () const
 
constexpr decltype(autosize () const
 
template<SizeT I>
constexpr decltype(autoget (CSizeT< I > i) const
 
template<SizeT I>
constexpr decltype(autooperator[] (CSizeT< I > i) const
 
template<SizeT I>
constexpr decltype(autoget (CSizeT< I > i) const
 
template<SizeT I>
constexpr decltype(autooperator[] (CSizeT< I > i) const
 

Detailed Description

template<SizeT N>
class CNORXZ::MFormat< N >

Multi index format of static size. Wrapper of standard array of UPos.

Template Parameters
NFormat size

Definition at line 31 of file index_format.h.

Member Typedef Documentation

◆ InputType

template<SizeT N>
typedef Arr<UPos,N> CNORXZ::MFormat< N >::InputType

Definition at line 34 of file index_format.h.

Constructor & Destructor Documentation

◆ MFormat() [1/2]

template<SizeT N>
constexpr CNORXZ::MFormat< N >::MFormat ( const Arr< UPos, N > & b)
explicitconstexpr

Construct MFormat from standard array.

Parameters
bInput array

Definition at line 24 of file index_format.cc.h.

◆ MFormat() [2/2]

template<SizeT N>
template<class FormatT >
constexpr CNORXZ::MFormat< N >::MFormat ( const FormatT & f)
constexpr

Construct MFormat from format of arbitrary type. The input format size has to match the static size N.

Parameters
fInput format

Definition at line 30 of file index_format.cc.h.

Member Function Documentation

◆ all()

template<SizeT N>
const Arr< UPos, N > & CNORXZ::MFormat< N >::all ( ) const

Get underlying array.

Definition at line 37 of file index_format.cc.h.

◆ get() [1/2]

template<SizeT N>
template<SizeT I>
constexpr decltype(auto) CNORXZ::MFormat< N >::get ( CSizeT< I > i) const
constexpr

Definition at line 50 of file index_format.cc.h.

◆ get() [2/2]

template<SizeT N>
template<SizeT I>
constexpr decltype(auto) CNORXZ::MFormat< N >::get ( CSizeT< I > i) const
constexpr

Get format element.

Parameters
iCSizeT indicating static element position

◆ operator[]() [1/2]

template<SizeT N>
template<SizeT I>
constexpr decltype(auto) CNORXZ::MFormat< N >::operator[] ( CSizeT< I > i) const
constexpr

Definition at line 57 of file index_format.cc.h.

◆ operator[]() [2/2]

template<SizeT N>
template<SizeT I>
constexpr decltype(auto) CNORXZ::MFormat< N >::operator[] ( CSizeT< I > i) const
constexpr

Get format element.

Parameters
iCSizeT indicating static element position

◆ size()

template<SizeT N>
decltype(auto) constexpr CNORXZ::MFormat< N >::size ( ) const
constexpr

Get format size.

Definition at line 43 of file index_format.cc.h.

◆ SP_DEFAULT_MEMBERS()

template<SizeT N>
CNORXZ::MFormat< N >::SP_DEFAULT_MEMBERS ( constexpr ,
MFormat< N >  )

default constructors and assignments


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