8#ifndef INCLUDED_S_BALTST_MYSEQUENCEWITHNILLABLES
9#define INCLUDED_S_BALTST_MYSEQUENCEWITHNILLABLES
43#include <bslalg_typetraits.h>
59#include <bsl_string.h>
63#include <bsl_iosfwd.h>
64#include <bsl_limits.h>
68namespace bslma {
class Allocator; }
70namespace s_baltst {
class MySequenceWithNillables; }
136#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
137 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
162#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
163 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
180 template <
typename t_MANIPULATOR>
189 template <
typename t_MANIPULATOR>
198 template <
typename t_MANIPULATOR>
229 bsl::ostream&
print(bsl::ostream& stream,
231 int spacesPerLevel = 4)
const;
239 template <
typename t_ACCESSOR>
247 template <
typename t_ACCESSOR>
256 template <
typename t_ACCESSOR>
259 int nameLength)
const;
281 return lhs.attribute1() == rhs.attribute1() &&
282 lhs.attribute2() == rhs.attribute2() &&
283 lhs.attribute3() == rhs.attribute3();
290 return !(lhs == rhs);
298 return rhs.print(stream, 0, -1);
322template <
typename t_MANIPULATOR>
345template <
typename t_MANIPULATOR>
348 enum { NOT_FOUND = -1 };
365template <
typename t_MANIPULATOR>
367 t_MANIPULATOR& manipulator,
371 enum { NOT_FOUND = -1 };
375 if (0 == attributeInfo) {
401template <
typename t_ACCESSOR>
424template <
typename t_ACCESSOR>
427 enum { NOT_FOUND = -1 };
444template <
typename t_ACCESSOR>
446 t_ACCESSOR& accessor,
448 int nameLength)
const
450 enum { NOT_FOUND = -1 };
454 if (0 == attributeInfo) {
Definition bdlb_nullablevalue.h:262
Definition bslma_allocator.h:545
Definition s_baltst_mysequencewithnillables.h:77
bdlb::NullableValue< int > & attribute1()
Definition s_baltst_mysequencewithnillables.h:383
@ NUM_ATTRIBUTES
Definition s_baltst_mysequencewithnillables.h:93
int accessAttribute(t_ACCESSOR &accessor, int id) const
Definition s_baltst_mysequencewithnillables.h:425
MySequenceWithNillables(bslma::Allocator *basicAllocator=0)
MySequenceWithNillables(const MySequenceWithNillables &original, bslma::Allocator *basicAllocator=0)
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
int manipulateAttributes(t_MANIPULATOR &manipulator)
Definition s_baltst_mysequencewithnillables.h:323
friend bool operator==(const MySequenceWithNillables &lhs, const MySequenceWithNillables &rhs)
Definition s_baltst_mysequencewithnillables.h:278
bdlb::NullableValue< bsl::string > & attribute2()
Definition s_baltst_mysequencewithnillables.h:389
MySequenceWithNillables & operator=(const MySequenceWithNillables &rhs)
Assign to this object the value of the specified rhs object.
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
friend bsl::ostream & operator<<(bsl::ostream &stream, const MySequenceWithNillables &rhs)
Definition s_baltst_mysequencewithnillables.h:295
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_mysequencewithnillables.h:105
@ ATTRIBUTE_ID_ATTRIBUTE3
Definition s_baltst_mysequencewithnillables.h:89
@ ATTRIBUTE_ID_ATTRIBUTE1
Definition s_baltst_mysequencewithnillables.h:87
@ ATTRIBUTE_ID_ATTRIBUTE2
Definition s_baltst_mysequencewithnillables.h:88
friend bool operator!=(const MySequenceWithNillables &lhs, const MySequenceWithNillables &rhs)
Returns !(lhs == rhs)
Definition s_baltst_mysequencewithnillables.h:287
int manipulateAttribute(t_MANIPULATOR &manipulator, int id)
Definition s_baltst_mysequencewithnillables.h:346
static const char CLASS_NAME[]
Definition s_baltst_mysequencewithnillables.h:103
@ ATTRIBUTE_INDEX_ATTRIBUTE1
Definition s_baltst_mysequencewithnillables.h:97
@ ATTRIBUTE_INDEX_ATTRIBUTE3
Definition s_baltst_mysequencewithnillables.h:99
@ ATTRIBUTE_INDEX_ATTRIBUTE2
Definition s_baltst_mysequencewithnillables.h:98
bdlb::NullableValue< s_baltst::MySequence > & attribute3()
Definition s_baltst_mysequencewithnillables.h:395
int accessAttributes(t_ACCESSOR &accessor) const
Definition s_baltst_mysequencewithnillables.h:402
~MySequenceWithNillables()
Destroy this object.
#define BDLAT_DECL_SEQUENCE_WITH_ALLOCATOR_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:301
#define BSLS_IDENT_RCSID(tag, str)
BSLS_IDENT_RCSID() - insert ident str (specific to platform/compiler)
Definition bsls_ident.h:244
#define BSLS_IDENT_PRAGMA_ONCE
BSLS_IDENT_PRAGMA_ONCE - macro to avoid multiple inclusion
Definition bsls_ident.h:263
Definition baljsn_encoder_testtypes.h:76
Definition s_baltst_address.h:66
Definition bdlat_attributeinfo.h:139
int d_id
Definition bdlat_attributeinfo.h:142
Definition bdlat_typetraits.h:146