8#ifndef INCLUDED_S_BALTST_CUSTOMINT
9#define INCLUDED_S_BALTST_CUSTOMINT
43#include <bslalg_typetraits.h>
53#include <bsl_iosfwd.h>
54#include <bsl_limits.h>
58namespace s_baltst {
class CustomInt; }
86#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
87 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
105#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
106 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
135 bsl::ostream&
print(bsl::ostream& stream,
137 int spacesPerLevel = 4)
const;
140 const int&
toInt()
const;
156 return lhs.d_value == rhs.d_value;
165 return lhs.d_value != rhs.d_value;
172 return rhs.print(stream, 0, -1);
201: d_value(original.d_value)
221 d_value = rhs.d_value;
246 int spacesPerLevel)
const
Definition s_baltst_customint.h:65
int BaseType
Definition s_baltst_customint.h:72
int fromInt(const int &value)
Definition s_baltst_customint.h:232
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition s_baltst_customint.h:244
static int checkRestrictions(const int &value)
const int & toInt() const
Convert this value to int.
Definition s_baltst_customint.h:252
~CustomInt()
Destroy this object.
Definition s_baltst_customint.h:213
void reset()
Definition s_baltst_customint.h:226
friend bool operator!=(const CustomInt &lhs, const CustomInt &rhs)
Definition s_baltst_customint.h:163
static const char CLASS_NAME[]
Definition s_baltst_customint.h:75
CustomInt()
Create an object of type CustomInt having the default value.
Definition s_baltst_customint.h:194
friend bool operator==(const CustomInt &lhs, const CustomInt &rhs)
Definition s_baltst_customint.h:154
friend bsl::ostream & operator<<(bsl::ostream &stream, const CustomInt &rhs)
Definition s_baltst_customint.h:170
CustomInt & operator=(const CustomInt &rhs)
Assign to this object the value of the specified rhs object.
Definition s_baltst_customint.h:219
#define BDLAT_DECL_CUSTOMIZEDTYPE_WITH_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:344
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1976
#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
void reset(TYPE *object)
Reset the value of the specified object to its default value.
bsl::ostream & print(bsl::ostream &stream, const TYPE &object, int level=0, int spacesPerLevel=4)
Definition bdlb_printmethods.h:725
Definition s_baltst_address.h:66