UIndirectList< T > Class Template Reference

A List with indirect addressing. More...

Inheritance diagram for UIndirectList< T >:
[legend]

Public Member Functions

 UIndirectList (const UList< T > &values, const labelUList &addr)
 Shallow copy values and addressing arrays. More...
 
 UIndirectList (const UIndirectList< T > &list)
 
void operator= (const UIndirectList< T > &rhs)
 Deep copy values, Fatal if list sizes are not identical. More...
 

Detailed Description

template<class T>
class Foam::UIndirectList< T >

A List with indirect addressing.

Like IndirectList but does not store addressing.

Note the const_cast of the list values. This is so we can use it both on const and non-const lists. Alternative would be to have a const_ variant etc.

Source files

Definition at line 109 of file fvMatrix.H.

Constructor & Destructor Documentation

◆ UIndirectList() [1/2]

UIndirectList ( const UList< T > &  values,
const labelUList addr 
)
inline

Shallow copy values and addressing arrays.

Definition at line 75 of file UIndirectList.H.

◆ UIndirectList() [2/2]

UIndirectList ( const UIndirectList< T > &  list)
inline

Copy construct from UIndirectList with shallow copy of values and addressing arrays

Definition at line 82 of file UIndirectList.H.

Member Function Documentation

◆ operator=()

void operator= ( const UIndirectList< T > &  rhs)
inline

Deep copy values, Fatal if list sizes are not identical.

Definition at line 94 of file UIndirectList.H.


The documentation for this class was generated from the following files: