59 template<
class ListType>
63 template<
class ListType>
71 template<
class ListType>
79 template<
class ListType>
84 template<
class ListType>
88 template<
class Container>
92 template<
class Container>
101 template<
class T,
class Cmp>
110 template<
class T,
class Cmp>
119 template<
class T,
class Cmp>
125 template<
class T,
class ListType>
126 ListType
subset(
const UList<T>& select,
const T& value,
const ListType&);
131 template<
class T,
class ListType>
138 template<
class BoolListType,
class ListType>
139 ListType
subset(
const BoolListType& select,
const ListType&);
145 template<
class BoolListType,
class ListType>
157 template<
class InList,
class OutList>
161 template<
class InList,
class OutList>
165 invertManyToMany<InList,OutList>(len, in, out);
173 template<
class ListType>
174 label count(
const ListType& l,
typename ListType::const_reference
x);
178 template<
class ListType>
182 typename ListType::const_reference,
187 template<
class ListType>
191 typename ListType::const_reference,
196 template<
class ListType>
201 typename ListType::const_reference
205 template<
class ListType>
209 typename ListType::const_reference initValue,
211 typename ListType::const_reference setValue
216 template<
class ListType>
221 template<
class ListType>
226 template<
class ListType>
230 typename ListType::const_reference,
236 template<
class ListType,
class BinaryOp>
240 typename ListType::const_reference,
247 template<
class ListType>
251 typename ListType::const_reference,
257 template<
class Container,
class T,
int mRows>
262 template<
class Container,
class T,
int mRows,
int nColumns>
266 template<
class ListType>
270 template<
class ListType>
275 template<
class ListType>
279 template<
template<
typename>
class ListType,
class DataType>
283 template<
class BinaryOp>
287 template<
class Type,
template<
class>
class BinaryOp>
294 template<
class BinaryOp>
298 template<
class Type,
template<
class>
class BinaryEqOp>
void inplaceSubset(const UList< T > &select, const T &value, ListType &)
Inplace extract elements of List when select is a certain value.
void inplaceMapKey(const labelUList &oldToNew, Container &)
Recreate with mapped keys. Do not map elements with negative key.
ListType renumber(const labelUList &oldToNew, const ListType &)
Renumber the values (not the indices) of a list.
void duplicateOrder(const UList< T > &, labelList &order)
Generate (sorted) indices corresponding to duplicate list values.
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.
label findSortedIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element in sorted list and return index,.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
void inplaceRenumber(const labelUList &oldToNew, ListType &)
Inplace renumber the values of a list.
ListType rotateList(const ListType &list, const label n)
Rotate a list by n places. If n is positive rotate clockwise/right/down.
labelListList invertOneToMany(const label len, const labelUList &)
Invert one-to-many map. Unmapped elements will be size 0.
Operator to apply a binary-equals operation to a pair of lists.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
void uniqueOrder(const UList< T > &, labelList &order)
Generate (sorted) indices corresponding to unique list values.
Combination-Reduction operation for a parallel run.
List< Container > initList(const T[mRows])
To construct a List from a C array. Has extra Container type.
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
Holds information (coordinate and normal) regarding nearest wall point.
void setValues(ListType &, const labelUList &indices, typename ListType::const_reference)
Opposite of findIndices: set values at indices to given value.
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
label findMin(const ListType &, const label start=0)
Find index of min element (and less than given element).
labelList findIndices(const ListType &, typename ListType::const_reference, const label start=0)
Find all occurrences of given element. Linear search.
ListType createWithValues(const label sz, typename ListType::const_reference initValue, const labelUList &indices, typename ListType::const_reference setValue)
Opposite of findIndices: set values at indices to given value.
void inplaceReverseList(ListType &list)
Inplace reversal of a list using Swap.
labelList invert(const label len, const labelUList &)
Invert one-to-one map. Unmapped elements will be -1.
static const List< Type > & emptyList()
Return reference to zero-sized list. Compare to List::null() which returns.
List< label > labelList
A List of labels.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
ListType reverseList(const ListType &list)
Reverse a list. First element becomes last element etc.
label findMax(const ListType &, const label start=0)
Find index of max element (and larger than given element).
ListType reorder(const labelUList &oldToNew, const ListType &)
Reorder the elements (indices, not values) of a list.
List< Container > initListList(const T[mRows][nColumns])
To construct a (square) ListList from a C array. Has extra Container type.
void inplaceMapValue(const labelUList &oldToNew, Container &)
Map values. Do not map negative values.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const labelList emptyLabelList
void inplaceRotateList(ListType< DataType > &list, label n)
Inplace reversal of a list using the Reversal Block Swapping algorithm.
Operator to apply a binary operation to a pair of lists.
void invertManyToMany(const label len, const UList< InList > &, List< OutList > &)
Invert many-to-many.
ListType subset(const UList< T > &select, const T &value, const ListType &)
Extract elements of List when select is a certain value.
label findLower(const ListType &, typename ListType::const_reference, const label stary, const BinaryOp &bop)
Find last element < given value in sorted list and return index,.
List operator to append one list onto another.