8#ifndef INCLUDED_S_BALTST_MYSEQUENCE
9#define INCLUDED_S_BALTST_MYSEQUENCE
43#include <bslalg_typetraits.h>
57#include <bsl_string.h>
59#include <bsl_iosfwd.h>
60#include <bsl_limits.h>
64namespace bslma {
class Allocator; }
66namespace s_baltst {
class MySequence; }
129#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
130 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
154#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
155 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
172 template <
typename t_MANIPULATOR>
181 template <
typename t_MANIPULATOR>
190 template <
typename t_MANIPULATOR>
217 bsl::ostream&
print(bsl::ostream& stream,
219 int spacesPerLevel = 4)
const;
227 template <
typename t_ACCESSOR>
235 template <
typename t_ACCESSOR>
244 template <
typename t_ACCESSOR>
247 int nameLength)
const;
263 return lhs.attribute1() == rhs.attribute1() &&
264 lhs.attribute2() == rhs.attribute2();
270 return !(lhs == rhs);
278 return rhs.print(stream, 0, -1);
302template <
typename t_MANIPULATOR>
320template <
typename t_MANIPULATOR>
323 enum { NOT_FOUND = -1 };
337template <
typename t_MANIPULATOR>
339 t_MANIPULATOR& manipulator,
343 enum { NOT_FOUND = -1 };
347 if (0 == attributeInfo) {
367template <
typename t_ACCESSOR>
385template <
typename t_ACCESSOR>
388 enum { NOT_FOUND = -1 };
402template <
typename t_ACCESSOR>
404 t_ACCESSOR& accessor,
406 int nameLength)
const
408 enum { NOT_FOUND = -1 };
412 if (0 == attributeInfo) {
Definition bslstl_string.h:1252
Definition bslma_allocator.h:545
Definition s_baltst_mysequence.h:73
@ ATTRIBUTE_ID_ATTRIBUTE2
Definition s_baltst_mysequence.h:83
@ ATTRIBUTE_ID_ATTRIBUTE1
Definition s_baltst_mysequence.h:82
bsl::string & attribute2()
Definition s_baltst_mysequence.h:361
int manipulateAttributes(t_MANIPULATOR &manipulator)
Definition s_baltst_mysequence.h:303
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
friend bool operator!=(const MySequence &lhs, const MySequence &rhs)
Returns !(lhs == rhs)
Definition s_baltst_mysequence.h:268
static const char CLASS_NAME[]
Definition s_baltst_mysequence.h:96
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_mysequence.h:98
int accessAttributes(t_ACCESSOR &accessor) const
Definition s_baltst_mysequence.h:368
int accessAttribute(t_ACCESSOR &accessor, int id) const
Definition s_baltst_mysequence.h:386
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
~MySequence()
Destroy this object.
MySequence & operator=(const MySequence &rhs)
Assign to this object the value of the specified rhs object.
int manipulateAttribute(t_MANIPULATOR &manipulator, int id)
Definition s_baltst_mysequence.h:321
MySequence(const MySequence &original, bslma::Allocator *basicAllocator=0)
friend bool operator==(const MySequence &lhs, const MySequence &rhs)
Definition s_baltst_mysequence.h:261
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
friend bsl::ostream & operator<<(bsl::ostream &stream, const MySequence &rhs)
Definition s_baltst_mysequence.h:275
@ ATTRIBUTE_INDEX_ATTRIBUTE2
Definition s_baltst_mysequence.h:92
@ ATTRIBUTE_INDEX_ATTRIBUTE1
Definition s_baltst_mysequence.h:91
MySequence(bslma::Allocator *basicAllocator=0)
int & attribute1()
Definition s_baltst_mysequence.h:355
@ NUM_ATTRIBUTES
Definition s_baltst_mysequence.h:87
#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