IndirectSubList< T > Class Template Reference

Indirect access to a sub-section of a list. More...

Public Member Functions

 IndirectSubList (const UList< T > &values)
 Construct from UList, the entire size. More...
 
 IndirectSubList (const UList< T > &values, const labelRange &addr)
 Construct from values list and range. More...
 
const Addr & addressing () const noexcept
 The list addressing. More...
 
Addr & addressing () noexcept
 The list addressing. More...
 

Detailed Description

template<class T>
class Foam::IndirectSubList< T >

Indirect access to a sub-section of a list.

In many cases, using a Foam::SubList provides a simpler and more efficient means of accessing a sub-list. There are, however, some advantages of a IndirectSubList:

  • allows adjustment of its addressing range after construct
  • can recover the original, underlying list at any time
See also
Foam::SubList
Source files

Definition at line 47 of file IndirectListsFwd.H.

Constructor & Destructor Documentation

◆ IndirectSubList() [1/2]

IndirectSubList ( const UList< T > &  values)
inlineexplicit

Construct from UList, the entire size.

Definition at line 71 of file IndirectSubList.H.

References IndirectSubList< T >::addressing().

Here is the call graph for this function:

◆ IndirectSubList() [2/2]

IndirectSubList ( const UList< T > &  values,
const labelRange addr 
)
inline

Construct from values list and range.

Definition at line 83 of file IndirectSubList.H.

Member Function Documentation

◆ addressing() [1/2]

const Addr& addressing
inlinenoexcept

The list addressing.

Definition at line 76 of file IndirectListAddressing.H.

Referenced by IndirectSubList< T >::IndirectSubList().

Here is the caller graph for this function:

◆ addressing() [2/2]

Addr& addressing
inlinenoexcept

The list addressing.

Definition at line 82 of file IndirectListAddressing.H.


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