A permutation stored in the same manner as a doubly-linked list in order to facilitate reordering in constant time. More...
Classes | |
| class | const_iterator |
| A bi-directional constant iterator. More... | |
Public Member Functions | |
| DLPermutation (const List< label > &permutation) | |
| Construct for a given permutation. More... | |
| DLPermutation (const label n, randomGenerator &rndGen) | |
| Construct a random permutation. More... | |
| List< label > | permutation (const bool reverse) |
| Return the permutation. More... | |
| const_iterator | begin () const |
| Return the starting forward iterator. More... | |
| const_iterator | end () const |
| Return the ending forward iterator. More... | |
| const_iterator | cbegin () const |
| Return the starting forward iterator. More... | |
| const_iterator | cend () const |
| Return the ending forward iterator. More... | |
| const_iterator | rbegin () const |
| Return the starting reverse iterator. More... | |
| const_iterator | rend () const |
| Return the ending reverse iterator. More... | |
| const_iterator | crbegin () const |
| Return the starting reverse iterator. More... | |
| const_iterator | crend () const |
| Return the ending reverse iterator. More... | |
| void | append () |
| Add a new index to the end of the permutation. More... | |
| void | prepend () |
| Add a new index to the start of the permutation. More... | |
| void | raise (const label i) |
| Raise a given index to the start of the permutation. More... | |
| void | sink (const label i) |
| Sink a given index to the end of the permutation. More... | |
A permutation stored in the same manner as a doubly-linked list in order to facilitate reordering in constant time.
Definition at line 50 of file DLPermutation.H.
|
inline |
Construct for a given permutation.
Definition at line 43 of file DLPermutationI.H.
References UList< T >::empty(), UList< T >::first(), UList< T >::last(), DLPermutation< LabelList >::permutation(), and List< T >::size().

|
inline |
Construct a random permutation.
Definition at line 72 of file DLPermutationI.H.
|
inline |
Return the permutation.
Definition at line 195 of file DLPermutationI.H.
References forAllConstIter, forAllConstIterReverse, Foam::reverse(), and List< T >::size().
Referenced by DLPermutation< LabelList >::DLPermutation().


|
inline |
Return the starting forward iterator.
Definition at line 225 of file DLPermutationI.H.
|
inline |
Return the ending forward iterator.
Definition at line 233 of file DLPermutationI.H.
|
inline |
Return the starting forward iterator.
Definition at line 241 of file DLPermutationI.H.
|
inline |
Return the ending forward iterator.
Definition at line 249 of file DLPermutationI.H.
|
inline |
Return the starting reverse iterator.
Definition at line 257 of file DLPermutationI.H.
|
inline |
Return the ending reverse iterator.
Definition at line 265 of file DLPermutationI.H.
|
inline |
Return the starting reverse iterator.
Definition at line 273 of file DLPermutationI.H.
|
inline |
Return the ending reverse iterator.
Definition at line 281 of file DLPermutationI.H.
| void append |
Add a new index to the end of the permutation.
Definition at line 288 of file DLPermutationI.H.
| void prepend |
Add a new index to the start of the permutation.
Definition at line 300 of file DLPermutationI.H.
| void raise | ( | const label | i | ) |
Raise a given index to the start of the permutation.
Definition at line 312 of file DLPermutationI.H.
| void sink | ( | const label | i | ) |
Sink a given index to the end of the permutation.
Definition at line 330 of file DLPermutationI.H.