Public Member Functions | Static Public Member Functions | List of all members
BiIndirectList< T > Class Template Reference

Indexes into negList (negative index) or posList (zero or positive index). More...

Public Member Functions

 BiIndirectList (const UList< T > &posList, const UList< T > &negList, const labelUList &addr)
 
 BiIndirectList (const UList< T > &posList, const UList< T > &negList, labelList &&addr)
 
label size () const noexcept
 
bool empty () const noexcept
 
const UList< T > & posList () const noexcept
 
const UList< T > & negList () const noexcept
 
const labelListaddressing () const noexcept
 
void resetAddressing (const labelUList &addr)
 
void resetAddressing (labelList &&addr)
 
List< Toperator() () const
 
Toperator[] (const label i)
 
const Toperator[] (const label i) const
 
void operator= (const UList< T > &ae)
 
void operator= (const T &val)
 

Static Public Member Functions

static label posIndex (const label i)
 
static label negIndex (const label i)
 

Detailed Description

template<class T>
class Foam::BiIndirectList< T >

Indexes into negList (negative index) or posList (zero or positive index).

Source files

Definition at line 48 of file BiIndirectList.H.

Constructor & Destructor Documentation

◆ BiIndirectList() [1/2]

BiIndirectList ( const UList< T > &  posList,
const UList< T > &  negList,
const labelUList addr 
)
inline

Definition at line 42 of file BiIndirectListI.H.

◆ BiIndirectList() [2/2]

BiIndirectList ( const UList< T > &  posList,
const UList< T > &  negList,
labelList &&  addr 
)
inline

Definition at line 56 of file BiIndirectListI.H.

Member Function Documentation

◆ size()

Foam::label size
inlinenoexcept

Definition at line 71 of file BiIndirectListI.H.

◆ empty()

bool empty
inlinenoexcept

Definition at line 78 of file BiIndirectListI.H.

◆ posList()

const Foam::UList< T > & posList
inlinenoexcept

Definition at line 85 of file BiIndirectListI.H.

◆ negList()

const Foam::UList< T > & negList
inlinenoexcept

Definition at line 92 of file BiIndirectListI.H.

◆ addressing()

const Foam::labelList & addressing
inlinenoexcept

Definition at line 100 of file BiIndirectListI.H.

◆ posIndex()

Foam::label posIndex ( const label  i)
inlinestatic

Definition at line 25 of file BiIndirectListI.H.

◆ negIndex()

Foam::label negIndex ( const label  i)
inlinestatic

Definition at line 32 of file BiIndirectListI.H.

◆ resetAddressing() [1/2]

void resetAddressing ( const labelUList addr)
inline

Definition at line 108 of file BiIndirectListI.H.

◆ resetAddressing() [2/2]

void resetAddressing ( labelList &&  addr)
inline

Definition at line 118 of file BiIndirectListI.H.

◆ operator()()

Foam::List< T > operator()
inline

Definition at line 129 of file BiIndirectListI.H.

References forAll.

◆ operator[]() [1/2]

T & operator[] ( const label  i)
inline

Definition at line 143 of file BiIndirectListI.H.

◆ operator[]() [2/2]

const T & operator[] ( const label  i) const
inline

Definition at line 159 of file BiIndirectListI.H.

◆ operator=() [1/2]

void operator= ( const UList< T > &  ae)
inline

Definition at line 175 of file BiIndirectListI.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, and UList::size().

Here is the call graph for this function:

◆ operator=() [2/2]

void operator= ( const T val)
inline

Definition at line 194 of file BiIndirectListI.H.

References forAll.


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