BDE 4.14.0 Production release
Loading...
Searching...
No Matches
s_baltst::TestEnumeration< E0, E1, E2 > Class Template Reference

#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)
 
TestEnumerationoperator= (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)
 

Detailed Description

template<class E0, class E1 = TestNilEnumerator, class E2 = TestNilEnumerator>
class s_baltst::TestEnumeration< E0, E1, E2 >

This in-core value-semantic class provides a basic implementation of the bdlat Enumeration concept.

See s_baltst_testenumeration

Member Typedef Documentation

◆ Enumerator0

template<class E0 , class E1 = TestNilEnumerator, class E2 = TestNilEnumerator>
typedef E0 s_baltst::TestEnumeration< E0, E1, E2 >::Enumerator0

◆ Enumerator1

template<class E0 , class E1 = TestNilEnumerator, class E2 = TestNilEnumerator>
typedef E1 s_baltst::TestEnumeration< E0, E1, E2 >::Enumerator1

◆ Enumerator2

template<class E0 , class E1 = TestNilEnumerator, class E2 = TestNilEnumerator>
typedef E2 s_baltst::TestEnumeration< E0, E1, E2 >::Enumerator2

Member Enumeration Documentation

◆ anonymous enum

template<class E0 , class E1 = TestNilEnumerator, class E2 = TestNilEnumerator>
anonymous enum
Enumerator
k_HAS_ENUMERATOR_1 
k_HAS_ENUMERATOR_2 

Constructor & Destructor Documentation

◆ TestEnumeration() [1/3]

template<class E0 , class E1 , class E2 >
s_baltst::TestEnumeration< E0, E1, E2 >::TestEnumeration ( )

◆ TestEnumeration() [2/3]

template<class E0 , class E1 , class E2 >
s_baltst::TestEnumeration< E0, E1, E2 >::TestEnumeration ( int  value)
explicit

◆ TestEnumeration() [3/3]

template<class E0 , class E1 , class E2 >
s_baltst::TestEnumeration< E0, E1, E2 >::TestEnumeration ( const TestEnumeration< E0, E1, E2 > &  original)

Member Function Documentation

◆ areEqual()

template<class E0 , class E1 , class E2 >
bool s_baltst::TestEnumeration< E0, E1, E2 >::areEqual ( const TestEnumeration< E0, E1, E2 > &  lhs,
const TestEnumeration< E0, E1, E2 > &  rhs 
)
static

◆ BSLMF_ASSERT()

template<class E0 , class E1 = TestNilEnumerator, class E2 = TestNilEnumerator>
s_baltst::TestEnumeration< E0, E1, E2 >::BSLMF_ASSERT ( (!bslmf::IsSame< TestNilEnumerator, E0 >::value)  )

◆ className()

template<class E0 , class E1 , class E2 >
const char * s_baltst::TestEnumeration< E0, E1, E2 >::className ( ) const

◆ fromInt()

template<class E0 , class E1 , class E2 >
int s_baltst::TestEnumeration< E0, E1, E2 >::fromInt ( int  number)

◆ fromString()

template<class E0 , class E1 , class E2 >
int s_baltst::TestEnumeration< E0, E1, E2 >::fromString ( const char *  string,
int  stringLength 
)

◆ operator=()

template<class E0 , class E1 , class E2 >
TestEnumeration< E0, E1, E2 > & s_baltst::TestEnumeration< E0, E1, E2 >::operator= ( const TestEnumeration< E0, E1, E2 > &  original)

◆ toInt()

template<class E0 , class E1 , class E2 >
void s_baltst::TestEnumeration< E0, E1, E2 >::toInt ( int *  result) const

◆ toString()

template<class E0 , class E1 , class E2 >
void s_baltst::TestEnumeration< E0, E1, E2 >::toString ( bsl::string result) const

The documentation for this class was generated from the following file: