Namespaces | Macros | Functions
stdFoam.H File Reference
Include dependency graph for stdFoam.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 stdFoam
 Global macros and templates used by OpenFOAM and some standard C++ headers.
 
 Foam
 
 Foam::Detail
 
 Foam::Module
 

Macros

#define FOAM_DEPRECATED(since)
 
#define FOAM_DEPRECATED_FOR(since, replacement)
 
#define forAllIters(container, iter)
 
#define forAllConstIters(container, iter)
 
#define forAllReverseIters(container, iter)
 
#define forAllConstReverseIters(container, iter)
 
#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)
 
#define forAllIter(Container, container, iter)
 
#define forAllConstIter(Container, container, iter)
 

Functions

template<class C >
constexpr auto begin (C &c) -> decltype(c.begin())
 
template<class C >
constexpr auto begin (const C &c) -> decltype(c.begin())
 
template<class C >
constexpr auto cbegin (const C &c) -> decltype(c.begin())
 
template<class C >
constexpr auto end (C &c) -> decltype(c.end())
 
template<class C >
constexpr auto end (const C &c) -> decltype(c.end())
 
template<class C >
constexpr auto cend (const C &c) -> decltype(c.end())
 
template<class C >
constexpr auto rbegin (C &c) -> decltype(c.rbegin())
 
template<class C >
constexpr auto rbegin (const C &c) -> decltype(c.rbegin())
 
template<class C >
constexpr auto crbegin (const C &c) -> decltype(c.rbegin())
 
template<class C >
constexpr auto rend (C &c) -> decltype(c.rend())
 
template<class C >
constexpr auto rend (const C &c) -> decltype(c.rend())
 
template<class C >
constexpr auto crend (const C &c) -> decltype(c.rend())
 
template<class T >
constexpr const Tmin (const T &a, const T &b)
 
template<class T >
constexpr const Tmax (const T &a, const T &b)
 

Detailed Description

Original source file stdFoam.H

Definition in file stdFoam.H.

Macro Definition Documentation

◆ FOAM_DEPRECATED

#define FOAM_DEPRECATED (   since)

Definition at line 59 of file stdFoam.H.

◆ FOAM_DEPRECATED_FOR

#define FOAM_DEPRECATED_FOR (   since,
  replacement 
)

Definition at line 60 of file stdFoam.H.

◆ forAllIters

#define forAllIters (   container,
  iter 
)
Value:
for \
( \
auto iter = stdFoam::begin(container); \
iter != stdFoam::end(container); \
++iter \
)

Definition at line 264 of file stdFoam.H.

◆ forAllConstIters

#define forAllConstIters (   container,
  iter 
)
Value:
for \
( \
auto iter = stdFoam::cbegin(container); \
iter != stdFoam::cend(container); \
++iter \
)

Definition at line 285 of file stdFoam.H.

◆ forAllReverseIters

#define forAllReverseIters (   container,
  iter 
)
Value:
for \
( \
auto iter = stdFoam::rbegin(container); \
iter != stdFoam::rend(container); \
++iter \
)

Definition at line 307 of file stdFoam.H.

◆ forAllConstReverseIters

#define forAllConstReverseIters (   container,
  iter 
)
Value:
for \
( \
auto iter = stdFoam::crbegin(container); \
iter != stdFoam::crend(container); \
++iter \
)

Definition at line 328 of file stdFoam.H.

◆ forAll

#define forAll (   list,
 
)    for (Foam::label i=0; i<(list).size(); ++i)

Definition at line 349 of file stdFoam.H.

◆ forAllReverse

#define forAllReverse (   list,
 
)    for (Foam::label i=(list).size()-1; i>=0; --i)

Definition at line 365 of file stdFoam.H.

◆ forAllIter

#define forAllIter (   Container,
  container,
  iter 
)
Value:
for \
( \
Container::iterator iter = (container).begin(); \
iter != (container).end(); \
++iter \
)

Definition at line 384 of file stdFoam.H.

◆ forAllConstIter

#define forAllConstIter (   Container,
  container,
  iter 
)
Value:
for \
( \
Container::const_iterator iter = (container).cbegin(); \
iter != (container).cend(); \
++iter \
)

Definition at line 406 of file stdFoam.H.

stdFoam::crend
constexpr auto crend(const C &c) -> decltype(c.rend())
Definition: stdFoam.H:220
stdFoam::begin
constexpr auto begin(C &c) -> decltype(c.begin())
Definition: stdFoam.H:96
stdFoam::begin
constexpr auto begin(const C &c) -> decltype(c.begin())
Definition: stdFoam.H:107
stdFoam::crbegin
constexpr auto crbegin(const C &c) -> decltype(c.rbegin())
Definition: stdFoam.H:187
stdFoam::end
constexpr auto end(const C &c) -> decltype(c.end())
Definition: stdFoam.H:140
stdFoam::end
constexpr auto end(C &c) -> decltype(c.end())
Definition: stdFoam.H:129
stdFoam::rbegin
constexpr auto rbegin(C &c) -> decltype(c.rbegin())
Definition: stdFoam.H:165
stdFoam::cend
constexpr auto cend(const C &c) -> decltype(c.end())
Definition: stdFoam.H:151
stdFoam::cbegin
constexpr auto cbegin(const C &c) -> decltype(c.begin())
Definition: stdFoam.H:118
stdFoam::rend
constexpr auto rend(C &c) -> decltype(c.rend())
Definition: stdFoam.H:198