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

#include <index_format.h>

Public Types

typedef Tuple< PosT... > InputType
 

Public Member Functions

 SP_DEFAULT_MEMBERS (constexpr, GMFormat)
 
constexpr GMFormat (const Tuple< PosT... > &b)
 
constexpr GMFormat (Tuple< PosT... > &&b)
 
template<class FormatT >
constexpr GMFormat (const FormatT &f)
 
const Tuple< PosT... > & 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<class... PosT>
class CNORXZ::GMFormat< PosT >

Multi index format of static size. Wrapper of standard tuple of position types.

Template Parameters
PosTPosition types.

Definition at line 85 of file index_format.h.

Member Typedef Documentation

◆ InputType

template<class... PosT>
typedef Tuple<PosT...> CNORXZ::GMFormat< PosT >::InputType

Definition at line 88 of file index_format.h.

Constructor & Destructor Documentation

◆ GMFormat() [1/3]

template<class... PosT>
constexpr CNORXZ::GMFormat< PosT >::GMFormat ( const Tuple< PosT... > & b)
explicitconstexpr

Construct from tuple.

Parameters
bInput tuple.

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

◆ GMFormat() [2/3]

template<class... PosT>
constexpr CNORXZ::GMFormat< PosT >::GMFormat ( Tuple< PosT... > && b)
explicitconstexpr

Construct from tuple (move).

Parameters
bInput tuple.

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

◆ GMFormat() [3/3]

template<class... PosT>
template<class FormatT >
constexpr CNORXZ::GMFormat< PosT >::GMFormat ( const FormatT & f)
constexpr

Construct MFormat from format of arbitrary type. The input format size has to match the number of entries and the input entries have to be compatible with the position types.

Parameters
fInput format

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

Member Function Documentation

◆ all()

template<class... PosT>
const Tuple< PosT... > & CNORXZ::GMFormat< PosT >::all ( ) const

Get underlying tuple.

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

◆ get() [1/2]

template<class... PosT>
template<SizeT I>
constexpr decltype(auto) CNORXZ::GMFormat< PosT >::get ( CSizeT< I > i) const
constexpr

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

◆ get() [2/2]

template<class... PosT>
template<SizeT I>
constexpr decltype(auto) CNORXZ::GMFormat< PosT >::get ( CSizeT< I > i) const
constexpr

Get format element.

Parameters
iCSizeT indicating static element position

◆ operator[]() [1/2]

template<class... PosT>
template<SizeT I>
constexpr decltype(auto) CNORXZ::GMFormat< PosT >::operator[] ( CSizeT< I > i) const
constexpr

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

◆ operator[]() [2/2]

template<class... PosT>
template<SizeT I>
constexpr decltype(auto) CNORXZ::GMFormat< PosT >::operator[] ( CSizeT< I > i) const
constexpr

Get format element.

Parameters
iCSizeT indicating static element position

◆ size()

template<class... PosT>
decltype(auto) constexpr CNORXZ::GMFormat< PosT >::size ( ) const
constexpr

Get format size.

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

◆ SP_DEFAULT_MEMBERS()

template<class... PosT>
CNORXZ::GMFormat< PosT >::SP_DEFAULT_MEMBERS ( constexpr ,
GMFormat< PosT >  )

default constructors and assignments


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