34template<
class T,
unsigned N>
40 <<
"Invalid for non-contiguous data types"
49template<
class T,
unsigned N>
56 while (
pos < label(
N))
71template<
class T,
unsigned N>
75 if (pos < 0 || pos >= label(
N))
96template<
class T,
unsigned N>
101 for (label lower = 0; lower < i; ++lower)
108template<
class T,
unsigned N>
113 for (label upper = label(
N-1); upper > i; --upper)
120template<
class T,
unsigned N>
132template<
class T,
unsigned N>
137 const label upper = label(
N-1);
148template<
class T,
unsigned N>
155 for (
unsigned i = 0; i <
N; ++i)
157 if (!(lhs[i] == rhs[i]))
168template<
class T,
unsigned N>
175 for (
unsigned i=0; i<
N; ++i)
181 else if (rhs[i] < lhs[i])
192template<
class T,
unsigned N>
199template<
class T,
unsigned N>
202 return list.operator<(*this);
206template<
class T,
unsigned N>
209 return !list.operator<(*this);
213template<
class T,
unsigned N>
Macros for accessing List elements.
#define List_CONST_ACCESS(type, f, fp)
A 1D vector of objects of type <T> with a fixed length <N>.
void moveLast(const label i)
Move element to the last position.
void swapLast(const label i)
Swap element with the last element.
bool operator>=(const FixedList< T, N > &list) const
Return true if !(a < b). Takes linear time.
void swapFirst(const label i)
Swap element with the first element.
bool operator<(const FixedList< T, N > &list) const
Compare two FixedLists lexicographically. Takes linear time.
label rfind(const T &val, label pos=-1) const
Find index of the last occurrence of the value.
static std::streamsize byteSize()
bool operator<=(const FixedList< T, N > &list) const
Return true if !(a > b). Takes linear time.
label find(const T &val, label pos=0) const
Find index of the first occurrence of the value.
void moveFirst(const label i)
Move element to the first position.
bool operator>(const FixedList< T, N > &list) const
Compare two FixedLists lexicographically. Takes linear time.
friend bool operator!=(const refineCell &rc1, const refineCell &rc2)
friend bool operator==(const refineCell &rc1, const refineCell &rc2)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedScalar pos(const dimensionedScalar &ds)
void Swap(DynamicList< T, SizeMinA > &a, DynamicList< T, SizeMinB > &b)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
errorManip< error > abort(error &err)
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.
A template class to specify that a data type can be considered as being contiguous in memory.
const Vector< label > N(dict.get< Vector< label > >("N"))