8#ifndef INCLUDED_S_BALTST_MYSEQUENCEWITHARRAY
9#define INCLUDED_S_BALTST_MYSEQUENCEWITHARRAY
43#include <bslalg_typetraits.h>
57#include <bsl_string.h>
59#include <bsl_vector.h>
61#include <bsl_iosfwd.h>
62#include <bsl_limits.h>
66namespace bslma {
class Allocator; }
68namespace s_baltst {
class MySequenceWithArray; }
131#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
132 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
156#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
157 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
174 template <
typename t_MANIPULATOR>
183 template <
typename t_MANIPULATOR>
192 template <
typename t_MANIPULATOR>
219 bsl::ostream&
print(bsl::ostream& stream,
221 int spacesPerLevel = 4)
const;
229 template <
typename t_ACCESSOR>
237 template <
typename t_ACCESSOR>
246 template <
typename t_ACCESSOR>
249 int nameLength)
const;
266 return lhs.attribute1() == rhs.attribute1() &&
267 lhs.attribute2() == rhs.attribute2();
274 return !(lhs == rhs);
282 return rhs.print(stream, 0, -1);
306template <
typename t_MANIPULATOR>
324template <
typename t_MANIPULATOR>
327 enum { NOT_FOUND = -1 };
341template <
typename t_MANIPULATOR>
343 t_MANIPULATOR& manipulator,
347 enum { NOT_FOUND = -1 };
351 if (0 == attributeInfo) {
371template <
typename t_ACCESSOR>
389template <
typename t_ACCESSOR>
392 enum { NOT_FOUND = -1 };
406template <
typename t_ACCESSOR>
408 t_ACCESSOR& accessor,
410 int nameLength)
const
412 enum { NOT_FOUND = -1 };
416 if (0 == attributeInfo) {
Definition bslstl_vector.h:1120
Definition bslma_allocator.h:545
Definition s_baltst_mysequencewitharray.h:75
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
int accessAttributes(t_ACCESSOR &accessor) const
Definition s_baltst_mysequencewitharray.h:372
int manipulateAttributes(t_MANIPULATOR &manipulator)
Definition s_baltst_mysequencewitharray.h:307
@ NUM_ATTRIBUTES
Definition s_baltst_mysequencewitharray.h:89
friend bool operator!=(const MySequenceWithArray &lhs, const MySequenceWithArray &rhs)
Returns !(lhs == rhs)
Definition s_baltst_mysequencewitharray.h:271
MySequenceWithArray(bslma::Allocator *basicAllocator=0)
bsl::vector< bsl::string > & attribute2()
Definition s_baltst_mysequencewitharray.h:365
int accessAttribute(t_ACCESSOR &accessor, int id) const
Definition s_baltst_mysequencewitharray.h:390
int manipulateAttribute(t_MANIPULATOR &manipulator, int id)
Definition s_baltst_mysequencewitharray.h:325
MySequenceWithArray & operator=(const MySequenceWithArray &rhs)
Assign to this object the value of the specified rhs object.
@ ATTRIBUTE_ID_ATTRIBUTE2
Definition s_baltst_mysequencewitharray.h:85
@ ATTRIBUTE_ID_ATTRIBUTE1
Definition s_baltst_mysequencewitharray.h:84
friend bsl::ostream & operator<<(bsl::ostream &stream, const MySequenceWithArray &rhs)
Definition s_baltst_mysequencewitharray.h:279
int & attribute1()
Definition s_baltst_mysequencewitharray.h:359
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_mysequencewitharray.h:100
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
~MySequenceWithArray()
Destroy this object.
MySequenceWithArray(const MySequenceWithArray &original, bslma::Allocator *basicAllocator=0)
friend bool operator==(const MySequenceWithArray &lhs, const MySequenceWithArray &rhs)
Definition s_baltst_mysequencewitharray.h:263
static const char CLASS_NAME[]
Definition s_baltst_mysequencewitharray.h:98
@ ATTRIBUTE_INDEX_ATTRIBUTE2
Definition s_baltst_mysequencewitharray.h:94
@ ATTRIBUTE_INDEX_ATTRIBUTE1
Definition s_baltst_mysequencewitharray.h:93
#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