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. More...
 
 UIndirectList (const UIndirectList< T > &list)
 Copy construct (shallow copy values and addressing) More...
 
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 60 of file faMatrix.H.

Constructor & Destructor Documentation

◆ UIndirectList() [1/2]

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

Shallow copy values and addressing.

Definition at line 74 of file UIndirectList.H.

◆ UIndirectList() [2/2]

UIndirectList ( const UIndirectList< T > &  list)
inline

Copy construct (shallow copy values and addressing)

Definition at line 80 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 92 of file UIndirectList.H.


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