Classes | Public Member Functions | List of all members
SortableListEFA< Type > Class Template Reference

A list that is sorted upon construction or when explicitly requested with the sort() method. More...

Inheritance diagram for SortableListEFA< Type >:
Inheritance graph
[legend]
Collaboration diagram for SortableListEFA< Type >:
Collaboration graph
[legend]

Classes

class  more
 

Public Member Functions

 SortableListEFA (const List< Type > &)
 
 SortableListEFA (const label size)
 
 SortableListEFA (const label size, const Type &)
 
 SortableListEFA (const SortableListEFA< Type > &)
 
const labelListindices () const
 
void setSize (const label)
 
void sort ()
 
void partialSort (int M, int start)
 
void stableSort ()
 
void operator= (const SortableListEFA< Type > &)
 
- Public Member Functions inherited from List< Type >
constexpr List () noexcept
 
 List (const label len)
 
 List (const label len, const T &val)
 
 List (const label len, const Foam::zero)
 
 List (const Foam::one, const T &val)
 
 List (const Foam::one, T &&val)
 
 List (const Foam::one, const Foam::zero)
 
 List (const List< T > &a)
 
 List (const UList< T > &a)
 
 List (List< T > &a, bool reuse)
 
 List (const UList< T > &list, const labelUList &indices)
 
 List (const UList< T > &list, const FixedList< label, N > &indices)
 
 List (const FixedList< T, N > &list)
 
 List (const PtrList< T > &list)
 
 List (const SLList< T > &list)
 
 List (const IndirectListBase< T, Addr > &list)
 
 List (std::initializer_list< T > list)
 
 List (List< T > &&list)
 
 List (DynamicList< T, SizeMin > &&list)
 
 List (SortableList< T > &&list)
 
 List (SLList< T > &&list)
 
 List (Istream &is)
 
 List (const label len)
 
 List (const label len, const T &val)
 
 List (const label len, const Foam::zero)
 
 List (const Foam::one, const T &val)
 
 List (const Foam::one, T &&val)
 
 List (const Foam::one, const Foam::zero)
 
 List (const UList< T > &a)
 
 List (const List< T > &a)
 
 List (List< T > &a, bool reuse)
 
 List (const UList< T > &list, const labelUList &indices)
 
 List (const PtrList< T > &list)
 
 List (const SLList< T > &list)
 
 List (std::initializer_list< T > list)
 
 List (List< T > &&list)
 
 List (SortableList< T > &&list)
 
 List (SLList< T > &&list)
 
constexpr List () noexcept
 
 List (Istream &is)
 
autoPtr< List< T > > clone () const
 
 ~List ()
 
void clear ()
 
void resize (const label len)
 
void resize (const label len, const T &val)
 
void resize (const label newLen)
 
void resize_nocopy (const label len)
 
void setSize (const label n)
 
void setSize (const label n, const T &val)
 
void append (const T &val)
 
void append (T &&val)
 
void append (const UList< T > &list)
 
void append (const IndirectListBase< T, Addr > &list)
 
void append (const T &val)
 
void append (T &&val)
 
void append (const UList< T > &list)
 
label appendUniq (const T &val)
 
void transfer (List< T > &list)
 
void transfer (DynamicList< T, SizeMin > &list)
 
void transfer (SortableList< T > &list)
 
void transfer (List< T > &list)
 
void transfer (SortableList< T > &list)
 
TnewElmt (const label i)
 
void operator= (const UList< T > &a)
 
void operator= (const List< T > &list)
 
void operator= (const SLList< T > &list)
 
void operator= (const IndirectListBase< T, Addr > &list)
 
void operator= (const FixedList< T, N > &list)
 
void operator= (std::initializer_list< T > list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
void operator= (List< T > &&list)
 
void operator= (DynamicList< T, SizeMin > &&list)
 
void operator= (SortableList< T > &&list)
 
void operator= (SLList< T > &&list)
 
void operator= (const UList< T > &a)
 
void operator= (const List< T > &list)
 
void operator= (const SLList< T > &list)
 
void operator= (std::initializer_list< T > list)
 
void operator= (List< T > &&list)
 
void operator= (SortableList< T > &&list)
 
void operator= (SLList< T > &&list)
 
void operator= (const T &val)
 
void operator= (const Foam::zero)
 
IstreamreadList (Istream &is)
 
IstreamreadList (Istream &is)
 
IstreamreadList (Istream &is)
 
void shallowCopy (const UList< T > &)=delete
 
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set (const label i, bool val=true)
 

Additional Inherited Members

- Public Types inherited from List< Type >
typedef SubList< TsubList
 
- Static Public Member Functions inherited from List< Type >
static const List< T > & null ()
 

Detailed Description

template<class Type>
class Foam::SortableListEFA< Type >

A list that is sorted upon construction or when explicitly requested with the sort() method.

Source files

Definition at line 48 of file SortableListEFA.H.

Constructor & Destructor Documentation

◆ SortableListEFA() [1/4]

SortableListEFA ( const List< Type > &  values)
explicit

Definition at line 26 of file SortableListEFA.C.

References SortableListEFA< Type >::sort().

Here is the call graph for this function:

◆ SortableListEFA() [2/4]

SortableListEFA ( const label  size)
explicit

Definition at line 36 of file SortableListEFA.C.

References forAll.

◆ SortableListEFA() [3/4]

SortableListEFA ( const label  size,
const Type &  val 
)

Definition at line 49 of file SortableListEFA.C.

References forAll.

◆ SortableListEFA() [4/4]

SortableListEFA ( const SortableListEFA< Type > &  lst)

Definition at line 62 of file SortableListEFA.C.

References forAll.

Member Function Documentation

◆ indices()

const labelList& indices ( ) const
inline

Definition at line 100 of file SortableListEFA.H.

Referenced by SortableListEFA< Type >::operator=(), and EFA< CompType, ThermoType >::reduceMechanism().

Here is the caller graph for this function:

◆ setSize()

void setSize ( const label  newSize)

Definition at line 78 of file SortableListEFA.C.

References List::setSize().

Here is the call graph for this function:

◆ sort()

void sort

Definition at line 86 of file SortableListEFA.C.

References forAll, Foam::less(), Foam::sort(), and List::transfer().

Referenced by SortableListEFA< Type >::SortableListEFA().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ partialSort()

void partialSort ( int  M,
int  start 
)

Definition at line 107 of file SortableListEFA.C.

References M.

Referenced by EFA< CompType, ThermoType >::reduceMechanism().

Here is the caller graph for this function:

◆ stableSort()

void stableSort

Definition at line 120 of file SortableListEFA.C.

References forAll, Foam::less(), Foam::stableSort(), and List::transfer().

Here is the call graph for this function:

◆ operator=()

void operator= ( const SortableListEFA< Type > &  rhs)

Definition at line 143 of file SortableListEFA.C.

References SortableListEFA< Type >::indices(), and List::operator=().

Here is the call graph for this function:

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