[#BloombergLP-baljsn-EncoderTestChoiceWithAllCategories] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::EncoderTestChoiceWithAllCategories :relfileprefix: ../../ :mrdocs: Test type `EncoderTestChoiceWithAllCategories` used by `baljsn` encoder tests. == Synopsis Declared in `<baljsn_encoder_testtypes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class EncoderTestChoiceWithAllCategories; ---- == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/_04enum-08.adoc[`Unnamed enum`] | Selection identifier constants. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/_04enum-0c.adoc[`Unnamed enum`] | Number of selections. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/_04enum-02.adoc[`Unnamed enum`] | Selection index constants. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/2constructor-085.adoc[`EncoderTestChoiceWithAllCategories`] [.small]#[constructor]# | Constructors | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/2destructor.adoc[`~EncoderTestChoiceWithAllCategories`] [.small]#[destructor]# | Destroy this object. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/operator_assign-02.adoc[`operator=`] | Assignment operators | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/accessSelection.adoc[`accessSelection`] | Invoke the specified 'accessor' on the non‐modifiable selection, supplying 'accessor' with the corresponding selection information structure. Return the value returned from the invocation of 'accessor' if this object has a defined selection, and ‐1 otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/charArray-0d.adoc[`charArray`] | `charArray` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/choice-0a.adoc[`choice`] | `choice` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/customizedType-05.adoc[`customizedType`] | `customizedType` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/enumeration-0b.adoc[`enumeration`] | `enumeration` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/isCharArrayValue.adoc[`isCharArrayValue`] | Return 'true' if the value of this object is a "CharArray" value, and return 'false' otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/isChoiceValue.adoc[`isChoiceValue`] | Return 'true' if the value of this object is a "Choice" value, and return 'false' otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/isCustomizedTypeValue.adoc[`isCustomizedTypeValue`] | Return 'true' if the value of this object is a "CustomizedType" value, and return 'false' otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/isEnumerationValue.adoc[`isEnumerationValue`] | Return 'true' if the value of this object is a "Enumeration" value, and return 'false' otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/isSequenceValue.adoc[`isSequenceValue`] | Return 'true' if the value of this object is a "Sequence" value, and return 'false' otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/isSimpleValue.adoc[`isSimpleValue`] | Return 'true' if the value of this object is a "Simple" value, and return 'false' otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/isUndefinedValue.adoc[`isUndefinedValue`] | Return 'true' if the value of this object is undefined, and 'false' otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/makeCharArray-0f7.adoc[`makeCharArray`] | `makeCharArray` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/makeChoice-0e.adoc[`makeChoice`] | `makeChoice` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/makeCustomizedType-0b.adoc[`makeCustomizedType`] | `makeCustomizedType` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/makeEnumeration-03.adoc[`makeEnumeration`] | `makeEnumeration` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/makeSelection-03.adoc[`makeSelection`] | `makeSelection` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/makeSequence-05c.adoc[`makeSequence`] | `makeSequence` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/makeSimple-02.adoc[`makeSimple`] | `makeSimple` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/manipulateSelection.adoc[`manipulateSelection`] | Invoke the specified 'manipulator' on the address of the modifiable selection, supplying 'manipulator' with the corresponding selection information structure. Return the value returned from the invocation of 'manipulator' if this object has a defined selection, and ‐1 otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/print.adoc[`print`] | Format this object to the specified output 'stream' at the optionally specified indentation 'level' and return a reference to the modifiable 'stream'. If 'level' is specified, optionally specify 'spacesPerLevel', the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of 'level * spacesPerLevel'. If 'level' is negative, suppress indentation of the first line. If 'spacesPerLevel' is negative, suppress line breaks and format the entire output on one line. If 'stream' is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/reset.adoc[`reset`] | Reset this object to the default value (i.e., its value upon default construction). | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/selectionId.adoc[`selectionId`] | Return the id of the current selection if the selection is defined, and ‐1 otherwise. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/selectionName.adoc[`selectionName`] | Return the symbolic name of the current selection of this object. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/sequence-022.adoc[`sequence`] | `sequence` overloads | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/simple-03.adoc[`simple`] | `simple` overloads |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/lookupSelectionInfo-01.adoc[`lookupSelectionInfo`] | `lookupSelectionInfo` overloads |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/d_charArray.adoc[`d_charArray`] [.small]#[variant member]# | Storage for the `charArray` selection value. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/d_choice.adoc[`d_choice`] [.small]#[variant member]# | The `d_choice` data member. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/d_customizedType.adoc[`d_customizedType`] [.small]#[variant member]# | The `d_customizedType` data member. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/d_enumeration.adoc[`d_enumeration`] [.small]#[variant member]# | The `d_enumeration` data member. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/d_sequence.adoc[`d_sequence`] [.small]#[variant member]# | Storage for the active selection (`d_sequence`). | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/d_simple.adoc[`d_simple`] [.small]#[variant member]# | Storage for the simple selection value. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/CLASS_NAME.adoc[`CLASS_NAME`] | Name of this class. | xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories/SELECTION_INFO_ARRAY.adoc[`SELECTION_INFO_ARRAY`] | Selection metadata for this choice type. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/baljsn/hashAppend-034.adoc[BloombergLP::baljsn::hashAppend]` | Pass the specified 'object' to the specified 'hashAlg'. This function integrates with the 'bslh' modular hashing system and effectively provides a 'bsl::hash' specialization for 'EncoderTestChoiceWithAllCategories'. | `xref:BloombergLP/baljsn/operator_lshift-036.adoc[BloombergLP::baljsn::operator<<]` | Format the specified 'rhs' to the specified output 'stream' and return a reference to the modifiable 'stream'. | `xref:BloombergLP/baljsn/operator_not_eq-03e.adoc[BloombergLP::baljsn::operator!=]` | Return 'true' if the specified 'lhs' and 'rhs' objects do not have the same values, as determined by 'operator==', and 'false' otherwise. | `xref:BloombergLP/baljsn/operator_eq-0f8.adoc[BloombergLP::baljsn::operator==]` | Return 'true' if the specified 'lhs' and 'rhs' objects have the same value, and 'false' otherwise. Two 'EncoderTestChoiceWithAllCategories' objects have the same value if either the selections in both objects have the same ids and the same values, or both selections are undefined. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#