CNORXZ
Container with Native Operation Routines and Expressions
|
#include <urange.h>
Public Types | |
typedef IndexInterface< UIndex< MetaT >, MetaT > | IB |
typedef URange< MetaT > | RangeType |
typedef MetaT | MetaType |
Additional Inherited Members | |
Protected Attributes inherited from CNORXZ::IndexInterface< UIndex< MetaT >, MetaT > | |
SizeT | mPos |
typedef IndexInterface<UIndex<MetaT>,MetaT> CNORXZ::UIndex< MetaT >::IB |
Construct index from range and position.
range | Range to iterate over. |
pos | lexicographic position. |
Definition at line 32 of file urange.cc.h.
set index position so that it's meta data matches input
meta | meta data to be matched |
Definition at line 134 of file urange.cc.h.
SizeT CNORXZ::UIndex< MetaT >::deepFormat | ( | ) | const |
recursive index format
Definition at line 160 of file urange.cc.h.
SizeT CNORXZ::UIndex< MetaT >::deepMax | ( | ) | const |
max of all single-indices (recursive)
Definition at line 166 of file urange.cc.h.
default constructors and assignments
size_t CNORXZ::UIndex< MetaT >::dim | ( | ) | const |
index dimension
Definition at line 182 of file urange.cc.h.
bool CNORXZ::UIndex< MetaT >::formatIsTrivial | ( | ) | const |
check is format is trivial
Definition at line 213 of file urange.cc.h.
IndexId< 0 > CNORXZ::UIndex< MetaT >::id | ( | ) | const |
index ID
Definition at line 110 of file urange.cc.h.
create a for-loop expression
Xpr | loop internal expression |
F | accumulating function |
xpr | loop internal expression |
f | accumulating function |
Definition at line 207 of file urange.cc.h.
CNORXZ::UIndex< MetaT >::INDEX_RANDOM_ACCESS_ITERATOR_DEFS | ( | MetaType | ) |
SizeT CNORXZ::UIndex< MetaT >::lex | ( | ) | const |
lexicographic position
Definition at line 92 of file urange.cc.h.
UPos CNORXZ::UIndex< MetaT >::lmax | ( | ) | const |
maximal lexicographic position
Definition at line 104 of file urange.cc.h.
return meta data at current index position
Definition at line 128 of file urange.cc.h.
const MetaT & CNORXZ::UIndex< MetaT >::operator* | ( | ) | const |
return meta data at current index position
Definition at line 116 of file urange.cc.h.
UIndex< MetaT > CNORXZ::UIndex< MetaT >::operator+ | ( | Int | n | ) | const |
return index with lexicographic index position incremented n times
n |
Definition at line 60 of file urange.cc.h.
UIndex< MetaT > & CNORXZ::UIndex< MetaT >::operator++ | ( | ) |
increment lexicographic index position
Definition at line 46 of file urange.cc.h.
UIndex< MetaT > & CNORXZ::UIndex< MetaT >::operator+= | ( | Int | n | ) |
increment lexicographic index position n times
n |
Definition at line 78 of file urange.cc.h.
SizeT CNORXZ::UIndex< MetaT >::operator- | ( | const UIndex< MetaT > & | i | ) | const |
Definition at line 72 of file urange.cc.h.
UIndex< MetaT > CNORXZ::UIndex< MetaT >::operator- | ( | Int | n | ) | const |
return index with lexicographic index position decremented n times
n |
Definition at line 66 of file urange.cc.h.
UIndex< MetaT > & CNORXZ::UIndex< MetaT >::operator-- | ( | ) |
decrement lexicographic index position
Definition at line 53 of file urange.cc.h.
UIndex< MetaT > & CNORXZ::UIndex< MetaT >::operator-= | ( | Int | n | ) |
decrement lexicographic index position n times
n |
Definition at line 85 of file urange.cc.h.
UIndex< MetaT > & CNORXZ::UIndex< MetaT >::operator= | ( | SizeT | lexpos | ) |
Definition at line 39 of file urange.cc.h.
UPos CNORXZ::UIndex< MetaT >::pmax | ( | ) | const |
maximal memory position
Definition at line 98 of file urange.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 147 of file urange.cc.h.
pointer to the range the index is defined on
Definition at line 188 of file urange.cc.h.
UIndex< MetaT > & CNORXZ::UIndex< MetaT >::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 172 of file urange.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 195 of file urange.cc.h.
String CNORXZ::UIndex< MetaT >::stringMeta | ( | ) | const |
return string formatted meta data at current index position
Definition at line 122 of file urange.cc.h.
Definition at line 141 of file urange.cc.h.