CNORXZ
Container with Native Operation Routines and Expressions
|
#include <prange.h>
Public Types | |
typedef IndexInterface< PIndex< IndexT >, typename IndexT::MetaType > | IB |
typedef PRange< typename IndexT::RangeType > | RangeType |
typedef IndexT::MetaType | MetaType |
Additional Inherited Members | |
Protected Attributes inherited from CNORXZ::IndexInterface< PIndex< IndexT >, IndexT::MetaType > | |
SizeT | mPos |
typedef IndexInterface<PIndex<IndexT>,typename IndexT::MetaType> CNORXZ::PIndex< IndexT >::IB |
typedef IndexT::MetaType CNORXZ::PIndex< IndexT >::MetaType |
typedef PRange<typename IndexT::RangeType> CNORXZ::PIndex< IndexT >::RangeType |
Constructor.
range | Range to define index on. |
pos | Initial lexicographic position (default = 0). |
Definition at line 25 of file prange.cc.h.
set index position so that it's meta data matches input
meta | meta data to be matched |
Definition at line 198 of file prange.cc.h.
recursive index format
Definition at line 164 of file prange.cc.h.
max of all single-indices (recursive)
Definition at line 170 of file prange.cc.h.
SizeT CNORXZ::PIndex< IndexT >::dim | ( | ) | const |
index dimension
Definition at line 124 of file prange.cc.h.
bool CNORXZ::PIndex< IndexT >::formatIsTrivial | ( | ) | const |
check is format is trivial
Definition at line 220 of file prange.cc.h.
IndexId< 0 > CNORXZ::PIndex< IndexT >::id | ( | ) | const |
index ID
Definition at line 112 of file prange.cc.h.
create a for-loop expression
Xpr | loop internal expression |
F | accumulating function |
xpr | loop internal expression |
f | accumulating function |
Definition at line 213 of file prange.cc.h.
SizeT CNORXZ::PIndex< IndexT >::lex | ( | ) | const |
lexicographic position
Definition at line 94 of file prange.cc.h.
UPos CNORXZ::PIndex< IndexT >::lmax | ( | ) | const |
maximal lexicographic position
Definition at line 106 of file prange.cc.h.
return meta data at current index position
Definition at line 192 of file prange.cc.h.
PIndex< IndexT > & CNORXZ::PIndex< IndexT >::operator() | ( | ) |
Update current index position according to the internal index on the full range.
Definition at line 226 of file prange.cc.h.
PIndex< IndexT > & CNORXZ::PIndex< IndexT >::operator() | ( | const Sptr< IndexT > & | i | ) |
Replace instance of index on full range and update current position accordingly.
i | New index instance. |
Definition at line 233 of file prange.cc.h.
decltype(auto) CNORXZ::PIndex< IndexT >::operator* | ( | ) | const |
return meta data at current index position
Definition at line 118 of file prange.cc.h.
PIndex< IndexT > CNORXZ::PIndex< IndexT >::operator+ | ( | Int | n | ) | const |
return index with lexicographic index position incremented n times
n |
Definition at line 60 of file prange.cc.h.
PIndex< IndexT > & CNORXZ::PIndex< IndexT >::operator++ | ( | ) |
increment lexicographic index position
Definition at line 44 of file prange.cc.h.
PIndex< IndexT > & CNORXZ::PIndex< IndexT >::operator+= | ( | Int | n | ) |
increment lexicographic index position n times
n |
Definition at line 78 of file prange.cc.h.
SizeT CNORXZ::PIndex< IndexT >::operator- | ( | const PIndex< IndexT > & | i | ) | const |
Definition at line 66 of file prange.cc.h.
PIndex< IndexT > CNORXZ::PIndex< IndexT >::operator- | ( | Int | n | ) | const |
return index with lexicographic index position decremented n times
n |
Definition at line 72 of file prange.cc.h.
PIndex< IndexT > & CNORXZ::PIndex< IndexT >::operator-- | ( | ) |
decrement lexicographic index position
Definition at line 52 of file prange.cc.h.
PIndex< IndexT > & CNORXZ::PIndex< IndexT >::operator-= | ( | Int | n | ) |
decrement lexicographic index position n times
n |
Definition at line 86 of file prange.cc.h.
PIndex< IndexT > & CNORXZ::PIndex< IndexT >::operator= | ( | SizeT | lexpos | ) |
Definition at line 36 of file prange.cc.h.
Get original index.
Definition at line 241 of file prange.cc.h.
UPos CNORXZ::PIndex< IndexT >::pmax | ( | ) | const |
maximal memory position
Definition at line 100 of file prange.cc.h.
create partial range starting at this index' position and ending at the position of input index. The end position is included!
end | end index |
Definition at line 148 of file prange.cc.h.
Sptr< typename PIndex< IndexT >::RangeType > CNORXZ::PIndex< IndexT >::range | ( | ) | const |
pointer to the range the index is defined on
Definition at line 130 of file prange.cc.h.
PIndex< IndexT > & CNORXZ::PIndex< IndexT >::reformat | ( | const Vector< SizeT > & | f, |
const Vector< SizeT > & | s ) |
reformat index, create new index instance
f | new format |
s | new sub-index sizes |
Definition at line 176 of file prange.cc.h.
return the memory step size this index has w.r.t. to index of given ID
J | static index ID, size type |
id | input index ID |
Definition at line 137 of file prange.cc.h.
String CNORXZ::PIndex< IndexT >::stringMeta | ( | ) | const |
return string formatted meta data at current index position
Definition at line 186 of file prange.cc.h.
Definition at line 206 of file prange.cc.h.