|
PMT Renovated main-branch
Partition Manager Tool is a fast, reliable, and feature-rich CLI application for Android devices that enables advanced partition operations such as backup, flashing, erasing, information retrieval, and more.
|
A "capsule" class that stores references. More...
#include <capsule.hpp>
Public Member Functions | |
| Capsule (_Type &value) noexcept | |
| A constructor that takes data as a reference. | |
| void | set (_Type &_value) noexcept |
| Get a reference to another piece of data and save it. Often, you can make changes later as well. | |
| _Type & | get () noexcept |
| Retrieve the stored data. | |
| _Type & | get () const noexcept |
| Retrieve the stored data. | |
| operator _Type & () noexcept | |
| Get the reference held directly with the '&' operator. | |
| operator _Type & () const noexcept | |
| Get the reference held directly with the '&' operator. | |
| operator _Type * () noexcept | |
| Get the reference held directly with the '*' operator. | |
| Capsule & | operator= (const Capsule &other) noexcept=default |
| Take the reference held by another capsule. | |
| Capsule & | operator= (const _Type &_value) noexcept |
| Change the held reference. | |
| bool | operator== (const Capsule &other) const noexcept |
| Check if the data held by the input capsule matches the data being held (==). | |
| bool | operator== (const _Type &_value) const noexcept |
| Check if the input data matches the stored data (==). | |
| bool | operator!= (const Capsule &other) const noexcept |
| Check if the data held by the input capsule matches the data being held (!=). | |
| bool | operator!= (const _Type &_value) const noexcept |
| Check if the input data matches the stored data (!=). | |
| operator bool () const noexcept | |
| Check if the reference data being held is the default (bool()). | |
| bool | operator! () const noexcept |
| Check if the reference data being held is the default (!()). | |
| _Type & | operator() () noexcept |
| Get the held reference. | |
| _Type & | operator() () const noexcept |
| Get the held reference. | |
| void | operator() (const _Type &_value) noexcept |
| Change the held reference. | |
Public Attributes | |
| _Type & | value |
Friends | |
| Capsule & | operator>> (const _Type &_value, Capsule &_capsule) noexcept |
| Change the held reference (with C++ style). | |
A "capsule" class that stores references.
| _Type | Contained value type. Must support copy assignment and equality comparison operators. |
|
inlineexplicitnoexcept |
A constructor that takes data as a reference.
|
inlinenoexcept |
Retrieve the stored data.
|
inlinenoexcept |
Retrieve the stored data.
|
inlineexplicitnoexcept |
Get the reference held directly with the '&' operator.
|
inlineexplicitnoexcept |
Get the reference held directly with the '&' operator.
|
inlineexplicitnoexcept |
Get the reference held directly with the '*' operator.
|
inlineexplicitnoexcept |
Check if the reference data being held is the default (bool()).
| true | HeldData != _Type{} |
| false | HeldData = _Type{} |
|
inlinenoexcept |
Check if the reference data being held is the default (!()).
| true | HeldData = _Type{} |
| false | HeldData != _Type{} |
|
inlinenoexcept |
Check if the input data matches the stored data (!=).
| other | Other capsule class. |
| true | The data held is the NOT same. |
| false | The data held is the same. |
|
inlinenoexcept |
Check if the data held by the input capsule matches the data being held (!=).
| other | Other capsule class. |
| true | The data held is the NOT same. |
| false | The data held is the same. |
|
inlinenoexcept |
Change the held reference.
| _value | Input variable. |
|
inlinenoexcept |
Change the held reference.
| _value | Input variable. |
|
defaultnoexcept |
Take the reference held by another capsule.
| other | Other capsule class. |
|
inlinenoexcept |
Check if the input data matches the stored data (==).
| other | Other capsule class. |
| true | The data held is the same. |
| false | The data held is the NOT same. |
|
inlinenoexcept |
Check if the data held by the input capsule matches the data being held (==).
| other | Other capsule class. |
| true | The data held is the same. |
| false | The data held is the NOT same. |
|
inlinenoexcept |
Get a reference to another piece of data and save it. Often, you can make changes later as well.
| _value | Input variable. |
|
friend |
Change the held reference (with C++ style).
| _value | Input variable. |