94 value_.
reset(data, size);
99 ONIXS_CONFLATEDUDP_EXPORTED
113 toStr(str, tagValue);
122 std::vector<TagValue>
132 TagValues::const_iterator
198 operator bool()
const 202 ref_ != container_->end());
209 assert(static_cast<bool>(*
this));
221 assert(static_cast<bool>(*
this));
223 const Tag selection = ref_->tag();
271 TagValues::const_iterator
293 return tagValues_.begin();
300 return tagValues_.end();
365 container.
first(tag);
370 return result->value();
422 Tag tag, Number defaultValue = Number())
431 if (strValue.
empty())
433 number = defaultValue;
449 ONIXS_CONFLATEDUDP_EXPORTED
463 toStr(str, container);
Iterator over tag-value pairs having the same tag value.
StrRef Value
Alias for the value type.
std::vector< TagValue > TagValues
Sequence of tag-value pairs.
TagValue::Value Value
Alias for value type.
TagValues::const_iterator Iterator
Iterator over container items.
void reset()
Resets the reference to nothing.
Represents a pair of a tag and a value.
#define ONIXS_CONFLATEDUDP_LTWT_EXPORTED
TagValueSelectionIterator(const TagValues &container, Tag selection)
std::string toStr(const MultiContainer &container)
Serializes the given tag-value pair.
TagValueSelectionIterator SelectionIterator
Iterator over items having the same tag value.
const Char * items() const
Read-only content.
Iterator first(Key tag) const
size_t size() const
Number of chars.
SelectionIterator all(Key tag) const
char Char
Character type alias.
#define ONIXS_CONFLATEDUDPFIX_NAMESPACE_END
TagValues::iterator TagValueIterator
Iterator over the tag-value sequence.
TagValues::const_iterator TagValueConstIterator
Constant iterator over the tag-value sequence.
TagValue(Tag tag, const Value &value)
void tag(Tag tag)
Updates tag component.
const Value & value() const
Value component of the pair.
~MultiContainer()
Finalizes the instance.
bool empty() const
Indicates whether the referenced text is empty.
ONIXS_CONFLATEDUDP_EXPORTED bool fromStr(Decimal &, const Char *, size_t)
void deserialize(const Char *fixStr, size_t fixSize)
Tag tag() const
Tag component of the pair.
void value(const Value &value)
Updates value component.
TagValueSelectionIterator()
Initializes the interator pointing to nothing.
bool value(Number &number, const MultiContainer &container, Tag tag)
bool valueOrDefault(Number &number, const MultiContainer &container, Tag tag, Number defaultValue=Number())
void value(const Char *data, size_t size)
Updates value component.
#define ONIXS_CONFLATEDUDP_LTWT_CLASS
#define ONIXS_CONFLATEDUDPFIX_NAMESPACE_BEGIN
MultiContainer()
Initializes an empty instance.
TagValueSelector(Tag tag)
Initializes functor with the given tag.