BDE 4.14.0 Production release
|
#include <s_baltst_testenumeration.h>
Public Types | |
enum | { k_HAS_ENUMERATOR_1 = !bslmf::IsSame<TestNilValue, Enumerator1>::value , k_HAS_ENUMERATOR_2 = !bslmf::IsSame<TestNilValue, Enumerator2>::value } |
typedef E0 | Enumerator0 |
typedef E1 | Enumerator1 |
typedef E2 | Enumerator2 |
Public Member Functions | |
BSLMF_ASSERT ((!bslmf::IsSame< TestNilEnumerator, E0 >::value)) | |
TestEnumeration () | |
TestEnumeration (int value) | |
TestEnumeration (const TestEnumeration &original) | |
TestEnumeration & | operator= (const TestEnumeration &original) |
int | fromInt (int number) |
int | fromString (const char *string, int stringLength) |
const char * | className () const |
void | toInt (int *result) const |
void | toString (bsl::string *result) const |
Static Public Member Functions | |
static bool | areEqual (const TestEnumeration &lhs, const TestEnumeration &rhs) |
This in-core value-semantic class provides a basic implementation of the bdlat
Enumeration
concept.
typedef E0 s_baltst::TestEnumeration< E0, E1, E2 >::Enumerator0 |
typedef E1 s_baltst::TestEnumeration< E0, E1, E2 >::Enumerator1 |
typedef E2 s_baltst::TestEnumeration< E0, E1, E2 >::Enumerator2 |
anonymous enum |
s_baltst::TestEnumeration< E0, E1, E2 >::TestEnumeration | ( | ) |
|
explicit |
s_baltst::TestEnumeration< E0, E1, E2 >::TestEnumeration | ( | const TestEnumeration< E0, E1, E2 > & | original | ) |
|
static |
s_baltst::TestEnumeration< E0, E1, E2 >::BSLMF_ASSERT | ( | (!bslmf::IsSame< TestNilEnumerator, E0 >::value) | ) |
const char * s_baltst::TestEnumeration< E0, E1, E2 >::className | ( | ) | const |
int s_baltst::TestEnumeration< E0, E1, E2 >::fromInt | ( | int | number | ) |
int s_baltst::TestEnumeration< E0, E1, E2 >::fromString | ( | const char * | string, |
int | stringLength | ||
) |
TestEnumeration< E0, E1, E2 > & s_baltst::TestEnumeration< E0, E1, E2 >::operator= | ( | const TestEnumeration< E0, E1, E2 > & | original | ) |
void s_baltst::TestEnumeration< E0, E1, E2 >::toInt | ( | int * | result | ) | const |
void s_baltst::TestEnumeration< E0, E1, E2 >::toString | ( | bsl::string * | result | ) | const |