|
ICU 78.3 78.3
|
The Operator class corresponds to the FunctionRef type in the Expression interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#patterns. More...
#include <messageformat2_data_model.h>
Data Structures | |
| class | Builder |
| The mutable Operator::Builder class allows the operator to be constructed incrementally. More... | |
Public Member Functions | |
| const FunctionName & | getFunctionName () const |
| Accesses the function name. | |
| std::vector< Option > | getOptions () const |
| Accesses function options. | |
| Operator (const Operator &other) noexcept | |
| Copy constructor. | |
| Operator & | operator= (Operator) noexcept |
| Assignment operator. | |
| Operator () | |
| Default constructor. | |
| virtual | ~Operator () |
| 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 | |
| class | Binding |
| class | Builder |
| class | message2::Checker |
| class | message2::MessageFormatter |
| class | message2::Serializer |
| void | swap (Operator &o1, Operator &o2) noexcept |
| Non-member swap function. | |
The Operator class corresponds to the FunctionRef type in the Expression interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#patterns.
It represents the annotation that an expression can have: a function name paired with a map from option names to operands (possibly empty).
Operator is immutable, copyable and movable.
Definition at line 767 of file messageformat2_data_model.h.
|
noexcept |
Copy constructor.
References Operator().
Referenced by Operator(), operator=(), swap, and ~Operator().
|
inline |
Default constructor.
Puts the Operator into a valid but undefined state.
Definition at line 901 of file messageformat2_data_model.h.
|
virtual |
Destructor.
References Operator().
| const FunctionName & icu::message2::data_model::Operator::getFunctionName | ( | ) | const |
Accesses the function name.
|
inline |
Accesses function options.
Definition at line 786 of file messageformat2_data_model.h.
Assignment operator.
References Operator().
|
friend |
Definition at line 910 of file messageformat2_data_model.h.
|
friend |
Definition at line 911 of file messageformat2_data_model.h.
|
friend |
Definition at line 912 of file messageformat2_data_model.h.
|
friend |
Definition at line 913 of file messageformat2_data_model.h.
|
friend |
Definition at line 914 of file messageformat2_data_model.h.
Non-member swap function.
| o1 | will get o2's contents |
| o2 | will get o1's contents |
Definition at line 881 of file messageformat2_data_model.h.
References Operator(), and swap.
Referenced by swap.