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

An enhanced enumerated type used to represent the aspect of verbs. More...

#include <ulaspect.h>

Public Member Functions

 ULAspect ()
 
 ULAspect (const ULAspect &other)
 
 ULAspect (int id)
 
 ULAspect (const char *otherStringID)
 
virtual ~ULAspect ()
 
virtual void clear ()
 
ULAspectoperator= (const ULAspect &other)
 
ULAspectoperator= (int otherID)
 
ULAspectoperator= (const char *otherStringID)
 
bool operator== (const ULAspect &other) const
 
bool operator== (const char *otherStringID) const
 
bool operator!= (const ULAspect &other) const
 
bool operator!= (const char *otherStringID) const
 
bool operator< (const ULAspect &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 ULAspectgetInstance (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 ULAspectNone = ULAspect("noaspect", "noaspect")
 
static const ULAspectAny = ULAspect("anyaspect", "any aspect")
 
static const ULAspectSimple = ULAspect("simple", "simple")
 
static const ULAspectPerfect = ULAspect("perfect", "perfect")
 
static const ULAspectProgressive = ULAspect("progressive", "progressive")
 
static const ULAspectPerfective = ULAspect("perfective", "perfective")
 
static const ULAspectImperfective = ULAspect("imperfective", "imperfective")
 
static const ULAspectInchoative = ULAspect("inchoative", "inchoative")
 

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 aspect of verbs.

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

Constructor & Destructor Documentation

ULAspect::ULAspect ( )

Default constructor.

ULAspect::ULAspect ( const ULAspect other)

Copy constructor.

ULAspect::ULAspect ( int  otherID)

Constructor by id.

ULAspect::ULAspect ( const char *  otherStringID)

Constructor.

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

Destructor.

Member Function Documentation

void ULAspect::clear ( )
virtual

Sets this ULAspect object to its default state.

Reimplemented from ULEnum.

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

Inequality operator.

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

Inequality operator.

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

Comparison operator.

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

Comparison operator.

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

Assignment operator.

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

Assignment operator.

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

Assignment operator.

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

Equality operator.

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

Equality operator.

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

Member Data Documentation

const ULAspect & ULAspect::Any = ULAspect("anyaspect", "any aspect")
static
const ULAspect & ULAspect::Imperfective = ULAspect("imperfective", "imperfective")
static
const ULAspect & ULAspect::Inchoative = ULAspect("inchoative", "inchoative")
static
const ULAspect & ULAspect::None = ULAspect("noaspect", "noaspect")
static
const ULAspect & ULAspect::Perfect = ULAspect("perfect", "perfect")
static
const ULAspect & ULAspect::Perfective = ULAspect("perfective", "perfective")
static
const ULAspect & ULAspect::Progressive = ULAspect("progressive", "progressive")
static
const ULAspect & ULAspect::Simple = ULAspect("simple", "simple")
static

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