ULAPI  8.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
ULPartOfSpeechCategory Class Reference

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)
 

Static Public Attributes

static const
ULPartOfSpeechCategory & 
None = ULPartOfSpeechCategory("nocategory", "no category")
 
static const
ULPartOfSpeechCategory & 
Any = ULPartOfSpeechCategory("anycategory", "any category")
 
static const
ULPartOfSpeechCategory & 
Nonverb = ULPartOfSpeechCategory("nonverb", "nonverb")
 
static const
ULPartOfSpeechCategory & 
Unknown = ULPartOfSpeechCategory("unknown", "unknown")
 
static const
ULPartOfSpeechCategory & 
AnyNominal = ULPartOfSpeechCategory("nominal", "nominal")
 
static const
ULPartOfSpeechCategory & 
Article = ULPartOfSpeechCategory("article", "article")
 
static const
ULPartOfSpeechCategory & 
Pronoun = ULPartOfSpeechCategory("pronoun", "pronoun")
 
static const
ULPartOfSpeechCategory & 
Noun = ULPartOfSpeechCategory("noun", "noun")
 
static const
ULPartOfSpeechCategory & 
Verb = ULPartOfSpeechCategory("verb", "verb")
 
static const
ULPartOfSpeechCategory & 
Adjective = ULPartOfSpeechCategory("adjective", "adjective")
 
static const
ULPartOfSpeechCategory & 
Adverb = ULPartOfSpeechCategory("adverb", "adverb")
 
static const
ULPartOfSpeechCategory & 
Conjunction = ULPartOfSpeechCategory("conjunction", "conjunction")
 
static const
ULPartOfSpeechCategory & 
Preposition = ULPartOfSpeechCategory("preposition", "preposition")
 
static const
ULPartOfSpeechCategory & 
Numeral = ULPartOfSpeechCategory("numeral", "numeral")
 
static const
ULPartOfSpeechCategory & 
Affix = ULPartOfSpeechCategory("affix", "affix")
 
static const
ULPartOfSpeechCategory & 
Expression = ULPartOfSpeechCategory("expression", "expression")
 
static const
ULPartOfSpeechCategory & 
Interjection = ULPartOfSpeechCategory("interjection", "interjection")
 

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
 

Detailed Description

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.

Constructor & Destructor Documentation

ULPartOfSpeechCategory::ULPartOfSpeechCategory ( )

Default constructor.

ULPartOfSpeechCategory::ULPartOfSpeechCategory ( const ULPartOfSpeechCategory &  other)

Copy constructor.

ULPartOfSpeechCategory::ULPartOfSpeechCategory ( int  otherID)

Constructor by id.

ULPartOfSpeechCategory::ULPartOfSpeechCategory ( const char *  otherStringID)

Constructor.

Parameters
[in]otherStringIDThe string ID corresponding to the ULPartOfSpeechCategory value this ULPartOfSpeechCategory should be copied from.
ULPartOfSpeechCategory::~ULPartOfSpeechCategory ( )
virtual

Destructor.

Member Function Documentation

void ULPartOfSpeechCategory::clear ( )
virtual

Sets this ULPartOfSpeechCategory object to its default state.

Reimplemented from ULEnum.

void ULPartOfSpeechCategory::getAllPartOfSpeechCategories ( ULList< ULPartOfSpeechCategory > &  categories)
static
Returns
a list of all the part of speech categories.
Parameters
[out]categoriesThe list of part of speech categories.
int ULPartOfSpeechCategory::getEnumeratedValueCount ( )
static
Returns
the number of distinct enumerated values of this type.
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::getInstance ( int  id)
static
Returns
the statically allocated instance of this type corresponding to the specified integer id.
Parameters
[in]idthe desired integer id.
bool ULPartOfSpeechCategory::isKindOf ( const ULPartOfSpeechCategory &  other) const
Returns
true if this category and the specified category are compatible either because they are equal or because this category is a specific form of the more general other category. For example, if this category is Pronoun and other is AnyNominal, then this method returns true.
Parameters
[in]otherthe 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.

Returns
true if the specified string is not equal to this ULPartOfSpeechCategory's string ID.
Parameters
[in]stringIDThe string to compare to this object's string ID.
bool ULPartOfSpeechCategory::operator< ( const ULPartOfSpeechCategory &  other) const

Comparison operator.

Returns
true if this ULPartOfSpeechCategory's integer ID is strictly less than other's.
Parameters
[in]otherThe other ULPartOfSpeechCategory object.
bool ULPartOfSpeechCategory::operator< ( const char *  stringID) const

Comparison operator.

Returns
true if this ULPartOfSpeechCategory's integer ID is is strictly less the integer ID of the ULPartOfSpeechCategory value corresponding to the specified string ID.
Parameters
[in]stringIDThe string ID.
ULPartOfSpeechCategory & ULPartOfSpeechCategory::operator= ( const ULPartOfSpeechCategory &  other)

Assignment operator.

Returns
a reference to this ULPartOfSpeechCategory object.
ULPartOfSpeechCategory & ULPartOfSpeechCategory::operator= ( int  otherID)

Assignment operator.

Parameters
[in]otherIDThe ID of the enumerated value of ULPartOfSpeechCategory to assign to this ULPartOfSpeechCategory.
ULPartOfSpeechCategory & ULPartOfSpeechCategory::operator= ( const char *  otherStringID)

Assignment operator.

Returns
a reference to this ULPartOfSpeechCategory object.
Parameters
[in]stringIDIf 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.

Returns
true if the specified string is equal to this ULPartOfSpeechCategory's string ID.
Parameters
[in]stringIDThe string to compare to this object's string ID.

Member Data Documentation

const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Adjective = ULPartOfSpeechCategory("adjective", "adjective")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Adverb = ULPartOfSpeechCategory("adverb", "adverb")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Affix = ULPartOfSpeechCategory("affix", "affix")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Any = ULPartOfSpeechCategory("anycategory", "any category")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::AnyNominal = ULPartOfSpeechCategory("nominal", "nominal")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Article = ULPartOfSpeechCategory("article", "article")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Conjunction = ULPartOfSpeechCategory("conjunction", "conjunction")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Expression = ULPartOfSpeechCategory("expression", "expression")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Interjection = ULPartOfSpeechCategory("interjection", "interjection")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::None = ULPartOfSpeechCategory("nocategory", "no category")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Nonverb = ULPartOfSpeechCategory("nonverb", "nonverb")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Noun = ULPartOfSpeechCategory("noun", "noun")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Numeral = ULPartOfSpeechCategory("numeral", "numeral")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Preposition = ULPartOfSpeechCategory("preposition", "preposition")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Pronoun = ULPartOfSpeechCategory("pronoun", "pronoun")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Unknown = ULPartOfSpeechCategory("unknown", "unknown")
static
const ULPartOfSpeechCategory & ULPartOfSpeechCategory::Verb = ULPartOfSpeechCategory("verb", "verb")
static

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