Represents a sequence of elements in an iterable object.
More...
#include </home/runner/work/allwpilib/allwpilib/wpimath/src/main/native/thirdparty/sleipnir/include/sleipnir/autodiff/slice.hpp>
|
constexpr | Slice ()=default |
| Constructs a Slice.
|
|
constexpr | Slice (slicing::none_t) |
| Constructs a slice.
|
|
constexpr | Slice (int start) |
| Constructs a slice.
|
|
template<typename Start , typename Stop >
requires (std::same_as<Start, slicing::none_t> || std::convertible_to<Start, int>) && (std::same_as<Stop, slicing::none_t> || std::convertible_to<Stop, int>) |
constexpr | Slice (Start start, Stop stop) |
| Constructs a slice.
|
|
template<typename Start , typename Stop , typename Step >
requires (std::same_as<Start, slicing::none_t> || std::convertible_to<Start, int>) && (std::same_as<Stop, slicing::none_t> || std::convertible_to<Stop, int>) && (std::same_as<Step, slicing::none_t> || std::convertible_to<Step, int>) |
constexpr | Slice (Start start, Stop stop, Step step) |
| Constructs a slice.
|
|
constexpr int | adjust (int length) |
| Adjusts start and end slice indices assuming a sequence of the specified length.
|
|
|
int | start = 0 |
| Start index (inclusive).
|
|
int | stop = 0 |
| Stop index (exclusive).
|
|
int | step = 1 |
| Step.
|
|
Represents a sequence of elements in an iterable object.
◆ Slice() [1/5]
◆ Slice() [2/5]
◆ Slice() [3/5]
slp::Slice::Slice |
( |
int | start | ) |
|
|
inlineconstexpr |
Constructs a slice.
- Parameters
-
start | Slice start index (inclusive). |
◆ Slice() [4/5]
template<typename Start , typename Stop >
requires (std::same_as<Start,
slicing::none_t> || std::convertible_to<Start, int>) && (std::same_as<Stop,
slicing::none_t> || std::convertible_to<Stop, int>)
slp::Slice::Slice |
( |
Start | start, |
|
|
Stop | stop ) |
|
inlineconstexpr |
Constructs a slice.
- Parameters
-
start | Slice start index (inclusive). |
stop | Slice stop index (exclusive). |
◆ Slice() [5/5]
template<typename Start , typename Stop , typename Step >
requires (std::same_as<Start,
slicing::none_t> || std::convertible_to<Start, int>) && (std::same_as<Stop,
slicing::none_t> || std::convertible_to<Stop, int>) && (std::same_as<Step,
slicing::none_t> || std::convertible_to<Step, int>)
slp::Slice::Slice |
( |
Start | start, |
|
|
Stop | stop, |
|
|
Step | step ) |
|
inlineconstexpr |
Constructs a slice.
- Parameters
-
start | Slice start index (inclusive). |
stop | Slice stop index (exclusive). |
step | Slice step. |
◆ adjust()
int slp::Slice::adjust |
( |
int | length | ) |
|
|
inlineconstexpr |
Adjusts start and end slice indices assuming a sequence of the specified length.
- Parameters
-
length | The sequence length. |
- Returns
- The slice length.
◆ start
int slp::Slice::start = 0 |
◆ step
◆ stop
The documentation for this class was generated from the following file:
- /home/runner/work/allwpilib/allwpilib/wpimath/src/main/native/thirdparty/sleipnir/include/sleipnir/autodiff/slice.hpp