30 template<
class Base,
class Derived>
35 for (
direction i = 0; i < pTraits<Type>::nComponents; ++ i)
38 static_cast<const Derived&
>(*this).sample();
44 template<
class Base,
class Derived>
56 static_cast<const Derived&
>(*this).sample();
#define forAll(list, i)
Loop across all elements in list.
Type sample() const
Sample the distribution into components of a primitive type.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
volScalarField scalarField(fieldObject, mesh)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label & setComponent(label &l, const direction)