Go to the source code of this file.
|
| | stdFoam |
| | Global macros and templates used by OpenFOAM and some standard C++ headers.
|
| |
| | Foam |
| | Namespace for OpenFOAM.
|
| |
| | Foam::Detail |
| | Implementation details for various OpenFOAM classes.
|
| |
| | Foam::Module |
| | Additional OpenFOAM modules.
|
| |
|
| #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...
|
| |
|
| 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...
|
| |
Original source file stdFoam.H
Definition in file stdFoam.H.
◆ FOAM_DEPRECATED
| #define FOAM_DEPRECATED |
( |
|
since | ) |
|
◆ FOAM_DEPRECATED_FOR
| #define FOAM_DEPRECATED_FOR |
( |
|
since, |
|
|
|
replacement |
|
) |
| |
◆ forAllIters
| #define forAllIters |
( |
|
container, |
|
|
|
iter |
|
) |
| |
◆ forAllConstIters
| #define forAllConstIters |
( |
|
container, |
|
|
|
iter |
|
) |
| |
◆ forAllReverseIters
| #define forAllReverseIters |
( |
|
container, |
|
|
|
iter |
|
) |
| |
◆ forAllConstReverseIters
| #define forAllConstReverseIters |
( |
|
container, |
|
|
|
iter |
|
) |
| |
Value:
Reverse iterate across elements of container object with const access.
- Usage
forAllReverseConstIters(container, iter)
{
statements;
}
- See also
- forAllReverseIters
Definition at line 278 of file stdFoam.H.
◆ forAll
| #define forAll |
( |
|
list, |
|
|
|
i |
|
) |
| for (Foam::label i=0; i<(list).size(); ++i) |
◆ forAllReverse
| #define forAllReverse |
( |
|
list, |
|
|
|
i |
|
) |
| for (Foam::label i=(list).size()-1; i>=0; --i) |
Reverse loop across all elements in list.
- Usage
-
- See also
- forAll
Definition at line 309 of file stdFoam.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
-
- See also
- forAllConstIter
Definition at line 325 of file stdFoam.H.
◆ forAllConstIter
| #define forAllConstIter |
( |
|
Container, |
|
|
|
container, |
|
|
|
iter |
|
) |
| |
Value:for \
( \
Container::const_iterator iter = (container).
cbegin(); \
iter != (container).
cend(); \
++iter \
)
Iterate across all elements in the container object.
of type Container with const access.
- Usage
-
- See also
- forAllIter
Definition at line 344 of file stdFoam.H.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object.
constexpr auto crend(const C &c) -> decltype(c.rend())
Return const_reverse_iterator to reverse-end of container c.
constexpr auto begin(C &c) -> decltype(c.begin())
Return iterator to the beginning of the container c.
constexpr auto begin(const C &c) -> decltype(c.begin())
Return const_iterator to the beginning of the container c.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object.
#define forAll(list, i)
Loop across all elements in list.
constexpr auto crbegin(const C &c) -> decltype(c.rbegin())
Return const_reverse_iterator to the reverse-begin of container c.
constexpr auto end(const C &c) -> decltype(c.end())
Return const_iterator to the end of the container c.
#define forAllIters(container, iter)
Iterate across all elements in the container object.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
constexpr auto rbegin(C &c) -> decltype(c.rbegin())
Return reverse_iterator to the reverse-begin of container c.
constexpr auto cend(const C &c) -> decltype(c.end())
Return const_iterator to the end of the container c.
forAllConstIters(mixture.phases(), phase)
constexpr auto cbegin(const C &c) -> decltype(c.begin())
Return const_iterator to the beginning of the container c.
#define forAllReverseIters(container, iter)
Reverse iterate across elements in the container object of type.
#define forAllReverse(list, i)
Reverse loop across all elements in list.
constexpr auto rend(C &c) -> decltype(c.rend())
Return reverse_iterator to reverse-end of container c.