[#BloombergLP-balxml-Encoder_SequenceFirstPass] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::Encoder_SequenceFirstPass :relfileprefix: ../../ :mrdocs: Component private class. Do not use. == Synopsis Declared in `<balxml_encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Encoder_SequenceFirstPass; ---- == Description This class is used as the first pass when encoding elements of a sequence. It basically does two things: o encode elements with the `bdlat_FormattingMode::e_IS_ATTRIBUTE` flag using the `Formatter::addAttribute` method. o looks for an element with the `bdlat_FormattingMode::e_IS_SIMPLE_CONTENT` flag and, if found, provides accessors to obtain the `id` of the element. Note that the behavior is undefined unless there is only one element with `IS_SIMPLE_CONTENT` flag and, if this element exist, all other elements must have `IS_ATTRIBUTE` flag. == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balxml/Encoder_SequenceFirstPass/2constructor.adoc[`Encoder_SequenceFirstPass`] [.small]#[constructor]# | Create a visitor for first pass for sequences. | xref:BloombergLP/balxml/Encoder_SequenceFirstPass/addAttribute.adoc[`addAttribute`] | Add an attribute with the specified `name`, the value of the specified `object`, using the specified `formattingMode`. | xref:BloombergLP/balxml/Encoder_SequenceFirstPass/addAttributeImp-01.adoc[`addAttributeImp`] | `addAttributeImp` overloads | xref:BloombergLP/balxml/Encoder_SequenceFirstPass/hasSubElements.adoc[`hasSubElements`] | Return true if a sub‐element is found, and false otherwise. | xref:BloombergLP/balxml/Encoder_SequenceFirstPass/operator_call.adoc[`operator()`] | Called back when an element is visited. | xref:BloombergLP/balxml/Encoder_SequenceFirstPass/simpleContentId.adoc[`simpleContentId`] | Return a null value if there is no element with `IS_SIMPLE_CONTENT` flag, or a non‐null value with the integer `id` of the element otherwise. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#