Template Struct ConstLoader¶
Defined in File const_loader.hpp
Inheritance Relationships¶
Base Type¶
public ripple::PaddingLoader< ConstLoader< T > >
(Template Class PaddingLoader)
Struct Documentation¶
-
template<typename
T
>
structripple
::
ConstLoader
: public ripple::PaddingLoader<ConstLoader<T>>¶ The ConstLoader type implements the padding loader interface to load the boundary with a constant value.
- Template Parameters
T
: The type of the data for the boundary.
Public Functions
-
ConstLoader
(T v) noexcept¶ Constructor, sets the constant value to load as the padding value.
- Parameters
v
: The value for the padding.
-
template<typename
Iterator
, typenameDim
>
constexpr autoload_front
(Iterator &&it, int index, Dim &&dim) const noexcept -> void¶ Loads the front padding in the given dimension, using the value of the index in the dimension to find the appropriate cell.
- Parameters
it
: An iterator to the padding cell to load.index
: The index of the padding cell in the dimension.dim
: The dimension to load the padding in.
- Template Parameters
Iterator
: The type of the iterator.Dim
: The type of the dimension specifier.
-
template<typename
Iterator
, typenameDim
>
constexpr autoload_back
(Iterator &&it, int index, Dim &&dim) const noexcept -> void¶ Loads the back padding in the given dimension, using the value of the index in the dimension to find the appropriate cell.
- Parameters
it
: An iterator to the padding cell to load.index
: The index of the padding cell in the dimension.dim
: The dimension to load the padding in.
- Template Parameters
Iterator
: The type of the iterator.Dim
: The type of the dimension specifier.