|
dex++ 0.3.1
C++ and C API reference
|
A list of registers: the arguments of an invoke or filled-new-array. More...
#include <model/types.hpp>
Public Member Functions | |
| RegList ()=default | |
| RegList (std::initializer_list< Reg > regs) | |
| RegList (std::span< const Reg > regs) | |
| RegList (const RegList &other) | |
| RegList (RegList &&other) noexcept | |
| RegList & | operator= (const RegList &other) |
| RegList & | operator= (RegList &&other) noexcept |
| ~RegList () | |
| std::size_t | size () const noexcept |
| bool | empty () const noexcept |
| const Reg * | begin () const noexcept |
| const Reg * | end () const noexcept |
| Reg * | begin () noexcept |
| Reg * | end () noexcept |
| Reg | operator[] (std::size_t i) const noexcept |
| Reg & | operator[] (std::size_t i) noexcept |
| void | push_back (Reg reg) |
| void | clear () noexcept |
| bool | is_run () const noexcept |
| True if the registers are consecutive and increasing (or the list is empty). | |
Static Public Member Functions | |
| static RegList | range (Reg first, uint16_t count) |
| The run first, first + 1, ..., first + count - 1. | |
Friends | |
| bool | operator== (const RegList &a, const RegList &b) noexcept |
A list of registers: the arguments of an invoke or filled-new-array.
Holds up to six registers without allocating. The DEX format can encode a list of up to five registers below v16, or a run of consecutive registers; write() rejects any other list.
|
default |
| dex::model::RegList::RegList | ( | std::initializer_list< Reg > | regs | ) |
|
explicit |
| dex::model::RegList::RegList | ( | const RegList & | other | ) |
|
noexcept |
| dex::model::RegList::~RegList | ( | ) |
The run first, first + 1, ..., first + count - 1.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| void dex::model::RegList::push_back | ( | Reg | reg | ) |
|
inlinenoexcept |
|
noexcept |
True if the registers are consecutive and increasing (or the list is empty).