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 > &, const Xfer< List< label > > &) | |
Construct given the complete list and by transferring addressing. More... | |
IndirectList (const IndirectList< T > &) | |
Copy constructor. More... | |
IndirectList (const UIndirectList< T > &) | |
Construct from UIndirectList. More... | |
void | resetAddressing (const labelUList &) |
Reset addressing. More... | |
void | resetAddressing (const Xfer< List< label > > &) |
Reset addressing. More... | |
![]() | |
UIndirectList (const UList< T > &, const labelUList &) | |
Construct given the complete list and the addressing array. 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... | |
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 from UList of addressed elements. More... | |
void | operator= (const UIndirectList< T > &) |
Assignment from UIndirectList of addressed elements. More... | |
void | operator= (const T &) |
Assignment of all entries to the given value. More... | |
Private Member Functions | |
void | operator= (const IndirectList< T > &) |
Disable default assignment operator. More... | |
void | operator= (const UIndirectList< T > &) |
Disable assignment from UIndirectList. More... | |
![]() | |
IndirectListAddressing (const labelUList &addr) | |
Construct by copying the addressing array. More... | |
IndirectListAddressing (const Xfer< List< label > > &addr) | |
Construct by transferring addressing array. More... | |
const List< label > & | addressing () const |
Return the list addressing. More... | |
void | resetAddressing (const labelUList &) |
Reset addressing. More... | |
void | resetAddressing (const Xfer< List< label > > &) |
Additional Inherited Members | |
![]() | |
typedef T | value_type |
Type of values the UList contains. More... | |
typedef T & | 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... | |
![]() | |
const typedef T & | const_reference |
Type that can be used for storing into. More... | |
A List with indirect addressing.
Definition at line 102 of file IndirectList.H.
|
inline |
Construct given the complete list and the addressing array.
Definition at line 49 of file IndirectListI.H.
Construct given the complete list and by transferring addressing.
Definition at line 65 of file IndirectListI.H.
|
inline |
Copy constructor.
Definition at line 81 of file IndirectListI.H.
|
inlineexplicit |
Construct from UIndirectList.
Definition at line 96 of file IndirectListI.H.
|
private |
Disable default assignment operator.
|
private |
Disable assignment from UIndirectList.
|
inline |
Reset addressing.
Definition at line 119 of file IndirectListI.H.
Referenced by main().
|
inline |
Reset addressing.
Definition at line 128 of file IndirectListI.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.