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; }
90#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
91 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
109#if defined(BSLS_COMPILERFEATURES_SUPPORT_RVALUE_REFERENCES) \
110 && defined(BSLS_COMPILERFEATURES_SUPPORT_NOEXCEPT)
138 bsl::ostream&
print(bsl::ostream& stream,
140 int spacesPerLevel = 4)
const;
143 const int&
toInt()
const;
198: d_value(original.d_value)
218 d_value = rhs.d_value;
243 int spacesPerLevel)
const
263 return lhs.d_value == rhs.d_value;
271 return lhs.d_value != rhs.d_value;
276 bsl::ostream& stream,
279 return rhs.
print(stream, 0, -1);
Definition s_baltst_customint.h:65
int BaseType
Definition s_baltst_customint.h:76
int fromInt(const int &value)
Definition s_baltst_customint.h:229
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition s_baltst_customint.h:241
static int checkRestrictions(const int &value)
const int & toInt() const
Convert this value to int.
Definition s_baltst_customint.h:249
~CustomInt()
Destroy this object.
Definition s_baltst_customint.h:210
void reset()
Definition s_baltst_customint.h:223
friend bool operator!=(const CustomInt &lhs, const CustomInt &rhs)
static const char CLASS_NAME[]
Definition s_baltst_customint.h:79
CustomInt()
Create an object of type CustomInt having the default value.
Definition s_baltst_customint.h:191
friend bool operator==(const CustomInt &lhs, const CustomInt &rhs)
CustomInt & operator=(const CustomInt &rhs)
Assign to this object the value of the specified rhs object.
Definition s_baltst_customint.h:216
#define BDLAT_DECL_CUSTOMIZEDTYPE_WITH_BITWISEMOVEABLE_TRAITS(ClassName)
Definition bdlat_typetraits.h:325
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT_RCSID(tag, str)
Definition bsls_ident.h:260
#define BSLS_IDENT_PRAGMA_ONCE
Definition bsls_ident.h:310
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:719
Definition s_baltst_address.h:66
bool operator!=(const Address &lhs, const Address &rhs)
bool operator==(const Address &lhs, const Address &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const Address &rhs)