|
ACF $AcfVersion:0$
|
#include <CFastBinaryIndex.h>
Classes | |
| class | Iterator |
Public Types | |
| enum | { MAX_ELEMENTS_COUNT = 31 } |
| typedef int | IndexType |
Public Member Functions | |
| CFastBinaryIndex () | |
| Default constructor without member initialization. | |
| CFastBinaryIndex (int size, int value=0) | |
| Constructor initializing all member to specified value. | |
| CFastBinaryIndex (quint32 bits, int size, int dummy) | |
| Constructor initializing all internal members. | |
| CFastBinaryIndex (const CFastBinaryIndex &index) | |
| Copy constructor. | |
| bool | IsValid () const |
| Check if this index is valid. | |
| bool | IsZero () const |
| Check if this index point at zero element. | |
| void | Reset () |
| Reset this object. | |
| void | Clear () |
| Set all components to 0 (false). | |
| bool | IsDimensionsCountFixed () const |
| Check, if number dimensions is fixed. | |
| int | GetDimensionsCount () const |
| Get number of dimensions of this index. | |
| bool | SetDimensionsCount (int count) |
| Set number of dimensions of this index. | |
| int | GetAt (int index) const |
| Get element stored at specified index. | |
| void | SetAt (int index, int value) |
| Set element at specified index. | |
| quint32 | GetBits () const |
| Get bit coded value of this index. | |
| void | SetAllTo (int value) |
| Set all components to specified value. | |
| bool | IncreaseAt (int index) |
| Increase single component at specified position. | |
| bool | DecreaseAt (int index) |
| Decrease single component at specified position. | |
| int | GetProductVolume () const |
| Get total number of elements if this index is treated as size. | |
| bool | IsInside (const CFastBinaryIndex &boundaries) const |
| Check if index is inside boundaries. | |
| bool | Increase (const CFastBinaryIndex &boundaries) |
| Increase this index inside the boundaries. | |
| bool | Decrease (const CFastBinaryIndex &boundaries) |
| Decrese this index inside the boundaries. | |
| Iterator | Begin () const |
| Get begin value of element access iterator. | |
| Iterator | End () const |
| Get end value of element access iterator. | |
| int | operator[] (int index) const |
| bool | operator== (const CFastBinaryIndex &index) const |
| bool | operator!= (const CFastBinaryIndex &index) const |
Definition at line 13 of file CFastBinaryIndex.h.
| typedef int istd::CFastBinaryIndex::IndexType |
Definition at line 16 of file CFastBinaryIndex.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MAX_ELEMENTS_COUNT | |
Definition at line 18 of file CFastBinaryIndex.h.
|
inline |
Default constructor without member initialization.
Definition at line 193 of file CFastBinaryIndex.h.
|
inlineexplicit |
Constructor initializing all member to specified value.
Definition at line 199 of file CFastBinaryIndex.h.
References SetAllTo().
|
inlineexplicit |
Constructor initializing all internal members.
| bits | bit coded value of this index. The index of higher set bit must be smaller than 'size' value. |
| size | number of components of index. |
| dummy | not used parameter using to distinguish between this constructor and the previous one. |
Definition at line 207 of file CFastBinaryIndex.h.
References istd::CBitManip::instance.
|
inline |
|
inline |
Get begin value of element access iterator.
Please refer to general description of ACF iterators, STL iterators or Qt iterators concept.
Definition at line 367 of file CFastBinaryIndex.h.
|
inline |
Set all components to 0 (false).
Definition at line 241 of file CFastBinaryIndex.h.
|
inline |
Decrese this index inside the boundaries.
Definition at line 355 of file CFastBinaryIndex.h.
|
inline |
Decrease single component at specified position.
| index | index of component should be increased. It must be valid. |
Definition at line 328 of file CFastBinaryIndex.h.
|
inline |
Get end value of element access iterator.
Please refer to general description of ACF iterators, STL iterators or Qt iterators concept.
Definition at line 373 of file CFastBinaryIndex.h.
|
inline |
Get element stored at specified index.
Definition at line 273 of file CFastBinaryIndex.h.
Referenced by operator[]().
|
inline |
Get bit coded value of this index.
Definition at line 296 of file CFastBinaryIndex.h.
|
inline |
Get number of dimensions of this index.
Definition at line 254 of file CFastBinaryIndex.h.
|
inline |
Get total number of elements if this index is treated as size.
Definition at line 361 of file CFastBinaryIndex.h.
|
inline |
Increase this index inside the boundaries.
Definition at line 349 of file CFastBinaryIndex.h.
|
inline |
Increase single component at specified position.
| index | index of component should be increased. It must be valid. |
Definition at line 313 of file CFastBinaryIndex.h.
|
inline |
Check, if number dimensions is fixed.
It is provided for template implementations. It returns always true.
Definition at line 248 of file CFastBinaryIndex.h.
|
inline |
Check if index is inside boundaries.
Index is inside boundaries, if all its components are smaller than according boundary components.
Definition at line 343 of file CFastBinaryIndex.h.
|
inline |
Check if this index is valid.
Index is valid, if all its components are bigger or equal 0. This method is provided for template compatibility with other imlementations. It returns always true.
Definition at line 222 of file CFastBinaryIndex.h.
|
inline |
Check if this index point at zero element.
In other words, it checks if all components are 0.
Definition at line 228 of file CFastBinaryIndex.h.
|
inline |
Definition at line 391 of file CFastBinaryIndex.h.
|
inline |
Definition at line 385 of file CFastBinaryIndex.h.
|
inline |
Definition at line 379 of file CFastBinaryIndex.h.
References GetAt().
|
inline |
Reset this object.
For this implementation, it does the same as clear.
Definition at line 234 of file CFastBinaryIndex.h.
|
inline |
Set all components to specified value.
Definition at line 302 of file CFastBinaryIndex.h.
Referenced by CFastBinaryIndex().
|
inline |
Set element at specified index.
Definition at line 282 of file CFastBinaryIndex.h.
|
inline |
Set number of dimensions of this index.
It is provided to allows template implementations to use fixed-size or variable arrays.
| count | number of dimensions will be set. |
Definition at line 260 of file CFastBinaryIndex.h.
References MAX_ELEMENTS_COUNT.