Type erased form of a type_pivot.
More...
#include <rexlib/core/operation/type_rule/type_pivot_descriptor.hpp>
Type erased form of a type_pivot.
- See also
- type_pivot
◆ type_pivot_descriptor()
Construct a pivot descriptor.
- Parameters
-
| source | Where the pivot value comes from. |
| index | Index of the operand, or of the operation supplied value. |
| default_pivot | Index of the pivot whose value is adopted by default, or -1 for none. |
| domain | Set of types the pivot may take. It must outlive the descriptor, which the domain tags guarantee by holding it in static storage. |
◆ get_default_pivot()
| std::ptrdiff_t rexlib::type_pivot_descriptor::get_default_pivot |
( |
| ) |
const |
|
noexcept |
Get the pivot whose value this one adopts by default.
- Returns
- std::ptrdiff_t The pivot index, or -1 for none.
◆ get_domain()
◆ get_index()
| std::size_t rexlib::type_pivot_descriptor::get_index |
( |
| ) |
const |
|
noexcept |
Get the index of the operand supplying the pivot.
- Returns
- std::size_t The index.
◆ get_source()
Get where the pivot value comes from.
- Returns
- type_pivot_source The source.
The documentation for this class was generated from the following file: