Public Member Functions | Private Member Functions
IndirectList< T > Class Template Reference

A List with indirect addressing. More...

Inheritance diagram for IndirectList< T >:
Inheritance graph
[legend]
Collaboration diagram for IndirectList< T >:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from UIndirectList< T >
 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...
 
Tfirst ()
 Return the first element of the list. More...
 
const Tfirst () const
 Return first element of the list. More...
 
Tlast ()
 Return the last element of the list. More...
 
const Tlast () 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< Toperator() () const
 Return the addressed elements as a List. More...
 
Toperator[] (const label)
 Return non-const access to an element. More...
 
const Toperator[] (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...
 
- Private Member Functions inherited from IndirectListAddressing
 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

- Public Types inherited from UIndirectList< T >
typedef T value_type
 Type of values the UList contains. More...
 
typedef Treference
 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...
 
- Data Fields inherited from UIndirectList< T >
const typedef Tconst_reference
 Type that can be used for storing into. More...
 

Detailed Description

template<class T>
class Foam::IndirectList< T >

A List with indirect addressing.

See also
Foam::UIndirectList for a version without any allocation for the addressing.
Source files

Definition at line 102 of file IndirectList.H.

Constructor & Destructor Documentation

◆ IndirectList() [1/4]

IndirectList ( const UList< T > &  completeList,
const labelUList addr 
)
inline

Construct given the complete list and the addressing array.

Definition at line 49 of file IndirectListI.H.

◆ IndirectList() [2/4]

IndirectList ( const UList< T > &  completeList,
const Xfer< List< label > > &  addr 
)
inline

Construct given the complete list and by transferring addressing.

Definition at line 65 of file IndirectListI.H.

◆ IndirectList() [3/4]

IndirectList ( const IndirectList< T > &  lst)
inline

Copy constructor.

Definition at line 81 of file IndirectListI.H.

◆ IndirectList() [4/4]

IndirectList ( const UIndirectList< T > &  lst)
inlineexplicit

Construct from UIndirectList.

Definition at line 96 of file IndirectListI.H.

Member Function Documentation

◆ operator=() [1/2]

void operator= ( const IndirectList< T > &  )
private

Disable default assignment operator.

◆ operator=() [2/2]

void operator= ( const UIndirectList< T > &  )
private

Disable assignment from UIndirectList.

◆ resetAddressing() [1/2]

void resetAddressing
inline

Reset addressing.

Definition at line 119 of file IndirectListI.H.

Referenced by main().

Here is the caller graph for this function:

◆ resetAddressing() [2/2]

void resetAddressing
inline

Reset addressing.

Definition at line 128 of file IndirectListI.H.


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