BDE 4.14.0 Production release
Loading...
Searching...
No Matches
s_baltst_topchoice.h
Go to the documentation of this file.
1/// @file s_baltst_topchoice.h
2///
3/// The content of this file has been pre-processed for Doxygen.
4///
5
6
7// s_baltst_topchoice.h *DO NOT EDIT* @generated -*-C++-*-
8#ifndef INCLUDED_S_BALTST_TOPCHOICE
9#define INCLUDED_S_BALTST_TOPCHOICE
10
11#include <bsls_ident.h>
12BSLS_IDENT_RCSID(s_baltst_topchoice_h, "$Id$ $CSID$")
14
15/// @defgroup s_baltst_topchoice s_baltst_topchoice
16/// @brief Provide value-semantic attribute classes
17/// @addtogroup Standalones
18/// @{
19/// @addtogroup s_baltst
20/// @{
21/// @addtogroup s_baltst_topchoice
22/// @{
23///
24/// <h1> Outline </h1>
25/// * <a href="#s_baltst_topchoice-purpose"> Purpose</a>
26///
27/// # Purpose {#s_baltst_topchoice-purpose}
28/// Provide value-semantic attribute classes
29/// @}
30/** @} */
31/** @} */
32
33/** @addtogroup Standalones
34 * @{
35 */
36/** @addtogroup s_baltst
37 * @{
38 */
39/** @addtogroup s_baltst_topchoice
40 * @{
41 */
42
43#include <bslalg_typetraits.h>
44
45#include <bdlat_attributeinfo.h>
46
47#include <bdlat_selectioninfo.h>
48
49#include <bdlat_typetraits.h>
50
51#include <bsls_objectbuffer.h>
52
53#include <bslma_default.h>
54
55#include <bsls_assert.h>
56
57#include <bdlt_datetimetz.h>
58
59#include <bsl_vector.h>
60
62
63#include <s_baltst_enumerated.h>
64
65#include <s_baltst_ratsnest.h>
66
67#include <bsl_iosfwd.h>
68#include <bsl_limits.h>
69
70
71
72namespace bslma { class Allocator; }
73
74namespace s_baltst { class Topchoice; }
75namespace s_baltst {
76
77 // ===============
78 // class Topchoice
79 // ===============
80
81class Topchoice {
82
83 // INSTANCE DATA
84 union {
93 };
94
95 int d_selectionId;
96 bslma::Allocator *d_allocator_p;
97
98 public:
99 // TYPES
100
101 enum {
111 };
112
113 enum {
115 };
116
117 enum {
126 };
127
128 // CONSTANTS
129 static const char CLASS_NAME[];
130
132
133 // CLASS METHODS
134
135 /// Return selection information for the selection indicated by the
136 /// specified `id` if the selection exists, and 0 otherwise.
138
139 /// Return selection information for the selection indicated by the
140 /// specified `name` of the specified `nameLength` if the selection
141 /// exists, and 0 otherwise.
143 const char *name,
144 int nameLength);
145
146 // CREATORS
147
148 /// Create an object of type `Topchoice` having the default value. Use
149 /// the optionally specified `basicAllocator` to supply memory. If
150 /// `basicAllocator` is 0, the currently installed default allocator is
151 /// used.
152 explicit Topchoice(bslma::Allocator *basicAllocator = 0);
153
154 /// Create an object of type `Topchoice` having the value of the
155 /// specified `original` object. Use the optionally specified
156 /// `basicAllocator` to supply memory. If `basicAllocator` is 0, the
157 /// currently installed default allocator is used.
158 Topchoice(const Topchoice& original,
159 bslma::Allocator *basicAllocator = 0);
160
161#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
162 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
163 /// Create an object of type `Topchoice` having the value of the
164 /// specified `original` object. After performing this action, the
165 /// `original` object will be left in a valid, but unspecified state.
166 Topchoice(Topchoice&& original) noexcept;
167
168 /// Create an object of type `Topchoice` having the value of the
169 /// specified `original` object. After performing this action, the
170 /// `original` object will be left in a valid, but unspecified state.
171 /// Use the optionally specified `basicAllocator` to supply memory. If
172 /// `basicAllocator` is 0, the currently installed default allocator is
173 /// used.
174 Topchoice(Topchoice&& original,
175 bslma::Allocator *basicAllocator);
176#endif
177
178 /// Destroy this object.
179 ~Topchoice();
180
181 // MANIPULATORS
182
183 /// Assign to this object the value of the specified `rhs` object.
185
186#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
187 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
188 /// Assign to this object the value of the specified `rhs` object.
189 /// After performing this action, the `rhs` object will be left in a
190 /// valid, but unspecified state.
192#endif
193
194 /// Reset this object to the default value (i.e., its value upon default
195 /// construction).
196 void reset();
197
198 /// Set the value of this object to be the default for the selection
199 /// indicated by the specified `selectionId`. Return 0 on success, and
200 /// non-zero value otherwise (i.e., the selection is not found).
202
203 /// Set the value of this object to be the default for the selection
204 /// indicated by the specified `name` of the specified `nameLength`.
205 /// Return 0 on success, and non-zero value otherwise (i.e., the
206 /// selection is not found).
207 int makeSelection(const char *name, int nameLength);
208
211#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
212 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
214#endif
215 // Set the value of this object to be a "Selection1" value. Optionally
216 // specify the 'value' of the "Selection1". If 'value' is not
217 // specified, the default "Selection1" value is used.
218
221#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
222 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
224#endif
225 // Set the value of this object to be a "Selection2" value. Optionally
226 // specify the 'value' of the "Selection2". If 'value' is not
227 // specified, the default "Selection2" value is used.
228
231#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
232 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
234#endif
235 // Set the value of this object to be a "Selection3" value. Optionally
236 // specify the 'value' of the "Selection3". If 'value' is not
237 // specified, the default "Selection3" value is used.
238
241#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
242 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
244#endif
245 // Set the value of this object to be a "Selection4" value. Optionally
246 // specify the 'value' of the "Selection4". If 'value' is not
247 // specified, the default "Selection4" value is used.
248
251#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
252 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
254#endif
255 // Set the value of this object to be a "Selection5" value. Optionally
256 // specify the 'value' of the "Selection5". If 'value' is not
257 // specified, the default "Selection5" value is used.
258
261#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
262 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
264#endif
265 // Set the value of this object to be a "Selection6" value. Optionally
266 // specify the 'value' of the "Selection6". If 'value' is not
267 // specified, the default "Selection6" value is used.
268
269 /// Set the value of this object to be a "Selection7" value. Optionally
270 /// specify the `value` of the "Selection7". If `value` is not
271 /// specified, the default "Selection7" value is used.
274
277#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
278 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
280#endif
281 // Set the value of this object to be a "Selection8" value. Optionally
282 // specify the 'value' of the "Selection8". If 'value' is not
283 // specified, the default "Selection8" value is used.
284
285 /// Invoke the specified `manipulator` on the address of the modifiable
286 /// selection, supplying `manipulator` with the corresponding selection
287 /// information structure. Return the value returned from the
288 /// invocation of `manipulator` if this object has a defined selection,
289 /// and -1 otherwise.
290 template<class MANIPULATOR>
291 int manipulateSelection(MANIPULATOR& manipulator);
292
293 /// Return a reference to the modifiable "Selection1" selection of this
294 /// object if "Selection1" is the current selection. The behavior is
295 /// undefined unless "Selection1" is the selection of this object.
297
298 /// Return a reference to the modifiable "Selection2" selection of this
299 /// object if "Selection2" is the current selection. The behavior is
300 /// undefined unless "Selection2" is the selection of this object.
302
303 /// Return a reference to the modifiable "Selection3" selection of this
304 /// object if "Selection3" is the current selection. The behavior is
305 /// undefined unless "Selection3" is the selection of this object.
307
308 /// Return a reference to the modifiable "Selection4" selection of this
309 /// object if "Selection4" is the current selection. The behavior is
310 /// undefined unless "Selection4" is the selection of this object.
312
313 /// Return a reference to the modifiable "Selection5" selection of this
314 /// object if "Selection5" is the current selection. The behavior is
315 /// undefined unless "Selection5" is the selection of this object.
317
318 /// Return a reference to the modifiable "Selection6" selection of this
319 /// object if "Selection6" is the current selection. The behavior is
320 /// undefined unless "Selection6" is the selection of this object.
322
323 /// Return a reference to the modifiable "Selection7" selection of this
324 /// object if "Selection7" is the current selection. The behavior is
325 /// undefined unless "Selection7" is the selection of this object.
327
328 /// Return a reference to the modifiable "Selection8" selection of this
329 /// object if "Selection8" is the current selection. The behavior is
330 /// undefined unless "Selection8" is the selection of this object.
332
333 // ACCESSORS
334
335 /// Format this object to the specified output `stream` at the
336 /// optionally specified indentation `level` and return a reference to
337 /// the modifiable `stream`. If `level` is specified, optionally
338 /// specify `spacesPerLevel`, the number of spaces per indentation level
339 /// for this and all of its nested objects. Each line is indented by
340 /// the absolute value of `level * spacesPerLevel`. If `level` is
341 /// negative, suppress indentation of the first line. If
342 /// `spacesPerLevel` is negative, suppress line breaks and format the
343 /// entire output on one line. If `stream` is initially invalid, this
344 /// operation has no effect. Note that a trailing newline is provided
345 /// in multiline mode only.
346 bsl::ostream& print(bsl::ostream& stream,
347 int level = 0,
348 int spacesPerLevel = 4) const;
349
350 /// Return the id of the current selection if the selection is defined,
351 /// and -1 otherwise.
352 int selectionId() const;
353
354 /// Invoke the specified `accessor` on the non-modifiable selection,
355 /// supplying `accessor` with the corresponding selection information
356 /// structure. Return the value returned from the invocation of
357 /// `accessor` if this object has a defined selection, and -1 otherwise.
358 template<class ACCESSOR>
359 int accessSelection(ACCESSOR& accessor) const;
360
361 /// Return a reference to the non-modifiable "Selection1" selection of
362 /// this object if "Selection1" is the current selection. The behavior
363 /// is undefined unless "Selection1" is the selection of this object.
364 const s_baltst::Sequence1& selection1() const;
365
366 /// Return a reference to the non-modifiable "Selection2" selection of
367 /// this object if "Selection2" is the current selection. The behavior
368 /// is undefined unless "Selection2" is the selection of this object.
369 const bsl::vector<char>& selection2() const;
370
371 /// Return a reference to the non-modifiable "Selection3" selection of
372 /// this object if "Selection3" is the current selection. The behavior
373 /// is undefined unless "Selection3" is the selection of this object.
374 const s_baltst::Sequence2& selection3() const;
375
376 /// Return a reference to the non-modifiable "Selection4" selection of
377 /// this object if "Selection4" is the current selection. The behavior
378 /// is undefined unless "Selection4" is the selection of this object.
379 const s_baltst::Sequence3& selection4() const;
380
381 /// Return a reference to the non-modifiable "Selection5" selection of
382 /// this object if "Selection5" is the current selection. The behavior
383 /// is undefined unless "Selection5" is the selection of this object.
384 const bdlt::DatetimeTz& selection5() const;
385
386 /// Return a reference to the non-modifiable "Selection6" selection of
387 /// this object if "Selection6" is the current selection. The behavior
388 /// is undefined unless "Selection6" is the selection of this object.
389 const s_baltst::CustomString& selection6() const;
390
391 /// Return a reference to the non-modifiable "Selection7" selection of
392 /// this object if "Selection7" is the current selection. The behavior
393 /// is undefined unless "Selection7" is the selection of this object.
395
396 /// Return a reference to the non-modifiable "Selection8" selection of
397 /// this object if "Selection8" is the current selection. The behavior
398 /// is undefined unless "Selection8" is the selection of this object.
399 const s_baltst::Choice3& selection8() const;
400
401 /// Return `true` if the value of this object is a "Selection1" value,
402 /// and return `false` otherwise.
403 bool isSelection1Value() const;
404
405 /// Return `true` if the value of this object is a "Selection2" value,
406 /// and return `false` otherwise.
407 bool isSelection2Value() const;
408
409 /// Return `true` if the value of this object is a "Selection3" value,
410 /// and return `false` otherwise.
411 bool isSelection3Value() const;
412
413 /// Return `true` if the value of this object is a "Selection4" value,
414 /// and return `false` otherwise.
415 bool isSelection4Value() const;
416
417 /// Return `true` if the value of this object is a "Selection5" value,
418 /// and return `false` otherwise.
419 bool isSelection5Value() const;
420
421 /// Return `true` if the value of this object is a "Selection6" value,
422 /// and return `false` otherwise.
423 bool isSelection6Value() const;
424
425 /// Return `true` if the value of this object is a "Selection7" value,
426 /// and return `false` otherwise.
427 bool isSelection7Value() const;
428
429 /// Return `true` if the value of this object is a "Selection8" value,
430 /// and return `false` otherwise.
431 bool isSelection8Value() const;
432
433 /// Return `true` if the value of this object is undefined, and `false`
434 /// otherwise.
435 bool isUndefinedValue() const;
436
437 /// Return the symbolic name of the current selection of this object.
438 const char *selectionName() const;
439};
440
441// FREE OPERATORS
442
443/// Return `true` if the specified `lhs` and `rhs` objects have the same
444/// value, and `false` otherwise. Two `Topchoice` objects have the same
445/// value if either the selections in both objects have the same ids and
446/// the same values, or both selections are undefined.
447inline
448bool operator==(const Topchoice& lhs, const Topchoice& rhs);
449
450/// Return `true` if the specified `lhs` and `rhs` objects do not have the
451/// same values, as determined by `operator==`, and `false` otherwise.
452inline
453bool operator!=(const Topchoice& lhs, const Topchoice& rhs);
454
455/// Format the specified `rhs` to the specified output `stream` and
456/// return a reference to the modifiable `stream`.
457inline
458bsl::ostream& operator<<(bsl::ostream& stream, const Topchoice& rhs);
459
460} // close package namespace
461
462// TRAITS
463
465
466// ============================================================================
467// INLINE FUNCTION DEFINITIONS
468// ============================================================================
469
470namespace s_baltst {
471
472 // ---------------
473 // class Topchoice
474 // ---------------
475
476// CLASS METHODS
477// CREATORS
478inline
480: d_selectionId(SELECTION_ID_UNDEFINED)
481, d_allocator_p(bslma::Default::allocator(basicAllocator))
482{
483}
484
485inline
487{
488 reset();
489}
490
491// MANIPULATORS
492template <class MANIPULATOR>
525
526inline
532
533inline
539
540inline
546
547inline
553
554inline
560
561inline
567
568inline
574
575inline
581
582// ACCESSORS
583inline
585{
586 return d_selectionId;
587}
588
589template <class ACCESSOR>
622
623inline
625{
626 BSLS_ASSERT(SELECTION_ID_SELECTION1 == d_selectionId);
627 return d_selection1.object();
628}
629
630inline
632{
633 BSLS_ASSERT(SELECTION_ID_SELECTION2 == d_selectionId);
634 return d_selection2.object();
635}
636
637inline
639{
640 BSLS_ASSERT(SELECTION_ID_SELECTION3 == d_selectionId);
641 return d_selection3.object();
642}
643
644inline
646{
647 BSLS_ASSERT(SELECTION_ID_SELECTION4 == d_selectionId);
648 return *d_selection4;
649}
650
651inline
653{
654 BSLS_ASSERT(SELECTION_ID_SELECTION5 == d_selectionId);
655 return d_selection5.object();
656}
657
658inline
660{
661 BSLS_ASSERT(SELECTION_ID_SELECTION6 == d_selectionId);
662 return d_selection6.object();
663}
664
665inline
671
672inline
674{
675 BSLS_ASSERT(SELECTION_ID_SELECTION8 == d_selectionId);
676 return d_selection8.object();
677}
678
679inline
681{
682 return SELECTION_ID_SELECTION1 == d_selectionId;
683}
684
685inline
687{
688 return SELECTION_ID_SELECTION2 == d_selectionId;
689}
690
691inline
693{
694 return SELECTION_ID_SELECTION3 == d_selectionId;
695}
696
697inline
699{
700 return SELECTION_ID_SELECTION4 == d_selectionId;
701}
702
703inline
705{
706 return SELECTION_ID_SELECTION5 == d_selectionId;
707}
708
709inline
711{
712 return SELECTION_ID_SELECTION6 == d_selectionId;
713}
714
715inline
717{
718 return SELECTION_ID_SELECTION7 == d_selectionId;
719}
720
721inline
723{
724 return SELECTION_ID_SELECTION8 == d_selectionId;
725}
726
727inline
729{
730 return SELECTION_ID_UNDEFINED == d_selectionId;
731}
732} // close package namespace
733
734// FREE FUNCTIONS
735
736inline
738 const s_baltst::Topchoice& lhs,
739 const s_baltst::Topchoice& rhs)
740{
741 typedef s_baltst::Topchoice Class;
742 if (lhs.selectionId() == rhs.selectionId()) {
743 switch (rhs.selectionId()) {
744 case Class::SELECTION_ID_SELECTION1:
745 return lhs.selection1() == rhs.selection1();
746 case Class::SELECTION_ID_SELECTION2:
747 return lhs.selection2() == rhs.selection2();
748 case Class::SELECTION_ID_SELECTION3:
749 return lhs.selection3() == rhs.selection3();
750 case Class::SELECTION_ID_SELECTION4:
751 return lhs.selection4() == rhs.selection4();
752 case Class::SELECTION_ID_SELECTION5:
753 return lhs.selection5() == rhs.selection5();
754 case Class::SELECTION_ID_SELECTION6:
755 return lhs.selection6() == rhs.selection6();
756 case Class::SELECTION_ID_SELECTION7:
757 return lhs.selection7() == rhs.selection7();
758 case Class::SELECTION_ID_SELECTION8:
759 return lhs.selection8() == rhs.selection8();
760 default:
761 BSLS_ASSERT(Class::SELECTION_ID_UNDEFINED == rhs.selectionId());
762 return true;
763 }
764 }
765 else {
766 return false;
767 }
768}
769
770inline
772 const s_baltst::Topchoice& lhs,
773 const s_baltst::Topchoice& rhs)
774{
775 return !(lhs == rhs);
776}
777
778inline
779bsl::ostream& s_baltst::operator<<(
780 bsl::ostream& stream,
781 const s_baltst::Topchoice& rhs)
782{
783 return rhs.print(stream, 0, -1);
784}
785
786
787#endif
788
789// GENERATED BY @BLP_BAS_CODEGEN_VERSION@
790// USING bas_codegen.pl s_baltst_topchoice.xsd --mode msg --includedir . --msgComponent topchoice --noRecurse --noExternalization --noHashSupport --noAggregateConversion
791// ----------------------------------------------------------------------------
792// NOTICE:
793// Copyright 2022 Bloomberg Finance L.P. All rights reserved.
794// Property of Bloomberg Finance L.P. (BFLP)
795// This software is made available solely pursuant to the
796// terms of a BFLP license agreement which governs its use.
797// ------------------------------- END-OF-FILE --------------------------------
798
799/** @} */
800/** @} */
801/** @} */
Definition bdlt_datetimetz.h:308
Definition bslstl_vector.h:1025
Definition bslma_allocator.h:457
Definition s_baltst_ratsnest.h:984
Definition s_baltst_customstring.h:71
Definition s_baltst_ratsnest.h:2224
Definition s_baltst_ratsnest.h:2474
Definition s_baltst_ratsnest.h:95
Definition s_baltst_topchoice.h:81
s_baltst::CustomString & makeSelection6()
@ SELECTION_INDEX_SELECTION6
Definition s_baltst_topchoice.h:123
@ SELECTION_INDEX_SELECTION8
Definition s_baltst_topchoice.h:125
@ SELECTION_INDEX_SELECTION3
Definition s_baltst_topchoice.h:120
@ SELECTION_INDEX_SELECTION7
Definition s_baltst_topchoice.h:124
@ SELECTION_INDEX_SELECTION2
Definition s_baltst_topchoice.h:119
@ SELECTION_INDEX_SELECTION5
Definition s_baltst_topchoice.h:122
@ SELECTION_INDEX_SELECTION1
Definition s_baltst_topchoice.h:118
@ SELECTION_INDEX_SELECTION4
Definition s_baltst_topchoice.h:121
bsls::ObjectBuffer< bsl::vector< char > > d_selection2
Definition s_baltst_topchoice.h:86
bsls::ObjectBuffer< s_baltst::CustomString > d_selection6
Definition s_baltst_topchoice.h:90
s_baltst::Sequence1 & makeSelection1()
const char * selectionName() const
Return the symbolic name of the current selection of this object.
bsls::ObjectBuffer< bdlt::DatetimeTz > d_selection5
Definition s_baltst_topchoice.h:89
s_baltst::Sequence3 * d_selection4
Definition s_baltst_topchoice.h:88
bool isSelection1Value() const
Definition s_baltst_topchoice.h:680
bdlt::DatetimeTz & makeSelection5(const bdlt::DatetimeTz &value)
static const char CLASS_NAME[]
Definition s_baltst_topchoice.h:129
s_baltst::Sequence2 & makeSelection3()
s_baltst::CustomString & selection6()
Definition s_baltst_topchoice.h:562
bool isSelection8Value() const
Definition s_baltst_topchoice.h:722
bool isUndefinedValue() const
Definition s_baltst_topchoice.h:728
bool isSelection4Value() const
Definition s_baltst_topchoice.h:698
bool isSelection7Value() const
Definition s_baltst_topchoice.h:716
s_baltst::Sequence1 & makeSelection1(const s_baltst::Sequence1 &value)
bool isSelection6Value() const
Definition s_baltst_topchoice.h:710
@ NUM_SELECTIONS
Definition s_baltst_topchoice.h:114
int accessSelection(ACCESSOR &accessor) const
Definition s_baltst_topchoice.h:590
s_baltst::Sequence1 & selection1()
Definition s_baltst_topchoice.h:527
bsl::vector< char > & selection2()
Definition s_baltst_topchoice.h:534
int makeSelection(const char *name, int nameLength)
Topchoice(bslma::Allocator *basicAllocator=0)
Definition s_baltst_topchoice.h:479
s_baltst::Enumerated::Value & selection7()
Definition s_baltst_topchoice.h:569
bool isSelection2Value() const
Definition s_baltst_topchoice.h:686
static const bdlat_SelectionInfo * lookupSelectionInfo(const char *name, int nameLength)
@ SELECTION_ID_SELECTION8
Definition s_baltst_topchoice.h:110
@ SELECTION_ID_UNDEFINED
Definition s_baltst_topchoice.h:102
@ SELECTION_ID_SELECTION5
Definition s_baltst_topchoice.h:107
@ SELECTION_ID_SELECTION2
Definition s_baltst_topchoice.h:104
@ SELECTION_ID_SELECTION1
Definition s_baltst_topchoice.h:103
@ SELECTION_ID_SELECTION3
Definition s_baltst_topchoice.h:105
@ SELECTION_ID_SELECTION4
Definition s_baltst_topchoice.h:106
@ SELECTION_ID_SELECTION7
Definition s_baltst_topchoice.h:109
@ SELECTION_ID_SELECTION6
Definition s_baltst_topchoice.h:108
s_baltst::Choice3 & makeSelection8(const s_baltst::Choice3 &value)
s_baltst::Sequence2 & makeSelection3(const s_baltst::Sequence2 &value)
bdlt::DatetimeTz & makeSelection5()
bsls::ObjectBuffer< s_baltst::Sequence2 > d_selection3
Definition s_baltst_topchoice.h:87
Topchoice(const Topchoice &original, bslma::Allocator *basicAllocator=0)
int selectionId() const
Definition s_baltst_topchoice.h:584
s_baltst::Sequence3 & selection4()
Definition s_baltst_topchoice.h:548
bool isSelection5Value() const
Definition s_baltst_topchoice.h:704
int manipulateSelection(MANIPULATOR &manipulator)
Definition s_baltst_topchoice.h:493
s_baltst::Sequence3 & makeSelection4()
bsls::ObjectBuffer< s_baltst::Choice3 > d_selection8
Definition s_baltst_topchoice.h:92
bsls::ObjectBuffer< s_baltst::Sequence1 > d_selection1
Definition s_baltst_topchoice.h:85
s_baltst::Enumerated::Value & makeSelection7(s_baltst::Enumerated::Value value)
Topchoice & operator=(const Topchoice &rhs)
Assign to this object the value of the specified rhs object.
static const bdlat_SelectionInfo SELECTION_INFO_ARRAY[]
Definition s_baltst_topchoice.h:131
s_baltst::Enumerated::Value & makeSelection7()
bsls::ObjectBuffer< s_baltst::Enumerated::Value > d_selection7
Definition s_baltst_topchoice.h:91
static const bdlat_SelectionInfo * lookupSelectionInfo(int id)
bdlt::DatetimeTz & selection5()
Definition s_baltst_topchoice.h:555
s_baltst::Choice3 & selection8()
Definition s_baltst_topchoice.h:576
~Topchoice()
Destroy this object.
Definition s_baltst_topchoice.h:486
int makeSelection(int selectionId)
s_baltst::Sequence3 & makeSelection4(const s_baltst::Sequence3 &value)
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
bsl::vector< char > & makeSelection2(const bsl::vector< char > &value)
bool isSelection3Value() const
Definition s_baltst_topchoice.h:692
s_baltst::CustomString & makeSelection6(const s_baltst::CustomString &value)
s_baltst::Sequence2 & selection3()
Definition s_baltst_topchoice.h:541
bsl::vector< char > & makeSelection2()
s_baltst::Choice3 & makeSelection8()
#define BDLAT_DECL_CHOICE_WITH_ALLOCATOR_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:249
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT_RCSID(tag, str)
Definition bsls_ident.h:260
#define BSLS_IDENT_PRAGMA_ONCE
Definition bsls_ident.h:310
Definition balxml_encoderoptions.h:68
Definition s_baltst_address.h:66
bool operator!=(const Address &lhs, const Address &rhs)
bool operator==(const Address &lhs, const Address &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const Address &rhs)
Definition bdlat_selectioninfo.h:136
Value
Definition s_baltst_enumerated.h:71
TYPE & object()
Definition bsls_objectbuffer.h:351