|
ICU 77.1
77.1
|
An Option pairs an option name with an Operand.
More...
#include <messageformat2_data_model.h>
Public Member Functions | |
| const Operand & | getValue () const |
| Accesses the right-hand side of the option. More... | |
| const UnicodeString & | getName () const |
| Accesses the left-hand side of the option. More... | |
| Option (const UnicodeString &n, Operand &&r) | |
| Constructor. More... | |
| Option () | |
| Default constructor. More... | |
| Option (const Option &other) | |
| Copy constructor. More... | |
| Option & | operator= (Option other) noexcept |
| Assignment operator. More... | |
| virtual | ~Option () |
| Destructor. More... | |
Public Member Functions inherited from icu::UObject | |
| virtual | ~UObject () |
| Destructor. More... | |
| virtual UClassID | getDynamicClassID () const |
| ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More... | |
Friends | |
| void | swap (Option &o1, Option &o2) noexcept |
| Non-member swap function. More... | |
An Option pairs an option name with an Operand.
Option is immutable, copyable and movable.
Definition at line 681 of file messageformat2_data_model.h.
|
inline |
Constructor.
Returns an Option representing the named option "name=rand".
| n | The name of the option. |
| r | The value of the option. |
Definition at line 711 of file messageformat2_data_model.h.
|
inline |
Default constructor.
Returns an Option in a valid but undefined state.
Definition at line 719 of file messageformat2_data_model.h.
| icu::message2::data_model::Option::Option | ( | const Option & | other | ) |
Copy constructor.
|
virtual |
Destructor.
|
inline |
Accesses the left-hand side of the option.
Definition at line 700 of file messageformat2_data_model.h.
|
inline |
Accesses the right-hand side of the option.
Definition at line 691 of file messageformat2_data_model.h.
Assignment operator.
Non-member swap function.
| o1 | will get o2's contents |
| o2 | will get o1's contents |
Definition at line 728 of file messageformat2_data_model.h.