A List with indirect addressing. More...
Public Member Functions | |
IndirectList (const UList< T > &, const labelUList &) | |
Construct given the complete list and the addressing array. More... | |
IndirectList (const UList< T > &, List< label > &&) | |
Move constructor given the complete list and moves the addressing. More... | |
IndirectList (const IndirectList< T > &) | |
Copy constructor. More... | |
IndirectList (const UIndirectList< T > &) | |
Construct from UIndirectList. More... | |
Public Member Functions inherited from UIndirectList< T > | |
UIndirectList (const UList< T > &, const labelUList &) | |
Construct given the complete list and the addressing array. More... | |
UIndirectList (const UIndirectList< T > &)=default | |
Copy constructor. More... | |
label | size () const |
Return the number of elements in the list. More... | |
bool | empty () const |
Return true if the list is empty (ie, size() is zero). More... | |
T & | first () |
Return the first element of the list. More... | |
const T & | first () const |
Return first element of the list. More... | |
T & | last () |
Return the last element of the list. More... | |
const T & | last () const |
Return the last element of the list. More... | |
label | fcIndex (const label i) const |
Return the forward circular index, i.e. the next index. More... | |
label | rcIndex (const label i) const |
Return the reverse circular index, i.e. the previous index. More... | |
const UList< T > & | completeList () const |
Return the complete list. More... | |
const List< label > & | addressing () const |
Return the list addressing. More... | |
List< T > | operator() () const |
Return the addressed elements as a List. More... | |
T & | operator[] (const label) |
Return non-const access to an element. More... | |
const T & | operator[] (const label) const |
Return const access to an element. More... | |
void | operator= (const UList< T > &) |
Assignment to UList of addressed elements. More... | |
void | operator= (const UIndirectList< T > &) |
Assignment to UIndirectList of addressed elements. More... | |
void | operator= (const T &) |
Assignment of all entries to the given value. More... | |
Additional Inherited Members | |
Public Types inherited from UIndirectList< T > | |
typedef T | value_type |
Type of values the UList contains. More... | |
typedef T & | reference |
Type that can be used for storing into. More... | |
typedef const T & | const_reference |
Type that can be used for storing into. More... | |
typedef label | difference_type |
The type that can represent the difference between any two. More... | |
typedef label | size_type |
The type that can represent the size of a UList. More... | |
A List with indirect addressing.
Definition at line 101 of file IndirectList.H.
|
inline |
Construct given the complete list and the addressing array.
Definition at line 49 of file IndirectListI.H.
Referenced by IndirectList< T >::IndirectList(), and IndirectListAddressing::IndirectListAddressing().
|
inline |
Move constructor given the complete list and moves the addressing.
Definition at line 65 of file IndirectListI.H.
References IndirectList< T >::IndirectList().
|
inline |
Copy constructor.
Definition at line 81 of file IndirectListI.H.
References IndirectList< T >::IndirectList().
|
inlineexplicit |
Construct from UIndirectList.
Definition at line 96 of file IndirectListI.H.