|
ULAPI
8.0
|
An enhanced enumerated type used to represent formality levels (e.g. Sie vs. du). More...
#include <ulformality.h>
Public Member Functions | |
| ULFormality () | |
| ULFormality (const ULFormality &other) | |
| ULFormality (int id) | |
| ULFormality (const char *otherStringID) | |
| virtual | ~ULFormality () |
| virtual void | clear () |
| ULFormality & | operator= (const ULFormality &other) |
| ULFormality & | operator= (int otherID) |
| ULFormality & | operator= (const char *otherStringID) |
| bool | operator== (const ULFormality &other) const |
| bool | operator== (const char *otherStringID) const |
| bool | operator!= (const ULFormality &other) const |
| bool | operator!= (const char *otherStringID) const |
| bool | operator< (const ULFormality &other) const |
| bool | operator< (const char *otherStringID) const |
Public Member Functions inherited from ULEnum | |
| ULEnum () | |
| ULEnum (const ULEnum &other) | |
| virtual | ~ULEnum () |
| virtual ULEnum & | operator= (const ULEnum &other) |
| operator int () const | |
| uluint32 | hash (uluint32 tableSize) const |
| int | getID () const |
| const char * | getStringID () const |
| virtual const char * | getDisplayString () const |
Static Public Member Functions | |
| static int | getEnumeratedValueCount () |
| static const ULFormality & | getInstance (int id) |
Static Public Member Functions inherited from ULEnum | |
| static bool | isEnumeratedFeature (const ULString &featureName) |
| static uluint32 | getRunTimeFeatureID (const ULString &featureName) |
Static Public Attributes | |
| static const ULFormality & | None = ULFormality("noformality", "no formality") |
| static const ULFormality & | Any = ULFormality("anyformality", "any formality") |
| static const ULFormality & | Formal = ULFormality("formal", "formal") |
| static const ULFormality & | Informal = ULFormality("informal", "informal") |
Additional Inherited Members | |
Protected Attributes inherited from ULEnum | |
| int | id |
| const char * | stringID |
| const char * | displayString |
Static Protected Attributes inherited from ULEnum | |
| static ULHashTable< ULString, uluint32 > | featureNameToRunTimeID |
An enhanced enumerated type used to represent formality levels (e.g. Sie vs. du).
See ULEnum for a discussion of enhanced enumerated types in ULAPI.
| ULFormality::ULFormality | ( | ) |
Default constructor.
| ULFormality::ULFormality | ( | const ULFormality & | other | ) |
Copy constructor.
| ULFormality::ULFormality | ( | int | otherID | ) |
Constructor by id.
| ULFormality::ULFormality | ( | const char * | otherStringID | ) |
Constructor.
| [in] | otherStringID | The string ID corresponding to the ULFormality value this ULFormality should be copied from. |
|
virtual |
Destructor.
|
virtual |
Sets this ULFormality object to its default state.
Reimplemented from ULEnum.
|
static |
|
static |
| [in] | id | the desired integer id. |
| bool ULFormality::operator!= | ( | const ULFormality & | other | ) | const |
Inequality operator.
| bool ULFormality::operator!= | ( | const char * | stringID | ) | const |
Inequality operator.
| [in] | stringID | The string to compare to this object's string ID. |
| bool ULFormality::operator< | ( | const ULFormality & | other | ) | const |
Comparison operator.
| [in] | other | The other ULFormality object. |
| bool ULFormality::operator< | ( | const char * | stringID | ) | const |
Comparison operator.
| [in] | stringID | The string ID. |
| ULFormality & ULFormality::operator= | ( | const ULFormality & | other | ) |
Assignment operator.
| ULFormality & ULFormality::operator= | ( | int | otherID | ) |
Assignment operator.
| [in] | otherID | The ID of the enumerated value of ULFormality to assign to this ULFormality. |
| ULFormality & ULFormality::operator= | ( | const char * | otherStringID | ) |
Assignment operator.
| [in] | stringID | If stringID is the string ID of one of the ULFormality enumerated values, then this object is copied from that ULFormality. Otherwise, this object is assigned the default value. |
| bool ULFormality::operator== | ( | const ULFormality & | other | ) | const |
Equality operator.
| bool ULFormality::operator== | ( | const char * | stringID | ) | const |
Equality operator.
| [in] | stringID | The string to compare to this object's string ID. |
|
static |
|
static |
|
static |
|
static |
1.8.2