ULAPI
8.0
|
An enhanced enumerated type used to represent the various broad part of speech categories (e.g. verb, noun, adjective, etc.) as opposed to the more specific parts of speech (e.g. transitive verb). More...
#include <ulpartofspeechcategory.h>
Public Member Functions | |
ULPartOfSpeechCategory () | |
ULPartOfSpeechCategory (const ULPartOfSpeechCategory &other) | |
ULPartOfSpeechCategory (int id) | |
ULPartOfSpeechCategory (const char *otherStringID) | |
virtual | ~ULPartOfSpeechCategory () |
virtual void | clear () |
ULPartOfSpeechCategory & | operator= (const ULPartOfSpeechCategory &other) |
ULPartOfSpeechCategory & | operator= (int otherID) |
ULPartOfSpeechCategory & | operator= (const char *otherStringID) |
bool | operator== (const ULPartOfSpeechCategory &other) const |
bool | operator== (const char *otherStringID) const |
bool | operator!= (const ULPartOfSpeechCategory &other) const |
bool | operator!= (const char *otherStringID) const |
bool | operator< (const ULPartOfSpeechCategory &other) const |
bool | operator< (const char *otherStringID) const |
bool | isKindOf (const ULPartOfSpeechCategory &other) 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 ULPartOfSpeechCategory & | getInstance (int id) |
static void | getAllPartOfSpeechCategories (ULList< ULPartOfSpeechCategory > &categories) |
Static Public Member Functions inherited from ULEnum | |
static bool | isEnumeratedFeature (const ULString &featureName) |
static uluint32 | getRunTimeFeatureID (const ULString &featureName) |
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 the various broad part of speech categories (e.g. verb, noun, adjective, etc.) as opposed to the more specific parts of speech (e.g. transitive verb).
See ULEnum for a discussion of enhanced enumerated types in ULAPI.
ULPartOfSpeechCategory::ULPartOfSpeechCategory | ( | ) |
Default constructor.
ULPartOfSpeechCategory::ULPartOfSpeechCategory | ( | const ULPartOfSpeechCategory & | other | ) |
Copy constructor.
ULPartOfSpeechCategory::ULPartOfSpeechCategory | ( | int | otherID | ) |
Constructor by id.
ULPartOfSpeechCategory::ULPartOfSpeechCategory | ( | const char * | otherStringID | ) |
Constructor.
[in] | otherStringID | The string ID corresponding to the ULPartOfSpeechCategory value this ULPartOfSpeechCategory should be copied from. |
|
virtual |
Destructor.
|
virtual |
Sets this ULPartOfSpeechCategory object to its default state.
Reimplemented from ULEnum.
|
static |
[out] | categories | The list of part of speech categories. |
|
static |
|
static |
[in] | id | the desired integer id. |
bool ULPartOfSpeechCategory::isKindOf | ( | const ULPartOfSpeechCategory & | other | ) | const |
[in] | other | the category to which to compare this category. |
bool ULPartOfSpeechCategory::operator!= | ( | const ULPartOfSpeechCategory & | other | ) | const |
Inequality operator.
bool ULPartOfSpeechCategory::operator!= | ( | const char * | stringID | ) | const |
Inequality operator.
[in] | stringID | The string to compare to this object's string ID. |
bool ULPartOfSpeechCategory::operator< | ( | const ULPartOfSpeechCategory & | other | ) | const |
Comparison operator.
[in] | other | The other ULPartOfSpeechCategory object. |
bool ULPartOfSpeechCategory::operator< | ( | const char * | stringID | ) | const |
Comparison operator.
[in] | stringID | The string ID. |
ULPartOfSpeechCategory & ULPartOfSpeechCategory::operator= | ( | const ULPartOfSpeechCategory & | other | ) |
Assignment operator.
ULPartOfSpeechCategory & ULPartOfSpeechCategory::operator= | ( | int | otherID | ) |
Assignment operator.
[in] | otherID | The ID of the enumerated value of ULPartOfSpeechCategory to assign to this ULPartOfSpeechCategory. |
ULPartOfSpeechCategory & ULPartOfSpeechCategory::operator= | ( | const char * | otherStringID | ) |
Assignment operator.
[in] | stringID | If stringID is the string ID of one of the ULPartOfSpeechCategory enumerated values, then this object is copied from that ULPartOfSpeechCategory. Otherwise, this object is assigned the default value. |
bool ULPartOfSpeechCategory::operator== | ( | const ULPartOfSpeechCategory & | other | ) | const |
Equality operator.
bool ULPartOfSpeechCategory::operator== | ( | const char * | stringID | ) | const |
Equality operator.
[in] | stringID | The string to compare to this object's string ID. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |