#include <s_baltst_mysequencewithanonymouschoice.h>
◆ anonymous enum
| Enumerator |
|---|
| SELECTION_ID_UNDEFINED | |
| SELECTION_ID_MY_CHOICE1 | |
| SELECTION_ID_MY_CHOICE2 | |
◆ anonymous enum
◆ anonymous enum
| Enumerator |
|---|
| SELECTION_INDEX_MY_CHOICE1 | |
| SELECTION_INDEX_MY_CHOICE2 | |
◆ MySequenceWithAnonymousChoiceChoice() [1/2]
| s_baltst::MySequenceWithAnonymousChoiceChoice::MySequenceWithAnonymousChoiceChoice |
( |
bslma::Allocator * |
basicAllocator = 0 | ) |
|
|
inlineexplicit |
Create an object of type MySequenceWithAnonymousChoiceChoice having the default value. Use the optionally specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
◆ MySequenceWithAnonymousChoiceChoice() [2/2]
Create an object of type MySequenceWithAnonymousChoiceChoice having the value of the specified original object. Use the optionally specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
◆ ~MySequenceWithAnonymousChoiceChoice()
| s_baltst::MySequenceWithAnonymousChoiceChoice::~MySequenceWithAnonymousChoiceChoice |
( |
| ) |
|
|
inline |
◆ accessSelection()
template<class ACCESSOR >
| int s_baltst::MySequenceWithAnonymousChoiceChoice::accessSelection |
( |
ACCESSOR & |
accessor | ) |
const |
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.
◆ isMyChoice1Value()
| bool s_baltst::MySequenceWithAnonymousChoiceChoice::isMyChoice1Value |
( |
| ) |
const |
|
inline |
Return true if the value of this object is a "MyChoice1" value, and return false otherwise.
◆ isMyChoice2Value()
| bool s_baltst::MySequenceWithAnonymousChoiceChoice::isMyChoice2Value |
( |
| ) |
const |
|
inline |
Return true if the value of this object is a "MyChoice2" value, and return false otherwise.
◆ isUndefinedValue()
| bool s_baltst::MySequenceWithAnonymousChoiceChoice::isUndefinedValue |
( |
| ) |
const |
|
inline |
Return true if the value of this object is undefined, and false otherwise.
◆ lookupSelectionInfo() [1/2]
| static const bdlat_SelectionInfo * s_baltst::MySequenceWithAnonymousChoiceChoice::lookupSelectionInfo |
( |
const char * |
name, |
|
|
int |
nameLength |
|
) |
| |
|
static |
Return selection information for the selection indicated by the specified name of the specified nameLength if the selection exists, and 0 otherwise.
◆ lookupSelectionInfo() [2/2]
| static const bdlat_SelectionInfo * s_baltst::MySequenceWithAnonymousChoiceChoice::lookupSelectionInfo |
( |
int |
id | ) |
|
|
static |
Return selection information for the selection indicated by the specified id if the selection exists, and 0 otherwise.
◆ makeMyChoice1() [1/2]
| int & s_baltst::MySequenceWithAnonymousChoiceChoice::makeMyChoice1 |
( |
| ) |
|
Set the value of this object to be a "MyChoice1" value. Optionally specify the value of the "MyChoice1". If value is not specified, the default "MyChoice1" value is used.
◆ makeMyChoice1() [2/2]
| int & s_baltst::MySequenceWithAnonymousChoiceChoice::makeMyChoice1 |
( |
int |
value | ) |
|
◆ makeMyChoice2() [1/2]
| bsl::string & s_baltst::MySequenceWithAnonymousChoiceChoice::makeMyChoice2 |
( |
| ) |
|
◆ makeMyChoice2() [2/2]
◆ makeSelection() [1/2]
| int s_baltst::MySequenceWithAnonymousChoiceChoice::makeSelection |
( |
const char * |
name, |
|
|
int |
nameLength |
|
) |
| |
Set the value of this object to be the default for the selection indicated by the specified name of the specified nameLength. Return 0 on success, and non-zero value otherwise (i.e., the selection is not found).
◆ makeSelection() [2/2]
| int s_baltst::MySequenceWithAnonymousChoiceChoice::makeSelection |
( |
int |
selectionId | ) |
|
Set the value of this object to be the default for the selection indicated by the specified selectionId. Return 0 on success, and non-zero value otherwise (i.e., the selection is not found).
◆ manipulateSelection()
template<class MANIPULATOR >
| int s_baltst::MySequenceWithAnonymousChoiceChoice::manipulateSelection |
( |
MANIPULATOR & |
manipulator | ) |
|
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.
◆ myChoice1() [1/2]
| int & s_baltst::MySequenceWithAnonymousChoiceChoice::myChoice1 |
( |
| ) |
|
|
inline |
Return a reference to the modifiable "MyChoice1" selection of this object if "MyChoice1" is the current selection. The behavior is undefined unless "MyChoice1" is the selection of this object.
◆ myChoice1() [2/2]
| const int & s_baltst::MySequenceWithAnonymousChoiceChoice::myChoice1 |
( |
| ) |
const |
|
inline |
Return a reference to the non-modifiable "MyChoice1" selection of this object if "MyChoice1" is the current selection. The behavior is undefined unless "MyChoice1" is the selection of this object.
◆ myChoice2() [1/2]
| bsl::string & s_baltst::MySequenceWithAnonymousChoiceChoice::myChoice2 |
( |
| ) |
|
|
inline |
Return a reference to the modifiable "MyChoice2" selection of this object if "MyChoice2" is the current selection. The behavior is undefined unless "MyChoice2" is the selection of this object.
◆ myChoice2() [2/2]
| const bsl::string & s_baltst::MySequenceWithAnonymousChoiceChoice::myChoice2 |
( |
| ) |
const |
|
inline |
Return a reference to the non-modifiable "MyChoice2" selection of this object if "MyChoice2" is the current selection. The behavior is undefined unless "MyChoice2" is the selection of this object.
◆ operator=()
◆ print()
| bsl::ostream & s_baltst::MySequenceWithAnonymousChoiceChoice::print |
( |
bsl::ostream & |
stream, |
|
|
int |
level = 0, |
|
|
int |
spacesPerLevel = 4 |
|
) |
| const |
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()
| void s_baltst::MySequenceWithAnonymousChoiceChoice::reset |
( |
| ) |
|
Reset this object to the default value (i.e., its value upon default construction).
◆ selectionId()
| int s_baltst::MySequenceWithAnonymousChoiceChoice::selectionId |
( |
| ) |
const |
|
inline |
Return the id of the current selection if the selection is defined, and -1 otherwise.
◆ selectionName()
| const char * s_baltst::MySequenceWithAnonymousChoiceChoice::selectionName |
( |
| ) |
const |
◆ CLASS_NAME
| const char s_baltst::MySequenceWithAnonymousChoiceChoice::CLASS_NAME[] |
|
static |
◆ d_myChoice1
◆ d_myChoice2
◆ SELECTION_INFO_ARRAY
| const bdlat_SelectionInfo s_baltst::MySequenceWithAnonymousChoiceChoice::SELECTION_INFO_ARRAY[] |
|
static |
The documentation for this class was generated from the following file: