Includes some standard C++ headers, defines global macros and templates used in multiple places by OpenFOAM. More...
Go to the source code of this file.
Classes | |
struct | identityOp |
Namespaces | |
namespace | Foam |
Namespace for OpenFOAM. | |
namespace | Foam::Detail |
Implementation details for various OpenFOAM classes. | |
namespace | Foam::Module |
Additional OpenFOAM modules. | |
namespace | stdFoam |
Macros | |
#define | FOAM_DEPRECATED(since) |
#define | FOAM_DEPRECATED_FOR(since, replacement) |
#define | forAllIters(container, iter) |
Iterate across all elements in the container object. More... | |
#define | forAllConstIters(container, iter) |
Iterate across all elements of the container object with const access. More... | |
#define | forAllReverseIters(container, iter) |
Reverse iterate across elements in the container object of type. More... | |
#define | forAllConstReverseIters(container, iter) |
Reverse iterate across elements of container object with const access. More... | |
#define | forAll(list, i) for (Foam::label i=0; i<(list).size(); ++i) |
Loop across all elements in list. More... | |
#define | forAllReverse(list, i) for (Foam::label i=(list).size()-1; i>=0; --i) |
Reverse loop across all elements in list. More... | |
#define | forAllIter(Container, container, iter) |
Iterate across all elements in the container object. More... | |
#define | forAllConstIter(Container, container, iter) |
Iterate across all elements in the container object. More... | |
Functions | |
template<class T > | |
void | Swap (T &a, T &b) |
Swap non-array types as per std::swap, but in Foam namespace. More... | |
template<class T , size_t N> | |
void | Swap (T(&a)[N], T(&b)[N]) |
Swap array types as per std::swap example, but in Foam namespace. More... | |
template<class C > | |
constexpr auto | begin (C &c) -> decltype(c.begin()) |
Return iterator to the beginning of the container c. More... | |
template<class C > | |
constexpr auto | begin (const C &c) -> decltype(c.begin()) |
Return const_iterator to the beginning of the container c. More... | |
template<class C > | |
constexpr auto | cbegin (const C &c) -> decltype(c.begin()) |
Return const_iterator to the beginning of the container c. More... | |
template<class C > | |
constexpr auto | end (C &c) -> decltype(c.end()) |
Return iterator to the end of the container c. More... | |
template<class C > | |
constexpr auto | end (const C &c) -> decltype(c.end()) |
Return const_iterator to the end of the container c. More... | |
template<class C > | |
constexpr auto | cend (const C &c) -> decltype(c.end()) |
Return const_iterator to the end of the container c. More... | |
template<class C > | |
constexpr auto | rbegin (C &c) -> decltype(c.rbegin()) |
Return reverse_iterator to the reverse-begin of container c. More... | |
template<class C > | |
constexpr auto | rbegin (const C &c) -> decltype(c.rbegin()) |
Return const_reverse_iterator to the reverse-begin of container c. More... | |
template<class C > | |
constexpr auto | crbegin (const C &c) -> decltype(c.rbegin()) |
Return const_reverse_iterator to the reverse-begin of container c. More... | |
template<class C > | |
constexpr auto | rend (C &c) -> decltype(c.rend()) |
Return reverse_iterator to reverse-end of container c. More... | |
template<class C > | |
constexpr auto | rend (const C &c) -> decltype(c.rend()) |
Return const_reverse_iterator to reverse-end of container c. More... | |
template<class C > | |
constexpr auto | crend (const C &c) -> decltype(c.rend()) |
Return const_reverse_iterator to reverse-end of container c. More... | |
template<class T > | |
constexpr const T & | min (const T &a, const T &b) |
Return the lesser of the parameters. More... | |
template<class T > | |
constexpr const T & | max (const T &a, const T &b) |
Return the greater of the parameters. More... | |
Includes some standard C++ headers, defines global macros and templates used in multiple places by OpenFOAM.
Original source file stdFoam.H
Definition in file stdFoam.H.
#define forAllIters | ( | container, | |
iter | |||
) |
Iterate across all elements in the container object.
#define forAllConstIters | ( | container, | |
iter | |||
) |
Iterate across all elements of the container object with const access.
#define forAllReverseIters | ( | container, | |
iter | |||
) |
Reverse iterate across elements in the container object of type.
Container.
#define forAllConstReverseIters | ( | container, | |
iter | |||
) |
Reverse iterate across elements of container object with const access.
#define forAll | ( | list, | |
i | |||
) | for (Foam::label i=0; i<(list).size(); ++i) |
#define forAllReverse | ( | list, | |
i | |||
) | for (Foam::label i=(list).size()-1; i>=0; --i) |
Reverse loop across all elements in list.
#define forAllIter | ( | Container, | |
container, | |||
iter | |||
) |
Iterate across all elements in the container object.
of type Container.
#define forAllConstIter | ( | Container, | |
container, | |||
iter | |||
) |
Iterate across all elements in the container object.
of type Container with const access.