8#ifndef INCLUDED_S_BALTST_MYSEQUENCEWITHDEFAULT
9#define INCLUDED_S_BALTST_MYSEQUENCEWITHDEFAULT
43#include <bslalg_typetraits.h>
55#include <bsl_iosfwd.h>
56#include <bsl_limits.h>
60namespace s_baltst {
class MySequenceWithDefault; }
129 template <
typename t_MANIPULATOR>
138 template <
typename t_MANIPULATOR>
147 template <
typename t_MANIPULATOR>
174 bsl::ostream&
print(bsl::ostream& stream,
176 int spacesPerLevel = 4)
const;
184 template <
typename t_ACCESSOR>
192 template <
typename t_ACCESSOR>
201 template <
typename t_ACCESSOR>
204 int nameLength)
const;
220 return lhs.attribute1() == rhs.attribute1() &&
221 lhs.attribute2() == rhs.attribute2();
228 return !(lhs == rhs);
236 return rhs.print(stream, 0, -1);
261template <
typename t_MANIPULATOR>
279template <
typename t_MANIPULATOR>
282 enum { NOT_FOUND = -1 };
296template <
typename t_MANIPULATOR>
298 t_MANIPULATOR& manipulator,
302 enum { NOT_FOUND = -1 };
306 if (0 == attributeInfo) {
326template <
typename t_ACCESSOR>
344template <
typename t_ACCESSOR>
347 enum { NOT_FOUND = -1 };
361template <
typename t_ACCESSOR>
363 t_ACCESSOR& accessor,
365 int nameLength)
const
367 enum { NOT_FOUND = -1 };
371 if (0 == attributeInfo) {
Definition s_baltst_mysequencewithdefault.h:67
static const char CLASS_NAME[]
Definition s_baltst_mysequencewithdefault.h:90
static const int DEFAULT_INITIALIZER_ATTRIBUTE2
Definition s_baltst_mysequencewithdefault.h:92
int accessAttribute(t_ACCESSOR &accessor, int id) const
Definition s_baltst_mysequencewithdefault.h:345
int accessAttributes(t_ACCESSOR &accessor) const
Definition s_baltst_mysequencewithdefault.h:327
friend bool operator==(const MySequenceWithDefault &lhs, const MySequenceWithDefault &rhs)
Definition s_baltst_mysequencewithdefault.h:217
int manipulateAttributes(t_MANIPULATOR &manipulator)
Definition s_baltst_mysequencewithdefault.h:262
@ ATTRIBUTE_INDEX_ATTRIBUTE1
Definition s_baltst_mysequencewithdefault.h:85
@ ATTRIBUTE_INDEX_ATTRIBUTE2
Definition s_baltst_mysequencewithdefault.h:86
friend bool operator!=(const MySequenceWithDefault &lhs, const MySequenceWithDefault &rhs)
Returns !(lhs == rhs)
Definition s_baltst_mysequencewithdefault.h:225
friend bsl::ostream & operator<<(bsl::ostream &stream, const MySequenceWithDefault &rhs)
Definition s_baltst_mysequencewithdefault.h:233
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
int & attribute2()
Definition s_baltst_mysequencewithdefault.h:320
@ NUM_ATTRIBUTES
Definition s_baltst_mysequencewithdefault.h:81
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_mysequencewithdefault.h:94
@ ATTRIBUTE_ID_ATTRIBUTE1
Definition s_baltst_mysequencewithdefault.h:76
@ ATTRIBUTE_ID_ATTRIBUTE2
Definition s_baltst_mysequencewithdefault.h:77
int manipulateAttribute(t_MANIPULATOR &manipulator, int id)
Definition s_baltst_mysequencewithdefault.h:280
int & attribute1()
Definition s_baltst_mysequencewithdefault.h:314
#define BDLAT_DECL_SEQUENCE_WITH_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:294
#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 s_baltst_address.h:66
Definition bdlat_attributeinfo.h:139
int d_id
Definition bdlat_attributeinfo.h:142
Definition bdlat_typetraits.h:146