8#ifndef INCLUDED_S_BALTST_MYSIMPLEINTCONTENT
9#define INCLUDED_S_BALTST_MYSIMPLEINTCONTENT
43#include <bslalg_typetraits.h>
59#include <bsl_string.h>
61#include <bsl_iosfwd.h>
62#include <bsl_limits.h>
66namespace bslma {
class Allocator; }
68namespace s_baltst {
class MySimpleIntContent; }
134#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
135 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
159#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
160 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
177 template <
typename t_MANIPULATOR>
186 template <
typename t_MANIPULATOR>
195 template <
typename t_MANIPULATOR>
226 bsl::ostream&
print(bsl::ostream& stream,
228 int spacesPerLevel = 4)
const;
236 template <
typename t_ACCESSOR>
244 template <
typename t_ACCESSOR>
253 template <
typename t_ACCESSOR>
256 int nameLength)
const;
277 return lhs.attribute1() == rhs.attribute1() &&
278 lhs.attribute2() == rhs.attribute2() &&
279 lhs.theContent() == rhs.theContent();
286 return !(lhs == rhs);
294 return rhs.print(stream, 0, -1);
318template <
typename t_MANIPULATOR>
341template <
typename t_MANIPULATOR>
344 enum { NOT_FOUND = -1 };
361template <
typename t_MANIPULATOR>
363 t_MANIPULATOR& manipulator,
367 enum { NOT_FOUND = -1 };
371 if (0 == attributeInfo) {
397template <
typename t_ACCESSOR>
420template <
typename t_ACCESSOR>
423 enum { NOT_FOUND = -1 };
440template <
typename t_ACCESSOR>
442 t_ACCESSOR& accessor,
444 int nameLength)
const
446 enum { NOT_FOUND = -1 };
450 if (0 == attributeInfo) {
Definition bdlb_nullablevalue.h:262
Definition bslma_allocator.h:545
Definition s_baltst_mysimpleintcontent.h:75
int accessAttribute(t_ACCESSOR &accessor, int id) const
Definition s_baltst_mysimpleintcontent.h:421
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
static const char CLASS_NAME[]
Definition s_baltst_mysimpleintcontent.h:101
@ ATTRIBUTE_ID_ATTRIBUTE2
Definition s_baltst_mysimpleintcontent.h:86
@ ATTRIBUTE_ID_ATTRIBUTE1
Definition s_baltst_mysimpleintcontent.h:85
@ ATTRIBUTE_ID_THE_CONTENT
Definition s_baltst_mysimpleintcontent.h:87
MySimpleIntContent & operator=(const MySimpleIntContent &rhs)
Assign to this object the value of the specified rhs object.
@ ATTRIBUTE_INDEX_ATTRIBUTE2
Definition s_baltst_mysimpleintcontent.h:96
@ ATTRIBUTE_INDEX_THE_CONTENT
Definition s_baltst_mysimpleintcontent.h:97
@ ATTRIBUTE_INDEX_ATTRIBUTE1
Definition s_baltst_mysimpleintcontent.h:95
~MySimpleIntContent()
Destroy this object.
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY[]
Definition s_baltst_mysimpleintcontent.h:103
bdlb::NullableValue< bsl::string > & attribute2()
Definition s_baltst_mysimpleintcontent.h:385
int & theContent()
Definition s_baltst_mysimpleintcontent.h:391
friend bool operator!=(const MySimpleIntContent &lhs, const MySimpleIntContent &rhs)
Returns !(lhs == rhs)
Definition s_baltst_mysimpleintcontent.h:283
int accessAttributes(t_ACCESSOR &accessor) const
Definition s_baltst_mysimpleintcontent.h:398
int manipulateAttribute(t_MANIPULATOR &manipulator, int id)
Definition s_baltst_mysimpleintcontent.h:342
bdlb::NullableValue< bool > & attribute1()
Definition s_baltst_mysimpleintcontent.h:379
friend bool operator==(const MySimpleIntContent &lhs, const MySimpleIntContent &rhs)
Definition s_baltst_mysimpleintcontent.h:274
@ NUM_ATTRIBUTES
Definition s_baltst_mysimpleintcontent.h:91
MySimpleIntContent(const MySimpleIntContent &original, bslma::Allocator *basicAllocator=0)
int manipulateAttributes(t_MANIPULATOR &manipulator)
Definition s_baltst_mysimpleintcontent.h:319
static const bdlat_AttributeInfo * lookupAttributeInfo(int id)
friend bsl::ostream & operator<<(bsl::ostream &stream, const MySimpleIntContent &rhs)
Definition s_baltst_mysimpleintcontent.h:291
static const bdlat_AttributeInfo * lookupAttributeInfo(const char *name, int nameLength)
MySimpleIntContent(bslma::Allocator *basicAllocator=0)
#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