52 template<
class T>
class List;
53 template<
class T,
unsigned N>
class FixedList;
148 return start_ + (size_-1) * stride_;
160 return start_ + i * stride_;
164 explicit operator bool() const
noexcept {
return bool(size_); }
221 typedef label difference_type;
222 typedef const label* pointer;
223 typedef label reference;
242 constexpr label value()
const noexcept {
return value_; }
248 constexpr label value(
const label
n)
const noexcept 250 return value_ + (
n * stride_);
254 void prev()
noexcept { value_ -= stride_; }
257 void prev(
const label
n)
noexcept { value_ -= (
n * stride_); }
260 void next()
noexcept { value_ += stride_; }
263 void next(
const label
n)
noexcept { value_ += (
n * stride_); }
286 typedef std::random_access_iterator_tag iterator_category;
331 inline constexpr label operator-
353 return !(*
this == iter);
359 return !(iter < *
this);
362 constexpr
bool operator>(
const const_iterator& iter)
365 return (iter < *
this);
371 return !(*
this < iter);
429 inline constexpr label
operator-
451 return !(*
this == iter);
454 constexpr
bool operator<=(
const const_reverse_iterator& iter)
457 return !(iter < *
this);
460 constexpr
bool operator>(
const const_reverse_iterator& iter)
463 return (iter < *
this);
469 return !(*
this < iter);
487 inline constexpr
bool operator==
496 && a.
size() ==
b.size()
505 inline constexpr
bool operator<
513 a.first() <
b.first()
516 !(
b.first() < a.first())
522 !(
b.size() < a.size())
523 && a.stride() <
b.stride()
533 inline constexpr
bool operator!=
543 inline constexpr
bool operator<=
552 inline constexpr
bool operator>
561 inline constexpr
bool operator>=
const_iterator end() const noexcept
A const_iterator set to 1 beyond the end of the range.
const_iterator at(const label i) const
Return const_iterator to a position within the range, with bounds checking.
constexpr indexer() noexcept
Default construct with zero value and stride = 1.
A 1D vector of objects of type <T> with a fixed length <N>.
std::random_access_iterator_tag iterator_category
const_iterator cbegin() const noexcept
A const_iterator set to the beginning of the range.
constexpr bool operator==(const const_reverse_iterator &iter) const noexcept
Test for equality of values (ignore stride)
constexpr bool operator>=(const const_reverse_iterator &iter) const noexcept
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A value indexer, for iteration or generation.
bool empty() const noexcept
True if range is empty (zero-sized)
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.
const_reverse_iterator crend() const noexcept
A const_reverse_iterator set to 1 before the begin of range.
List< label > labels() const
Return list of labels corresponding to the slice.
label last() const noexcept
The (inclusive) upper value of the range.
label size_type
The type that can represent the size of the range.
Bidirectional input iterator with const access.
constexpr label operator[](const label n) const noexcept
Offset dereference operator.
bool operator>=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or newer than B.
label value_type
Type of values the range contains.
bool operator<=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or older than B.
Bidirectional reverse input iterator with const access.
constexpr label size() const noexcept
The size of the range.
tmp< faMatrix< Type > > operator*(const areaScalarField::Internal &, const faMatrix< Type > &)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Istream & operator>>(Istream &, directionInfo &)
constexpr bool operator<(const const_reverse_iterator &iter) const noexcept
Reverse compare less-than values (ignore stride)
const_iterator begin() const noexcept
A const_iterator set to the beginning of the range.
constexpr bool operator!=(const const_reverse_iterator &iter) const noexcept
label operator[](const label i) const noexcept
Return element in the range, without bounds checking.
constexpr sliceRange() noexcept
Default construct an empty slice (0,0,0)
A set of labels defined by a start, a length and a stride.
const_reverse_iterator & operator++() noexcept
Prefix increment.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
const_reverse_iterator & operator+=(const label n) noexcept
Arbitrary increment.
const_reverse_iterator & operator-=(const label n) noexcept
Arbitrary decrement.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
const_reverse_iterator rbegin() const noexcept
A const_reverse_iterator set to 1 before the end of range.
constexpr label first() const noexcept
The first/start value in the range (inclusive)
const_reverse_iterator & operator--() noexcept
Prefix decrement.
constexpr label start() const noexcept
The first/start value in the range (inclusive)
const_reverse_iterator rend() const noexcept
A const_reverse_iterator set to 1 before the begin of range.
constexpr bool operator>(const const_reverse_iterator &iter) const noexcept
const_reverse_iterator crbegin() const noexcept
A const_reverse_iterator set to 1 before the end of range.
constexpr bool operator<=(const const_reverse_iterator &iter) const noexcept
const_iterator cend() const noexcept
A const_iterator set to 1 beyond the end of the range.
indexer generator() const
Return a forward values generator.
constexpr label stride() const noexcept
The stride for the range.