|
ULAPI
8.0
|
An enhanced enumerated type used to represent persons (first, second, third, as well as first-singular, third-plural, second-singular-formal, etc.). More...
#include <ulperson.h>
Public Member Functions | |
| ULPerson () | |
| ULPerson (const ULPerson &other) | |
| ULPerson (int id) | |
| ULPerson (const char *otherStringID) | |
| virtual | ~ULPerson () |
| virtual void | clear () |
| ULPerson & | operator= (const ULPerson &other) |
| ULPerson & | operator= (int otherID) |
| ULPerson & | operator= (const char *otherStringID) |
| bool | operator== (const ULPerson &other) const |
| bool | operator== (const char *otherStringID) const |
| bool | operator!= (const ULPerson &other) const |
| bool | operator!= (const char *otherStringID) const |
| bool | operator< (const ULPerson &other) const |
| bool | operator< (const char *otherStringID) const |
| void | expandPerson (ULPerson &person, ULNumber &number, ULFormality &formality) 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 ULPerson & | getInstance (int id) |
| static void | getAllPersons (ULList< ULPerson > &persons) |
Static Public Member Functions inherited from ULEnum | |
| static bool | isEnumeratedFeature (const ULString &featureName) |
| static uluint32 | getRunTimeFeatureID (const ULString &featureName) |
Static Public Attributes | |
| static const ULPerson & | None = ULPerson("none", "noperson", "no person") |
| static const ULPerson & | Any = ULPerson("any", "anyperson", "any person") |
| static const ULPerson & | First = ULPerson("any", "first", "first person") |
| static const ULPerson & | Second = ULPerson("any", "second", "second person") |
| static const ULPerson & | Third = ULPerson("any", "third", "third person") |
| static const ULPerson & | FirstSingular = ULPerson("any", "firstsingular", "[I]") |
| static const ULPerson & | SecondSingular = ULPerson("any", "secondsingular", "[you]") |
| static const ULPerson & | SecondSingularFormal = ULPerson("any", "secondsingularformal", "[you formal]") |
| static const ULPerson & | ThirdSingular = ULPerson("any", "thirdsingular", "[he/she/it]") |
| static const ULPerson & | FirstPlural = ULPerson("any", "firstplural", "[we]") |
| static const ULPerson & | SecondPlural = ULPerson("any", "secondplural", "[you]") |
| static const ULPerson & | SecondPluralFormal = ULPerson("any", "secondpluralformal", "[you formal]") |
| static const ULPerson & | ThirdPlural = ULPerson("any", "thirdplural", "[they]") |
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 persons (first, second, third, as well as first-singular, third-plural, second-singular-formal, etc.).
See ULEnum for a discussion of enhanced enumerated types in ULAPI.
| ULPerson::ULPerson | ( | ) |
Default constructor.
| ULPerson::ULPerson | ( | const ULPerson & | other | ) |
Copy constructor.
| ULPerson::ULPerson | ( | int | otherID | ) |
Constructor by id.
| ULPerson::ULPerson | ( | const char * | otherStringID | ) |
|
virtual |
Destructor.
|
virtual |
| void ULPerson::expandPerson | ( | ULPerson & | person, |
| ULNumber & | number, | ||
| ULFormality & | formality | ||
| ) | const |
Converts this person (e.g. ULPerson::ThirdSingular) into a simple person, number, and formality (e.g. (ULPerson::Third, ULNumber::Singular, ULFormality::None). If this person is already simple, the number and formality are set to Any.
| [out] | person | the simple person |
| [out] | number | the number |
| [out] | formality | the formality |
| [out] | persons | The list of persons. |
|
static |
|
static |
| [in] | id | the desired integer id. |
| bool ULPerson::operator!= | ( | const ULPerson & | other | ) | const |
Inequality operator.
| bool ULPerson::operator!= | ( | const char * | stringID | ) | const |
Inequality operator.
| [in] | stringID | The string to compare to this object's string ID. |
| bool ULPerson::operator< | ( | const ULPerson & | other | ) | const |
| bool ULPerson::operator< | ( | const char * | stringID | ) | const |
Assignment operator.
| ULPerson & ULPerson::operator= | ( | int | otherID | ) |
| ULPerson & ULPerson::operator= | ( | const char * | otherStringID | ) |
| bool ULPerson::operator== | ( | const ULPerson & | other | ) | const |
Equality operator.
| bool ULPerson::operator== | ( | const char * | stringID | ) | const |
Equality operator.
| [in] | stringID | The string to compare to this object's string ID. |
|
static |
|
static |
1.8.2