ICU 77.1
77.1
|
The MFDataModel
class describes a parsed representation of the text of a message.
More...
#include <messageformat2_data_model.h>
Data Structures | |
class | Builder |
The mutable MFDataModel::Builder class allows the data model to be constructed incrementally. More... | |
Public Member Functions | |
std::vector< Binding > | getLocalVariables () const |
Accesses the local variable declarations for this data model. More... | |
std::vector< VariableName > | getSelectors () const |
Accesses the selectors. More... | |
std::vector< Variant > | getVariants () const |
Accesses the variants. More... | |
const Pattern & | getPattern () const |
Accesses the pattern (in a message without selectors). More... | |
MFDataModel () | |
Default constructor. More... | |
MFDataModel & | operator= (MFDataModel) noexcept |
Assignment operator. More... | |
MFDataModel (const MFDataModel &other) | |
Copy constructor. More... | |
virtual | ~MFDataModel () |
Destructor. More... | |
Data Fields | |
class U_I18N_API | Builder |
The mutable MFDataModel::Builder class allows the data model to be constructed incrementally. More... | |
Friends | |
class | Checker |
class | MessageFormatter |
class | Serializer |
void | swap (MFDataModel &m1, MFDataModel &m2) noexcept |
Non-member swap function. More... | |
The MFDataModel
class describes a parsed representation of the text of a message.
This representation is public as higher-level APIs for messages will need to know its public interface: for example, to re-instantiate a parsed message with different values for imported variables.
The MFDataModel API implements the specification of the abstract syntax (data model representation) for MessageFormat.
MFDataModel
is immutable, copyable and movable.
Definition at line 2274 of file messageformat2_data_model.h.
icu::message2::MFDataModel::MFDataModel | ( | ) |
Default constructor.
Puts the MFDataModel into a valid but undefined state.
icu::message2::MFDataModel::MFDataModel | ( | const MFDataModel & | other | ) |
Copy constructor.
|
virtual |
Destructor.
|
inline |
Accesses the local variable declarations for this data model.
Definition at line 2318 of file messageformat2_data_model.h.
const Pattern& icu::message2::MFDataModel::getPattern | ( | ) | const |
Accesses the pattern (in a message without selectors).
Returns a reference to an empty pattern if the message has selectors.
|
inline |
Accesses the selectors.
Returns an empty vector if this is a pattern message.
Definition at line 2333 of file messageformat2_data_model.h.
|
inline |
Accesses the variants.
Returns an empty vector if this is a pattern message.
Definition at line 2349 of file messageformat2_data_model.h.
|
noexcept |
Assignment operator.
|
friend |
Non-member swap function.
m1 | will get m2's contents |
m2 | will get m1's contents |
Definition at line 2395 of file messageformat2_data_model.h.
The mutable MFDataModel::Builder
class allows the data model to be constructed incrementally.
Definition at line 2368 of file messageformat2_data_model.h.