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;
185 inline const_iterator
cbegin()
const;
188 inline const_iterator
cend()
const;
191 inline const_iterator
end()
const;
194 inline const_reverse_iterator
rbegin()
const;
197 inline const_reverse_iterator
crbegin()
const;
200 inline const_reverse_iterator
rend()
const;
203 inline const_reverse_iterator
crend()
const;
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_; }
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>=
const_iterator cbegin() const
A const_iterator set to the beginning of the range.
const_reverse_iterator crend() const
A const_reverse_iterator set to 1 before the begin of range.
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 bool operator>(const const_iterator &iter) const noexcept
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.
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_reverse_iterator rbegin() const
A const_reverse_iterator set to 1 before the end of range.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
std::random_access_iterator_tag iterator_category
label operator()() noexcept
Apply a postfix increment and return the current value.
constexpr bool operator>=(const const_iterator &iter) const noexcept
const_iterator cend() const
A const_iterator set to 1 beyond the end of the range.
const_iterator begin() const
A const_iterator set to the beginning of the range.
bool operator>=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or newer than B.
void next() noexcept
Increment value.
const_iterator end() const
A const_iterator set to 1 beyond the end of the range.
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.
A 1D vector of objects of type <T> with a fixed length <N>.
const_reverse_iterator rend() const
A const_reverse_iterator set to 1 before the begin of range.
void prev(const label n) noexcept
Decrease value.
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.
constexpr label value() const noexcept
The current value.
const_reverse_iterator crbegin() const
A const_reverse_iterator set to 1 before the end of range.
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.