Public Member Functions | List of all members
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...
 
- 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...
 

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 const Tconst_reference
 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...
 

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 ( 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.

Referenced by IndirectList< T >::IndirectList(), and IndirectListAddressing::IndirectListAddressing().

Here is the caller graph for this function:

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.

References IndirectList< T >::IndirectList().

Here is the call graph for this function:

IndirectList ( const IndirectList< T > &  lst)
inline

Copy constructor.

Definition at line 81 of file IndirectListI.H.

References IndirectList< T >::IndirectList().

Here is the call graph for this function:

IndirectList ( const UIndirectList< T > &  lst)
inlineexplicit

Construct from UIndirectList.

Definition at line 96 of file IndirectListI.H.


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