BloombergLP::baljsn::EncoderTestDegenerateChoice1

Test type EncoderTestDegenerateChoice1 used by baljsn encoder tests.

Synopsis

Declared in <baljsn_encoder_testtypes.h>

class EncoderTestDegenerateChoice1;

Enums

NameDescription
Unnamed enum Selection identifier constants.
Unnamed enum Number of selections.
Unnamed enum Selection index constants.

Member Functions

NameDescription
EncoderTestDegenerateChoice1 [constructor]Constructors
~EncoderTestDegenerateChoice1 [destructor]Destroy this object.
operator= Assignment operators
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.
isSequenceValue Return 'true' if the value of this object is a "Sequence" value, and return 'false' otherwise.
isUndefinedValue Return 'true' if the value of this object is undefined, and 'false' otherwise.
makeSelection makeSelection overloads
makeSequence makeSequence overloads
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.
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.
reset Reset this object to the default value (i.e., its value upon default construction).
selectionId Return the id of the current selection if the selection is defined, and -1 otherwise.
selectionName Return the symbolic name of the current selection of this object.
sequence sequence overloads

Static Member Functions

NameDescription
lookupSelectionInfo lookupSelectionInfo overloads

Data Members

NameDescription
d_sequence [variant member]Storage for the active selection (d_sequence).

Static Data Members

NameDescription
CLASS_NAME Name of this class.
SELECTION_INFO_ARRAY Selection metadata for this choice type.

Friends

NameDescription
BloombergLP::baljsn::hashAppendPass the specified 'object' to the specified 'hashAlg'. This function integrates with the 'bslh' modular hashing system and effectively provides a 'bsl::hash' specialization for 'EncoderTestDegenerateChoice1'.
BloombergLP::baljsn::operator<<Format the specified 'rhs' to the specified output 'stream' and return a reference to the modifiable 'stream'.
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.
BloombergLP::baljsn::operator==Return 'true' if the specified 'lhs' and 'rhs' objects have the same value, and 'false' otherwise. Two 'EncoderTestDegenerateChoice1' 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.