ICU 76.1 76.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. | |
const UnicodeString & | getName () const |
Accesses the left-hand side of the option. | |
Option (const UnicodeString &n, Operand &&r) | |
Constructor. | |
Option () | |
Default constructor. | |
Option (const Option &other) | |
Copy constructor. | |
Option & | operator= (Option other) noexcept |
Assignment operator. | |
virtual | ~Option () |
Destructor. | |
Public Member Functions inherited from icu::UObject | |
virtual | ~UObject () |
Destructor. | |
virtual UClassID | getDynamicClassID () const |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. | |
Friends | |
void | swap (Option &o1, Option &o2) noexcept |
Non-member swap function. | |
An Option
pairs an option name with an Operand.
Option
is immutable, copyable and movable.
Definition at line 679 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 709 of file messageformat2_data_model.h.
|
inline |
Default constructor.
Returns an Option in a valid but undefined state.
Definition at line 717 of file messageformat2_data_model.h.
Copy constructor.
|
virtual |
Destructor.
|
inline |
Accesses the left-hand side of the option.
Definition at line 698 of file messageformat2_data_model.h.
|
inline |
Accesses the right-hand side of the option.
Definition at line 689 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 726 of file messageformat2_data_model.h.