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

An enhanced enumerated type used to represent the numbers of noun/pronoun/adjective. More...

#include <ulnumber.h>

Public Member Functions

 ULNumber ()
 
 ULNumber (const ULNumber &other)
 
 ULNumber (int id)
 
 ULNumber (const char *otherStringID)
 
virtual ~ULNumber ()
 
virtual void clear ()
 
ULNumberoperator= (const ULNumber &other)
 
ULNumberoperator= (int otherID)
 
ULNumberoperator= (const char *otherStringID)
 
bool operator== (const ULNumber &other) const
 
bool operator== (const char *otherStringID) const
 
bool operator!= (const ULNumber &other) const
 
bool operator!= (const char *otherStringID) const
 
bool operator< (const ULNumber &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 ULNumbergetInstance (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 ULNumberNone = ULNumber("nonumber", "no number")
 
static const ULNumberAny = ULNumber("anynumber", "any number")
 
static const ULNumberSingular = ULNumber("singular", "singular")
 
static const ULNumberPlural = ULNumber("plural", "plural")
 
static const ULNumberDual = ULNumber("dual", "dual")
 
static const ULNumberInvariable = ULNumber("invariable", "invariable")
 

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

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

Constructor & Destructor Documentation

ULNumber::ULNumber ( )

Default constructor.

ULNumber::ULNumber ( const ULNumber other)

Copy constructor.

ULNumber::ULNumber ( int  otherID)

Constructor by id.

ULNumber::ULNumber ( const char *  otherStringID)

Constructor.

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

Destructor.

Member Function Documentation

void ULNumber::clear ( )
virtual

Sets this ULNumber object to its default state.

Reimplemented from ULEnum.

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

Inequality operator.

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

Inequality operator.

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

Comparison operator.

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

Comparison operator.

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

Assignment operator.

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

Assignment operator.

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

Assignment operator.

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

Equality operator.

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

Equality operator.

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

Member Data Documentation

const ULNumber & ULNumber::Any = ULNumber("anynumber", "any number")
static
const ULNumber & ULNumber::Dual = ULNumber("dual", "dual")
static
const ULNumber & ULNumber::Invariable = ULNumber("invariable", "invariable")
static
const ULNumber & ULNumber::None = ULNumber("nonumber", "no number")
static
const ULNumber & ULNumber::Plural = ULNumber("plural", "plural")
static
const ULNumber & ULNumber::Singular = ULNumber("singular", "singular")
static

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