Shortcuts

Template Struct ConstLoader

Inheritance Relationships

Base Type

Struct Documentation

template<typename T>
struct ripple::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, typename Dim>
constexpr auto load_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, typename Dim>
constexpr auto load_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.

Public Members

T value = 0

The value to load.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples