[#BloombergLP-balber-BerEncoder_UniversalElementVisitor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::BerEncoder&lowbar;UniversalElementVisitor
:relfileprefix: ../../
:mrdocs:

Visitor for top&hyphen;level and array elements during BER encoding&period;

== Synopsis

Declared in `&lt;balber&lowbar;berencoder&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class BerEncoder&lowbar;UniversalElementVisitor;
----

== Description

This class is used as a visitor for visiting the top&hyphen;level element and also array elements during encoding&period; This class is required so that the universal tag number of the element can be determined when the element is visited&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balber/BerEncoder_UniversalElementVisitor/2constructor.adoc[`BerEncoder&lowbar;UniversalElementVisitor`]         [.small]#[constructor]#
| Create a visitor that encodes universal elements using the specified `encoder` and `formattingMode`&period;
| xref:BloombergLP/balber/BerEncoder_UniversalElementVisitor/2destructor.adoc[`&#126;BerEncoder&lowbar;UniversalElementVisitor`] [.small]#[destructor]#
| Destroy this visitor&period;
| xref:BloombergLP/balber/BerEncoder_UniversalElementVisitor/operator_call.adoc[`operator()`] 
| Encode the specified `value` as a universal BER element&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
