#include <s_baltst_myintenumeration.h>
◆ BaseType
◆ MyIntEnumeration() [1/3]
s_baltst::MyIntEnumeration::MyIntEnumeration |
( |
| ) |
|
|
inline |
◆ MyIntEnumeration() [2/3]
s_baltst::MyIntEnumeration::MyIntEnumeration |
( |
const MyIntEnumeration & |
original | ) |
|
|
inline |
Create an object of type MyIntEnumeration
having the value of the specified original
object.
◆ MyIntEnumeration() [3/3]
s_baltst::MyIntEnumeration::MyIntEnumeration |
( |
const int & |
value | ) |
|
|
inlineexplicit |
◆ ~MyIntEnumeration()
s_baltst::MyIntEnumeration::~MyIntEnumeration |
( |
| ) |
|
|
inline |
◆ checkRestrictions()
static int s_baltst::MyIntEnumeration::checkRestrictions |
( |
const int & |
value | ) |
|
|
static |
Check if the specified value
satisfies the restrictions of this class (i.e., "MyIntEnumeration"). Return 0 if successful (i.e., the restrictions are satisfied) and non-zero otherwise.
◆ fromInt()
int s_baltst::MyIntEnumeration::fromInt |
( |
const int & |
value | ) |
|
|
inline |
Convert from the specified value
to this type. Return 0 if successful and non-zero otherwise.
◆ operator=()
◆ print()
bsl::ostream & s_baltst::MyIntEnumeration::print |
( |
bsl::ostream & |
stream, |
|
|
int |
level = 0 , |
|
|
int |
spacesPerLevel = 4 |
|
) |
| const |
|
inline |
Format this object to the specified output stream
at the optionally specified indentation level
and return a reference to the modifiable stream
. If level
is specified, optionally specify spacesPerLevel
, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of level * spacesPerLevel
. If level
is negative, suppress indentation of the first line. If spacesPerLevel
is negative, suppress line breaks and format the entire output on one line. If stream
is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only.
◆ reset()
void s_baltst::MyIntEnumeration::reset |
( |
| ) |
|
|
inline |
Reset this object to the default value (i.e., its value upon default construction).
◆ toInt()
const int & s_baltst::MyIntEnumeration::toInt |
( |
| ) |
const |
|
inline |
◆ operator!=
Return true
if the specified lhs
and rhs
attribute objects do not have the same value, and false
otherwise. Two attribute objects do not have the same value if one or more respective attributes differ in values.
◆ operator==
Return true
if the specified lhs
and rhs
attribute objects have the same value, and false
otherwise. Two attribute objects have the same value if each respective attribute has the same value.
◆ CLASS_NAME
const char s_baltst::MyIntEnumeration::CLASS_NAME[] |
|
static |
◆ VALUE1
const int s_baltst::MyIntEnumeration::VALUE1 |
|
static |
◆ VALUE2
const int s_baltst::MyIntEnumeration::VALUE2 |
|
static |
The documentation for this class was generated from the following file: