Go to the documentation of this file.
52 template<
class T>
class List;
53 template<
class T,
unsigned N>
class FixedList;
116 constexpr label
start() const noexcept
122 constexpr label
size() const noexcept
128 constexpr label
stride() const noexcept
134 bool empty() const noexcept
140 constexpr label
first() const noexcept
146 label
last() const noexcept
148 return start_ + (size_-1) * stride_;
158 label
operator[](
const label i)
const noexcept
160 return start_ + i * stride_;
164 explicit operator bool() const noexcept {
return bool(size_); }
179 inline const_iterator
at(
const label i)
const;
182 inline const_iterator
begin() const noexcept;
185 inline const_iterator
cbegin() const noexcept;
188 inline const_iterator
cend() const noexcept;
191 inline const_iterator
end() const noexcept;
194 inline const_reverse_iterator
rbegin() const noexcept;
197 inline const_reverse_iterator
crbegin() const noexcept;
200 inline const_reverse_iterator
rend() const noexcept;
203 inline const_reverse_iterator
crend() const noexcept;
222 typedef const label* pointer;
229 inline constexpr
indexer() noexcept;
242 constexpr label value() const noexcept {
return value_; }
245 constexpr label
stride() const noexcept {
return stride_; }
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_); }
269 constexpr label
operator*() const noexcept {
return value_; }
274 inline label operator()() noexcept;
298 inline constexpr label
operator[](
const label
n)
const noexcept;
331 inline constexpr label operator-
353 return !(*
this == iter);
359 return !(iter < *
this);
365 return (iter < *
this);
371 return !(*
this < iter);
396 inline constexpr label
operator[](
const label
n)
const noexcept;
429 inline constexpr label operator-
451 return !(*
this == iter);
457 return !(iter < *
this);
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>=
constexpr label stride() const noexcept
The stride.
label size_type
The type that can represent the size of the range.
List< label > labels() const
Return list of labels corresponding to the slice.
constexpr label start() const noexcept
The first/start value in the range (inclusive)
bool operator<=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or older than B.
constexpr label size() const noexcept
The size of the range.
constexpr bool operator<=(const const_iterator &iter) const noexcept
Bidirectional input iterator with const access.
constexpr label operator*() const noexcept
Return the value.
constexpr bool operator>=(const const_reverse_iterator &iter) const noexcept
std::random_access_iterator_tag iterator_category
constexpr label operator[](const label n) const noexcept
Offset dereference operator.
constexpr bool operator>(const const_iterator &iter) const noexcept
const_reverse_iterator rend() const noexcept
A const_reverse_iterator set to 1 before the begin of range.
const_reverse_iterator crbegin() const noexcept
A const_reverse_iterator set to 1 before the end of range.
Istream & operator>>(Istream &, directionInfo &)
void prev() noexcept
Decrement value.
constexpr label first() const noexcept
The first/start value in the range (inclusive)
const_iterator at(const label i) const
A value indexer, for iteration or generation.
const_iterator cend() const noexcept
A const_iterator set to 1 beyond the end of the range.
constexpr bool operator<=(const const_reverse_iterator &iter) const noexcept
constexpr label stride() const noexcept
The stride for the range.
Bidirectional reverse input iterator with const access.
indexer generator() const
Return a forward values generator.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
label operator[](const label i) const noexcept
Return element in the range, without bounds checking.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
const_iterator cbegin() const noexcept
A const_iterator set to the beginning of the range.
std::random_access_iterator_tag iterator_category
constexpr bool operator>=(const const_iterator &iter) const noexcept
OBJstream os(runTime.globalPath()/outputName)
bool operator>=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or newer than B.
const_reverse_iterator rbegin() const noexcept
A const_reverse_iterator set to 1 before the end of range.
void next() noexcept
Increment value.
A set of labels defined by a start, a length and a stride.
label last() const noexcept
The (inclusive) upper value of the range.
constexpr sliceRange() noexcept
Default construct an empty slice (0,0,0)
const typedef label * pointer
constexpr indexer() noexcept
Default construct with zero value and stride = 1.
const_iterator end() const noexcept
A const_iterator set to 1 beyond the end of the range.
A 1D vector of objects of type <T> with a fixed length <N>.
tmp< faMatrix< Type > > operator*(const areaScalarField &, const faMatrix< Type > &)
void prev(const label n) noexcept
Decrease value.
const_reverse_iterator & operator++() noexcept
Prefix increment.
const_reverse_iterator crend() const noexcept
A const_reverse_iterator set to 1 before the begin of range.
bool empty() const noexcept
True if range is empty (zero-sized)
label value_type
Type of values the range contains.
constexpr label value(const label n) const noexcept
Value with offset.
constexpr bool operator>(const const_reverse_iterator &iter) const noexcept
void next(const label n) noexcept
Increase value.
const_iterator begin() const noexcept
A const_iterator set to the beginning of the range.
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.