Go to the source code of this file.
|
| Foam |
| Namespace for OpenFOAM.
|
|
|
template<class T > |
void | writeEntry (Ostream &os, const UList< T > &) |
|
template<class T > |
Ostream & | operator<< (Ostream &, const UList< T > &) |
|
template<class T > |
Istream & | operator>> (Istream &, UList< T > &) |
|
template<class T > |
void | sort (UList< T > &) |
|
template<class T , class Cmp > |
void | sort (UList< T > &, const Cmp &) |
|
template<class T > |
void | stableSort (UList< T > &) |
|
template<class T , class Cmp > |
void | stableSort (UList< T > &, const Cmp &) |
|
template<class T > |
void | reverse (UList< T > &, const label n) |
|
template<class T > |
void | reverse (UList< T > &) |
|
template<class ListType > |
void | writeListEntry (Ostream &os, const ListType &l) |
|
template<class ListType > |
void | writeListEntries (Ostream &os, const ListType &l) |
|
template<class ListType > |
void | writeListEntries (Ostream &os, const word &keyword, const ListType &l) |
|
Original source file UList.H
Definition in file UList.H.
◆ forAll
#define forAll |
( |
|
list, |
|
|
|
i |
|
) |
| for (Foam::label i=0; i<(list).size(); i++) |
Loop across all elements in list.
- Usage
{
statements;
}
#define forAll(list, i)
Loop across all elements in list.
- See also
- forAllReverse
Definition at line 434 of file UList.H.
◆ forAllReverse
#define forAllReverse |
( |
|
list, |
|
|
|
i |
|
) |
| for (Foam::label i=(list).size()-1; i>=0; i--) |
Reverse loop across all elements in list.
- Usage
{
statements;
}
#define forAllReverse(list, i)
Reverse loop across all elements in list.
- See also
- forAll
Definition at line 446 of file UList.H.
◆ forAllIter
#define forAllIter |
( |
|
Container, |
|
|
|
container, |
|
|
|
iter |
|
) |
| |
Value: for \
( \
Container::iterator iter = (container).begin(); \
iter != (container).end(); \
++iter \
)
Iterate across all elements in the container object of type.
Container.
- Usage
forAll(ContainerType, container, iter)
{
statements;
}
- See also
- forAllConstIter
Definition at line 459 of file UList.H.
◆ forAllConstIter
#define forAllConstIter |
( |
|
Container, |
|
|
|
container, |
|
|
|
iter |
|
) |
| |
Value: for \
( \
Container::const_iterator iter = (container).begin(); \
iter != (container).end(); \
++iter \
)
Iterate across all elements in the container object of type.
Container with const access.
- Usage
{
statements;
}
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
- See also
- forAllIter
Definition at line 477 of file UList.H.