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

An enhanced enumerated type used to represent noun/pronoun/adjective cases. More...

#include <ulcase.h>

Public Member Functions

 ULCase ()
 
 ULCase (const ULCase &other)
 
 ULCase (int id)
 
 ULCase (const char *otherStringID)
 
virtual ~ULCase ()
 
virtual void clear ()
 
ULCaseoperator= (const ULCase &other)
 
ULCaseoperator= (int otherID)
 
ULCaseoperator= (const char *otherStringID)
 
bool operator== (const ULCase &other) const
 
bool operator== (const char *otherStringID) const
 
bool operator!= (const ULCase &other) const
 
bool operator!= (const char *otherStringID) const
 
bool operator< (const ULCase &other) const
 
bool operator< (const char *otherStringID) const
 
- Public Member Functions inherited from ULEnum
 ULEnum ()
 
 ULEnum (const ULEnum &other)
 
virtual ~ULEnum ()
 
virtual ULEnumoperator= (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 ULCasegetInstance (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 ULCaseNone = ULCase("nocase", "no case")
 
static const ULCaseAny = ULCase("anycase", "any case")
 
static const ULCaseNominative = ULCase("nominative", "nominative")
 
static const ULCaseGenitive = ULCase("genitive", "genitive")
 
static const ULCaseAccusative = ULCase("accusative", "accusative")
 
static const ULCaseDative = ULCase("dative", "dative")
 
static const ULCasePrepositional = ULCase("prepositional", "prepositional")
 
static const ULCaseInstrumental = ULCase("instrumental", "instrumental")
 
static const ULCaseVocative = ULCase("vocative", "vocative")
 
static const ULCaseAblative = ULCase("ablative", "ablative")
 
static const ULCaseLocative = ULCase("locative", "locative")
 
static const ULCasePartitive = ULCase("partitive", "partitive")
 
static const ULCaseInessive = ULCase("inessive", "inessive")
 
static const ULCaseElative = ULCase("elative", "elative")
 
static const ULCaseIllative = ULCase("illative", "illative")
 
static const ULCaseAdessive = ULCase("adessive", "adessive")
 
static const ULCaseAllative = ULCase("allative", "allative")
 
static const ULCaseEssive = ULCase("essive", "essive")
 
static const ULCaseTranslative = ULCase("translative", "translative")
 
static const ULCaseInstructive = ULCase("instructive", "instructive")
 
static const ULCaseAbessive = ULCase("abessive", "abessive")
 
static const ULCaseProlative = ULCase("prolative", "prolative")
 
static const ULCaseSublative = ULCase("sublative", "sublative")
 
static const ULCaseSuperessive = ULCase("superessive", "superessive")
 
static const ULCaseDelative = ULCase("delative", "delative")
 
static const ULCaseTerminative = ULCase("terminative", "terminative")
 
static const ULCaseTemporal = ULCase("temporal", "temporal")
 
static const ULCaseCausalFinal = ULCase("causalfinal", "causal-final")
 

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 noun/pronoun/adjective cases.

See ULEnum for a discussion of enhanced enumerated types in ULAPI.

Constructor & Destructor Documentation

ULCase::ULCase ( )

Default constructor.

ULCase::ULCase ( const ULCase other)

Copy constructor.

ULCase::ULCase ( int  otherID)

Constructor by id.

ULCase::ULCase ( const char *  otherStringID)

Constructor.

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

Destructor.

Member Function Documentation

void ULCase::clear ( )
virtual

Sets this ULCase object to its default state.

Reimplemented from ULEnum.

int ULCase::getEnumeratedValueCount ( )
static
Returns
the number of distinct enumerated values of this type.
const ULCase & ULCase::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 ULCase::operator!= ( const ULCase other) const

Inequality operator.

bool ULCase::operator!= ( const char *  stringID) const

Inequality operator.

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

Comparison operator.

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

Comparison operator.

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

Assignment operator.

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

Assignment operator.

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

Assignment operator.

Returns
a reference to this ULCase object.
Parameters
[in]stringIDIf stringID is the string ID of one of the ULCase enumerated values, then this object is copied from that ULCase. Otherwise, this object is assigned the default value.
bool ULCase::operator== ( const ULCase other) const

Equality operator.

bool ULCase::operator== ( const char *  stringID) const

Equality operator.

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

Member Data Documentation

const ULCase & ULCase::Abessive = ULCase("abessive", "abessive")
static
const ULCase & ULCase::Ablative = ULCase("ablative", "ablative")
static
const ULCase & ULCase::Accusative = ULCase("accusative", "accusative")
static
const ULCase & ULCase::Adessive = ULCase("adessive", "adessive")
static
const ULCase & ULCase::Allative = ULCase("allative", "allative")
static
const ULCase & ULCase::Any = ULCase("anycase", "any case")
static
const ULCase & ULCase::CausalFinal = ULCase("causalfinal", "causal-final")
static
const ULCase & ULCase::Dative = ULCase("dative", "dative")
static
const ULCase & ULCase::Delative = ULCase("delative", "delative")
static
const ULCase & ULCase::Elative = ULCase("elative", "elative")
static
const ULCase & ULCase::Essive = ULCase("essive", "essive")
static
const ULCase & ULCase::Genitive = ULCase("genitive", "genitive")
static
const ULCase & ULCase::Illative = ULCase("illative", "illative")
static
const ULCase & ULCase::Inessive = ULCase("inessive", "inessive")
static
const ULCase & ULCase::Instructive = ULCase("instructive", "instructive")
static
const ULCase & ULCase::Instrumental = ULCase("instrumental", "instrumental")
static
const ULCase & ULCase::Locative = ULCase("locative", "locative")
static
const ULCase & ULCase::Nominative = ULCase("nominative", "nominative")
static
const ULCase & ULCase::None = ULCase("nocase", "no case")
static
const ULCase & ULCase::Partitive = ULCase("partitive", "partitive")
static
const ULCase & ULCase::Prepositional = ULCase("prepositional", "prepositional")
static
const ULCase & ULCase::Prolative = ULCase("prolative", "prolative")
static
const ULCase & ULCase::Sublative = ULCase("sublative", "sublative")
static
const ULCase & ULCase::Superessive = ULCase("superessive", "superessive")
static
const ULCase & ULCase::Temporal = ULCase("temporal", "temporal")
static
const ULCase & ULCase::Terminative = ULCase("terminative", "terminative")
static
const ULCase & ULCase::Translative = ULCase("translative", "translative")
static
const ULCase & ULCase::Vocative = ULCase("vocative", "vocative")
static

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