Public Member Functions | Static Public Member Functions | List of all members
SubList Class Reference

A List obtained as a section of another List. More...

Public Member Functions

 SubList () noexcept=default
 
 SubList (const SubList &) noexcept=default
 
 SubList (const UList< T > &list)
 
template<unsigned N>
 SubList (const FixedList< T, N > &list)
 
 SubList (const UList< T > &list, const label subSize)
 
 SubList (const UList< T > &list, const label subSize, const label startIndex)
 
 SubList (const UList< T > &list, const labelRange &range)
 
 SubList (const labelRange &range, const UList< T > &list)
 
 operator const Foam::List< T > & () const
 
void operator= (const SubList< T > &list)
 
void operator= (const UList< T > &list)
 
template<class Addr >
void operator= (const IndirectListBase< T, Addr > &list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
template<class T >
 SubList (const UList< T > &list)
 
template<class T >
 SubList (const UList< T > &list, const label subSize)
 
template<class T >
 SubList (const UList< T > &list, const label subSize, const label startIndex)
 
template<class T >
 SubList (const UList< T > &list, const labelRange &range)
 
template<class T >
 SubList (const labelRange &range, const UList< T > &list)
 
template<class T >
void operator= (const SubList< T > &list)
 
template<class T >
void operator= (const UList< T > &list)
 
template<class T >
void operator= (const T &val)
 
template<class T >
void operator= (const Foam::zero)
 

Static Public Member Functions

static const SubList< T > & null ()
 

Detailed Description

A List obtained as a section of another List.

Since the SubList is itself unallocated, no storage is allocated or de-allocated during its use. To achieve this behaviour, SubList is derived from UList rather than List.

Source files

Definition at line 50 of file SubList.H.

Constructor & Destructor Documentation

◆ SubList() [1/13]

SubList ( )
defaultnoexcept

◆ SubList() [2/13]

SubList ( const SubList )
defaultnoexcept

◆ SubList() [3/13]

SubList ( const UList< T > &  list)
inlineexplicit

◆ SubList() [4/13]

SubList ( const FixedList< T, N > &  list)
inlineexplicit

Definition at line 37 of file SubListI.H.

◆ SubList() [5/13]

SubList ( const UList< T > &  list,
const label  subSize 
)
inline

◆ SubList() [6/13]

SubList ( const UList< T > &  list,
const label  subSize,
const label  startIndex 
)
inline

◆ SubList() [7/13]

SubList ( const UList< T > &  list,
const labelRange range 
)
inline

◆ SubList() [8/13]

SubList ( const labelRange range,
const UList< T > &  list 
)
inline

◆ SubList() [9/13]

SubList ( const UList< T > &  list)
inline

Definition at line 26 of file SubListI.H.

◆ SubList() [10/13]

SubList ( const UList< T > &  list,
const label  subSize 
)
inline

Definition at line 47 of file SubListI.H.

References UList::checkSize().

Here is the call graph for this function:

◆ SubList() [11/13]

SubList ( const UList< T > &  list,
const label  subSize,
const label  startIndex 
)
inline

Definition at line 62 of file SubListI.H.

References UList::checkRange().

Here is the call graph for this function:

◆ SubList() [12/13]

SubList ( const UList< T > &  list,
const labelRange range 
)
inline

Definition at line 78 of file SubListI.H.

References UList::checkRange(), and range.

Here is the call graph for this function:

◆ SubList() [13/13]

SubList ( const labelRange range,
const UList< T > &  list 
)
inline

Definition at line 95 of file SubListI.H.

Member Function Documentation

◆ null()

const Foam::SubList< T > & null ( )
inlinestatic

Definition at line 107 of file SubListI.H.

◆ operator const Foam::List< T > &()

operator const Foam::List< T > & ( ) const
inline

Definition at line 116 of file SubListI.H.

◆ operator=() [1/9]

void operator= ( const SubList< T > &  list)
inline

◆ operator=() [2/9]

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

◆ operator=() [3/9]

void operator= ( const IndirectListBase< T, Addr > &  list)
inline

Definition at line 138 of file SubListI.H.

◆ operator=() [4/9]

void operator= ( const T val)
inline

◆ operator=() [5/9]

void operator= ( const Foam::zero  )
inline

◆ operator=() [6/9]

void operator= ( const SubList< T > &  list)
inline

Definition at line 123 of file SubListI.H.

◆ operator=() [7/9]

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

Definition at line 130 of file SubListI.H.

◆ operator=() [8/9]

void operator= ( const T val)
inline

Definition at line 145 of file SubListI.H.

◆ operator=() [9/9]

void operator= ( const Foam::zero  )
inline

Definition at line 152 of file SubListI.H.

References Foam::Zero.


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